mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 16:37:08 +00:00
More WGSL syntax updates
This CL updates more #'s to //'s and a missing set to group. Change-Id: If417ed019319ed760e3b672770397857c6dfc40c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/39065 Commit-Queue: dan sinclair <dsinclair@chromium.org> Commit-Queue: Sarah Mashayekhi <sarahmashay@google.com> Auto-Submit: dan sinclair <dsinclair@chromium.org> Reviewed-by: Sarah Mashayekhi <sarahmashay@google.com> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
e6f58411a9
commit
aae37c2ea3
@@ -65,10 +65,10 @@ class DepthStencilStateTest : public DawnTest {
|
||||
const pos : array<vec2<f32>, 6> = array<vec2<f32>, 6>(
|
||||
vec2<f32>(-1.0, 1.0),
|
||||
vec2<f32>(-1.0, -1.0),
|
||||
vec2<f32>( 1.0, -1.0), # front-facing
|
||||
vec2<f32>( 1.0, -1.0), // front-facing
|
||||
vec2<f32>(-1.0, 1.0),
|
||||
vec2<f32>( 1.0, 1.0),
|
||||
vec2<f32>( 1.0, -1.0)); # back-facing
|
||||
vec2<f32>( 1.0, -1.0)); // back-facing
|
||||
Position = vec4<f32>(pos[VertexIndex], ubo.depth, 1.0);
|
||||
})");
|
||||
|
||||
|
||||
@@ -119,7 +119,7 @@ void FirstIndexOffsetTests::TestImpl(DrawMode mode,
|
||||
[[offset(4)]] instance_index : u32;
|
||||
};
|
||||
|
||||
[[set(0), binding(0)]] var<storage_buffer> idx_vals : [[access(read_write)]] IndexVals;
|
||||
[[group(0), binding(0)]] var<storage_buffer> idx_vals : [[access(read_write)]] IndexVals;
|
||||
|
||||
[[stage(fragment)]] fn main() -> void {
|
||||
)";
|
||||
|
||||
Reference in New Issue
Block a user