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:
dan sinclair
2021-01-27 21:27:54 +00:00
committed by Commit Bot service account
parent e6f58411a9
commit aae37c2ea3
3 changed files with 10 additions and 10 deletions

View File

@@ -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);
})");

View File

@@ -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 {
)";