diff --git a/src/tint/ast/module_clone_test.cc b/src/tint/ast/module_clone_test.cc index 65c2406f40..bd96b2609f 100644 --- a/src/tint/ast/module_clone_test.cc +++ b/src/tint/ast/module_clone_test.cc @@ -99,7 +99,7 @@ fn f1(p0 : f32, p1 : i32) -> f32 { return 1.0; } -@stage(fragment) +@fragment fn main() { f1(1.0, 2); } diff --git a/src/tint/fuzzers/tint_regex_fuzzer/regex_fuzzer_tests.cc b/src/tint/fuzzers/tint_regex_fuzzer/regex_fuzzer_tests.cc index b344a69eca..891a111057 100644 --- a/src/tint/fuzzers/tint_regex_fuzzer/regex_fuzzer_tests.cc +++ b/src/tint/fuzzers/tint_regex_fuzzer/regex_fuzzer_tests.cc @@ -172,16 +172,16 @@ TEST(GetIdentifierTest, GetIdentifierTest1) { R"(fn clamp_0acf8f() { var res: vec2 = clamp(vec2(), vec2(), vec2()); } - @stage(vertex) + @vertex fn vertex_main() -> @builtin(position) vec4 { clamp_0acf8f();" return vec4(); } - @stage(fragment) + @fragment fn fragment_main() { clamp_0acf8f(); } - @stage(compute) @workgroup_size(1) + @compute @workgroup_size(1) fn compute_main() {" var foo: f32 = 0.0; clamp_0acf8f(); @@ -192,13 +192,13 @@ TEST(GetIdentifierTest, GetIdentifierTest1) { std::vector> ground_truth = { std::make_pair(3, 12), std::make_pair(28, 3), std::make_pair(37, 4), std::make_pair(49, 5), std::make_pair(60, 3), std::make_pair(68, 4), - std::make_pair(81, 4), std::make_pair(110, 5), std::make_pair(130, 2), - std::make_pair(140, 4), std::make_pair(151, 7), std::make_pair(169, 4), - std::make_pair(190, 12), std::make_pair(216, 6), std::make_pair(228, 3), - std::make_pair(251, 5), std::make_pair(273, 2), std::make_pair(285, 4), - std::make_pair(302, 12), std::make_pair(333, 5), std::make_pair(349, 14), - std::make_pair(373, 2), std::make_pair(384, 4), std::make_pair(402, 3), - std::make_pair(415, 3), std::make_pair(420, 3), std::make_pair(439, 12)}; + std::make_pair(81, 4), std::make_pair(110, 6), std::make_pair(123, 2), + std::make_pair(133, 4), std::make_pair(144, 7), std::make_pair(162, 4), + std::make_pair(183, 12), std::make_pair(209, 6), std::make_pair(221, 3), + std::make_pair(244, 8), std::make_pair(259, 2), std::make_pair(271, 4), + std::make_pair(288, 12), std::make_pair(319, 7), std::make_pair(328, 14), + std::make_pair(352, 2), std::make_pair(363, 4), std::make_pair(381, 3), + std::make_pair(394, 3), std::make_pair(399, 3), std::make_pair(418, 12)}; ASSERT_EQ(ground_truth, identifiers_pos); } @@ -208,17 +208,17 @@ TEST(TestGetLiteralsValues, TestGetLiteralsValues1) { R"(fn clamp_0acf8f() { var res: vec2 = clamp(vec2(), vec2(), vec2()); } - @stage(vertex) + @vertex fn vertex_main() -> @builtin(position) vec4 { clamp_0acf8f(); var foo_1: i32 = 3; return vec4(); } - @stage(fragment) + @fragment fn fragment_main() { clamp_0acf8f(); } - @stage(compute) @workgroup_size(1) + @compute @workgroup_size(1) fn compute_main() { var foo: f32 = 0.0; var foo_2: i32 = 10; @@ -249,17 +249,17 @@ TEST(InsertReturnTest, FindClosingBrace) { var res: vec2 = clamp(vec2(), vec2(), vec2()); } } - @stage(vertex) + @vertex fn vertex_main() -> @builtin(position) vec4 { clamp_0acf8f(); var foo_1: i32 = 3; return vec4(); } - @stage(fragment) + @fragment fn fragment_main() { clamp_0acf8f(); } - @stage(compute) @workgroup_size(1) + @compute @workgroup_size(1) fn compute_main() { var foo: f32 = 0.0; var foo_2: i32 = 10; @@ -295,17 +295,17 @@ TEST(InsertReturnTest, FindClosingBraceFailing) { var res: vec2 = clamp(vec2(), vec2(), vec2()); } } - @stage(vertex) + @vertex fn vertex_main() -> @builtin(position) vec4 { clamp_0acf8f(); var foo_1: i32 = 3; return vec4(); } - @stage(fragment) + @fragment fn fragment_main() { clamp_0acf8f(); } - @stage(compute) @workgroup_size(1) + @compute @workgroup_size(1) fn compute_main() { var foo: f32 = 0.0; var foo_2: i32 = 10; @@ -334,17 +334,17 @@ TEST(TestInsertReturn, TestInsertReturn1) { R"(fn clamp_0acf8f() { var res: vec2 = clamp(vec2(), vec2(), vec2()); } - @stage(vertex) + @vertex fn vertex_main() -> @builtin(position) vec4 { clamp_0acf8f(); var foo_1: i32 = 3; return vec4(); } - @stage(fragment) + @fragment fn fragment_main() { clamp_0acf8f(); } - @stage(compute) @workgroup_size(1) + @compute @workgroup_size(1) fn compute_main() { var foo: f32 = 0.0; var foo_2: i32 = 10; @@ -367,17 +367,17 @@ TEST(TestInsertReturn, TestInsertReturn1) { R"(fn clamp_0acf8f() { var res: vec2 = clamp(vec2(), vec2(), vec2());return true; } - @stage(vertex) + @vertex fn vertex_main() -> @builtin(position) vec4 { clamp_0acf8f(); var foo_1: i32 = 3; return vec4(); } - @stage(fragment) + @fragment fn fragment_main() { clamp_0acf8f(); } - @stage(compute) @workgroup_size(1) + @compute @workgroup_size(1) fn compute_main() { var foo: f32 = 0.0; var foo_2: i32 = 10; @@ -394,17 +394,17 @@ TEST(TestInsertReturn, TestFunctionPositions) { R"(fn clamp_0acf8f() { var res: vec2 = clamp(vec2(), vec2(), vec2()); } - @stage(vertex) + @vertex fn vertex_main() -> @builtin(position) vec4 { clamp_0acf8f(); var foo_1: i32 = 3; return vec4(); } - @stage(fragment) + @fragment fn fragment_main() { clamp_0acf8f(); } - @stage(compute) @workgroup_size(1) + @compute @workgroup_size(1) fn compute_main() { var foo: f32 = 0.0; var foo_2: i32 = 10; @@ -419,7 +419,7 @@ TEST(TestInsertReturn, TestFunctionPositions) { var foo_3 : i32 = -20;)"; std::vector function_positions = GetFunctionBodyPositions(wgsl_code); - std::vector expected_positions = {187, 607}; + std::vector expected_positions = {180, 586}; ASSERT_EQ(expected_positions, function_positions); } @@ -428,17 +428,17 @@ TEST(TestInsertReturn, TestMissingSemicolon) { R"(fn clamp_0acf8f() { var res: vec2 = clamp(vec2(), vec2(), vec2()) } - @stage(vertex) + @vertex fn vertex_main() -> @builtin(position) vec4 { clamp_0acf8f() var foo_1: i32 = 3 return vec4() } - @stage(fragment) + @fragment fn fragment_main() { clamp_0acf8f(); } - @stage(compute) @workgroup_size(1) + @compute @workgroup_size(1) fn compute_main() { var foo: f32 = 0.0; var foo_2: i32 = 10; @@ -461,17 +461,17 @@ TEST(TestInsertReturn, TestMissingSemicolon) { R"(fn clamp_0acf8f() { var res: vec2 = clamp(vec2(), vec2(), vec2()) } - @stage(vertex) + @vertex fn vertex_main() -> @builtin(position) vec4 { clamp_0acf8f() var foo_1: i32 = 3 return vec4() } - @stage(fragment) + @fragment fn fragment_main() { clamp_0acf8f(); } - @stage(compute) @workgroup_size(1) + @compute @workgroup_size(1) fn compute_main() { var foo: f32 = 0.0; var foo_2: i32 = 10; diff --git a/src/tint/inspector/inspector_test.cc b/src/tint/inspector/inspector_test.cc index 033f5b82b1..986e1692aa 100644 --- a/src/tint/inspector/inspector_test.cc +++ b/src/tint/inspector/inspector_test.cc @@ -2485,7 +2485,7 @@ TEST_F(InspectorGetExternalTextureResourceBindingsTest, Simple) { TEST_F(InspectorGetSamplerTextureUsesTest, None) { std::string shader = R"( -@stage(fragment) +@fragment fn main() { })"; @@ -2501,7 +2501,7 @@ TEST_F(InspectorGetSamplerTextureUsesTest, Simple) { @group(0) @binding(1) var mySampler: sampler; @group(0) @binding(2) var myTexture: texture_2d; -@stage(fragment) +@fragment fn main(@location(0) fragUV: vec2, @location(1) fragPosition: vec4) -> @location(0) vec4 { return textureSample(myTexture, mySampler, fragUV) * fragPosition; @@ -2524,7 +2524,7 @@ TEST_F(InspectorGetSamplerTextureUsesTest, UnknownEntryPoint) { @group(0) @binding(1) var mySampler: sampler; @group(0) @binding(2) var myTexture: texture_2d; -@stage(fragment) +@fragment fn main(@location(0) fragUV: vec2, @location(1) fragPosition: vec4) -> @location(0) vec4 { return textureSample(myTexture, mySampler, fragUV) * fragPosition; @@ -2540,7 +2540,7 @@ TEST_F(InspectorGetSamplerTextureUsesTest, MultipleCalls) { @group(0) @binding(1) var mySampler: sampler; @group(0) @binding(2) var myTexture: texture_2d; -@stage(fragment) +@fragment fn main(@location(0) fragUV: vec2, @location(1) fragPosition: vec4) -> @location(0) vec4 { return textureSample(myTexture, mySampler, fragUV) * fragPosition; @@ -2565,7 +2565,7 @@ fn doSample(t: texture_2d, s: sampler, uv: vec2) -> vec4 { return textureSample(t, s, uv); } -@stage(fragment) +@fragment fn main(@location(0) fragUV: vec2, @location(1) fragPosition: vec4) -> @location(0) vec4 { return doSample(myTexture, mySampler, fragUV) * fragPosition; @@ -2592,7 +2592,7 @@ fn doSample(s: sampler, uv: vec2) -> vec4 { return textureSample(myTexture, s, uv); } -@stage(fragment) +@fragment fn main(@location(0) fragUV: vec2, @location(1) fragPosition: vec4) -> @location(0) vec4 { return doSample(mySampler, fragUV) * fragPosition; @@ -2619,7 +2619,7 @@ fn doSample(t: texture_2d, uv: vec2) -> vec4 { return textureSample(t, mySampler, uv); } -@stage(fragment) +@fragment fn main(@location(0) fragUV: vec2, @location(1) fragPosition: vec4) -> @location(0) vec4 { return doSample(myTexture, fragUV) * fragPosition; @@ -2646,7 +2646,7 @@ fn doSample(uv: vec2) -> vec4 { return textureSample(myTexture, mySampler, uv); } -@stage(fragment) +@fragment fn main(@location(0) fragUV: vec2, @location(1) fragPosition: vec4) -> @location(0) vec4 { return doSample(fragUV) * fragPosition; @@ -2686,19 +2686,19 @@ fn Z(t: texture_2d, s: sampler, uv: vec2) -> vec4 { return X(t, s, uv) + Y(t, s, uv); } -@stage(fragment) +@fragment fn via_call(@location(0) fragUV: vec2, @location(1) fragPosition: vec4) -> @location(0) vec4 { return Z(myTexture, mySampler, fragUV) * fragPosition; } -@stage(fragment) +@fragment fn via_ptr(@location(0) fragUV: vec2, @location(1) fragPosition: vec4) -> @location(0) vec4 { return textureSample(myTexture, mySampler, fragUV) + fragPosition; } -@stage(fragment) +@fragment fn direct(@location(0) fragUV: vec2, @location(1) fragPosition: vec4) -> @location(0) vec4 { return textureSample(myTexture, mySampler, fragUV) + fragPosition; @@ -2836,7 +2836,7 @@ TEST_F(InspectorGetUsedExtensionNamesTest, Empty) { // Test calling GetUsedExtensionNames on a shader with no extension. TEST_F(InspectorGetUsedExtensionNamesTest, None) { std::string shader = R"( -@stage(fragment) +@fragment fn main() { })"; @@ -2851,7 +2851,7 @@ TEST_F(InspectorGetUsedExtensionNamesTest, Simple) { std::string shader = R"( enable f16; -@stage(fragment) +@fragment fn main() { })"; @@ -2869,7 +2869,7 @@ TEST_F(InspectorGetUsedExtensionNamesTest, Duplicated) { enable f16; enable f16; -@stage(fragment) +@fragment fn main() { })"; @@ -2893,7 +2893,7 @@ TEST_F(InspectorGetEnableDirectivesTest, Empty) { // Test calling GetEnableDirectives on a shader with no extension. TEST_F(InspectorGetEnableDirectivesTest, None) { std::string shader = R"( -@stage(fragment) +@fragment fn main() { })"; @@ -2908,7 +2908,7 @@ TEST_F(InspectorGetEnableDirectivesTest, Simple) { std::string shader = R"( enable f16; -@stage(fragment) +@fragment fn main() { })"; @@ -2927,7 +2927,7 @@ TEST_F(InspectorGetEnableDirectivesTest, Duplicated) { enable f16; enable f16; -@stage(fragment) +@fragment fn main() { })"; @@ -2952,7 +2952,7 @@ fn doSample(t: texture_2d, s: sampler, uv: vec2) -> vec4 { return textureSample(t, s, uv); } -@stage(fragment) +@fragment fn main(@location(0) fragUV: vec2, @location(1) fragPosition: vec4) -> @location(0) vec4 { return doSample(myTexture, mySampler, fragUV) * fragPosition; diff --git a/src/tint/reader/spirv/function_call_test.cc b/src/tint/reader/spirv/function_call_test.cc index aa1789b883..584ad16c2d 100644 --- a/src/tint/reader/spirv/function_call_test.cc +++ b/src/tint/reader/spirv/function_call_test.cc @@ -59,7 +59,7 @@ fn x_100_1() { return; } -@stage(fragment) +@fragment fn x_100() { x_100_1(); } @@ -185,7 +185,7 @@ fn x_100_1() { return; } -@stage(fragment) +@fragment fn x_100() { x_100_1(); } diff --git a/src/tint/reader/spirv/function_memory_test.cc b/src/tint/reader/spirv/function_memory_test.cc index ed39e2121b..2bb98e390f 100644 --- a/src/tint/reader/spirv/function_memory_test.cc +++ b/src/tint/reader/spirv/function_memory_test.cc @@ -810,7 +810,7 @@ fn main_1() { return; } -@stage(fragment) +@fragment fn main() { main_1(); } @@ -850,7 +850,7 @@ OpExecutionMode %main OriginUpperLeft return; } -@stage(fragment) +@fragment fn main() { main_1(); } diff --git a/src/tint/reader/spirv/parser_impl_function_decl_test.cc b/src/tint/reader/spirv/parser_impl_function_decl_test.cc index fe6b1e0fe2..459460d6f0 100644 --- a/src/tint/reader/spirv/parser_impl_function_decl_test.cc +++ b/src/tint/reader/spirv/parser_impl_function_decl_test.cc @@ -126,7 +126,7 @@ struct main_out { )")) << program_ast; EXPECT_THAT(program_ast, HasSubstr(R"( -@stage(vertex) +@vertex fn main() -> main_out { )")); } @@ -144,7 +144,7 @@ TEST_F(SpvParserTest, EmitFunctions_Function_EntryPoint_Fragment) { Program program = p->program(); const auto program_ast = test::ToString(program); EXPECT_THAT(program_ast, HasSubstr(R"( -@stage(fragment) +@fragment fn main() { )")); } @@ -162,7 +162,7 @@ TEST_F(SpvParserTest, EmitFunctions_Function_EntryPoint_GLCompute) { Program program = p->program(); const auto program_ast = test::ToString(program); EXPECT_THAT(program_ast, HasSubstr(R"( -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main() { )")); } @@ -182,11 +182,11 @@ OpExecutionMode %main OriginUpperLeft Program program = p->program(); const auto program_ast = test::ToString(program); EXPECT_THAT(program_ast, HasSubstr(R"( -@stage(fragment) +@fragment fn first_shader() { )")); EXPECT_THAT(program_ast, HasSubstr(R"( -@stage(fragment) +@fragment fn second_shader() { )")); } @@ -208,7 +208,7 @@ OpFunctionEnd)"; Program program = p->program(); const auto program_ast = test::ToString(program); EXPECT_THAT(program_ast, HasSubstr(R"( -@stage(compute) @workgroup_size(2i, 4i, 8i) +@compute @workgroup_size(2i, 4i, 8i) fn comp_main() { )")) << program_ast; } @@ -233,7 +233,7 @@ OpFunctionEnd)"; Program program = p->program(); const auto program_ast = test::ToString(program); EXPECT_THAT(program_ast, HasSubstr(R"( -@stage(compute) @workgroup_size(3i, 5i, 7i) +@compute @workgroup_size(3i, 5i, 7i) fn comp_main() { )")) << program_ast; } @@ -262,7 +262,7 @@ OpFunctionEnd)"; Program program = p->program(); const auto program_ast = test::ToString(program); EXPECT_THAT(program_ast, HasSubstr(R"( -@stage(compute) @workgroup_size(3i, 5i, 7i) +@compute @workgroup_size(3i, 5i, 7i) fn comp_main() { )")) << program_ast; } @@ -290,7 +290,7 @@ OpFunctionEnd)"; Program program = p->program(); const auto program_ast = test::ToString(program); EXPECT_THAT(program_ast, HasSubstr(R"( -@stage(compute) @workgroup_size(3i, 5i, 7i) +@compute @workgroup_size(3i, 5i, 7i) fn comp_main() { )")) << program_ast; } @@ -323,7 +323,7 @@ OpFunctionEnd)"; Program program = p->program(); const auto program_ast = test::ToString(program); EXPECT_THAT(program_ast, HasSubstr(R"( -@stage(compute) @workgroup_size(3i, 5i, 7i) +@compute @workgroup_size(3i, 5i, 7i) fn comp_main() { )")) << program_ast; } @@ -409,7 +409,7 @@ fn x_100_1() { return; } -@stage(fragment) +@fragment fn x_100() { x_100_1(); } diff --git a/src/tint/reader/spirv/parser_impl_module_var_test.cc b/src/tint/reader/spirv/parser_impl_module_var_test.cc index 622d383a44..e4ac8cbb57 100644 --- a/src/tint/reader/spirv/parser_impl_module_var_test.cc +++ b/src/tint/reader/spirv/parser_impl_module_var_test.cc @@ -460,7 +460,7 @@ struct main_out { gl_Position : vec4, } -@stage(vertex) +@vertex fn main() -> main_out { main_1(); return main_out(gl_Position); @@ -519,7 +519,7 @@ struct main_out { gl_Position : vec4, } -@stage(vertex) +@vertex fn main() -> main_out { main_1(); return main_out(gl_Position); @@ -575,7 +575,7 @@ struct main_out { gl_Position : vec4, } -@stage(vertex) +@vertex fn main() -> main_out { main_1(); return main_out(gl_Position); @@ -634,7 +634,7 @@ struct main_out { x_2_1 : vec4, } -@stage(vertex) +@vertex fn main() -> main_out { main_1(); return main_out(x_2); @@ -690,7 +690,7 @@ struct main_out { x_2_1 : vec4, } -@stage(vertex) +@vertex fn main() -> main_out { main_1(); return main_out(x_2); @@ -746,7 +746,7 @@ struct main_out { x_2_1 : vec4, } -@stage(vertex) +@vertex fn main() -> main_out { main_1(); return main_out(x_2); @@ -782,7 +782,7 @@ struct main_out { x_2_1 : vec4, } -@stage(vertex) +@vertex fn main() -> main_out { main_1(); return main_out(x_2); @@ -1650,7 +1650,7 @@ fn main_1() { return; } -@stage(fragment) +@fragment fn main(@builtin(sample_index) x_1_param : u32) { x_1 = bitcast(x_1_param); main_1(); @@ -1763,7 +1763,7 @@ fn main_1() { return; } -@stage(fragment) +@fragment fn main(@builtin(sample_index) x_1_param : u32) { x_1 = bitcast(x_1_param); main_1(); @@ -1816,7 +1816,7 @@ fn main_1() { return; } -@stage(fragment) +@fragment fn main(@builtin(sample_index) x_1_param : u32) { x_1 = x_1_param; main_1(); @@ -1846,7 +1846,7 @@ fn main_1() { return; } -@stage(fragment) +@fragment fn main(@builtin(sample_index) x_1_param : u32) { x_1 = x_1_param; main_1(); @@ -1875,7 +1875,7 @@ fn main_1() { return; } -@stage(fragment) +@fragment fn main(@builtin(sample_index) x_1_param : u32) { x_1 = x_1_param; main_1(); @@ -1989,7 +1989,7 @@ fn main_1() { return; } -@stage(fragment) +@fragment fn main(@builtin(sample_mask) x_1_param : u32) { x_1[0i] = x_1_param; main_1(); @@ -2021,7 +2021,7 @@ fn main_1() { return; } -@stage(fragment) +@fragment fn main(@builtin(sample_mask) x_1_param : u32) { x_1[0i] = x_1_param; main_1(); @@ -2053,7 +2053,7 @@ fn main_1() { return; } -@stage(fragment) +@fragment fn main(@builtin(sample_mask) x_1_param : u32) { x_1[0i] = x_1_param; main_1(); @@ -2084,7 +2084,7 @@ fn main_1() { return; } -@stage(fragment) +@fragment fn main(@builtin(sample_mask) x_1_param : u32) { x_1[0i] = bitcast(x_1_param); main_1(); @@ -2116,7 +2116,7 @@ fn main_1() { return; } -@stage(fragment) +@fragment fn main(@builtin(sample_mask) x_1_param : u32) { x_1[0i] = bitcast(x_1_param); main_1(); @@ -2148,7 +2148,7 @@ fn main_1() { return; } -@stage(fragment) +@fragment fn main(@builtin(sample_mask) x_1_param : u32) { x_1[0i] = bitcast(x_1_param); main_1(); @@ -2202,7 +2202,7 @@ struct main_out { x_1_1 : u32, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_1[0i]); @@ -2239,7 +2239,7 @@ struct main_out { x_1_1 : u32, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_1[0i]); @@ -2276,7 +2276,7 @@ struct main_out { x_1_1 : u32, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_1[0i]); @@ -2312,7 +2312,7 @@ struct main_out { x_1_1 : u32, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(bitcast(x_1[0i])); @@ -2349,7 +2349,7 @@ struct main_out { x_1_1 : u32, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(bitcast(x_1[0i])); @@ -2386,7 +2386,7 @@ struct main_out { x_1_1 : u32, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(bitcast(x_1[0i])); @@ -2425,7 +2425,7 @@ fn main_1() { return; } -@stage(fragment) +@fragment fn main(@builtin(sample_mask) x_1_param : u32) { x_1[0i] = x_1_param; main_1(); @@ -2469,7 +2469,7 @@ struct main_out { x_1_1 : u32, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_1[0i]); @@ -2527,7 +2527,7 @@ struct main_out { x_4_1 : vec4, } -@stage(vertex) +@vertex fn main(@builtin(vertex_index) x_1_param : u32) -> main_out { x_1 = bitcast(x_1_param); main_1(); @@ -2565,7 +2565,7 @@ struct main_out { x_4_1 : vec4, } -@stage(vertex) +@vertex fn main(@builtin(vertex_index) x_1_param : u32) -> main_out { x_1 = bitcast(x_1_param); main_1(); @@ -2602,7 +2602,7 @@ struct main_out { x_4_1 : vec4, } -@stage(vertex) +@vertex fn main(@builtin(vertex_index) x_1_param : u32) -> main_out { x_1 = bitcast(x_1_param); main_1(); @@ -2638,7 +2638,7 @@ struct main_out { x_4_1 : vec4, } -@stage(vertex) +@vertex fn main(@builtin(vertex_index) x_1_param : u32) -> main_out { x_1 = x_1_param; main_1(); @@ -2676,7 +2676,7 @@ struct main_out { x_4_1 : vec4, } -@stage(vertex) +@vertex fn main(@builtin(vertex_index) x_1_param : u32) -> main_out { x_1 = x_1_param; main_1(); @@ -2713,7 +2713,7 @@ struct main_out { x_4_1 : vec4, } -@stage(vertex) +@vertex fn main(@builtin(vertex_index) x_1_param : u32) -> main_out { x_1 = x_1_param; main_1(); @@ -2797,7 +2797,7 @@ struct main_out { position_1 : vec4, } -@stage(vertex) +@vertex fn main(@builtin(instance_index) x_1_param : u32) -> main_out { x_1 = bitcast(x_1_param); main_1(); @@ -2835,7 +2835,7 @@ struct main_out { position_1 : vec4, } -@stage(vertex) +@vertex fn main(@builtin(instance_index) x_1_param : u32) -> main_out { x_1 = bitcast(x_1_param); main_1(); @@ -2872,7 +2872,7 @@ struct main_out { position_1 : vec4, } -@stage(vertex) +@vertex fn main(@builtin(instance_index) x_1_param : u32) -> main_out { x_1 = bitcast(x_1_param); main_1(); @@ -2931,7 +2931,7 @@ struct main_out { position_1 : vec4, } -@stage(vertex) +@vertex fn main(@builtin(instance_index) x_1_param : u32) -> main_out { x_1 = x_1_param; main_1(); @@ -2969,7 +2969,7 @@ struct main_out { position_1 : vec4, } -@stage(vertex) +@vertex fn main(@builtin(instance_index) x_1_param : u32) -> main_out { x_1 = x_1_param; main_1(); @@ -3006,7 +3006,7 @@ struct main_out { position_1 : vec4, } -@stage(vertex) +@vertex fn main(@builtin(instance_index) x_1_param : u32) -> main_out { x_1 = x_1_param; main_1(); @@ -3149,7 +3149,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main(@builtin(${wgsl_builtin}) x_1_param : ${unsigned_wgsl_type}) { x_1 = ${assignment_value}; main_1(); @@ -3195,7 +3195,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main(@builtin(${wgsl_builtin}) x_1_param : ${unsigned_wgsl_type}) { x_1 = ${assignment_value}; main_1(); @@ -3240,7 +3240,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main(@builtin(${wgsl_builtin}) x_1_param : ${unsigned_wgsl_type}) { x_1 = ${assignment_value}; main_1(); @@ -3552,7 +3552,7 @@ struct main_out { x_4_1 : u32, } -@stage(fragment) +@fragment fn main(@location(0) @interpolate(flat) x_1_param : u32, @location(30) @interpolate(flat) x_3_param : u32) -> main_out { x_1 = x_1_param; x_3 = x_3_param; @@ -3603,7 +3603,7 @@ struct main_out { x_4_1 : vec4, } -@stage(vertex) +@vertex fn main(@builtin(instance_index) x_1_param : u32) -> main_out { x_1 = x_1_param; main_1(); @@ -3652,7 +3652,7 @@ struct main_out { x_4_1 : vec4, } -@stage(vertex) +@vertex fn main(@builtin(instance_index) x_1_param : u32) -> main_out { x_1 = bitcast(x_1_param); main_1(); @@ -3692,7 +3692,7 @@ fn main_1() { return; } -@stage(fragment) +@fragment fn main(@builtin(sample_mask) x_1_param : u32) { x_1[0i] = x_1_param; main_1(); @@ -3730,7 +3730,7 @@ fn main_1() { return; } -@stage(fragment) +@fragment fn main(@builtin(sample_mask) x_1_param : u32) { x_1[0i] = bitcast(x_1_param); main_1(); @@ -3776,7 +3776,7 @@ struct main_out { x_1_1 : u32, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_1[0i]); @@ -3822,7 +3822,7 @@ struct main_out { x_1_1 : u32, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(bitcast(x_1[0i])); @@ -3865,7 +3865,7 @@ struct main_out { x_1_1 : f32, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_1); @@ -3899,7 +3899,7 @@ struct main_out { gl_Position : vec4, } -@stage(vertex) +@vertex fn main() -> main_out { main_1(); return main_out(gl_Position); @@ -3968,7 +3968,7 @@ struct main_out { gl_Position : vec4, } -@stage(vertex) +@vertex fn main() -> main_out { main_1(); return main_out(gl_Position); @@ -4025,7 +4025,7 @@ struct main_out { x_2_1 : vec4, } -@stage(vertex) +@vertex fn main(@location(4) x_1_param : f32, @location(5) x_1_param_1 : f32, @location(6) x_1_param_2 : f32) -> main_out { x_1[0i] = x_1_param; x_1[1i] = x_1_param_1; @@ -4083,7 +4083,7 @@ struct main_out { x_2_1 : vec4, } -@stage(vertex) +@vertex fn main(@location(9) x_1_param : vec4, @location(10) x_1_param_1 : vec4) -> main_out { x_1[0i] = x_1_param; x_1[1i] = x_1_param_1; @@ -4150,7 +4150,7 @@ struct main_out { x_2_1 : vec4, } -@stage(vertex) +@vertex fn main(@location(9) x_1_param : f32, @location(10) x_1_param_1 : vec4) -> main_out { x_1.alice = x_1_param; x_1.bob = x_1_param_1; @@ -4209,7 +4209,7 @@ struct main_out { x_2_1 : vec4, } -@stage(vertex) +@vertex fn main(@location(7) x_1_param : vec4, @location(8) x_1_param_1 : vec4, @location(9) x_1_param_2 : vec4, @location(10) x_1_param_3 : vec4) -> main_out { x_1[0i][0i] = x_1_param; x_1[0i][1i] = x_1_param_1; @@ -4276,7 +4276,7 @@ struct main_out { x_2_1 : vec4, } -@stage(vertex) +@vertex fn main() -> main_out { main_1(); return main_out(x_1[0i], x_1[1i], x_1[2i], x_2); @@ -4335,7 +4335,7 @@ struct main_out { x_2_1 : vec4, } -@stage(vertex) +@vertex fn main() -> main_out { main_1(); return main_out(x_1[0i], x_1[1i], x_2); @@ -4404,7 +4404,7 @@ struct main_out { x_2_1 : vec4, } -@stage(vertex) +@vertex fn main() -> main_out { main_1(); return main_out(x_1.alice, x_1.bob, x_2); @@ -4479,7 +4479,7 @@ struct main_out { x_3_2 : vec4, } -@stage(vertex) +@vertex fn main(@location(9) x_1_param : f32, @location(11) x_1_param_1 : vec4) -> main_out { x_1.alice = x_1_param; x_1.bob = x_1_param_1; @@ -4558,7 +4558,7 @@ struct main_out { x_10_1 : vec4, } -@stage(vertex) +@vertex fn main(@location(1) @interpolate(flat) x_1_param : u32, @location(2) @interpolate(flat) x_2_param : vec2, @location(3) @interpolate(flat) x_3_param : i32, @location(4) @interpolate(flat) x_4_param : vec2, @location(5) @interpolate(flat) x_5_param : f32, @location(6) @interpolate(flat) x_6_param : vec2) -> main_out { x_1 = x_1_param; x_2 = x_2_param; @@ -4653,7 +4653,7 @@ struct main_out { x_10_1 : vec4, } -@stage(vertex) +@vertex fn main() -> main_out { main_1(); return main_out(x_1, x_2, x_3, x_4, x_5, x_6, x_10); @@ -4703,7 +4703,7 @@ fn main_1() { return; } -@stage(fragment) +@fragment fn main(@location(1) @interpolate(flat) x_1_param : f32, @location(2) @interpolate(flat) x_1_param_1 : f32, @location(5) @interpolate(flat) x_2_param : f32, @location(6) @interpolate(flat) x_2_param_1 : f32) { x_1[0i] = x_1_param; x_1[1i] = x_1_param_1; @@ -4777,7 +4777,7 @@ fn main_1() { return; } -@stage(fragment) +@fragment fn main(@location(1) x_1_param : f32, @location(2) @interpolate(perspective, centroid) x_2_param : f32, @location(3) @interpolate(perspective, sample) x_3_param : f32, @location(4) @interpolate(linear) x_4_param : f32, @location(5) @interpolate(linear, centroid) x_5_param : f32, @location(6) @interpolate(linear, sample) x_6_param : f32) { x_1 = x_1_param; x_2 = x_2_param; @@ -4844,7 +4844,7 @@ fn main_1() { return; } -@stage(fragment) +@fragment fn main(@location(1) x_1_param : f32, @location(2) @interpolate(perspective, centroid) x_1_param_1 : f32, @location(3) @interpolate(perspective, sample) x_1_param_2 : f32, @location(4) @interpolate(linear) x_1_param_3 : f32, @location(5) @interpolate(linear, centroid) x_1_param_4 : f32, @location(6) @interpolate(linear, sample) x_1_param_5 : f32) { x_1.field0 = x_1_param; x_1.field1 = x_1_param_1; @@ -4935,7 +4935,7 @@ struct main_out { x_6_1 : f32, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_1, x_2, x_3, x_4, x_5, x_6); @@ -5014,7 +5014,7 @@ struct main_out { x_1_6 : f32, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_1.field0, x_1.field1, x_1.field2, x_1.field3, x_1.field4, x_1.field5); @@ -5100,7 +5100,7 @@ struct main_out { x_10_1 : vec4, } -@stage(vertex) +@vertex fn main() -> main_out { main_1(); return main_out(x_1, x_2, x_3, x_4, x_5, x_6, x_10); @@ -5163,7 +5163,7 @@ fn main_1() { return; } -@stage(fragment) +@fragment fn main(@location(1) @interpolate(flat) x_1_param : u32, @location(2) @interpolate(flat) x_2_param : vec2, @location(3) @interpolate(flat) x_3_param : i32, @location(4) @interpolate(flat) x_4_param : vec2, @location(5) x_5_param : f32, @location(6) x_6_param : vec2) { x_1 = x_1_param; x_2 = x_2_param; diff --git a/src/tint/reader/wgsl/parser_impl_error_msg_test.cc b/src/tint/reader/wgsl/parser_impl_error_msg_test.cc index 1234ae4dd7..ab97d94128 100644 --- a/src/tint/reader/wgsl/parser_impl_error_msg_test.cc +++ b/src/tint/reader/wgsl/parser_impl_error_msg_test.cc @@ -306,6 +306,7 @@ fn f() { for (var i : i32 = 0; i < 8; i=i+1) { )"); } +// TODO(crbug.com/tint/1503): Remove this when @stage is removed TEST_F(ParserImplErrorTest, FunctionDeclStageMissingLParen) { EXPECT("@stage vertex) fn f() {}", R"(test.wgsl:1:8 error: expected '(' for stage attribute @@ -566,10 +567,10 @@ let i : vec2 = vec2(1, 2; } TEST_F(ParserImplErrorTest, GlobalDeclInvalidAttribute) { - EXPECT("@stage(vertex) x;", - R"(test.wgsl:1:16 error: expected declaration after attributes -@stage(vertex) x; - ^ + EXPECT("@vertex x;", + R"(test.wgsl:1:9 error: expected declaration after attributes +@vertex x; + ^ )"); } diff --git a/src/tint/reader/wgsl/parser_impl_function_attribute_list_test.cc b/src/tint/reader/wgsl/parser_impl_function_attribute_list_test.cc index 83ebeac1c6..0773ffd362 100644 --- a/src/tint/reader/wgsl/parser_impl_function_attribute_list_test.cc +++ b/src/tint/reader/wgsl/parser_impl_function_attribute_list_test.cc @@ -18,6 +18,7 @@ namespace tint::reader::wgsl { namespace { +// TODO(crbug.com/tint/1503): Remove this when @stage is removed TEST_F(ParserImplTest, AttributeList_Parses_Stage) { auto p = parser("@workgroup_size(2) @stage(compute)"); auto attrs = p->attribute_list(); diff --git a/src/tint/reader/wgsl/parser_impl_function_attribute_test.cc b/src/tint/reader/wgsl/parser_impl_function_attribute_test.cc index 15be222a70..44f3d78372 100644 --- a/src/tint/reader/wgsl/parser_impl_function_attribute_test.cc +++ b/src/tint/reader/wgsl/parser_impl_function_attribute_test.cc @@ -212,6 +212,7 @@ TEST_F(ParserImplTest, Attribute_Workgroup_Missing_Z_Value) { EXPECT_EQ(p->error(), "1:22: expected workgroup_size z parameter"); } +// TODO(crbug.com/tint/1503): Remove when @stage is removed TEST_F(ParserImplTest, Attribute_Stage) { auto p = parser("stage(compute)"); auto attr = p->attribute(); diff --git a/src/tint/reader/wgsl/parser_impl_function_decl_test.cc b/src/tint/reader/wgsl/parser_impl_function_decl_test.cc index 181501a98a..4d7857b040 100644 --- a/src/tint/reader/wgsl/parser_impl_function_decl_test.cc +++ b/src/tint/reader/wgsl/parser_impl_function_decl_test.cc @@ -137,7 +137,7 @@ TEST_F(ParserImplTest, FunctionDecl_AttributeList) { TEST_F(ParserImplTest, FunctionDecl_AttributeList_MultipleEntries) { auto p = parser(R"( -@workgroup_size(2, 3, 4) @stage(compute) +@workgroup_size(2, 3, 4) @compute fn main() { return; })"); auto attrs = p->attribute_list(); EXPECT_FALSE(p->has_error()) << p->error(); @@ -186,7 +186,7 @@ fn main() { return; })"); TEST_F(ParserImplTest, FunctionDecl_AttributeList_MultipleLists) { auto p = parser(R"( @workgroup_size(2, 3, 4) -@stage(compute) +@compute fn main() { return; })"); auto attributes = p->attribute_list(); EXPECT_FALSE(p->has_error()) << p->error(); diff --git a/src/tint/reader/wgsl/parser_impl_test.cc b/src/tint/reader/wgsl/parser_impl_test.cc index 66291c5104..99ca25da01 100644 --- a/src/tint/reader/wgsl/parser_impl_test.cc +++ b/src/tint/reader/wgsl/parser_impl_test.cc @@ -24,7 +24,7 @@ TEST_F(ParserImplTest, Empty) { TEST_F(ParserImplTest, Parses) { auto p = parser(R"( -@stage(fragment) +@fragment fn main() -> @location(0) vec4 { return vec4(.4, .2, .3, 1); } @@ -112,7 +112,7 @@ TEST_F(ParserImplTest, Comments_TerminatedBlockComment) { * /* I can nest /**/ comments. */ * // I can nest line comments too. **/ -@stage(fragment) // This is the stage +@fragment // This is the stage fn main(/* no parameters @@ -126,7 +126,7 @@ parameters TEST_F(ParserImplTest, Comments_UnterminatedBlockComment) { auto p = parser(R"( -@stage(fragment) +@fragment fn main() -> @location(0) vec4 { return vec4(.4, .2, .3, 1); } /* unterminated block comments are invalid ...)"); diff --git a/src/tint/reader/wgsl/parser_test.cc b/src/tint/reader/wgsl/parser_test.cc index d343c7cceb..1f0e206c74 100644 --- a/src/tint/reader/wgsl/parser_test.cc +++ b/src/tint/reader/wgsl/parser_test.cc @@ -32,7 +32,7 @@ TEST_F(ParserTest, Empty) { TEST_F(ParserTest, Parses) { Source::File file("test.wgsl", R"( -@stage(fragment) +@fragment fn main() -> @location(0) vec4 { return vec4(.4, .2, .3, 1.); } diff --git a/src/tint/resolver/builtin_validation_test.cc b/src/tint/resolver/builtin_validation_test.cc index 770d8d0b4d..ab40296c68 100644 --- a/src/tint/resolver/builtin_validation_test.cc +++ b/src/tint/resolver/builtin_validation_test.cc @@ -34,7 +34,7 @@ TEST_F(ResolverBuiltinValidationTest, FunctionTypeMustMatchReturnStatementType_v } TEST_F(ResolverBuiltinValidationTest, InvalidPipelineStageDirect) { - // @stage(compute) @workgroup_size(1) fn func { return dpdx(1.0); } + // @compute @workgroup_size(1) fn func { return dpdx(1.0); } auto* dpdx = create(Source{{3, 4}}, Expr("dpdx"), ast::ExpressionList{Expr(1_f)}); @@ -49,7 +49,7 @@ TEST_F(ResolverBuiltinValidationTest, InvalidPipelineStageIndirect) { // fn f0 { return dpdx(1.0); } // fn f1 { f0(); } // fn f2 { f1(); } - // @stage(compute) @workgroup_size(1) fn main { return f2(); } + // @compute @workgroup_size(1) fn main { return f2(); } auto* dpdx = create(Source{{3, 4}}, Expr("dpdx"), ast::ExpressionList{Expr(1_f)}); diff --git a/src/tint/resolver/builtins_validation_test.cc b/src/tint/resolver/builtins_validation_test.cc index 9744e9b3d7..0c5948595e 100644 --- a/src/tint/resolver/builtins_validation_test.cc +++ b/src/tint/resolver/builtins_validation_test.cc @@ -126,7 +126,7 @@ INSTANTIATE_TEST_SUITE_P(ResolverBuiltinsValidationTest, testing::ValuesIn(cases)); TEST_F(ResolverBuiltinsValidationTest, FragDepthIsInput_Fail) { - // @stage(fragment) + // @fragment // fn fs_main( // @builtin(frag_depth) fd: f32, // ) -> @location(0) f32 { return 1.0; } @@ -144,7 +144,7 @@ TEST_F(ResolverBuiltinsValidationTest, FragDepthIsInputStruct_Fail) { // struct MyInputs { // @builtin(frag_depth) ff: f32; // }; - // @stage(fragment) + // @fragment // fn fragShader(arg: MyInputs) -> @location(0) f32 { return 1.0; } auto* s = Structure( @@ -165,7 +165,7 @@ TEST_F(ResolverBuiltinsValidationTest, StructBuiltinInsideEntryPoint_Ignored) { // struct S { // @builtin(vertex_index) idx: u32; // }; - // @stage(fragment) + // @fragment // fn fragShader() { var s : S; } Structure("S", {Member("idx", ty.u32(), {Builtin(ast::Builtin::kVertexIndex)})}); @@ -181,7 +181,7 @@ TEST_F(ResolverBuiltinsValidationTest, PositionNotF32_Struct_Fail) { // struct MyInputs { // @builtin(kPosition) p: vec4; // }; - // @stage(fragment) + // @fragment // fn fragShader(is_front: MyInputs) -> @location(0) f32 { return 1.0; } auto* m = Member("position", ty.vec4(), @@ -195,7 +195,7 @@ TEST_F(ResolverBuiltinsValidationTest, PositionNotF32_Struct_Fail) { } TEST_F(ResolverBuiltinsValidationTest, PositionNotF32_ReturnType_Fail) { - // @stage(vertex) + // @vertex // fn main() -> @builtin(position) f32 { return 1.0; } Func("main", {}, ty.f32(), {Return(1_f)}, {Stage(ast::PipelineStage::kVertex)}, {Builtin(Source{{12, 34}}, ast::Builtin::kPosition)}); @@ -208,7 +208,7 @@ TEST_F(ResolverBuiltinsValidationTest, FragDepthNotF32_Struct_Fail) { // struct MyInputs { // @builtin(kFragDepth) p: i32; // }; - // @stage(fragment) + // @fragment // fn fragShader(is_front: MyInputs) -> @location(0) f32 { return 1.0; } auto* m = Member("frag_depth", ty.i32(), @@ -225,7 +225,7 @@ TEST_F(ResolverBuiltinsValidationTest, SampleMaskNotU32_Struct_Fail) { // struct MyInputs { // @builtin(sample_mask) m: f32; // }; - // @stage(fragment) + // @fragment // fn fragShader(is_front: MyInputs) -> @location(0) f32 { return 1.0; } auto* s = Structure( @@ -240,7 +240,7 @@ TEST_F(ResolverBuiltinsValidationTest, SampleMaskNotU32_Struct_Fail) { } TEST_F(ResolverBuiltinsValidationTest, SampleMaskNotU32_ReturnType_Fail) { - // @stage(fragment) + // @fragment // fn main() -> @builtin(sample_mask) i32 { return 1; } Func("main", {}, ty.i32(), {Return(1_i)}, {Stage(ast::PipelineStage::kFragment)}, {Builtin(Source{{12, 34}}, ast::Builtin::kSampleMask)}); @@ -250,7 +250,7 @@ TEST_F(ResolverBuiltinsValidationTest, SampleMaskNotU32_ReturnType_Fail) { } TEST_F(ResolverBuiltinsValidationTest, SampleMaskIsNotU32_Fail) { - // @stage(fragment) + // @fragment // fn fs_main( // @builtin(sample_mask) arg: bool // ) -> @location(0) f32 { return 1.0; } @@ -266,7 +266,7 @@ TEST_F(ResolverBuiltinsValidationTest, SampleIndexIsNotU32_Struct_Fail) { // struct MyInputs { // @builtin(sample_index) m: f32; // }; - // @stage(fragment) + // @fragment // fn fragShader(is_front: MyInputs) -> @location(0) f32 { return 1.0; } auto* s = Structure( @@ -281,7 +281,7 @@ TEST_F(ResolverBuiltinsValidationTest, SampleIndexIsNotU32_Struct_Fail) { } TEST_F(ResolverBuiltinsValidationTest, SampleIndexIsNotU32_Fail) { - // @stage(fragment) + // @fragment // fn fs_main( // @builtin(sample_index) arg: bool // ) -> @location(0) f32 { return 1.0; } @@ -294,7 +294,7 @@ TEST_F(ResolverBuiltinsValidationTest, SampleIndexIsNotU32_Fail) { } TEST_F(ResolverBuiltinsValidationTest, PositionIsNotF32_Fail) { - // @stage(fragment) + // @fragment // fn fs_main( // @builtin(kPosition) p: vec3, // ) -> @location(0) f32 { return 1.0; } @@ -307,7 +307,7 @@ TEST_F(ResolverBuiltinsValidationTest, PositionIsNotF32_Fail) { } TEST_F(ResolverBuiltinsValidationTest, FragDepthIsNotF32_Fail) { - // @stage(fragment) + // @fragment // fn fs_main() -> @builtin(kFragDepth) f32 { var fd: i32; return fd; } auto* fd = Var("fd", ty.i32()); Func("fs_main", {}, ty.i32(), {Decl(fd), Return(fd)}, @@ -318,7 +318,7 @@ TEST_F(ResolverBuiltinsValidationTest, FragDepthIsNotF32_Fail) { } TEST_F(ResolverBuiltinsValidationTest, VertexIndexIsNotU32_Fail) { - // @stage(vertex) + // @vertex // fn main( // @builtin(kVertexIndex) vi : f32, // @builtin(kPosition) p :vec4 @@ -334,7 +334,7 @@ TEST_F(ResolverBuiltinsValidationTest, VertexIndexIsNotU32_Fail) { } TEST_F(ResolverBuiltinsValidationTest, InstanceIndexIsNotU32) { - // @stage(vertex) + // @vertex // fn main( // @builtin(kInstanceIndex) ii : f32, // @builtin(kPosition) p :vec4 @@ -350,7 +350,7 @@ TEST_F(ResolverBuiltinsValidationTest, InstanceIndexIsNotU32) { } TEST_F(ResolverBuiltinsValidationTest, FragmentBuiltin_Pass) { - // @stage(fragment) + // @fragment // fn fs_main( // @builtin(kPosition) p: vec4, // @builtin(front_facing) ff: bool, @@ -369,7 +369,7 @@ TEST_F(ResolverBuiltinsValidationTest, FragmentBuiltin_Pass) { } TEST_F(ResolverBuiltinsValidationTest, VertexBuiltin_Pass) { - // @stage(vertex) + // @vertex // fn main( // @builtin(vertex_index) vi : u32, // @builtin(instance_index) ii : u32, @@ -392,7 +392,7 @@ TEST_F(ResolverBuiltinsValidationTest, VertexBuiltin_Pass) { } TEST_F(ResolverBuiltinsValidationTest, ComputeBuiltin_Pass) { - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn main( // @builtin(local_invocationId) li_id: vec3, // @builtin(local_invocationIndex) li_index: u32, @@ -493,7 +493,7 @@ TEST_F(ResolverBuiltinsValidationTest, FragmentBuiltinStruct_Pass) { // @builtin(sample_index) si: u32; // @builtin(sample_mask) sm : u32;; // }; - // @stage(fragment) + // @fragment // fn fragShader(arg: MyInputs) -> @location(0) f32 { return 1.0; } auto* s = Structure( @@ -509,7 +509,7 @@ TEST_F(ResolverBuiltinsValidationTest, FragmentBuiltinStruct_Pass) { } TEST_F(ResolverBuiltinsValidationTest, FrontFacingParamIsNotBool_Fail) { - // @stage(fragment) + // @fragment // fn fs_main( // @builtin(front_facing) is_front: i32; // ) -> @location(0) f32 { return 1.0; } @@ -528,7 +528,7 @@ TEST_F(ResolverBuiltinsValidationTest, FrontFacingMemberIsNotBool_Fail) { // struct MyInputs { // @builtin(front_facing) pos: f32; // }; - // @stage(fragment) + // @fragment // fn fragShader(is_front: MyInputs) -> @location(0) f32 { return 1.0; } auto* s = Structure( diff --git a/src/tint/resolver/call_validation_test.cc b/src/tint/resolver/call_validation_test.cc index 84d2a5115b..4aa63509cf 100644 --- a/src/tint/resolver/call_validation_test.cc +++ b/src/tint/resolver/call_validation_test.cc @@ -163,7 +163,7 @@ TEST_F(ResolverCallValidationTest, PointerArgument_FunctionParamWithMain) { // fn bar(p: ptr) { // foo(p); // } - // @stage(fragment) + // @fragment // fn main() { // var v: i32; // bar(&v); @@ -185,7 +185,7 @@ TEST_F(ResolverCallValidationTest, PointerArgument_FunctionParamWithMain) { TEST_F(ResolverCallValidationTest, LetPointer) { // fn x(p : ptr) -> i32 {} - // @stage(fragment) + // @fragment // fn main() { // var v: i32; // let p: ptr = &v; @@ -214,7 +214,7 @@ TEST_F(ResolverCallValidationTest, LetPointerPrivate) { // let p: ptr = &v; // fn foo(p : ptr) -> i32 {} // var v: i32; - // @stage(fragment) + // @fragment // fn main() { // var c: i32 = foo(p); // } diff --git a/src/tint/resolver/entry_point_validation_test.cc b/src/tint/resolver/entry_point_validation_test.cc index 3028d9b205..5e5df15e3f 100644 --- a/src/tint/resolver/entry_point_validation_test.cc +++ b/src/tint/resolver/entry_point_validation_test.cc @@ -47,7 +47,7 @@ using alias = builder::alias; class ResolverEntryPointValidationTest : public TestHelper, public testing::Test {}; TEST_F(ResolverEntryPointValidationTest, ReturnTypeAttribute_Location) { - // @stage(fragment) + // @fragment // fn main() -> @location(0) f32 { return 1.0; } Func(Source{{12, 34}}, "main", {}, ty.f32(), {Return(1_f)}, {Stage(ast::PipelineStage::kFragment)}, {Location(0)}); @@ -56,7 +56,7 @@ TEST_F(ResolverEntryPointValidationTest, ReturnTypeAttribute_Location) { } TEST_F(ResolverEntryPointValidationTest, ReturnTypeAttribute_Builtin) { - // @stage(vertex) + // @vertex // fn main() -> @builtin(position) vec4 { return vec4(); } Func(Source{{12, 34}}, "main", {}, ty.vec4(), {Return(Construct(ty.vec4()))}, {Stage(ast::PipelineStage::kVertex)}, {Builtin(ast::Builtin::kPosition)}); @@ -65,7 +65,7 @@ TEST_F(ResolverEntryPointValidationTest, ReturnTypeAttribute_Builtin) { } TEST_F(ResolverEntryPointValidationTest, ReturnTypeAttribute_Missing) { - // @stage(vertex) + // @vertex // fn main() -> f32 { // return 1.0; // } @@ -77,7 +77,7 @@ TEST_F(ResolverEntryPointValidationTest, ReturnTypeAttribute_Missing) { } TEST_F(ResolverEntryPointValidationTest, ReturnTypeAttribute_Multiple) { - // @stage(vertex) + // @vertex // fn main() -> @location(0) @builtin(position) vec4 { // return vec4(); // } @@ -95,7 +95,7 @@ TEST_F(ResolverEntryPointValidationTest, ReturnType_Struct_Valid) { // @location(0) a : f32; // @builtin(frag_depth) b : f32; // }; - // @stage(fragment) + // @fragment // fn main() -> Output { // return Output(); // } @@ -112,7 +112,7 @@ TEST_F(ResolverEntryPointValidationTest, ReturnType_Struct_MemberMultipleAttribu // struct Output { // @location(0) @builtin(frag_depth) a : f32; // }; - // @stage(fragment) + // @fragment // fn main() -> Output { // return Output(); // } @@ -134,7 +134,7 @@ TEST_F(ResolverEntryPointValidationTest, ReturnType_Struct_MemberMissingAttribut // @location(0) a : f32; // b : f32; // }; - // @stage(fragment) + // @fragment // fn main() -> Output { // return Output(); // } @@ -154,7 +154,7 @@ TEST_F(ResolverEntryPointValidationTest, ReturnType_Struct_DuplicateBuiltins) { // @builtin(frag_depth) a : f32; // @builtin(frag_depth) b : f32; // }; - // @stage(fragment) + // @fragment // fn main() -> Output { // return Output(); // } @@ -172,7 +172,7 @@ TEST_F(ResolverEntryPointValidationTest, ReturnType_Struct_DuplicateBuiltins) { } TEST_F(ResolverEntryPointValidationTest, ParameterAttribute_Location) { - // @stage(fragment) + // @fragment // fn main(@location(0) param : f32) {} auto* param = Param("param", ty.f32(), {Location(0)}); Func(Source{{12, 34}}, "main", {param}, ty.void_(), {}, {Stage(ast::PipelineStage::kFragment)}); @@ -181,7 +181,7 @@ TEST_F(ResolverEntryPointValidationTest, ParameterAttribute_Location) { } TEST_F(ResolverEntryPointValidationTest, ParameterAttribute_Missing) { - // @stage(fragment) + // @fragment // fn main(param : f32) {} auto* param = Param(Source{{13, 43}}, "param", ty.vec4()); Func(Source{{12, 34}}, "main", {param}, ty.void_(), {}, {Stage(ast::PipelineStage::kFragment)}); @@ -191,7 +191,7 @@ TEST_F(ResolverEntryPointValidationTest, ParameterAttribute_Missing) { } TEST_F(ResolverEntryPointValidationTest, ParameterAttribute_Multiple) { - // @stage(fragment) + // @fragment // fn main(@location(0) @builtin(sample_index) param : u32) {} auto* param = Param( "param", ty.u32(), @@ -208,7 +208,7 @@ TEST_F(ResolverEntryPointValidationTest, Parameter_Struct_Valid) { // @location(0) a : f32; // @builtin(sample_index) b : u32; // }; - // @stage(fragment) + // @fragment // fn main(param : Input) {} auto* input = Structure("Input", {Member("a", ty.f32(), {Location(0)}), @@ -223,7 +223,7 @@ TEST_F(ResolverEntryPointValidationTest, Parameter_Struct_MemberMultipleAttribut // struct Input { // @location(0) @builtin(sample_index) a : u32; // }; - // @stage(fragment) + // @fragment // fn main(param : Input) {} auto* input = Structure("Input", {Member("a", ty.u32(), @@ -243,7 +243,7 @@ TEST_F(ResolverEntryPointValidationTest, Parameter_Struct_MemberMissingAttribute // @location(0) a : f32; // b : f32; // }; - // @stage(fragment) + // @fragment // fn main(param : Input) {} auto* input = Structure("Input", {Member(Source{{13, 43}}, "a", ty.f32(), {Location(0)}), Member(Source{{14, 52}}, "b", ty.f32(), {})}); @@ -256,7 +256,7 @@ TEST_F(ResolverEntryPointValidationTest, Parameter_Struct_MemberMissingAttribute } TEST_F(ResolverEntryPointValidationTest, Parameter_DuplicateBuiltins) { - // @stage(fragment) + // @fragment // fn main(@builtin(sample_index) param_a : u32, // @builtin(sample_index) param_b : u32) {} auto* param_a = Param("param_a", ty.u32(), {Builtin(ast::Builtin::kSampleIndex)}); @@ -277,7 +277,7 @@ TEST_F(ResolverEntryPointValidationTest, Parameter_Struct_DuplicateBuiltins) { // struct InputB { // @builtin(sample_index) a : u32; // }; - // @stage(fragment) + // @fragment // fn main(param_a : InputA, param_b : InputB) {} auto* input_a = Structure("InputA", {Member("a", ty.u32(), {Builtin(ast::Builtin::kSampleIndex)})}); @@ -296,7 +296,7 @@ TEST_F(ResolverEntryPointValidationTest, Parameter_Struct_DuplicateBuiltins) { } TEST_F(ResolverEntryPointValidationTest, VertexShaderMustReturnPosition) { - // @stage(vertex) + // @vertex // fn main() {} Func(Source{{12, 34}}, "main", {}, ty.void_(), {}, {Stage(ast::PipelineStage::kVertex)}); @@ -337,7 +337,7 @@ static constexpr Params cases[] = { }; TEST_P(TypeValidationTest, BareInputs) { - // @stage(fragment) + // @fragment // fn main(@location(0) @interpolate(flat) a : *) {} auto params = GetParam(); auto* a = Param("a", params.create_ast_type(*this), {Location(0), Flat()}); @@ -354,7 +354,7 @@ TEST_P(TypeValidationTest, StructInputs) { // struct Input { // @location(0) @interpolate(flat) a : *; // }; - // @stage(fragment) + // @fragment // fn main(a : Input) {} auto params = GetParam(); auto* input = @@ -370,7 +370,7 @@ TEST_P(TypeValidationTest, StructInputs) { } TEST_P(TypeValidationTest, BareOutputs) { - // @stage(fragment) + // @fragment // fn main() -> @location(0) * { // return *(); // } @@ -390,7 +390,7 @@ TEST_P(TypeValidationTest, StructOutputs) { // struct Output { // @location(0) a : *; // }; - // @stage(fragment) + // @fragment // fn main() -> Output { // return Output(); // } @@ -416,7 +416,7 @@ namespace { using LocationAttributeTests = ResolverTest; TEST_F(LocationAttributeTests, Pass) { - // @stage(fragment) + // @fragment // fn frag_main(@location(0) @interpolate(flat) a: i32) {} auto* p = Param(Source{{12, 34}}, "a", ty.i32(), {Location(0), Flat()}); @@ -426,7 +426,7 @@ TEST_F(LocationAttributeTests, Pass) { } TEST_F(LocationAttributeTests, BadType_Input_bool) { - // @stage(fragment) + // @fragment // fn frag_main(@location(0) a: bool) {} auto* p = Param(Source{{12, 34}}, "a", ty.bool_(), {Location(Source{{34, 56}}, 0)}); @@ -441,7 +441,7 @@ TEST_F(LocationAttributeTests, BadType_Input_bool) { } TEST_F(LocationAttributeTests, BadType_Output_Array) { - // @stage(fragment) + // @fragment // fn frag_main()->@location(0) array { return array(); } Func(Source{{12, 34}}, "frag_main", {}, ty.array(), @@ -460,7 +460,7 @@ TEST_F(LocationAttributeTests, BadType_Input_Struct) { // struct Input { // a : f32; // }; - // @stage(fragment) + // @fragment // fn main(@location(0) param : Input) {} auto* input = Structure("Input", {Member("a", ty.f32())}); auto* param = Param(Source{{12, 34}}, "param", ty.Of(input), {Location(Source{{13, 43}}, 0)}); @@ -481,7 +481,7 @@ TEST_F(LocationAttributeTests, BadType_Input_Struct_NestedStruct) { // struct Input { // a : Inner; // }; - // @stage(fragment) + // @fragment // fn main(param : Input) {} auto* inner = Structure("Inner", {Member(Source{{13, 43}}, "a", ty.f32(), {Location(0)})}); auto* input = Structure("Input", {Member(Source{{14, 52}}, "a", ty.Of(inner))}); @@ -498,7 +498,7 @@ TEST_F(LocationAttributeTests, BadType_Input_Struct_RuntimeArray) { // struct Input { // @location(0) a : array; // }; - // @stage(fragment) + // @fragment // fn main(param : Input) {} auto* input = Structure("Input", {Member(Source{{13, 43}}, "a", ty.array(), {Location(0)})}); @@ -515,7 +515,7 @@ TEST_F(LocationAttributeTests, BadType_Input_Struct_RuntimeArray) { TEST_F(LocationAttributeTests, BadMemberType_Input) { // struct S { @location(0) m: array; }; - // @stage(fragment) + // @fragment // fn frag_main( a: S) {} auto* m = Member(Source{{34, 56}}, "m", ty.array(), @@ -535,7 +535,7 @@ TEST_F(LocationAttributeTests, BadMemberType_Input) { TEST_F(LocationAttributeTests, BadMemberType_Output) { // struct S { @location(0) m: atomic; }; - // @stage(fragment) + // @fragment // fn frag_main() -> S {} auto* m = Member(Source{{34, 56}}, "m", ty.atomic(), ast::AttributeList{Location(Source{{12, 34}}, 0u)}); @@ -572,7 +572,7 @@ TEST_F(LocationAttributeTests, ReturnType_Struct_Valid) { // @location(0) a : f32; // @builtin(frag_depth) b : f32; // }; - // @stage(fragment) + // @fragment // fn main() -> Output { // return Output(); // } @@ -589,7 +589,7 @@ TEST_F(LocationAttributeTests, ReturnType_Struct) { // struct Output { // a : f32; // }; - // @stage(vertex) + // @vertex // fn main() -> @location(0) Output { // return Output(); // } @@ -612,7 +612,7 @@ TEST_F(LocationAttributeTests, ReturnType_Struct_NestedStruct) { // struct Output { // a : Inner; // }; - // @stage(fragment) + // @fragment // fn main() -> Output { return Output(); } auto* inner = Structure("Inner", {Member(Source{{13, 43}}, "a", ty.f32(), {Location(0)})}); auto* output = Structure("Output", {Member(Source{{14, 52}}, "a", ty.Of(inner))}); @@ -629,7 +629,7 @@ TEST_F(LocationAttributeTests, ReturnType_Struct_RuntimeArray) { // struct Output { // @location(0) a : array; // }; - // @stage(fragment) + // @fragment // fn main() -> Output { // return Output(); // } @@ -695,7 +695,7 @@ TEST_F(LocationAttributeTests, ComputeShaderLocationStructMember_Input) { } TEST_F(LocationAttributeTests, Duplicate_input) { - // @stage(fragment) + // @fragment // fn main(@location(1) param_a : f32, // @location(1) param_b : f32) {} auto* param_a = Param("param_a", ty.f32(), {Location(1)}); @@ -714,7 +714,7 @@ TEST_F(LocationAttributeTests, Duplicate_struct) { // struct InputB { // @location(1) a : f32; // }; - // @stage(fragment) + // @fragment // fn main(param_a : InputA, param_b : InputB) {} auto* input_a = Structure("InputA", {Member("a", ty.f32(), {Location(1)})}); auto* input_b = Structure("InputB", {Member("a", ty.f32(), {Location(Source{{34, 56}}, 1)})}); diff --git a/src/tint/resolver/function_validation_test.cc b/src/tint/resolver/function_validation_test.cc index 3be06a9ae7..cf8ddabb27 100644 --- a/src/tint/resolver/function_validation_test.cc +++ b/src/tint/resolver/function_validation_test.cc @@ -342,7 +342,7 @@ TEST_F(ResolverFunctionValidationTest, FunctionTypeMustMatchReturnStatementTypeF } TEST_F(ResolverFunctionValidationTest, CannotCallEntryPoint) { - // @stage(compute) @workgroup_size(1) fn entrypoint() {} + // @compute @workgroup_size(1) fn entrypoint() {} // fn func() { return entrypoint(); } Func("entrypoint", {}, ty.void_(), {}, {Stage(ast::PipelineStage::kCompute), WorkgroupSize(1_i)}); @@ -359,8 +359,8 @@ TEST_F(ResolverFunctionValidationTest, CannotCallEntryPoint) { } TEST_F(ResolverFunctionValidationTest, PipelineStage_MustBeUnique_Fail) { - // @stage(fragment) - // @stage(vertex) + // @fragment + // @vertex // fn main() { return; } Func(Source{{12, 34}}, "main", {}, ty.void_(), { @@ -425,7 +425,7 @@ TEST_F(ResolverFunctionValidationTest, FunctionParamsConst) { TEST_F(ResolverFunctionValidationTest, WorkgroupSize_GoodType_ConstU32) { // let x = 4u; // let x = 8u; - // @stage(compute) @workgroup_size(x, y, 16u) + // @compute @workgroup_size(x, y, 16u) // fn main() {} auto* x = GlobalConst("x", ty.u32(), Expr(4_u)); auto* y = GlobalConst("y", ty.u32(), Expr(8_u)); @@ -447,7 +447,7 @@ TEST_F(ResolverFunctionValidationTest, WorkgroupSize_GoodType_ConstU32) { } TEST_F(ResolverFunctionValidationTest, WorkgroupSize_GoodType_I32) { - // @stage(compute) @workgroup_size(1i, 2i, 3i) + // @compute @workgroup_size(1i, 2i, 3i) // fn main() {} Func("main", {}, ty.void_(), {}, @@ -457,7 +457,7 @@ TEST_F(ResolverFunctionValidationTest, WorkgroupSize_GoodType_I32) { } TEST_F(ResolverFunctionValidationTest, WorkgroupSize_GoodType_U32) { - // @stage(compute) @workgroup_size(1u, 2u, 3u) + // @compute @workgroup_size(1u, 2u, 3u) // fn main() {} Func("main", {}, ty.void_(), {}, @@ -467,7 +467,7 @@ TEST_F(ResolverFunctionValidationTest, WorkgroupSize_GoodType_U32) { } TEST_F(ResolverFunctionValidationTest, WorkgroupSize_GoodType_I32_AInt) { - // @stage(compute) @workgroup_size(1, 2i, 3) + // @compute @workgroup_size(1, 2i, 3) // fn main() {} Func("main", {}, ty.void_(), {}, @@ -477,7 +477,7 @@ TEST_F(ResolverFunctionValidationTest, WorkgroupSize_GoodType_I32_AInt) { } TEST_F(ResolverFunctionValidationTest, WorkgroupSize_GoodType_U32_AInt) { - // @stage(compute) @workgroup_size(1u, 2, 3u) + // @compute @workgroup_size(1u, 2, 3u) // fn main() {} Func("main", {}, ty.void_(), {}, @@ -487,7 +487,7 @@ TEST_F(ResolverFunctionValidationTest, WorkgroupSize_GoodType_U32_AInt) { } TEST_F(ResolverFunctionValidationTest, WorkgroupSize_MismatchType_U32) { - // @stage(compute) @workgroup_size(1u, 2, 3_i) + // @compute @workgroup_size(1u, 2, 3_i) // fn main() {} Func("main", {}, ty.void_(), {}, @@ -499,7 +499,7 @@ TEST_F(ResolverFunctionValidationTest, WorkgroupSize_MismatchType_U32) { } TEST_F(ResolverFunctionValidationTest, WorkgroupSize_MismatchType_I32) { - // @stage(compute) @workgroup_size(1_i, 2u, 3) + // @compute @workgroup_size(1_i, 2u, 3) // fn main() {} Func("main", {}, ty.void_(), {}, @@ -512,7 +512,7 @@ TEST_F(ResolverFunctionValidationTest, WorkgroupSize_MismatchType_I32) { TEST_F(ResolverFunctionValidationTest, WorkgroupSize_Const_TypeMismatch) { // let x = 64u; - // @stage(compute) @workgroup_size(1i, x) + // @compute @workgroup_size(1i, x) // fn main() {} GlobalConst("x", ty.u32(), Expr(64_u)); Func("main", {}, ty.void_(), {}, @@ -526,7 +526,7 @@ TEST_F(ResolverFunctionValidationTest, WorkgroupSize_Const_TypeMismatch) { TEST_F(ResolverFunctionValidationTest, WorkgroupSize_Const_TypeMismatch2) { // let x = 64u; // let y = 32i; - // @stage(compute) @workgroup_size(x, y) + // @compute @workgroup_size(x, y) // fn main() {} GlobalConst("x", ty.u32(), Expr(64_u)); GlobalConst("y", ty.i32(), Expr(32_i)); @@ -540,7 +540,7 @@ TEST_F(ResolverFunctionValidationTest, WorkgroupSize_Const_TypeMismatch2) { TEST_F(ResolverFunctionValidationTest, WorkgroupSize_Mismatch_ConstU32) { // let x = 4u; // let x = 8u; - // @stage(compute) @workgroup_size(x, y, 16i) + // @compute @workgroup_size(x, y, 16i) // fn main() {} GlobalConst("x", ty.u32(), Expr(4_u)); GlobalConst("y", ty.u32(), Expr(8_u)); @@ -553,7 +553,7 @@ TEST_F(ResolverFunctionValidationTest, WorkgroupSize_Mismatch_ConstU32) { } TEST_F(ResolverFunctionValidationTest, WorkgroupSize_Literal_BadType) { - // @stage(compute) @workgroup_size(64.0) + // @compute @workgroup_size(64.0) // fn main() {} Func("main", {}, ty.void_(), {}, @@ -566,7 +566,7 @@ TEST_F(ResolverFunctionValidationTest, WorkgroupSize_Literal_BadType) { } TEST_F(ResolverFunctionValidationTest, WorkgroupSize_Literal_Negative) { - // @stage(compute) @workgroup_size(-2i) + // @compute @workgroup_size(-2i) // fn main() {} Func("main", {}, ty.void_(), {}, @@ -577,7 +577,7 @@ TEST_F(ResolverFunctionValidationTest, WorkgroupSize_Literal_Negative) { } TEST_F(ResolverFunctionValidationTest, WorkgroupSize_Literal_Zero) { - // @stage(compute) @workgroup_size(0i) + // @compute @workgroup_size(0i) // fn main() {} Func("main", {}, ty.void_(), {}, @@ -589,7 +589,7 @@ TEST_F(ResolverFunctionValidationTest, WorkgroupSize_Literal_Zero) { TEST_F(ResolverFunctionValidationTest, WorkgroupSize_Const_BadType) { // let x = 64.0; - // @stage(compute) @workgroup_size(x) + // @compute @workgroup_size(x) // fn main() {} GlobalConst("x", ty.f32(), Expr(64_f)); Func("main", {}, ty.void_(), {}, @@ -603,7 +603,7 @@ TEST_F(ResolverFunctionValidationTest, WorkgroupSize_Const_BadType) { TEST_F(ResolverFunctionValidationTest, WorkgroupSize_Const_Negative) { // let x = -2i; - // @stage(compute) @workgroup_size(x) + // @compute @workgroup_size(x) // fn main() {} GlobalConst("x", ty.i32(), Expr(-2_i)); Func("main", {}, ty.void_(), {}, @@ -615,7 +615,7 @@ TEST_F(ResolverFunctionValidationTest, WorkgroupSize_Const_Negative) { TEST_F(ResolverFunctionValidationTest, WorkgroupSize_Const_Zero) { // let x = 0i; - // @stage(compute) @workgroup_size(x) + // @compute @workgroup_size(x) // fn main() {} GlobalConst("x", ty.i32(), Expr(0_i)); Func("main", {}, ty.void_(), {}, @@ -627,7 +627,7 @@ TEST_F(ResolverFunctionValidationTest, WorkgroupSize_Const_Zero) { TEST_F(ResolverFunctionValidationTest, WorkgroupSize_Const_NestedZeroValueConstructor) { // let x = i32(i32(i32())); - // @stage(compute) @workgroup_size(x) + // @compute @workgroup_size(x) // fn main() {} GlobalConst("x", ty.i32(), Construct(ty.i32(), Construct(ty.i32(), Construct(ty.i32())))); Func("main", {}, ty.void_(), {}, @@ -639,7 +639,7 @@ TEST_F(ResolverFunctionValidationTest, WorkgroupSize_Const_NestedZeroValueConstr TEST_F(ResolverFunctionValidationTest, WorkgroupSize_NonConst) { // var x = 64i; - // @stage(compute) @workgroup_size(x) + // @compute @workgroup_size(x) // fn main() {} Global("x", ty.i32(), ast::StorageClass::kPrivate, Expr(64_i)); Func("main", {}, ty.void_(), {}, @@ -652,7 +652,7 @@ TEST_F(ResolverFunctionValidationTest, WorkgroupSize_NonConst) { } TEST_F(ResolverFunctionValidationTest, WorkgroupSize_InvalidExpr) { - // @stage(compute) @workgroup_size(i32(1)) + // @compute @workgroup_size(i32(1)) // fn main() {} Func("main", {}, ty.void_(), {}, {Stage(ast::PipelineStage::kCompute), diff --git a/src/tint/resolver/materialize_test.cc b/src/tint/resolver/materialize_test.cc index d62ece92d0..22d5606321 100644 --- a/src/tint/resolver/materialize_test.cc +++ b/src/tint/resolver/materialize_test.cc @@ -143,7 +143,7 @@ enum class Method { kSwitchCaseWithAbstractCase, // @workgroup_size(target_expr, abstract_expr, 123) - // @stage(compute) + // @compute // fn f() {} kWorkgroupSize }; @@ -608,7 +608,7 @@ enum class Method { kSwitch, // @workgroup_size(abstract_expr) - // @stage(compute) + // @compute // fn f() {} kWorkgroupSize, diff --git a/src/tint/resolver/resolver_test.cc b/src/tint/resolver/resolver_test.cc index 07c661cab6..16725ba88a 100644 --- a/src/tint/resolver/resolver_test.cc +++ b/src/tint/resolver/resolver_test.cc @@ -912,7 +912,7 @@ TEST_F(ResolverTest, Function_CallSites) { } TEST_F(ResolverTest, Function_WorkgroupSize_NotSet) { - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn main() {} auto* func = Func("main", ast::VariableList{}, ty.void_(), {}, {}); @@ -930,7 +930,7 @@ TEST_F(ResolverTest, Function_WorkgroupSize_NotSet) { } TEST_F(ResolverTest, Function_WorkgroupSize_Literals) { - // @stage(compute) @workgroup_size(8, 2, 3) + // @compute @workgroup_size(8, 2, 3) // fn main() {} auto* func = Func("main", ast::VariableList{}, ty.void_(), {}, {Stage(ast::PipelineStage::kCompute), WorkgroupSize(8_i, 2_i, 3_i)}); @@ -952,7 +952,7 @@ TEST_F(ResolverTest, Function_WorkgroupSize_Consts) { // let width = 16i; // let height = 8i; // let depth = 2i; - // @stage(compute) @workgroup_size(width, height, depth) + // @compute @workgroup_size(width, height, depth) // fn main() {} GlobalConst("width", ty.i32(), Expr(16_i)); GlobalConst("height", ty.i32(), Expr(8_i)); @@ -977,7 +977,7 @@ TEST_F(ResolverTest, Function_WorkgroupSize_Consts) { TEST_F(ResolverTest, Function_WorkgroupSize_Consts_NestedInitializer) { // let width = i32(i32(i32(8i))); // let height = i32(i32(i32(4i))); - // @stage(compute) @workgroup_size(width, height) + // @compute @workgroup_size(width, height) // fn main() {} GlobalConst("width", ty.i32(), Construct(ty.i32(), Construct(ty.i32(), Construct(ty.i32(), 8_i)))); @@ -1003,7 +1003,7 @@ TEST_F(ResolverTest, Function_WorkgroupSize_OverridableConsts) { // @id(0) override width = 16i; // @id(1) override height = 8i; // @id(2) override depth = 2i; - // @stage(compute) @workgroup_size(width, height, depth) + // @compute @workgroup_size(width, height, depth) // fn main() {} auto* width = Override("width", ty.i32(), Expr(16_i), {Id(0)}); auto* height = Override("height", ty.i32(), Expr(8_i), {Id(1)}); @@ -1029,7 +1029,7 @@ TEST_F(ResolverTest, Function_WorkgroupSize_OverridableConsts_NoInit) { // @id(0) override width : i32; // @id(1) override height : i32; // @id(2) override depth : i32; - // @stage(compute) @workgroup_size(width, height, depth) + // @compute @workgroup_size(width, height, depth) // fn main() {} auto* width = Override("width", ty.i32(), nullptr, {Id(0)}); auto* height = Override("height", ty.i32(), nullptr, {Id(1)}); @@ -1054,7 +1054,7 @@ TEST_F(ResolverTest, Function_WorkgroupSize_OverridableConsts_NoInit) { TEST_F(ResolverTest, Function_WorkgroupSize_Mixed) { // @id(1) override height = 2i; // let depth = 3i; - // @stage(compute) @workgroup_size(8, height, depth) + // @compute @workgroup_size(8, height, depth) // fn main() {} auto* height = Override("height", ty.i32(), Expr(2_i), {Id(0)}); GlobalConst("depth", ty.i32(), Expr(3_i)); diff --git a/src/tint/resolver/type_validation_test.cc b/src/tint/resolver/type_validation_test.cc index ff1b57bf43..a5e68cef34 100644 --- a/src/tint/resolver/type_validation_test.cc +++ b/src/tint/resolver/type_validation_test.cc @@ -369,7 +369,7 @@ TEST_F(ResolverTypeValidationTest, ArraySize_InvalidExpr) { } TEST_F(ResolverTypeValidationTest, RuntimeArrayInFunction_Fail) { - /// @stage(vertex) + /// @vertex // fn func() { var a : array; } auto* var = Var(Source{{12, 34}}, "a", ty.array(), ast::StorageClass::kNone); @@ -552,7 +552,7 @@ TEST_F(ResolverTypeValidationTest, RuntimeArrayAsLocalVariable) { TEST_F(ResolverTypeValidationTest, RuntimeArrayAsParameter_Fail) { // fn func(a : array) {} - // @stage(vertex) fn main() {} + // @vertex fn main() {} auto* param = Param(Source{{12, 34}}, "a", ty.array()); diff --git a/src/tint/resolver/uniformity_test.cc b/src/tint/resolver/uniformity_test.cc index 4a71045339..396baf8ab3 100644 --- a/src/tint/resolver/uniformity_test.cc +++ b/src/tint/resolver/uniformity_test.cc @@ -683,7 +683,7 @@ class ComputeBuiltin : public UniformityAnalysisTestBase, public ::testing::TestWithParam {}; TEST_P(ComputeBuiltin, AsParam) { std::string src = R"( -@stage(compute) @workgroup_size(64) +@compute @workgroup_size(64) fn main(@builtin()" + GetParam().name + R"() b : )" + GetParam().type + R"() { if (all(vec3(b) == vec3(0u))) { @@ -719,7 +719,7 @@ struct S { R"() b : )" + GetParam().type + R"( } -@stage(compute) @workgroup_size(64) +@compute @workgroup_size(64) fn main(s : S) { if (all(vec3(s.b) == vec3(0u))) { workgroupBarrier(); @@ -767,7 +767,7 @@ struct S { @builtin(local_invocation_index) idx : u32, } -@stage(compute) @workgroup_size(64) +@compute @workgroup_size(64) fn main(s : S) { if (s.num_groups.x == 0u) { workgroupBarrier(); @@ -795,7 +795,7 @@ class FragmentBuiltin : public UniformityAnalysisTestBase, public ::testing::TestWithParam {}; TEST_P(FragmentBuiltin, AsParam) { std::string src = R"( -@stage(fragment) +@fragment fn main(@builtin()" + GetParam().name + R"() b : )" + GetParam().type + R"() { if (u32(vec4(b).x) == 0u) { @@ -830,7 +830,7 @@ struct S { R"() b : )" + GetParam().type + R"( } -@stage(fragment) +@fragment fn main(s : S) { if (u32(vec4(s.b).x) == 0u) { dpdx(0.5); @@ -869,7 +869,7 @@ INSTANTIATE_TEST_SUITE_P(UniformityAnalysisTest, TEST_F(UniformityAnalysisTest, FragmentLocation) { std::string src = R"( -@stage(fragment) +@fragment fn main(@location(0) l : f32) { if (l == 0.0) { dpdx(0.5); @@ -899,7 +899,7 @@ struct S { @location(0) l : f32 } -@stage(fragment) +@fragment fn main(s : S) { if (s.l == 0.0) { dpdx(0.5); @@ -5598,7 +5598,7 @@ fn foo() { } } -@stage(fragment) +@fragment fn main() { foo(); } diff --git a/src/tint/resolver/validation_test.cc b/src/tint/resolver/validation_test.cc index 9270065821..4fe5b2bfe3 100644 --- a/src/tint/resolver/validation_test.cc +++ b/src/tint/resolver/validation_test.cc @@ -80,7 +80,7 @@ TEST_F(ResolverValidationTest, WorkgroupMemoryUsedInFragmentStage) { // var dst : vec4; // fn f2(){ dst = wg; } // fn f1() { f2(); } - // @stage(fragment) + // @fragment // fn f0() { // f1(); //} diff --git a/src/tint/transform/add_empty_entry_point_test.cc b/src/tint/transform/add_empty_entry_point_test.cc index 2f8a7ad1f6..44f9005552 100644 --- a/src/tint/transform/add_empty_entry_point_test.cc +++ b/src/tint/transform/add_empty_entry_point_test.cc @@ -31,7 +31,7 @@ TEST_F(AddEmptyEntryPointTest, ShouldRunEmptyModule) { TEST_F(AddEmptyEntryPointTest, ShouldRunExistingEntryPoint) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn existing() {} )"; @@ -42,7 +42,7 @@ TEST_F(AddEmptyEntryPointTest, EmptyModule) { auto* src = R"()"; auto* expect = R"( -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn unused_entry_point() { } )"; @@ -54,7 +54,7 @@ fn unused_entry_point() { TEST_F(AddEmptyEntryPointTest, ExistingEntryPoint) { auto* src = R"( -@stage(fragment) +@fragment fn main() { } )"; @@ -70,7 +70,7 @@ TEST_F(AddEmptyEntryPointTest, NameClash) { auto* src = R"(var unused_entry_point : f32;)"; auto* expect = R"( -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn unused_entry_point_1() { } diff --git a/src/tint/transform/add_spirv_block_attribute_test.cc b/src/tint/transform/add_spirv_block_attribute_test.cc index 14ba9290ba..455be60df3 100644 --- a/src/tint/transform/add_spirv_block_attribute_test.cc +++ b/src/tint/transform/add_spirv_block_attribute_test.cc @@ -41,7 +41,7 @@ struct S { var p : S; -@stage(fragment) +@fragment fn main() { p.f = 1.0; } @@ -60,7 +60,7 @@ struct S { f : f32, } -@stage(fragment) +@fragment fn main() -> S { return S(); } @@ -77,7 +77,7 @@ TEST_F(AddSpirvBlockAttributeTest, BasicScalar) { @group(0) @binding(0) var u : f32; -@stage(fragment) +@fragment fn main() { let f = u; } @@ -90,7 +90,7 @@ struct u_block { @group(0) @binding(0) var u : u_block; -@stage(fragment) +@fragment fn main() { let f = u.inner; } @@ -106,7 +106,7 @@ TEST_F(AddSpirvBlockAttributeTest, BasicArray) { @group(0) @binding(0) var u : array, 4u>; -@stage(fragment) +@fragment fn main() { let a = u; } @@ -119,7 +119,7 @@ struct u_block { @group(0) @binding(0) var u : u_block; -@stage(fragment) +@fragment fn main() { let a = u.inner; } @@ -137,7 +137,7 @@ type Numbers = array, 4u>; @group(0) @binding(0) var u : Numbers; -@stage(fragment) +@fragment fn main() { let a = u; } @@ -152,7 +152,7 @@ struct u_block { @group(0) @binding(0) var u : u_block; -@stage(fragment) +@fragment fn main() { let a = u.inner; } @@ -172,7 +172,7 @@ struct S { @group(0) @binding(0) var u : S; -@stage(fragment) +@fragment fn main() { let f = u.f; } @@ -185,7 +185,7 @@ struct S { @group(0) @binding(0) var u : S; -@stage(fragment) +@fragment fn main() { let f = u.f; } @@ -209,7 +209,7 @@ struct Outer { @group(0) @binding(0) var u : Outer; -@stage(fragment) +@fragment fn main() { let f = u.i.f; } @@ -226,7 +226,7 @@ struct Outer { @group(0) @binding(0) var u : Outer; -@stage(fragment) +@fragment fn main() { let f = u.i.f; } @@ -253,7 +253,7 @@ var u0 : Outer; @group(0) @binding(1) var u1 : Inner; -@stage(fragment) +@fragment fn main() { let f0 = u0.i.f; let f1 = u1.f; @@ -278,7 +278,7 @@ struct u1_block { @group(0) @binding(1) var u1 : u1_block; -@stage(fragment) +@fragment fn main() { let f0 = u0.i.f; let f1 = u1.inner.f; @@ -305,7 +305,7 @@ var p : Outer; @group(0) @binding(1) var u : Inner; -@stage(fragment) +@fragment fn main() { let f0 = p.i.f; let f1 = u.f; @@ -329,7 +329,7 @@ struct u_block { @group(0) @binding(1) var u : u_block; -@stage(fragment) +@fragment fn main() { let f0 = p.i.f; let f1 = u.inner.f; @@ -360,7 +360,7 @@ var u1 : Inner; @group(0) @binding(2) var u2 : Inner; -@stage(fragment) +@fragment fn main() { let f0 = u0.i.f; let f1 = u1.f; @@ -388,7 +388,7 @@ struct u1_block { @group(0) @binding(2) var u2 : u1_block; -@stage(fragment) +@fragment fn main() { let f0 = u0.i.f; let f1 = u1.inner.f; @@ -410,7 +410,7 @@ struct S { @group(0) @binding(0) var u : S; -@stage(fragment) +@fragment fn main() { let f = u.f; let a = array(); @@ -428,7 +428,7 @@ struct u_block { @group(0) @binding(0) var u : u_block; -@stage(fragment) +@fragment fn main() { let f = u.inner.f; let a = array(); @@ -452,7 +452,7 @@ var u0 : S; @group(0) @binding(1) var u1 : S; -@stage(fragment) +@fragment fn main() { let f0 = u0.f; let f1 = u1.f; @@ -473,7 +473,7 @@ struct u0_block { @group(0) @binding(1) var u1 : u0_block; -@stage(fragment) +@fragment fn main() { let f0 = u0.inner.f; let f1 = u1.inner.f; @@ -506,7 +506,7 @@ var u0 : MyOuter; @group(0) @binding(1) var u1 : MyInner; -@stage(fragment) +@fragment fn main() { let f0 = u0.i.f; let f1 = u1.f; @@ -535,7 +535,7 @@ struct u1_block { @group(0) @binding(1) var u1 : u1_block; -@stage(fragment) +@fragment fn main() { let f0 = u0.i.f; let f1 = u1.inner.f; @@ -549,7 +549,7 @@ fn main() { TEST_F(AddSpirvBlockAttributeTest, Aliases_Nested_OuterBuffer_InnerBuffer_OutOfOrder) { auto* src = R"( -@stage(fragment) +@fragment fn main() { let f0 = u0.i.f; let f1 = u1.f; @@ -574,7 +574,7 @@ struct Inner { }; )"; auto* expect = R"( -@stage(fragment) +@fragment fn main() { let f0 = u0.i.f; let f1 = u1.inner.f; diff --git a/src/tint/transform/array_length_from_uniform_test.cc b/src/tint/transform/array_length_from_uniform_test.cc index ee0d4b1bc1..109904ce26 100644 --- a/src/tint/transform/array_length_from_uniform_test.cc +++ b/src/tint/transform/array_length_from_uniform_test.cc @@ -40,7 +40,7 @@ struct SB { @group(0) @binding(0) var sb : SB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { } )"; @@ -57,7 +57,7 @@ struct SB { @group(0) @binding(0) var sb : SB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var len : u32 = arrayLength(&sb.arr); } @@ -75,7 +75,7 @@ struct SB { @group(0) @binding(0) var sb : SB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var len : u32 = arrayLength(&sb.arr); } @@ -94,7 +94,7 @@ TEST_F(ArrayLengthFromUniformTest, Basic) { auto* src = R"( @group(0) @binding(0) var sb : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var len : u32 = arrayLength(&sb); } @@ -109,7 +109,7 @@ struct tint_symbol { @group(0) @binding(0) var sb : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var len : u32 = (tint_symbol_1.buffer_size[0u][0u] / 4u); } @@ -137,7 +137,7 @@ struct SB { @group(0) @binding(0) var sb : SB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var len : u32 = arrayLength(&sb.arr); } @@ -157,7 +157,7 @@ struct SB { @group(0) @binding(0) var sb : SB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var len : u32 = ((tint_symbol_1.buffer_size[0u][0u] - 4u) / 4u); } @@ -197,7 +197,7 @@ struct SB4 { @group(3) @binding(2) var sb4 : SB4; @group(4) @binding(2) var sb5 : array>; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var len1 : u32 = arrayLength(&(sb1.arr1)); var len2 : u32 = arrayLength(&(sb2.arr2)); @@ -240,7 +240,7 @@ struct SB4 { @group(4) @binding(2) var sb5 : array>; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var len1 : u32 = ((tint_symbol_1.buffer_size[0u][0u] - 4u) / 4u); var len2 : u32 = ((tint_symbol_1.buffer_size[0u][1u] - 16u) / 16u); @@ -289,7 +289,7 @@ struct SB4 { @group(3) @binding(2) var sb4 : SB4; @group(4) @binding(2) var sb5 : array>; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var len1 : u32 = arrayLength(&(sb1.arr1)); var len3 : u32 = arrayLength(&sb3); @@ -329,7 +329,7 @@ struct SB4 { @group(4) @binding(2) var sb5 : array>; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var len1 : u32 = ((tint_symbol_1.buffer_size[0u][0u] - 4u) / 4u); var len3 : u32 = (tint_symbol_1.buffer_size[0u][2u] / 16u); @@ -363,7 +363,7 @@ struct SB { @group(0) @binding(0) var sb : SB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = &(sb.arr); } @@ -397,7 +397,7 @@ struct SB2 { @group(1) @binding(2) var sb2 : SB2; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var len1 : u32 = arrayLength(&(sb1.arr1)); var len2 : u32 = arrayLength(&(sb2.arr2)); @@ -426,7 +426,7 @@ struct SB2 { @group(1) @binding(2) var sb2 : SB2; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var len1 : u32 = ((tint_symbol_1.buffer_size[0u][0u] - 4u) / 4u); var len2 : u32 = arrayLength(&(sb2.arr2)); @@ -449,7 +449,7 @@ fn main() { TEST_F(ArrayLengthFromUniformTest, OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var len : u32 = arrayLength(&sb.arr); } @@ -469,7 +469,7 @@ struct tint_symbol { @group(0) @binding(30) var tint_symbol_1 : tint_symbol; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var len : u32 = ((tint_symbol_1.buffer_size[0u][0u] - 4u) / 4u); } diff --git a/src/tint/transform/binding_remapper_test.cc b/src/tint/transform/binding_remapper_test.cc index 29a96c33a9..3274886608 100644 --- a/src/tint/transform/binding_remapper_test.cc +++ b/src/tint/transform/binding_remapper_test.cc @@ -74,7 +74,7 @@ struct S { @group(3) @binding(2) var b : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { } )"; @@ -99,7 +99,7 @@ struct S { @group(3) @binding(2) var b : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { } )"; @@ -113,7 +113,7 @@ struct S { @group(3) @binding(2) var b : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { } )"; @@ -143,7 +143,7 @@ struct S { @group(4) @binding(3) var c : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { } )"; @@ -159,7 +159,7 @@ struct S { @group(4) @binding(3) var c : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { } )"; @@ -187,7 +187,7 @@ struct S { @group(3) @binding(2) var b : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { } )"; @@ -201,7 +201,7 @@ struct S { @group(6) @binding(7) var b : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { } )"; @@ -235,7 +235,7 @@ struct S { @group(5) @binding(4) var d : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let x : i32 = (((a.i + b.i) + c.i) + d.i); } @@ -254,7 +254,7 @@ struct S { @internal(disable_validation__binding_point_collision) @group(5) @binding(4) var d : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let x : i32 = (((a.i + b.i) + c.i) + d.i); } @@ -287,12 +287,12 @@ struct S { @group(5) @binding(4) var d : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f1() { let x : i32 = (a.i + c.i); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f2() { let x : i32 = (b.i + d.i); } @@ -311,12 +311,12 @@ struct S { @group(5) @binding(4) var d : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f1() { let x : i32 = (a.i + c.i); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f2() { let x : i32 = (b.i + d.i); } @@ -345,7 +345,7 @@ struct S { @group(3) @binding(2) var b : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { } )"; diff --git a/src/tint/transform/calculate_array_length_test.cc b/src/tint/transform/calculate_array_length_test.cc index 9c7c3ac204..e2674b0572 100644 --- a/src/tint/transform/calculate_array_length_test.cc +++ b/src/tint/transform/calculate_array_length_test.cc @@ -38,7 +38,7 @@ struct SB { @group(0) @binding(0) var sb : SB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { } )"; @@ -55,7 +55,7 @@ struct SB { @group(0) @binding(0) var sb : SB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var len : u32 = arrayLength(&sb.arr); } @@ -68,7 +68,7 @@ TEST_F(CalculateArrayLengthTest, BasicArray) { auto* src = R"( @group(0) @binding(0) var sb : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var len : u32 = arrayLength(&sb); } @@ -80,7 +80,7 @@ fn tint_symbol(@internal(disable_validation__ignore_constructible_function_param @group(0) @binding(0) var sb : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var tint_symbol_1 : u32 = 0u; tint_symbol(sb, &(tint_symbol_1)); @@ -103,7 +103,7 @@ struct SB { @group(0) @binding(0) var sb : SB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var len : u32 = arrayLength(&sb.arr); } @@ -120,7 +120,7 @@ struct SB { @group(0) @binding(0) var sb : SB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var tint_symbol_1 : u32 = 0u; tint_symbol(sb, &(tint_symbol_1)); @@ -142,7 +142,7 @@ struct S { @group(0) @binding(0) var arr : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let len = arrayLength(&arr); } @@ -157,7 +157,7 @@ struct S { @group(0) @binding(0) var arr : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var tint_symbol_1 : u32 = 0u; tint_symbol(arr, &(tint_symbol_1)); @@ -179,7 +179,7 @@ struct S { @group(0) @binding(0) var arr : array>; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let len = arrayLength(&arr); } @@ -194,7 +194,7 @@ struct S { @group(0) @binding(0) var arr : array>; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var tint_symbol_1 : u32 = 0u; tint_symbol(arr, &(tint_symbol_1)); @@ -212,7 +212,7 @@ TEST_F(CalculateArrayLengthTest, InSameBlock) { auto* src = R"( @group(0) @binding(0) var sb : array;; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var a : u32 = arrayLength(&sb); var b : u32 = arrayLength(&sb); @@ -226,7 +226,7 @@ fn tint_symbol(@internal(disable_validation__ignore_constructible_function_param @group(0) @binding(0) var sb : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var tint_symbol_1 : u32 = 0u; tint_symbol(sb, &(tint_symbol_1)); @@ -251,7 +251,7 @@ struct SB { @group(0) @binding(0) var sb : SB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var a : u32 = arrayLength(&sb.arr); var b : u32 = arrayLength(&sb.arr); @@ -270,7 +270,7 @@ struct SB { @group(0) @binding(0) var sb : SB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var tint_symbol_1 : u32 = 0u; tint_symbol(sb, &(tint_symbol_1)); @@ -295,7 +295,7 @@ struct SB { @group(0) @binding(0) var sb : SB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { if (true) { var len : u32 = arrayLength(&sb.arr); @@ -318,7 +318,7 @@ struct SB { @group(0) @binding(0) var sb : SB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { if (true) { var tint_symbol_1 : u32 = 0u; @@ -359,7 +359,7 @@ struct SB2 { @group(0) @binding(2) var sb3 : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var len1 : u32 = arrayLength(&(sb1.arr1)); var len2 : u32 = arrayLength(&(sb2.arr2)); @@ -394,7 +394,7 @@ struct SB2 { @group(0) @binding(2) var sb3 : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var tint_symbol_1 : u32 = 0u; tint_symbol(sb1, &(tint_symbol_1)); @@ -427,7 +427,7 @@ struct SB { @group(0) @binding(0) var a : SB; @group(0) @binding(1) var b : SB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = &a; var a : u32 = arrayLength(&a.arr); @@ -451,7 +451,7 @@ struct SB { @group(0) @binding(1) var b : SB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var tint_symbol_1 : u32 = 0u; tint_symbol(a, &(tint_symbol_1)); @@ -473,7 +473,7 @@ fn main() { TEST_F(CalculateArrayLengthTest, OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var len1 : u32 = arrayLength(&(sb1.arr1)); var len2 : u32 = arrayLength(&(sb2.arr2)); @@ -508,7 +508,7 @@ fn tint_symbol_3(@internal(disable_validation__ignore_constructible_function_par @internal(intrinsic_buffer_size) fn tint_symbol_6(@internal(disable_validation__ignore_constructible_function_parameter) buffer : array, result : ptr) -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var tint_symbol_1 : u32 = 0u; tint_symbol(sb1, &(tint_symbol_1)); diff --git a/src/tint/transform/canonicalize_entry_point_io_test.cc b/src/tint/transform/canonicalize_entry_point_io_test.cc index 68ccb8b7d5..f17c5f5e88 100644 --- a/src/tint/transform/canonicalize_entry_point_io_test.cc +++ b/src/tint/transform/canonicalize_entry_point_io_test.cc @@ -38,11 +38,11 @@ TEST_F(CanonicalizeEntryPointIOTest, NoShaderIO) { // Test that we do not introduce wrapper functions when there is no shader IO // to process. auto* src = R"( -@stage(fragment) +@fragment fn frag_main() { } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main() { } )"; @@ -58,7 +58,7 @@ fn comp_main() { TEST_F(CanonicalizeEntryPointIOTest, Parameters_Spirv) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main(@location(1) loc1 : f32, @location(2) @interpolate(flat) loc2 : vec4, @builtin(position) coord : vec4) { @@ -77,7 +77,7 @@ fn frag_main_inner(loc1 : f32, loc2 : vec4, coord : vec4) { var col : f32 = (coord.x * loc1); } -@stage(fragment) +@fragment fn frag_main() { frag_main_inner(loc1_1, loc2_1, coord_1); } @@ -92,7 +92,7 @@ fn frag_main() { TEST_F(CanonicalizeEntryPointIOTest, Parameters_Msl) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main(@location(1) loc1 : f32, @location(2) @interpolate(flat) loc2 : vec4, @builtin(position) coord : vec4) { @@ -112,7 +112,7 @@ fn frag_main_inner(loc1 : f32, loc2 : vec4, coord : vec4) { var col : f32 = (coord.x * loc1); } -@stage(fragment) +@fragment fn frag_main(@builtin(position) coord : vec4, tint_symbol : tint_symbol_1) { frag_main_inner(tint_symbol.loc1, tint_symbol.loc2, coord); } @@ -127,7 +127,7 @@ fn frag_main(@builtin(position) coord : vec4, tint_symbol : tint_symbol_1) TEST_F(CanonicalizeEntryPointIOTest, Parameters_Hlsl) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main(@location(1) loc1 : f32, @location(2) @interpolate(flat) loc2 : vec4, @builtin(position) coord : vec4) { @@ -149,7 +149,7 @@ fn frag_main_inner(loc1 : f32, loc2 : vec4, coord : vec4) { var col : f32 = (coord.x * loc1); } -@stage(fragment) +@fragment fn frag_main(tint_symbol : tint_symbol_1) { frag_main_inner(tint_symbol.loc1, tint_symbol.loc2, tint_symbol.coord); } @@ -166,7 +166,7 @@ TEST_F(CanonicalizeEntryPointIOTest, Parameter_TypeAlias) { auto* src = R"( type myf32 = f32; -@stage(fragment) +@fragment fn frag_main(@location(1) loc1 : myf32) { var x : myf32 = loc1; } @@ -184,7 +184,7 @@ fn frag_main_inner(loc1 : myf32) { var x : myf32 = loc1; } -@stage(fragment) +@fragment fn frag_main(tint_symbol : tint_symbol_1) { frag_main_inner(tint_symbol.loc1); } @@ -199,7 +199,7 @@ fn frag_main(tint_symbol : tint_symbol_1) { TEST_F(CanonicalizeEntryPointIOTest, Parameter_TypeAlias_OutOfOrder) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main(@location(1) loc1 : myf32) { var x : myf32 = loc1; } @@ -217,7 +217,7 @@ fn frag_main_inner(loc1 : myf32) { var x : myf32 = loc1; } -@stage(fragment) +@fragment fn frag_main(tint_symbol : tint_symbol_1) { frag_main_inner(tint_symbol.loc1); } @@ -242,7 +242,7 @@ struct FragLocations { @location(2) @interpolate(flat) loc2 : vec4, }; -@stage(fragment) +@fragment fn frag_main(@location(0) loc0 : f32, locations : FragLocations, builtins : FragBuiltins) { @@ -272,7 +272,7 @@ fn frag_main_inner(loc0 : f32, locations : FragLocations, builtins : FragBuiltin var col : f32 = ((builtins.coord.x * locations.loc1) + loc0); } -@stage(fragment) +@fragment fn frag_main() { frag_main_inner(loc0_1, FragLocations(loc1_1, loc2_1), FragBuiltins(coord_1)); } @@ -287,7 +287,7 @@ fn frag_main() { TEST_F(CanonicalizeEntryPointIOTest, StructParameters_Spirv_OutOfOrder) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main(@location(0) loc0 : f32, locations : FragLocations, builtins : FragBuiltins) { @@ -316,7 +316,7 @@ fn frag_main_inner(loc0 : f32, locations : FragLocations, builtins : FragBuiltin var col : f32 = ((builtins.coord.x * locations.loc1) + loc0); } -@stage(fragment) +@fragment fn frag_main() { frag_main_inner(loc0_1, FragLocations(loc1_1, loc2_1), FragBuiltins(coord_1)); } @@ -348,7 +348,7 @@ struct FragLocations { @location(2) @interpolate(flat) loc2 : vec4, }; -@stage(fragment) +@fragment fn frag_main(@location(0) loc0 : f32, locations : FragLocations, builtins : FragBuiltins) { @@ -379,7 +379,7 @@ fn frag_main_inner(loc0 : f32, locations : FragLocations, builtins : FragBuiltin var col : f32 = ((builtins.coord.x * locations.loc1) + loc0); } -@stage(fragment) +@fragment fn frag_main(@builtin(position) coord : vec4, tint_symbol : tint_symbol_1) { frag_main_inner(tint_symbol.loc0, FragLocations(tint_symbol.loc1, tint_symbol.loc2), FragBuiltins(coord)); } @@ -394,7 +394,7 @@ fn frag_main(@builtin(position) coord : vec4, tint_symbol : tint_symbol_1) TEST_F(CanonicalizeEntryPointIOTest, StructParameters_kMsl_OutOfOrder) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main(@location(0) loc0 : f32, locations : FragLocations, builtins : FragBuiltins) { @@ -424,7 +424,7 @@ fn frag_main_inner(loc0 : f32, locations : FragLocations, builtins : FragBuiltin var col : f32 = ((builtins.coord.x * locations.loc1) + loc0); } -@stage(fragment) +@fragment fn frag_main(@builtin(position) coord : vec4, tint_symbol : tint_symbol_1) { frag_main_inner(tint_symbol.loc0, FragLocations(tint_symbol.loc1, tint_symbol.loc2), FragBuiltins(coord)); } @@ -456,7 +456,7 @@ struct FragLocations { @location(2) @interpolate(flat) loc2 : vec4, }; -@stage(fragment) +@fragment fn frag_main(@location(0) loc0 : f32, locations : FragLocations, builtins : FragBuiltins) { @@ -489,7 +489,7 @@ fn frag_main_inner(loc0 : f32, locations : FragLocations, builtins : FragBuiltin var col : f32 = ((builtins.coord.x * locations.loc1) + loc0); } -@stage(fragment) +@fragment fn frag_main(tint_symbol : tint_symbol_1) { frag_main_inner(tint_symbol.loc0, FragLocations(tint_symbol.loc1, tint_symbol.loc2), FragBuiltins(tint_symbol.coord)); } @@ -504,7 +504,7 @@ fn frag_main(tint_symbol : tint_symbol_1) { TEST_F(CanonicalizeEntryPointIOTest, StructParameters_Hlsl_OutOfOrder) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main(@location(0) loc0 : f32, locations : FragLocations, builtins : FragBuiltins) { @@ -536,7 +536,7 @@ fn frag_main_inner(loc0 : f32, locations : FragLocations, builtins : FragBuiltin var col : f32 = ((builtins.coord.x * locations.loc1) + loc0); } -@stage(fragment) +@fragment fn frag_main(tint_symbol : tint_symbol_1) { frag_main_inner(tint_symbol.loc0, FragLocations(tint_symbol.loc1, tint_symbol.loc2), FragBuiltins(tint_symbol.coord)); } @@ -560,7 +560,7 @@ struct FragLocations { TEST_F(CanonicalizeEntryPointIOTest, Return_NonStruct_Spirv) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main() -> @builtin(frag_depth) f32 { return 1.0; } @@ -573,7 +573,7 @@ fn frag_main_inner() -> f32 { return 1.0; } -@stage(fragment) +@fragment fn frag_main() { let inner_result = frag_main_inner(); value = inner_result; @@ -589,7 +589,7 @@ fn frag_main() { TEST_F(CanonicalizeEntryPointIOTest, Return_NonStruct_Msl) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main() -> @builtin(frag_depth) f32 { return 1.0; } @@ -605,7 +605,7 @@ fn frag_main_inner() -> f32 { return 1.0; } -@stage(fragment) +@fragment fn frag_main() -> tint_symbol { let inner_result = frag_main_inner(); var wrapper_result : tint_symbol; @@ -623,7 +623,7 @@ fn frag_main() -> tint_symbol { TEST_F(CanonicalizeEntryPointIOTest, Return_NonStruct_Hlsl) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main() -> @builtin(frag_depth) f32 { return 1.0; } @@ -639,7 +639,7 @@ fn frag_main_inner() -> f32 { return 1.0; } -@stage(fragment) +@fragment fn frag_main() -> tint_symbol { let inner_result = frag_main_inner(); var wrapper_result : tint_symbol; @@ -663,7 +663,7 @@ struct FragOutput { @builtin(sample_mask) mask : u32, }; -@stage(fragment) +@fragment fn frag_main() -> FragOutput { var output : FragOutput; output.depth = 1.0; @@ -694,7 +694,7 @@ fn frag_main_inner() -> FragOutput { return output; } -@stage(fragment) +@fragment fn frag_main() { let inner_result = frag_main_inner(); color_1 = inner_result.color; @@ -712,7 +712,7 @@ fn frag_main() { TEST_F(CanonicalizeEntryPointIOTest, Return_Struct_Spirv_OutOfOrder) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main() -> FragOutput { var output : FragOutput; output.depth = 1.0; @@ -743,7 +743,7 @@ fn frag_main_inner() -> FragOutput { return output; } -@stage(fragment) +@fragment fn frag_main() { let inner_result = frag_main_inner(); color_1 = inner_result.color; @@ -773,7 +773,7 @@ struct FragOutput { @builtin(sample_mask) mask : u32, }; -@stage(fragment) +@fragment fn frag_main() -> FragOutput { var output : FragOutput; output.depth = 1.0; @@ -807,7 +807,7 @@ fn frag_main_inner() -> FragOutput { return output; } -@stage(fragment) +@fragment fn frag_main() -> tint_symbol { let inner_result = frag_main_inner(); var wrapper_result : tint_symbol; @@ -827,7 +827,7 @@ fn frag_main() -> tint_symbol { TEST_F(CanonicalizeEntryPointIOTest, Return_Struct_Msl_OutOfOrder) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main() -> FragOutput { var output : FragOutput; output.depth = 1.0; @@ -861,7 +861,7 @@ fn frag_main_inner() -> FragOutput { return output; } -@stage(fragment) +@fragment fn frag_main() -> tint_symbol { let inner_result = frag_main_inner(); var wrapper_result : tint_symbol; @@ -893,7 +893,7 @@ struct FragOutput { @builtin(sample_mask) mask : u32, }; -@stage(fragment) +@fragment fn frag_main() -> FragOutput { var output : FragOutput; output.depth = 1.0; @@ -927,7 +927,7 @@ fn frag_main_inner() -> FragOutput { return output; } -@stage(fragment) +@fragment fn frag_main() -> tint_symbol { let inner_result = frag_main_inner(); var wrapper_result : tint_symbol; @@ -947,7 +947,7 @@ fn frag_main() -> tint_symbol { TEST_F(CanonicalizeEntryPointIOTest, Return_Struct_Hlsl_OutOfOrder) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main() -> FragOutput { var output : FragOutput; output.depth = 1.0; @@ -981,7 +981,7 @@ fn frag_main_inner() -> FragOutput { return output; } -@stage(fragment) +@fragment fn frag_main() -> tint_symbol { let inner_result = frag_main_inner(); var wrapper_result : tint_symbol; @@ -1016,12 +1016,12 @@ fn foo(x : FragmentInput) -> f32 { return x.value * x.mul; } -@stage(fragment) +@fragment fn frag_main1(inputs : FragmentInput) { var x : f32 = foo(inputs); } -@stage(fragment) +@fragment fn frag_main2(inputs : FragmentInput) { var x : f32 = foo(inputs); } @@ -1049,7 +1049,7 @@ fn frag_main1_inner(inputs : FragmentInput) { var x : f32 = foo(inputs); } -@stage(fragment) +@fragment fn frag_main1() { frag_main1_inner(FragmentInput(value_1, mul_1)); } @@ -1058,7 +1058,7 @@ fn frag_main2_inner(inputs : FragmentInput) { var x : f32 = foo(inputs); } -@stage(fragment) +@fragment fn frag_main2() { frag_main2_inner(FragmentInput(value_2, mul_2)); } @@ -1073,12 +1073,12 @@ fn frag_main2() { TEST_F(CanonicalizeEntryPointIOTest, StructParameters_SharedDeviceFunction_Spirv_OutOfOrder) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main1(inputs : FragmentInput) { var x : f32 = foo(inputs); } -@stage(fragment) +@fragment fn frag_main2(inputs : FragmentInput) { var x : f32 = foo(inputs); } @@ -1106,7 +1106,7 @@ fn frag_main1_inner(inputs : FragmentInput) { var x : f32 = foo(inputs); } -@stage(fragment) +@fragment fn frag_main1() { frag_main1_inner(FragmentInput(value_1, mul_1)); } @@ -1115,7 +1115,7 @@ fn frag_main2_inner(inputs : FragmentInput) { var x : f32 = foo(inputs); } -@stage(fragment) +@fragment fn frag_main2() { frag_main2_inner(FragmentInput(value_2, mul_2)); } @@ -1148,12 +1148,12 @@ fn foo(x : FragmentInput) -> f32 { return x.value * x.mul; } -@stage(fragment) +@fragment fn frag_main1(inputs : FragmentInput) { var x : f32 = foo(inputs); } -@stage(fragment) +@fragment fn frag_main2(inputs : FragmentInput) { var x : f32 = foo(inputs); } @@ -1180,7 +1180,7 @@ fn frag_main1_inner(inputs : FragmentInput) { var x : f32 = foo(inputs); } -@stage(fragment) +@fragment fn frag_main1(tint_symbol : tint_symbol_1) { frag_main1_inner(FragmentInput(tint_symbol.value, tint_symbol.mul)); } @@ -1196,7 +1196,7 @@ fn frag_main2_inner(inputs : FragmentInput) { var x : f32 = foo(inputs); } -@stage(fragment) +@fragment fn frag_main2(tint_symbol_2 : tint_symbol_3) { frag_main2_inner(FragmentInput(tint_symbol_2.value, tint_symbol_2.mul)); } @@ -1211,12 +1211,12 @@ fn frag_main2(tint_symbol_2 : tint_symbol_3) { TEST_F(CanonicalizeEntryPointIOTest, StructParameters_SharedDeviceFunction_Msl_OutOfOrder) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main1(inputs : FragmentInput) { var x : f32 = foo(inputs); } -@stage(fragment) +@fragment fn frag_main2(inputs : FragmentInput) { var x : f32 = foo(inputs); } @@ -1243,7 +1243,7 @@ fn frag_main1_inner(inputs : FragmentInput) { var x : f32 = foo(inputs); } -@stage(fragment) +@fragment fn frag_main1(tint_symbol : tint_symbol_1) { frag_main1_inner(FragmentInput(tint_symbol.value, tint_symbol.mul)); } @@ -1259,7 +1259,7 @@ fn frag_main2_inner(inputs : FragmentInput) { var x : f32 = foo(inputs); } -@stage(fragment) +@fragment fn frag_main2(tint_symbol_2 : tint_symbol_3) { frag_main2_inner(FragmentInput(tint_symbol_2.value, tint_symbol_2.mul)); } @@ -1292,12 +1292,12 @@ fn foo(x : FragmentInput) -> f32 { return x.value * x.mul; } -@stage(fragment) +@fragment fn frag_main1(inputs : FragmentInput) { var x : f32 = foo(inputs); } -@stage(fragment) +@fragment fn frag_main2(inputs : FragmentInput) { var x : f32 = foo(inputs); } @@ -1324,7 +1324,7 @@ fn frag_main1_inner(inputs : FragmentInput) { var x : f32 = foo(inputs); } -@stage(fragment) +@fragment fn frag_main1(tint_symbol : tint_symbol_1) { frag_main1_inner(FragmentInput(tint_symbol.value, tint_symbol.mul)); } @@ -1340,7 +1340,7 @@ fn frag_main2_inner(inputs : FragmentInput) { var x : f32 = foo(inputs); } -@stage(fragment) +@fragment fn frag_main2(tint_symbol_2 : tint_symbol_3) { frag_main2_inner(FragmentInput(tint_symbol_2.value, tint_symbol_2.mul)); } @@ -1355,12 +1355,12 @@ fn frag_main2(tint_symbol_2 : tint_symbol_3) { TEST_F(CanonicalizeEntryPointIOTest, StructParameters_SharedDeviceFunction_Hlsl_OutOfOrder) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main1(inputs : FragmentInput) { var x : f32 = foo(inputs); } -@stage(fragment) +@fragment fn frag_main2(inputs : FragmentInput) { var x : f32 = foo(inputs); } @@ -1387,7 +1387,7 @@ fn frag_main1_inner(inputs : FragmentInput) { var x : f32 = foo(inputs); } -@stage(fragment) +@fragment fn frag_main1(tint_symbol : tint_symbol_1) { frag_main1_inner(FragmentInput(tint_symbol.value, tint_symbol.mul)); } @@ -1403,7 +1403,7 @@ fn frag_main2_inner(inputs : FragmentInput) { var x : f32 = foo(inputs); } -@stage(fragment) +@fragment fn frag_main2(tint_symbol_2 : tint_symbol_3) { frag_main2_inner(FragmentInput(tint_symbol_2.value, tint_symbol_2.mul)); } @@ -1442,7 +1442,7 @@ fn bar() -> f32 { return global_inputs.col2 * 2.0; } -@stage(fragment) +@fragment fn frag_main1(inputs : FragmentInput) { global_inputs = inputs; var r : f32 = foo(); @@ -1479,7 +1479,7 @@ fn frag_main1_inner(inputs : FragmentInput) { var g : f32 = bar(); } -@stage(fragment) +@fragment fn frag_main1(tint_symbol : tint_symbol_1) { frag_main1_inner(FragmentInput(tint_symbol.col1, tint_symbol.col2)); } @@ -1494,7 +1494,7 @@ fn frag_main1(tint_symbol : tint_symbol_1) { TEST_F(CanonicalizeEntryPointIOTest, Struct_ModuleScopeVariable_OutOfOrder) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main1(inputs : FragmentInput) { global_inputs = inputs; var r : f32 = foo(); @@ -1531,7 +1531,7 @@ fn frag_main1_inner(inputs : FragmentInput) { var g : f32 = bar(); } -@stage(fragment) +@fragment fn frag_main1(tint_symbol : tint_symbol_1) { frag_main1_inner(FragmentInput(tint_symbol.col1, tint_symbol.col2)); } @@ -1581,7 +1581,7 @@ fn foo(x : MyFragmentInput) -> myf32 { return x.col1; } -@stage(fragment) +@fragment fn frag_main(inputs : MyFragmentInput) -> MyFragmentOutput { var x : myf32 = foo(inputs); return MyFragmentOutput(x, inputs.col2); @@ -1628,7 +1628,7 @@ fn frag_main_inner(inputs : MyFragmentInput) -> MyFragmentOutput { return MyFragmentOutput(x, inputs.col2); } -@stage(fragment) +@fragment fn frag_main(tint_symbol : tint_symbol_1) -> tint_symbol_2 { let inner_result = frag_main_inner(MyFragmentInput(tint_symbol.col1, tint_symbol.col2)); var wrapper_result : tint_symbol_2; @@ -1647,7 +1647,7 @@ fn frag_main(tint_symbol : tint_symbol_1) -> tint_symbol_2 { TEST_F(CanonicalizeEntryPointIOTest, Struct_TypeAliases_OutOfOrder) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main(inputs : MyFragmentInput) -> MyFragmentOutput { var x : myf32 = foo(inputs); return MyFragmentOutput(x, inputs.col2); @@ -1694,7 +1694,7 @@ fn frag_main_inner(inputs : MyFragmentInput) -> MyFragmentOutput { return MyFragmentOutput(x, inputs.col2); } -@stage(fragment) +@fragment fn frag_main(tint_symbol : tint_symbol_1) -> tint_symbol_2 { let inner_result = frag_main_inner(MyFragmentInput(tint_symbol.col1, tint_symbol.col2)); var wrapper_result : tint_symbol_2; @@ -1745,12 +1745,12 @@ struct FragmentIn { @location(2) @interpolate(linear, sample) loc2 : f32, }; -@stage(vertex) +@vertex fn vert_main() -> VertexOut { return VertexOut(); } -@stage(fragment) +@fragment fn frag_main(inputs : FragmentIn, @location(3) @interpolate(perspective, centroid) loc3 : f32) { let x = inputs.loc1 + inputs.loc2 + loc3; @@ -1785,7 +1785,7 @@ fn vert_main_inner() -> VertexOut { return VertexOut(); } -@stage(vertex) +@vertex fn vert_main() -> tint_symbol { let inner_result = vert_main_inner(); var wrapper_result : tint_symbol; @@ -1809,7 +1809,7 @@ fn frag_main_inner(inputs : FragmentIn, loc3 : f32) { let x = ((inputs.loc1 + inputs.loc2) + loc3); } -@stage(fragment) +@fragment fn frag_main(tint_symbol_1 : tint_symbol_2) { frag_main_inner(FragmentIn(tint_symbol_1.loc1, tint_symbol_1.loc2), tint_symbol_1.loc3); } @@ -1824,13 +1824,13 @@ fn frag_main(tint_symbol_1 : tint_symbol_2) { TEST_F(CanonicalizeEntryPointIOTest, InterpolateAttributes_OutOfOrder) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main(inputs : FragmentIn, @location(3) @interpolate(perspective, centroid) loc3 : f32) { let x = inputs.loc1 + inputs.loc2 + loc3; } -@stage(vertex) +@vertex fn vert_main() -> VertexOut { return VertexOut(); } @@ -1862,7 +1862,7 @@ fn frag_main_inner(inputs : FragmentIn, loc3 : f32) { let x = ((inputs.loc1 + inputs.loc2) + loc3); } -@stage(fragment) +@fragment fn frag_main(tint_symbol : tint_symbol_1) { frag_main_inner(FragmentIn(tint_symbol.loc1, tint_symbol.loc2), tint_symbol.loc3); } @@ -1882,7 +1882,7 @@ fn vert_main_inner() -> VertexOut { return VertexOut(); } -@stage(vertex) +@vertex fn vert_main() -> tint_symbol_2 { let inner_result = vert_main_inner(); var wrapper_result : tint_symbol_2; @@ -1939,12 +1939,12 @@ struct FragmentInterface { @location(3) @interpolate(flat) vu : vec4, }; -@stage(vertex) +@vertex fn vert_main(in : VertexIn) -> VertexOut { return VertexOut(in.i, in.u, in.vi, in.vu, vec4()); } -@stage(fragment) +@fragment fn frag_main(inputs : FragmentInterface) -> FragmentInterface { return inputs; } @@ -2012,7 +2012,7 @@ fn vert_main_inner(in : VertexIn) -> VertexOut { return VertexOut(in.i, in.u, in.vi, in.vu, vec4()); } -@stage(vertex) +@vertex fn vert_main() { let inner_result = vert_main_inner(VertexIn(i_1, u_1, vi_1, vu_1)); i_2 = inner_result.i; @@ -2026,7 +2026,7 @@ fn frag_main_inner(inputs : FragmentInterface) -> FragmentInterface { return inputs; } -@stage(fragment) +@fragment fn frag_main() { let inner_result_1 = frag_main_inner(FragmentInterface(i_3, u_3, vi_3, vu_3)); i_4 = inner_result_1.i; @@ -2047,12 +2047,12 @@ TEST_F(CanonicalizeEntryPointIOTest, InterpolateAttributes_Integers_Spirv_OutOfO // Test that we add a Flat attribute to integers that are vertex outputs and // fragment inputs, but not vertex inputs or fragment outputs. auto* src = R"( -@stage(vertex) +@vertex fn vert_main(in : VertexIn) -> VertexOut { return VertexOut(in.i, in.u, in.vi, in.vu, vec4()); } -@stage(fragment) +@fragment fn frag_main(inputs : FragmentInterface) -> FragmentInterface { return inputs; } @@ -2120,7 +2120,7 @@ fn vert_main_inner(in : VertexIn) -> VertexOut { return VertexOut(in.i, in.u, in.vi, in.vu, vec4()); } -@stage(vertex) +@vertex fn vert_main() { let inner_result = vert_main_inner(VertexIn(i_1, u_1, vi_1, vu_1)); i_2 = inner_result.i; @@ -2134,7 +2134,7 @@ fn frag_main_inner(inputs : FragmentInterface) -> FragmentInterface { return inputs; } -@stage(fragment) +@fragment fn frag_main() { let inner_result_1 = frag_main_inner(FragmentInterface(i_3, u_3, vi_3, vu_3)); i_4 = inner_result_1.i; @@ -2179,12 +2179,12 @@ struct VertexOut { @builtin(position) @invariant pos : vec4, }; -@stage(vertex) +@vertex fn main1() -> VertexOut { return VertexOut(); } -@stage(vertex) +@vertex fn main2() -> @builtin(position) @invariant vec4 { return vec4(); } @@ -2204,7 +2204,7 @@ fn main1_inner() -> VertexOut { return VertexOut(); } -@stage(vertex) +@vertex fn main1() -> tint_symbol { let inner_result = main1_inner(); var wrapper_result : tint_symbol; @@ -2221,7 +2221,7 @@ fn main2_inner() -> vec4 { return vec4(); } -@stage(vertex) +@vertex fn main2() -> tint_symbol_1 { let inner_result_1 = main2_inner(); var wrapper_result_1 : tint_symbol_1; @@ -2239,12 +2239,12 @@ fn main2() -> tint_symbol_1 { TEST_F(CanonicalizeEntryPointIOTest, InvariantAttributes_OutOfOrder) { auto* src = R"( -@stage(vertex) +@vertex fn main1() -> VertexOut { return VertexOut(); } -@stage(vertex) +@vertex fn main2() -> @builtin(position) @invariant vec4 { return vec4(); } @@ -2264,7 +2264,7 @@ fn main1_inner() -> VertexOut { return VertexOut(); } -@stage(vertex) +@vertex fn main1() -> tint_symbol { let inner_result = main1_inner(); var wrapper_result : tint_symbol; @@ -2281,7 +2281,7 @@ fn main2_inner() -> vec4 { return vec4(); } -@stage(vertex) +@vertex fn main2() -> tint_symbol_1 { let inner_result_1 = main2_inner(); var wrapper_result_1 : tint_symbol_1; @@ -2313,7 +2313,7 @@ struct FragmentOutput { @size(16) @location(1) @interpolate(flat) value : f32, }; -@stage(fragment) +@fragment fn frag_main(inputs : FragmentInput) -> FragmentOutput { return FragmentOutput(inputs.coord.x * inputs.value + inputs.loc0); } @@ -2352,7 +2352,7 @@ fn frag_main_inner(inputs : FragmentInput) -> FragmentOutput { return FragmentOutput(((inputs.coord.x * inputs.value) + inputs.loc0)); } -@stage(fragment) +@fragment fn frag_main(tint_symbol : tint_symbol_1) -> tint_symbol_2 { let inner_result = frag_main_inner(FragmentInput(tint_symbol.value, tint_symbol.coord, tint_symbol.loc0)); var wrapper_result : tint_symbol_2; @@ -2370,7 +2370,7 @@ fn frag_main(tint_symbol : tint_symbol_1) -> tint_symbol_2 { TEST_F(CanonicalizeEntryPointIOTest, Struct_LayoutAttributes_OutOfOrder) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main(inputs : FragmentInput) -> FragmentOutput { return FragmentOutput(inputs.coord.x * inputs.value + inputs.loc0); } @@ -2405,7 +2405,7 @@ fn frag_main_inner(inputs : FragmentInput) -> FragmentOutput { return FragmentOutput(((inputs.coord.x * inputs.value) + inputs.loc0)); } -@stage(fragment) +@fragment fn frag_main(tint_symbol : tint_symbol_1) -> tint_symbol_2 { let inner_result = frag_main_inner(FragmentInput(tint_symbol.value, tint_symbol.coord, tint_symbol.loc0)); var wrapper_result : tint_symbol_2; @@ -2451,12 +2451,12 @@ struct FragmentInputExtra { @location(0) a : f32, }; -@stage(vertex) +@vertex fn vert_main() -> VertexOutput { return VertexOutput(); } -@stage(fragment) +@fragment fn frag_main(@builtin(front_facing) ff : bool, @location(2) @interpolate(flat) c : i32, inputs : FragmentInputExtra, @@ -2496,7 +2496,7 @@ fn vert_main_inner() -> VertexOutput { return VertexOutput(); } -@stage(vertex) +@vertex fn vert_main() -> tint_symbol { let inner_result = vert_main_inner(); var wrapper_result : tint_symbol; @@ -2526,7 +2526,7 @@ struct tint_symbol_2 { fn frag_main_inner(ff : bool, c : i32, inputs : FragmentInputExtra, b : u32) { } -@stage(fragment) +@fragment fn frag_main(tint_symbol_1 : tint_symbol_2) { frag_main_inner(tint_symbol_1.ff, tint_symbol_1.c, FragmentInputExtra(tint_symbol_1.d, tint_symbol_1.pos, tint_symbol_1.a), tint_symbol_1.b); } @@ -2541,12 +2541,12 @@ fn frag_main(tint_symbol_1 : tint_symbol_2) { TEST_F(CanonicalizeEntryPointIOTest, SortedMembers_OutOfOrder) { auto* src = R"( -@stage(vertex) +@vertex fn vert_main() -> VertexOutput { return VertexOutput(); } -@stage(fragment) +@fragment fn frag_main(@builtin(front_facing) ff : bool, @location(2) @interpolate(flat) c : i32, inputs : FragmentInputExtra, @@ -2586,7 +2586,7 @@ fn vert_main_inner() -> VertexOutput { return VertexOutput(); } -@stage(vertex) +@vertex fn vert_main() -> tint_symbol { let inner_result = vert_main_inner(); var wrapper_result : tint_symbol; @@ -2616,7 +2616,7 @@ struct tint_symbol_2 { fn frag_main_inner(ff : bool, c : i32, inputs : FragmentInputExtra, b : u32) { } -@stage(fragment) +@fragment fn frag_main(tint_symbol_1 : tint_symbol_2) { frag_main_inner(tint_symbol_1.ff, tint_symbol_1.c, FragmentInputExtra(tint_symbol_1.d, tint_symbol_1.pos, tint_symbol_1.a), tint_symbol_1.b); } @@ -2645,7 +2645,7 @@ struct FragmentInputExtra { TEST_F(CanonicalizeEntryPointIOTest, DontRenameSymbols) { auto* src = R"( -@stage(fragment) +@fragment fn tint_symbol_1(@location(0) col : f32) { } )"; @@ -2659,7 +2659,7 @@ struct tint_symbol_2 { fn tint_symbol_1_inner(col : f32) { } -@stage(fragment) +@fragment fn tint_symbol_1(tint_symbol : tint_symbol_2) { tint_symbol_1_inner(tint_symbol.col); } @@ -2674,7 +2674,7 @@ fn tint_symbol_1(tint_symbol : tint_symbol_2) { TEST_F(CanonicalizeEntryPointIOTest, FixedSampleMask_VoidNoReturn) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main() { } )"; @@ -2688,7 +2688,7 @@ struct tint_symbol { fn frag_main_inner() { } -@stage(fragment) +@fragment fn frag_main() -> tint_symbol { frag_main_inner(); var wrapper_result : tint_symbol; @@ -2706,7 +2706,7 @@ fn frag_main() -> tint_symbol { TEST_F(CanonicalizeEntryPointIOTest, FixedSampleMask_VoidWithReturn) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main() { return; } @@ -2722,7 +2722,7 @@ fn frag_main_inner() { return; } -@stage(fragment) +@fragment fn frag_main() -> tint_symbol { frag_main_inner(); var wrapper_result : tint_symbol; @@ -2740,7 +2740,7 @@ fn frag_main() -> tint_symbol { TEST_F(CanonicalizeEntryPointIOTest, FixedSampleMask_WithAuthoredMask) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main() -> @builtin(sample_mask) u32 { return 7u; } @@ -2756,7 +2756,7 @@ fn frag_main_inner() -> u32 { return 7u; } -@stage(fragment) +@fragment fn frag_main() -> tint_symbol { let inner_result = frag_main_inner(); var wrapper_result : tint_symbol; @@ -2774,7 +2774,7 @@ fn frag_main() -> tint_symbol { TEST_F(CanonicalizeEntryPointIOTest, FixedSampleMask_WithoutAuthoredMask) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main() -> @location(0) f32 { return 1.0; } @@ -2792,7 +2792,7 @@ fn frag_main_inner() -> f32 { return 1.0; } -@stage(fragment) +@fragment fn frag_main() -> tint_symbol { let inner_result = frag_main_inner(); var wrapper_result : tint_symbol; @@ -2817,7 +2817,7 @@ struct Output { @location(0) value : f32, }; -@stage(fragment) +@fragment fn frag_main() -> Output { return Output(0.5, 7u, 1.0); } @@ -2843,7 +2843,7 @@ fn frag_main_inner() -> Output { return Output(0.5, 7u, 1.0); } -@stage(fragment) +@fragment fn frag_main() -> tint_symbol { let inner_result = frag_main_inner(); var wrapper_result : tint_symbol; @@ -2863,7 +2863,7 @@ fn frag_main() -> tint_symbol { TEST_F(CanonicalizeEntryPointIOTest, FixedSampleMask_StructWithAuthoredMask_OutOfOrder) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main() -> Output { return Output(0.5, 7u, 1.0); } @@ -2889,7 +2889,7 @@ fn frag_main_inner() -> Output { return Output(0.5, 7u, 1.0); } -@stage(fragment) +@fragment fn frag_main() -> tint_symbol { let inner_result = frag_main_inner(); var wrapper_result : tint_symbol; @@ -2920,7 +2920,7 @@ struct Output { @location(0) value : f32, }; -@stage(fragment) +@fragment fn frag_main() -> Output { return Output(0.5, 1.0); } @@ -2945,7 +2945,7 @@ fn frag_main_inner() -> Output { return Output(0.5, 1.0); } -@stage(fragment) +@fragment fn frag_main() -> tint_symbol { let inner_result = frag_main_inner(); var wrapper_result : tint_symbol; @@ -2965,7 +2965,7 @@ fn frag_main() -> tint_symbol { TEST_F(CanonicalizeEntryPointIOTest, FixedSampleMask_StructWithoutAuthoredMask_OutOfOrder) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main() -> Output { return Output(0.5, 1.0); } @@ -2990,7 +2990,7 @@ fn frag_main_inner() -> Output { return Output(0.5, 1.0); } -@stage(fragment) +@fragment fn frag_main() -> tint_symbol { let inner_result = frag_main_inner(); var wrapper_result : tint_symbol; @@ -3015,22 +3015,22 @@ struct Output { TEST_F(CanonicalizeEntryPointIOTest, FixedSampleMask_MultipleShaders) { auto* src = R"( -@stage(fragment) +@fragment fn frag_main1() -> @builtin(sample_mask) u32 { return 7u; } -@stage(fragment) +@fragment fn frag_main2() -> @location(0) f32 { return 1.0; } -@stage(vertex) +@vertex fn vert_main1() -> @builtin(position) vec4 { return vec4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main1() { } )"; @@ -3045,7 +3045,7 @@ fn frag_main1_inner() -> u32 { return 7u; } -@stage(fragment) +@fragment fn frag_main1() -> tint_symbol { let inner_result = frag_main1_inner(); var wrapper_result : tint_symbol; @@ -3064,7 +3064,7 @@ fn frag_main2_inner() -> f32 { return 1.0; } -@stage(fragment) +@fragment fn frag_main2() -> tint_symbol_1 { let inner_result_1 = frag_main2_inner(); var wrapper_result_1 : tint_symbol_1; @@ -3082,7 +3082,7 @@ fn vert_main1_inner() -> vec4 { return vec4(); } -@stage(vertex) +@vertex fn vert_main1() -> tint_symbol_2 { let inner_result_2 = vert_main1_inner(); var wrapper_result_2 : tint_symbol_2; @@ -3090,7 +3090,7 @@ fn vert_main1() -> tint_symbol_2 { return wrapper_result_2; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main1() { } )"; @@ -3109,7 +3109,7 @@ struct FragOut { @location(1) fixed_sample_mask_1 : vec4, }; -@stage(fragment) +@fragment fn frag_main() -> FragOut { return FragOut(); } @@ -3134,7 +3134,7 @@ fn frag_main_inner() -> FragOut { return FragOut(); } -@stage(fragment) +@fragment fn frag_main() -> tint_symbol { let inner_result = frag_main_inner(); var wrapper_result : tint_symbol; @@ -3154,7 +3154,7 @@ fn frag_main() -> tint_symbol { TEST_F(CanonicalizeEntryPointIOTest, EmitVertexPointSize_ReturnNonStruct_Spirv) { auto* src = R"( -@stage(vertex) +@vertex fn vert_main() -> @builtin(position) vec4 { return vec4(); } @@ -3169,7 +3169,7 @@ fn vert_main_inner() -> vec4 { return vec4(); } -@stage(vertex) +@vertex fn vert_main() { let inner_result = vert_main_inner(); value = inner_result; @@ -3187,7 +3187,7 @@ fn vert_main() { TEST_F(CanonicalizeEntryPointIOTest, EmitVertexPointSize_ReturnNonStruct_Msl) { auto* src = R"( -@stage(vertex) +@vertex fn vert_main() -> @builtin(position) vec4 { return vec4(); } @@ -3205,7 +3205,7 @@ fn vert_main_inner() -> vec4 { return vec4(); } -@stage(vertex) +@vertex fn vert_main() -> tint_symbol { let inner_result = vert_main_inner(); var wrapper_result : tint_symbol; @@ -3229,7 +3229,7 @@ struct VertOut { @builtin(position) pos : vec4, }; -@stage(vertex) +@vertex fn vert_main() -> VertOut { return VertOut(); } @@ -3248,7 +3248,7 @@ fn vert_main_inner() -> VertOut { return VertOut(); } -@stage(vertex) +@vertex fn vert_main() { let inner_result = vert_main_inner(); pos_1 = inner_result.pos; @@ -3266,7 +3266,7 @@ fn vert_main() { TEST_F(CanonicalizeEntryPointIOTest, EmitVertexPointSize_ReturnStruct_Spirv_OutOfOrder) { auto* src = R"( -@stage(vertex) +@vertex fn vert_main() -> VertOut { return VertOut(); } @@ -3285,7 +3285,7 @@ fn vert_main_inner() -> VertOut { return VertOut(); } -@stage(vertex) +@vertex fn vert_main() { let inner_result = vert_main_inner(); pos_1 = inner_result.pos; @@ -3311,7 +3311,7 @@ struct VertOut { @builtin(position) pos : vec4, }; -@stage(vertex) +@vertex fn vert_main() -> VertOut { return VertOut(); } @@ -3333,7 +3333,7 @@ fn vert_main_inner() -> VertOut { return VertOut(); } -@stage(vertex) +@vertex fn vert_main() -> tint_symbol { let inner_result = vert_main_inner(); var wrapper_result : tint_symbol; @@ -3353,7 +3353,7 @@ fn vert_main() -> tint_symbol { TEST_F(CanonicalizeEntryPointIOTest, EmitVertexPointSize_ReturnStruct_Msl_OutOfOrder) { auto* src = R"( -@stage(vertex) +@vertex fn vert_main() -> VertOut { return VertOut(); } @@ -3375,7 +3375,7 @@ fn vert_main_inner() -> VertOut { return VertOut(); } -@stage(vertex) +@vertex fn vert_main() -> tint_symbol { let inner_result = vert_main_inner(); var wrapper_result : tint_symbol; @@ -3416,7 +3416,7 @@ struct VertOut { @builtin(position) vertex_point_size_1 : vec4, }; -@stage(vertex) +@vertex fn vert_main(collide : VertIn1, collide_1 : VertIn2) -> VertOut { let x = collide.collide + collide_1.collide; return VertOut(); @@ -3458,7 +3458,7 @@ fn vert_main_inner(collide : VertIn1, collide_1 : VertIn2) -> VertOut { return VertOut(); } -@stage(vertex) +@vertex fn vert_main() { let inner_result = vert_main_inner(VertIn1(collide_2), VertIn2(collide_3)); vertex_point_size_3 = inner_result.vertex_point_size; @@ -3477,7 +3477,7 @@ fn vert_main() { TEST_F(CanonicalizeEntryPointIOTest, EmitVertexPointSize_AvoidNameClash_Spirv_OutOfOrder) { auto* src = R"( -@stage(vertex) +@vertex fn vert_main(collide : VertIn1, collide_1 : VertIn2) -> VertOut { let x = collide.collide + collide_1.collide; return VertOut(); @@ -3517,7 +3517,7 @@ fn vert_main_inner(collide : VertIn1, collide_1 : VertIn2) -> VertOut { return VertOut(); } -@stage(vertex) +@vertex fn vert_main() { let inner_result = vert_main_inner(VertIn1(collide_2), VertIn2(collide_3)); vertex_point_size_3 = inner_result.vertex_point_size; @@ -3568,7 +3568,7 @@ struct VertOut { @builtin(position) vertex_point_size_1 : vec4, }; -@stage(vertex) +@vertex fn vert_main(collide : VertIn1, collide_1 : VertIn2) -> VertOut { let x = collide.collide + collide_1.collide; return VertOut(); @@ -3610,7 +3610,7 @@ fn vert_main_inner(collide : VertIn1, collide_1 : VertIn2) -> VertOut { return VertOut(); } -@stage(vertex) +@vertex fn vert_main(tint_symbol : tint_symbol_1) -> tint_symbol_2 { let inner_result = vert_main_inner(VertIn1(tint_symbol.collide), VertIn2(tint_symbol.collide_2)); var wrapper_result : tint_symbol_2; @@ -3631,7 +3631,7 @@ fn vert_main(tint_symbol : tint_symbol_1) -> tint_symbol_2 { TEST_F(CanonicalizeEntryPointIOTest, EmitVertexPointSize_AvoidNameClash_Msl_OutOfOrder) { auto* src = R"( -@stage(vertex) +@vertex fn vert_main(collide : VertIn1, collide_1 : VertIn2) -> VertOut { let x = collide.collide + collide_1.collide; return VertOut(); @@ -3673,7 +3673,7 @@ fn vert_main_inner(collide : VertIn1, collide_1 : VertIn2) -> VertOut { return VertOut(); } -@stage(vertex) +@vertex fn vert_main(tint_symbol : tint_symbol_1) -> tint_symbol_2 { let inner_result = vert_main_inner(VertIn1(tint_symbol.collide), VertIn2(tint_symbol.collide_2)); var wrapper_result : tint_symbol_2; @@ -3720,7 +3720,7 @@ struct VertOut { @builtin(position) vertex_point_size_1 : vec4, }; -@stage(vertex) +@vertex fn vert_main(collide : VertIn1, collide_1 : VertIn2) -> VertOut { let x = collide.collide + collide_1.collide; return VertOut(); @@ -3762,7 +3762,7 @@ fn vert_main_inner(collide : VertIn1, collide_1 : VertIn2) -> VertOut { return VertOut(); } -@stage(vertex) +@vertex fn vert_main(tint_symbol : tint_symbol_1) -> tint_symbol_2 { let inner_result = vert_main_inner(VertIn1(tint_symbol.collide), VertIn2(tint_symbol.collide_2)); var wrapper_result : tint_symbol_2; @@ -3783,7 +3783,7 @@ fn vert_main(tint_symbol : tint_symbol_1) -> tint_symbol_2 { TEST_F(CanonicalizeEntryPointIOTest, EmitVertexPointSize_AvoidNameClash_Hlsl_OutOfOrder) { auto* src = R"( -@stage(vertex) +@vertex fn vert_main(collide : VertIn1, collide_1 : VertIn2) -> VertOut { let x = collide.collide + collide_1.collide; return VertOut(); @@ -3825,7 +3825,7 @@ fn vert_main_inner(collide : VertIn1, collide_1 : VertIn2) -> VertOut { return VertOut(); } -@stage(vertex) +@vertex fn vert_main(tint_symbol : tint_symbol_1) -> tint_symbol_2 { let inner_result = vert_main_inner(VertIn1(tint_symbol.collide), VertIn2(tint_symbol.collide_2)); var wrapper_result : tint_symbol_2; @@ -3859,7 +3859,7 @@ struct VertOut { TEST_F(CanonicalizeEntryPointIOTest, SpirvSampleMaskBuiltins) { auto* src = R"( -@stage(fragment) +@fragment fn main(@builtin(sample_index) sample_index : u32, @builtin(sample_mask) mask_in : u32 ) -> @builtin(sample_mask) u32 { @@ -3878,7 +3878,7 @@ fn main_inner(sample_index : u32, mask_in : u32) -> u32 { return mask_in; } -@stage(fragment) +@fragment fn main() { let inner_result = main_inner(sample_index_1, mask_in_1[0i]); value[0i] = inner_result; @@ -3894,7 +3894,7 @@ fn main() { TEST_F(CanonicalizeEntryPointIOTest, GLSLSampleMaskBuiltins) { auto* src = R"( -@stage(fragment) +@fragment fn fragment_main(@builtin(sample_index) sample_index : u32, @builtin(sample_mask) mask_in : u32 ) -> @builtin(sample_mask) u32 { @@ -3913,7 +3913,7 @@ fn fragment_main(sample_index : u32, mask_in : u32) -> u32 { return mask_in; } -@stage(fragment) +@fragment fn main() { let inner_result = fragment_main(bitcast(gl_SampleID), bitcast(gl_SampleMaskIn[0i])); gl_SampleMask[0i] = bitcast(inner_result); @@ -3929,7 +3929,7 @@ fn main() { TEST_F(CanonicalizeEntryPointIOTest, GLSLVertexInstanceIndexBuiltins) { auto* src = R"( -@stage(vertex) +@vertex fn vertex_main(@builtin(vertex_index) vertexID : u32, @builtin(instance_index) instanceID : u32 ) -> @builtin(position) vec4 { @@ -3948,7 +3948,7 @@ fn vertex_main(vertexID : u32, instanceID : u32) -> vec4 { return vec4((f32(vertexID) + f32(instanceID))); } -@stage(vertex) +@vertex fn main() { let inner_result = vertex_main(bitcast(gl_VertexID), bitcast(gl_InstanceID)); gl_Position = inner_result; diff --git a/src/tint/transform/decompose_memory_access_test.cc b/src/tint/transform/decompose_memory_access_test.cc index 19f8b2e690..4b96bcbb42 100644 --- a/src/tint/transform/decompose_memory_access_test.cc +++ b/src/tint/transform/decompose_memory_access_test.cc @@ -78,7 +78,7 @@ struct SB { @group(0) @binding(0) var sb : SB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var a : i32 = sb.a; var b : u32 = sb.b; @@ -213,7 +213,7 @@ fn tint_symbol_21(@internal(disable_validation__ignore_constructible_function_pa return arr; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var a : i32 = tint_symbol(sb, 0u); var b : u32 = tint_symbol_1(sb, 4u); @@ -247,7 +247,7 @@ fn main() { TEST_F(DecomposeMemoryAccessTest, SB_BasicLoad_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var a : i32 = sb.a; var b : u32 = sb.b; @@ -382,7 +382,7 @@ fn tint_symbol_21(@internal(disable_validation__ignore_constructible_function_pa return arr; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var a : i32 = tint_symbol(sb, 0u); var b : u32 = tint_symbol_1(sb, 4u); @@ -470,7 +470,7 @@ struct UB { @group(0) @binding(0) var ub : UB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var a : i32 = ub.a; var b : u32 = ub.b; @@ -605,7 +605,7 @@ fn tint_symbol_21(@internal(disable_validation__ignore_constructible_function_pa return arr; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var a : i32 = tint_symbol(ub, 0u); var b : u32 = tint_symbol_1(ub, 4u); @@ -639,7 +639,7 @@ fn main() { TEST_F(DecomposeMemoryAccessTest, UB_BasicLoad_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var a : i32 = ub.a; var b : u32 = ub.b; @@ -774,7 +774,7 @@ fn tint_symbol_21(@internal(disable_validation__ignore_constructible_function_pa return arr; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var a : i32 = tint_symbol(ub, 0u); var b : u32 = tint_symbol_1(ub, 4u); @@ -862,7 +862,7 @@ struct SB { @group(0) @binding(0) var sb : SB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { sb.a = i32(); sb.b = u32(); @@ -1014,7 +1014,7 @@ fn tint_symbol_21(@internal(disable_validation__ignore_constructible_function_pa } } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { tint_symbol(sb, 0u, i32()); tint_symbol_1(sb, 4u, u32()); @@ -1048,7 +1048,7 @@ fn main() { TEST_F(DecomposeMemoryAccessTest, SB_BasicStore_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { sb.a = i32(); sb.b = u32(); @@ -1200,7 +1200,7 @@ fn tint_symbol_21(@internal(disable_validation__ignore_constructible_function_pa } } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { tint_symbol(sb, 0u, i32()); tint_symbol_1(sb, 4u, u32()); @@ -1288,7 +1288,7 @@ struct SB { @group(0) @binding(0) var sb : SB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var x : SB = sb; } @@ -1406,7 +1406,7 @@ fn tint_symbol(@internal(disable_validation__ignore_constructible_function_param return SB(tint_symbol_1(buffer, (offset + 0u)), tint_symbol_2(buffer, (offset + 4u)), tint_symbol_3(buffer, (offset + 8u)), tint_symbol_4(buffer, (offset + 16u)), tint_symbol_5(buffer, (offset + 24u)), tint_symbol_6(buffer, (offset + 32u)), tint_symbol_7(buffer, (offset + 48u)), tint_symbol_8(buffer, (offset + 64u)), tint_symbol_9(buffer, (offset + 80u)), tint_symbol_10(buffer, (offset + 96u)), tint_symbol_11(buffer, (offset + 112u)), tint_symbol_12(buffer, (offset + 128u)), tint_symbol_13(buffer, (offset + 144u)), tint_symbol_14(buffer, (offset + 160u)), tint_symbol_15(buffer, (offset + 192u)), tint_symbol_16(buffer, (offset + 224u)), tint_symbol_17(buffer, (offset + 256u)), tint_symbol_18(buffer, (offset + 304u)), tint_symbol_19(buffer, (offset + 352u)), tint_symbol_20(buffer, (offset + 384u)), tint_symbol_21(buffer, (offset + 448u)), tint_symbol_22(buffer, (offset + 512u))); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var x : SB = tint_symbol(sb, 0u); } @@ -1419,7 +1419,7 @@ fn main() { TEST_F(DecomposeMemoryAccessTest, LoadStructure_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var x : SB = sb; } @@ -1537,7 +1537,7 @@ fn tint_symbol(@internal(disable_validation__ignore_constructible_function_param return SB(tint_symbol_1(buffer, (offset + 0u)), tint_symbol_2(buffer, (offset + 4u)), tint_symbol_3(buffer, (offset + 8u)), tint_symbol_4(buffer, (offset + 16u)), tint_symbol_5(buffer, (offset + 24u)), tint_symbol_6(buffer, (offset + 32u)), tint_symbol_7(buffer, (offset + 48u)), tint_symbol_8(buffer, (offset + 64u)), tint_symbol_9(buffer, (offset + 80u)), tint_symbol_10(buffer, (offset + 96u)), tint_symbol_11(buffer, (offset + 112u)), tint_symbol_12(buffer, (offset + 128u)), tint_symbol_13(buffer, (offset + 144u)), tint_symbol_14(buffer, (offset + 160u)), tint_symbol_15(buffer, (offset + 192u)), tint_symbol_16(buffer, (offset + 224u)), tint_symbol_17(buffer, (offset + 256u)), tint_symbol_18(buffer, (offset + 304u)), tint_symbol_19(buffer, (offset + 352u)), tint_symbol_20(buffer, (offset + 384u)), tint_symbol_21(buffer, (offset + 448u)), tint_symbol_22(buffer, (offset + 512u))); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var x : SB = tint_symbol(sb, 0u); } @@ -1604,7 +1604,7 @@ struct SB { @group(0) @binding(0) var sb : SB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { sb = SB(); } @@ -1760,7 +1760,7 @@ fn tint_symbol(@internal(disable_validation__ignore_constructible_function_param tint_symbol_22(buffer, (offset + 512u), value.v); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { tint_symbol(sb, 0u, SB()); } @@ -1773,7 +1773,7 @@ fn main() { TEST_F(DecomposeMemoryAccessTest, StoreStructure_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { sb = SB(); } @@ -1929,7 +1929,7 @@ fn tint_symbol(@internal(disable_validation__ignore_constructible_function_param tint_symbol_22(buffer, (offset + 512u), value.v); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { tint_symbol(sb, 0u, SB()); } @@ -1993,7 +1993,7 @@ struct SB { @group(0) @binding(0) var sb : SB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var x : f32 = sb.b[4].b[1].b.z; } @@ -2030,7 +2030,7 @@ struct SB { @internal(intrinsic_load_storage_f32) @internal(disable_validation__function_has_no_body) fn tint_symbol(@internal(disable_validation__ignore_constructible_function_parameter) buffer : SB, offset : u32) -> f32 -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var x : f32 = tint_symbol(sb, 712u); } @@ -2043,7 +2043,7 @@ fn main() { TEST_F(DecomposeMemoryAccessTest, ComplexStaticAccessChain_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var x : f32 = sb.b[4].b[1].b.z; } @@ -2080,7 +2080,7 @@ struct S1 { @internal(intrinsic_load_storage_f32) @internal(disable_validation__function_has_no_body) fn tint_symbol(@internal(disable_validation__ignore_constructible_function_parameter) buffer : SB, offset : u32) -> f32 -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var x : f32 = tint_symbol(sb, 712u); } @@ -2133,7 +2133,7 @@ struct SB { @group(0) @binding(0) var sb : SB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var i : i32 = 4; var j : u32 = 1u; @@ -2166,7 +2166,7 @@ struct SB { @internal(intrinsic_load_storage_f32) @internal(disable_validation__function_has_no_body) fn tint_symbol(@internal(disable_validation__ignore_constructible_function_parameter) buffer : SB, offset : u32) -> f32 -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var i : i32 = 4; var j : u32 = 1u; @@ -2182,7 +2182,7 @@ fn main() { TEST_F(DecomposeMemoryAccessTest, ComplexDynamicAccessChain_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var i : i32 = 4; var j : u32 = 1u; @@ -2215,7 +2215,7 @@ struct S1 { @internal(intrinsic_load_storage_f32) @internal(disable_validation__function_has_no_body) fn tint_symbol(@internal(disable_validation__ignore_constructible_function_parameter) buffer : SB, offset : u32) -> f32 -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var i : i32 = 4; var j : u32 = 1u; @@ -2279,7 +2279,7 @@ struct SB { @group(0) @binding(0) var sb : SB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var i : i32 = 4; var j : u32 = 1u; @@ -2320,7 +2320,7 @@ struct SB { @internal(intrinsic_load_storage_f32) @internal(disable_validation__function_has_no_body) fn tint_symbol(@internal(disable_validation__ignore_constructible_function_parameter) buffer : SB, offset : u32) -> f32 -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var i : i32 = 4; var j : u32 = 1u; @@ -2336,7 +2336,7 @@ fn main() { TEST_F(DecomposeMemoryAccessTest, ComplexDynamicAccessChainWithAliases_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var i : i32 = 4; var j : u32 = 1u; @@ -2377,7 +2377,7 @@ struct S1 { @internal(intrinsic_load_storage_f32) @internal(disable_validation__function_has_no_body) fn tint_symbol(@internal(disable_validation__ignore_constructible_function_parameter) buffer : SB, offset : u32) -> f32 -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var i : i32 = 4; var j : u32 = 1u; @@ -2429,7 +2429,7 @@ struct SB { @group(0) @binding(0) var sb : SB; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { atomicStore(&sb.a, 123); atomicLoad(&sb.a); @@ -2542,7 +2542,7 @@ struct atomic_compare_exchange_weak_ret_type_1 { @internal(intrinsic_atomic_compare_exchange_weak_storage_u32) @internal(disable_validation__function_has_no_body) fn tint_atomicCompareExchangeWeak_1(@internal(disable_validation__ignore_constructible_function_parameter) buffer : SB, offset : u32, param_1 : u32, param_2 : u32) -> atomic_compare_exchange_weak_ret_type_1 -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { tint_atomicStore(sb, 16u, 123); tint_atomicLoad(sb, 16u); @@ -2576,7 +2576,7 @@ fn main() { TEST_F(DecomposeMemoryAccessTest, StorageBufferAtomics_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { atomicStore(&sb.a, 123); atomicLoad(&sb.a); @@ -2689,7 +2689,7 @@ struct atomic_compare_exchange_weak_ret_type_1 { @internal(intrinsic_atomic_compare_exchange_weak_storage_u32) @internal(disable_validation__function_has_no_body) fn tint_atomicCompareExchangeWeak_1(@internal(disable_validation__ignore_constructible_function_parameter) buffer : SB, offset : u32, param_1 : u32, param_2 : u32) -> atomic_compare_exchange_weak_ret_type_1 -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { tint_atomicStore(sb, 16u, 123); tint_atomicLoad(sb, 16u); @@ -2739,7 +2739,7 @@ struct S { var w : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { atomicStore(&(w.a), 123); atomicLoad(&(w.a)); @@ -2775,7 +2775,7 @@ fn main() { TEST_F(DecomposeMemoryAccessTest, WorkgroupBufferAtomics_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { atomicStore(&(w.a), 123); atomicLoad(&(w.a)); diff --git a/src/tint/transform/decompose_strided_array_test.cc b/src/tint/transform/decompose_strided_array_test.cc index e911df34f8..ffc66956e1 100644 --- a/src/tint/transform/decompose_strided_array_test.cc +++ b/src/tint/transform/decompose_strided_array_test.cc @@ -71,7 +71,7 @@ TEST_F(DecomposeStridedArrayTest, Empty) { TEST_F(DecomposeStridedArrayTest, PrivateDefaultStridedArray) { // var arr : @stride(4) array // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn f() { // let a : @stride(4) array = a; // let b : f32 = arr[1]; @@ -92,7 +92,7 @@ TEST_F(DecomposeStridedArrayTest, PrivateDefaultStridedArray) { auto* expect = R"( var arr : array; -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn f() { let a : array = arr; let b : f32 = arr[1i]; @@ -107,7 +107,7 @@ fn f() { TEST_F(DecomposeStridedArrayTest, PrivateStridedArray) { // var arr : @stride(32) array // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn f() { // let a : @stride(32) array = a; // let b : f32 = arr[1]; @@ -133,7 +133,7 @@ struct strided_arr { var arr : array; -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn f() { let a : array = arr; let b : f32 = arr[1i].el; @@ -151,7 +151,7 @@ TEST_F(DecomposeStridedArrayTest, ReadUniformStridedArray) { // }; // @group(0) @binding(0) var s : S; // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn f() { // let a : @stride(32) array = s.a; // let b : f32 = s.a[1]; @@ -181,7 +181,7 @@ struct S { @group(0) @binding(0) var s : S; -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn f() { let a : array = s.a; let b : f32 = s.a[1i].el; @@ -199,7 +199,7 @@ TEST_F(DecomposeStridedArrayTest, ReadUniformDefaultStridedArray) { // }; // @group(0) @binding(0) var s : S; // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn f() { // let a : @stride(16) array, 4u> = s.a; // let b : f32 = s.a[1][2]; @@ -227,7 +227,7 @@ struct S { @group(0) @binding(0) var s : S; -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn f() { let a : array, 4u> = s.a; let b : f32 = s.a[1i][2i]; @@ -245,7 +245,7 @@ TEST_F(DecomposeStridedArrayTest, ReadStorageStridedArray) { // }; // @group(0) @binding(0) var s : S; // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn f() { // let a : @stride(32) array = s.a; // let b : f32 = s.a[1]; @@ -275,7 +275,7 @@ struct S { @group(0) @binding(0) var s : S; -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn f() { let a : array = s.a; let b : f32 = s.a[1i].el; @@ -293,7 +293,7 @@ TEST_F(DecomposeStridedArrayTest, ReadStorageDefaultStridedArray) { // }; // @group(0) @binding(0) var s : S; // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn f() { // let a : @stride(4) array = s.a; // let b : f32 = s.a[1]; @@ -318,7 +318,7 @@ struct S { @group(0) @binding(0) var s : S; -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn f() { let a : array = s.a; let b : f32 = s.a[1i]; @@ -336,7 +336,7 @@ TEST_F(DecomposeStridedArrayTest, WriteStorageStridedArray) { // }; // @group(0) @binding(0) var s : S; // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn f() { // s.a = @stride(32) array(); // s.a = @stride(32) array(1.0, 2.0, 3.0, 4.0); @@ -371,7 +371,7 @@ struct S { @group(0) @binding(0) var s : S; -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn f() { s.a = array(); s.a = array(strided_arr(1.0f), strided_arr(2.0f), strided_arr(3.0f), strided_arr(4.0f)); @@ -390,7 +390,7 @@ TEST_F(DecomposeStridedArrayTest, WriteStorageDefaultStridedArray) { // }; // @group(0) @binding(0) var s : S; // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn f() { // s.a = @stride(4) array(); // s.a = @stride(4) array(1.0, 2.0, 3.0, 4.0); @@ -420,7 +420,7 @@ struct S { @group(0) @binding(0) var s : S; -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn f() { s.a = array(); s.a = array(1.0f, 2.0f, 3.0f, 4.0f); @@ -439,7 +439,7 @@ TEST_F(DecomposeStridedArrayTest, ReadWriteViaPointerLets) { // }; // @group(0) @binding(0) var s : S; // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn f() { // let a = &s.a; // let b = &*&*(a); @@ -479,7 +479,7 @@ struct S { @group(0) @binding(0) var s : S; -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn f() { let c = s.a; let d = s.a[1i].el; @@ -500,7 +500,7 @@ TEST_F(DecomposeStridedArrayTest, PrivateAliasedStridedArray) { // }; // @group(0) @binding(0) var s : S; // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn f() { // let a : ARR = s.a; // let b : f32 = s.a[1]; @@ -541,7 +541,7 @@ struct S { @group(0) @binding(0) var s : S; -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn f() { let a : ARR = s.a; let b : f32 = s.a[1i].el; @@ -564,7 +564,7 @@ TEST_F(DecomposeStridedArrayTest, PrivateNestedStridedArray) { // }; // @group(0) @binding(0) var s : S; // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn f() { // let a : ARR_B = s.a; // let b : array<@stride(8) array, 3u> = s.a[3]; @@ -641,7 +641,7 @@ struct S { @group(0) @binding(0) var s : S; -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn f() { let a : ARR_B = s.a; let b : array = s.a[3i].el; diff --git a/src/tint/transform/decompose_strided_matrix_test.cc b/src/tint/transform/decompose_strided_matrix_test.cc index 2367cf1873..06169d763d 100644 --- a/src/tint/transform/decompose_strided_matrix_test.cc +++ b/src/tint/transform/decompose_strided_matrix_test.cc @@ -62,7 +62,7 @@ TEST_F(DecomposeStridedMatrixTest, ReadUniformMatrix) { // }; // @group(0) @binding(0) var s : S; // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn f() { // let x : mat2x2 = s.m; // } @@ -99,7 +99,7 @@ fn arr_to_mat2x2_stride_32(arr : @stride(32) array, 2u>) -> mat2x2(arr[0u], arr[1u]); } -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn f() { let x : mat2x2 = arr_to_mat2x2_stride_32(s.m); } @@ -118,7 +118,7 @@ TEST_F(DecomposeStridedMatrixTest, ReadUniformColumn) { // }; // @group(0) @binding(0) var s : S; // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn f() { // let x : vec2 = s.m[1]; // } @@ -152,7 +152,7 @@ struct S { @group(0) @binding(0) var s : S; -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn f() { let x : vec2 = s.m[1i]; } @@ -171,7 +171,7 @@ TEST_F(DecomposeStridedMatrixTest, ReadUniformMatrix_DefaultStride) { // }; // @group(0) @binding(0) var s : S; // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn f() { // let x : mat2x2 = s.m; // } @@ -205,7 +205,7 @@ struct S { @group(0) @binding(0) var s : S; -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn f() { let x : mat2x2 = s.m; } @@ -224,7 +224,7 @@ TEST_F(DecomposeStridedMatrixTest, ReadStorageMatrix) { // }; // @group(0) @binding(0) var s : S; // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn f() { // let x : mat2x2 = s.m; // } @@ -262,7 +262,7 @@ fn arr_to_mat2x2_stride_32(arr : @stride(32) array, 2u>) -> mat2x2(arr[0u], arr[1u]); } -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn f() { let x : mat2x2 = arr_to_mat2x2_stride_32(s.m); } @@ -281,7 +281,7 @@ TEST_F(DecomposeStridedMatrixTest, ReadStorageColumn) { // }; // @group(0) @binding(0) var s : S; // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn f() { // let x : vec2 = s.m[1]; // } @@ -316,7 +316,7 @@ struct S { @group(0) @binding(0) var s : S; -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn f() { let x : vec2 = s.m[1i]; } @@ -335,7 +335,7 @@ TEST_F(DecomposeStridedMatrixTest, WriteStorageMatrix) { // }; // @group(0) @binding(0) var s : S; // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn f() { // s.m = mat2x2(vec2(1.0, 2.0), vec2(3.0, 4.0)); // } @@ -374,7 +374,7 @@ fn mat2x2_stride_32_to_arr(m : mat2x2) -> @stride(32) array, 2u> return @stride(32) array, 2u>(m[0u], m[1u]); } -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn f() { s.m = mat2x2_stride_32_to_arr(mat2x2(vec2(1.0f, 2.0f), vec2(3.0f, 4.0f))); } @@ -393,7 +393,7 @@ TEST_F(DecomposeStridedMatrixTest, WriteStorageColumn) { // }; // @group(0) @binding(0) var s : S; // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn f() { // s.m[1] = vec2(1.0, 2.0); // } @@ -427,7 +427,7 @@ struct S { @group(0) @binding(0) var s : S; -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn f() { s.m[1i] = vec2(1.0f, 2.0f); } @@ -446,7 +446,7 @@ TEST_F(DecomposeStridedMatrixTest, ReadWriteViaPointerLets) { // }; // @group(0) @binding(0) var s : S; // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn f() { // let a = &s.m; // let b = &*&*(a); @@ -500,7 +500,7 @@ fn mat2x2_stride_32_to_arr(m : mat2x2) -> @stride(32) array, 2u> return @stride(32) array, 2u>(m[0u], m[1u]); } -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn f() { let x = arr_to_mat2x2_stride_32(s.m); let y = s.m[1i]; @@ -523,7 +523,7 @@ TEST_F(DecomposeStridedMatrixTest, ReadPrivateMatrix) { // }; // var s : S; // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn f() { // let x : mat2x2 = s.m; // } @@ -557,7 +557,7 @@ struct S { var s : S; -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn f() { let x : mat2x2 = s.m; } @@ -576,7 +576,7 @@ TEST_F(DecomposeStridedMatrixTest, WritePrivateMatrix) { // }; // var s : S; // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn f() { // s.m = mat2x2(vec2(1.0, 2.0), vec2(3.0, 4.0)); // } @@ -611,7 +611,7 @@ struct S { var s : S; -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn f() { s.m = mat2x2(vec2(1.0f, 2.0f), vec2(3.0f, 4.0f)); } diff --git a/src/tint/transform/disable_uniformity_analysis_test.cc b/src/tint/transform/disable_uniformity_analysis_test.cc index a502442f5c..3bcac0e58d 100644 --- a/src/tint/transform/disable_uniformity_analysis_test.cc +++ b/src/tint/transform/disable_uniformity_analysis_test.cc @@ -54,7 +54,7 @@ TEST_F(DisableUniformityAnalysisTest, NonEmptyModule) { auto* src = R"( @group(0) @binding(0) var global : i32; -@stage(compute) @workgroup_size(64) +@compute @workgroup_size(64) fn main() { if ((global == 42)) { workgroupBarrier(); diff --git a/src/tint/transform/first_index_offset_test.cc b/src/tint/transform/first_index_offset_test.cc index a467c1784a..c159261aa8 100644 --- a/src/tint/transform/first_index_offset_test.cc +++ b/src/tint/transform/first_index_offset_test.cc @@ -33,7 +33,7 @@ TEST_F(FirstIndexOffsetTest, ShouldRunEmptyModule) { TEST_F(FirstIndexOffsetTest, ShouldRunFragmentStage) { auto* src = R"( -@stage(fragment) +@fragment fn entry() { return; } @@ -44,7 +44,7 @@ fn entry() { TEST_F(FirstIndexOffsetTest, ShouldRunVertexStage) { auto* src = R"( -@stage(vertex) +@vertex fn entry() -> @builtin(position) vec4 { return vec4(); } @@ -70,7 +70,7 @@ TEST_F(FirstIndexOffsetTest, EmptyModule) { TEST_F(FirstIndexOffsetTest, BasicVertexShader) { auto* src = R"( -@stage(vertex) +@vertex fn entry() -> @builtin(position) vec4 { return vec4(); } @@ -95,7 +95,7 @@ fn test(vert_idx : u32) -> u32 { return vert_idx; } -@stage(vertex) +@vertex fn entry(@builtin(vertex_index) vert_idx : u32) -> @builtin(position) vec4 { test(vert_idx); return vec4(); @@ -114,7 +114,7 @@ fn test(vert_idx : u32) -> u32 { return vert_idx; } -@stage(vertex) +@vertex fn entry(@builtin(vertex_index) vert_idx : u32) -> @builtin(position) vec4 { test((vert_idx + tint_symbol_1.first_vertex_index)); return vec4(); @@ -135,7 +135,7 @@ fn entry(@builtin(vertex_index) vert_idx : u32) -> @builtin(position) vec4 TEST_F(FirstIndexOffsetTest, BasicModuleVertexIndex_OutOfOrder) { auto* src = R"( -@stage(vertex) +@vertex fn entry(@builtin(vertex_index) vert_idx : u32) -> @builtin(position) vec4 { test(vert_idx); return vec4(); @@ -154,7 +154,7 @@ struct tint_symbol { @binding(1) @group(2) var tint_symbol_1 : tint_symbol; -@stage(vertex) +@vertex fn entry(@builtin(vertex_index) vert_idx : u32) -> @builtin(position) vec4 { test((vert_idx + tint_symbol_1.first_vertex_index)); return vec4(); @@ -183,7 +183,7 @@ fn test(inst_idx : u32) -> u32 { return inst_idx; } -@stage(vertex) +@vertex fn entry(@builtin(instance_index) inst_idx : u32) -> @builtin(position) vec4 { test(inst_idx); return vec4(); @@ -202,7 +202,7 @@ fn test(inst_idx : u32) -> u32 { return inst_idx; } -@stage(vertex) +@vertex fn entry(@builtin(instance_index) inst_idx : u32) -> @builtin(position) vec4 { test((inst_idx + tint_symbol_1.first_instance_index)); return vec4(); @@ -223,7 +223,7 @@ fn entry(@builtin(instance_index) inst_idx : u32) -> @builtin(position) vec4 @builtin(position) vec4 { test(inst_idx); return vec4(); @@ -242,7 +242,7 @@ struct tint_symbol { @binding(1) @group(7) var tint_symbol_1 : tint_symbol; -@stage(vertex) +@vertex fn entry(@builtin(instance_index) inst_idx : u32) -> @builtin(position) vec4 { test((inst_idx + tint_symbol_1.first_instance_index)); return vec4(); @@ -276,7 +276,7 @@ struct Inputs { @builtin(vertex_index) vert_idx : u32, }; -@stage(vertex) +@vertex fn entry(inputs : Inputs) -> @builtin(position) vec4 { test(inputs.instance_idx, inputs.vert_idx); return vec4(); @@ -302,7 +302,7 @@ struct Inputs { vert_idx : u32, } -@stage(vertex) +@vertex fn entry(inputs : Inputs) -> @builtin(position) vec4 { test((inputs.instance_idx + tint_symbol_1.first_instance_index), (inputs.vert_idx + tint_symbol_1.first_vertex_index)); return vec4(); @@ -323,7 +323,7 @@ fn entry(inputs : Inputs) -> @builtin(position) vec4 { TEST_F(FirstIndexOffsetTest, BasicModuleBothIndex_OutOfOrder) { auto* src = R"( -@stage(vertex) +@vertex fn entry(inputs : Inputs) -> @builtin(position) vec4 { test(inputs.instance_idx, inputs.vert_idx); return vec4(); @@ -347,7 +347,7 @@ struct tint_symbol { @binding(1) @group(2) var tint_symbol_1 : tint_symbol; -@stage(vertex) +@vertex fn entry(inputs : Inputs) -> @builtin(position) vec4 { test((inputs.instance_idx + tint_symbol_1.first_instance_index), (inputs.vert_idx + tint_symbol_1.first_vertex_index)); return vec4(); @@ -387,7 +387,7 @@ fn func2(vert_idx : u32) -> u32 { return func1(vert_idx); } -@stage(vertex) +@vertex fn entry(@builtin(vertex_index) vert_idx : u32) -> @builtin(position) vec4 { func2(vert_idx); return vec4(); @@ -410,7 +410,7 @@ fn func2(vert_idx : u32) -> u32 { return func1(vert_idx); } -@stage(vertex) +@vertex fn entry(@builtin(vertex_index) vert_idx : u32) -> @builtin(position) vec4 { func2((vert_idx + tint_symbol_1.first_vertex_index)); return vec4(); @@ -431,7 +431,7 @@ fn entry(@builtin(vertex_index) vert_idx : u32) -> @builtin(position) vec4 TEST_F(FirstIndexOffsetTest, NestedCalls_OutOfOrder) { auto* src = R"( -@stage(vertex) +@vertex fn entry(@builtin(vertex_index) vert_idx : u32) -> @builtin(position) vec4 { func2(vert_idx); return vec4(); @@ -454,7 +454,7 @@ struct tint_symbol { @binding(1) @group(2) var tint_symbol_1 : tint_symbol; -@stage(vertex) +@vertex fn entry(@builtin(vertex_index) vert_idx : u32) -> @builtin(position) vec4 { func2((vert_idx + tint_symbol_1.first_vertex_index)); return vec4(); @@ -487,19 +487,19 @@ fn func(i : u32) -> u32 { return i; } -@stage(vertex) +@vertex fn entry_a(@builtin(vertex_index) vert_idx : u32) -> @builtin(position) vec4 { func(vert_idx); return vec4(); } -@stage(vertex) +@vertex fn entry_b(@builtin(vertex_index) vert_idx : u32, @builtin(instance_index) inst_idx : u32) -> @builtin(position) vec4 { func(vert_idx + inst_idx); return vec4(); } -@stage(vertex) +@vertex fn entry_c(@builtin(instance_index) inst_idx : u32) -> @builtin(position) vec4 { func(inst_idx); return vec4(); @@ -518,19 +518,19 @@ fn func(i : u32) -> u32 { return i; } -@stage(vertex) +@vertex fn entry_a(@builtin(vertex_index) vert_idx : u32) -> @builtin(position) vec4 { func((vert_idx + tint_symbol_1.first_vertex_index)); return vec4(); } -@stage(vertex) +@vertex fn entry_b(@builtin(vertex_index) vert_idx : u32, @builtin(instance_index) inst_idx : u32) -> @builtin(position) vec4 { func(((vert_idx + tint_symbol_1.first_vertex_index) + (inst_idx + tint_symbol_1.first_instance_index))); return vec4(); } -@stage(vertex) +@vertex fn entry_c(@builtin(instance_index) inst_idx : u32) -> @builtin(position) vec4 { func((inst_idx + tint_symbol_1.first_instance_index)); return vec4(); @@ -551,19 +551,19 @@ fn entry_c(@builtin(instance_index) inst_idx : u32) -> @builtin(position) vec4 @builtin(position) vec4 { func(vert_idx); return vec4(); } -@stage(vertex) +@vertex fn entry_b(@builtin(vertex_index) vert_idx : u32, @builtin(instance_index) inst_idx : u32) -> @builtin(position) vec4 { func(vert_idx + inst_idx); return vec4(); } -@stage(vertex) +@vertex fn entry_c(@builtin(instance_index) inst_idx : u32) -> @builtin(position) vec4 { func(inst_idx); return vec4(); @@ -582,19 +582,19 @@ struct tint_symbol { @binding(1) @group(2) var tint_symbol_1 : tint_symbol; -@stage(vertex) +@vertex fn entry_a(@builtin(vertex_index) vert_idx : u32) -> @builtin(position) vec4 { func((vert_idx + tint_symbol_1.first_vertex_index)); return vec4(); } -@stage(vertex) +@vertex fn entry_b(@builtin(vertex_index) vert_idx : u32, @builtin(instance_index) inst_idx : u32) -> @builtin(position) vec4 { func(((vert_idx + tint_symbol_1.first_vertex_index) + (inst_idx + tint_symbol_1.first_instance_index))); return vec4(); } -@stage(vertex) +@vertex fn entry_c(@builtin(instance_index) inst_idx : u32) -> @builtin(position) vec4 { func((inst_idx + tint_symbol_1.first_instance_index)); return vec4(); diff --git a/src/tint/transform/localize_struct_array_assignment_test.cc b/src/tint/transform/localize_struct_array_assignment_test.cc index ee6df9f0d5..e85a600029 100644 --- a/src/tint/transform/localize_struct_array_assignment_test.cc +++ b/src/tint/transform/localize_struct_array_assignment_test.cc @@ -46,7 +46,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; @@ -69,7 +69,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; @@ -88,7 +88,7 @@ fn main() { TEST_F(LocalizeStructArrayAssignmentTest, StructArray_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; @@ -111,7 +111,7 @@ struct Uniforms { )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; @@ -162,7 +162,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; @@ -189,7 +189,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; @@ -208,7 +208,7 @@ fn main() { TEST_F(LocalizeStructArrayAssignmentTest, StructStructArray_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; @@ -235,7 +235,7 @@ struct Uniforms { )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; @@ -287,7 +287,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; @@ -311,7 +311,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; @@ -348,7 +348,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; @@ -375,7 +375,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; @@ -413,7 +413,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s : OuterS; @@ -441,7 +441,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s : OuterS; @@ -488,7 +488,7 @@ fn getNextIndex() -> u32 { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s : OuterS; @@ -523,7 +523,7 @@ fn getNextIndex() -> u32 { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s : OuterS; @@ -545,7 +545,7 @@ fn main() { TEST_F(LocalizeStructArrayAssignmentTest, IndexingWithSideEffectFunc_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s : OuterS; @@ -579,7 +579,7 @@ struct InnerS { )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s : OuterS; @@ -643,7 +643,7 @@ fn f(p : ptr) { (*p).a1[uniforms.i] = v; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var s1 : OuterS; f(&s1); @@ -675,7 +675,7 @@ fn f(p : ptr) { } } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var s1 : OuterS; f(&(s1)); @@ -688,7 +688,7 @@ fn main() { TEST_F(LocalizeStructArrayAssignmentTest, ViaPointerArg_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var s1 : OuterS; f(&s1); @@ -714,7 +714,7 @@ struct Uniforms { )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var s1 : OuterS; f(&(s1)); @@ -769,7 +769,7 @@ fn f(p : ptr, v : InnerS) { *(p) = v; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; @@ -797,7 +797,7 @@ fn f(p : ptr, v : InnerS) { *(p) = v; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; @@ -831,7 +831,7 @@ fn f(i : u32) -> u32 { return (i + 1u); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var s1 : OuterS; var v : vec3; diff --git a/src/tint/transform/module_scope_var_to_entry_point_param_test.cc b/src/tint/transform/module_scope_var_to_entry_point_param_test.cc index 580e6950d7..9e81d318bd 100644 --- a/src/tint/transform/module_scope_var_to_entry_point_param_test.cc +++ b/src/tint/transform/module_scope_var_to_entry_point_param_test.cc @@ -42,14 +42,14 @@ TEST_F(ModuleScopeVarToEntryPointParamTest, Basic) { var p : f32; var w : f32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { w = p; } )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { @internal(disable_validation__ignore_storage_class) var tint_symbol : f32; @internal(disable_validation__ignore_storage_class) var tint_symbol_1 : f32; @@ -64,7 +64,7 @@ fn main() { TEST_F(ModuleScopeVarToEntryPointParamTest, Basic_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { w = p; } @@ -74,7 +74,7 @@ var p : f32; )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { @internal(disable_validation__ignore_storage_class) var tint_symbol : f32; @internal(disable_validation__ignore_storage_class) var tint_symbol_1 : f32; @@ -106,7 +106,7 @@ fn foo(a : f32) { no_uses(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { foo(1.0); } @@ -127,7 +127,7 @@ fn foo(a : f32, @internal(disable_validation__ignore_storage_class) @internal(di no_uses(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { @internal(disable_validation__ignore_storage_class) var tint_symbol_4 : f32; @internal(disable_validation__ignore_storage_class) var tint_symbol_5 : f32; @@ -142,7 +142,7 @@ fn main() { TEST_F(ModuleScopeVarToEntryPointParamTest, FunctionCalls_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { foo(1.0); } @@ -166,7 +166,7 @@ var w : f32; )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { @internal(disable_validation__ignore_storage_class) var tint_symbol : f32; @internal(disable_validation__ignore_storage_class) var tint_symbol_1 : f32; @@ -198,14 +198,14 @@ TEST_F(ModuleScopeVarToEntryPointParamTest, Constructors) { var a : f32 = 1.0; var b : f32 = f32(); -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x : f32 = a + b; } )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { @internal(disable_validation__ignore_storage_class) var tint_symbol : f32 = 1.0; @internal(disable_validation__ignore_storage_class) var tint_symbol_1 : f32 = f32(); @@ -220,7 +220,7 @@ fn main() { TEST_F(ModuleScopeVarToEntryPointParamTest, Constructors_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x : f32 = a + b; } @@ -230,7 +230,7 @@ var a : f32 = 1.0; )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { @internal(disable_validation__ignore_storage_class) var tint_symbol : f32 = 1.0; @internal(disable_validation__ignore_storage_class) var tint_symbol_1 : f32 = f32(); @@ -248,7 +248,7 @@ TEST_F(ModuleScopeVarToEntryPointParamTest, Pointers) { var p : f32; var w : f32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let p_ptr : ptr = &p; let w_ptr : ptr = &w; @@ -258,7 +258,7 @@ fn main() { )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { @internal(disable_validation__ignore_storage_class) var tint_symbol : f32; @internal(disable_validation__ignore_storage_class) var tint_symbol_1 : f32; @@ -276,7 +276,7 @@ fn main() { TEST_F(ModuleScopeVarToEntryPointParamTest, Pointers_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let p_ptr : ptr = &p; let w_ptr : ptr = &w; @@ -289,7 +289,7 @@ var p : f32; )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { @internal(disable_validation__ignore_storage_class) var tint_symbol : f32; @internal(disable_validation__ignore_storage_class) var tint_symbol_1 : f32; @@ -317,7 +317,7 @@ fn foo() { bar(&v); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { foo(); } @@ -332,7 +332,7 @@ fn foo(@internal(disable_validation__ignore_storage_class) @internal(disable_val bar(tint_symbol); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { @internal(disable_validation__ignore_storage_class) var tint_symbol_1 : f32; foo(&(tint_symbol_1)); @@ -346,7 +346,7 @@ fn main() { TEST_F(ModuleScopeVarToEntryPointParamTest, FoldAddressOfDeref_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { foo(); } @@ -363,7 +363,7 @@ var v : f32; )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { @internal(disable_validation__ignore_storage_class) var tint_symbol : f32; foo(&(tint_symbol)); @@ -394,7 +394,7 @@ var u : S; @group(0) @binding(1) var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = u; _ = s; @@ -406,7 +406,7 @@ struct S { a : f32, } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@group(0) @binding(0) @internal(disable_validation__entry_point_parameter) @internal(disable_validation__ignore_storage_class) tint_symbol : ptr, @group(0) @binding(1) @internal(disable_validation__entry_point_parameter) @internal(disable_validation__ignore_storage_class) tint_symbol_1 : ptr) { _ = *(tint_symbol); _ = *(tint_symbol_1); @@ -420,7 +420,7 @@ fn main(@group(0) @binding(0) @internal(disable_validation__entry_point_paramete TEST_F(ModuleScopeVarToEntryPointParamTest, Buffers_Basic_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = u; _ = s; @@ -436,7 +436,7 @@ struct S { )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@group(0) @binding(0) @internal(disable_validation__entry_point_parameter) @internal(disable_validation__ignore_storage_class) tint_symbol : ptr, @group(0) @binding(1) @internal(disable_validation__entry_point_parameter) @internal(disable_validation__ignore_storage_class) tint_symbol_1 : ptr) { _ = *(tint_symbol); _ = *(tint_symbol_1); @@ -457,7 +457,7 @@ TEST_F(ModuleScopeVarToEntryPointParamTest, Buffer_RuntimeArray) { @group(0) @binding(0) var buffer : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = buffer[0]; } @@ -468,7 +468,7 @@ struct tint_symbol_1 { arr : array, } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@group(0) @binding(0) @internal(disable_validation__entry_point_parameter) @internal(disable_validation__ignore_storage_class) tint_symbol : ptr) { _ = (*(tint_symbol)).arr[0]; } @@ -481,7 +481,7 @@ fn main(@group(0) @binding(0) @internal(disable_validation__entry_point_paramete TEST_F(ModuleScopeVarToEntryPointParamTest, Buffer_RuntimeArray_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = buffer[0]; } @@ -495,7 +495,7 @@ struct tint_symbol_1 { arr : array, } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@group(0) @binding(0) @internal(disable_validation__entry_point_parameter) @internal(disable_validation__ignore_storage_class) tint_symbol : ptr) { _ = (*(tint_symbol)).arr[0]; } @@ -515,7 +515,7 @@ fn foo() { _ = buffer[0]; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { foo(); } @@ -530,7 +530,7 @@ fn foo(@internal(disable_validation__ignore_storage_class) @internal(disable_val _ = (*(tint_symbol))[0]; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@group(0) @binding(0) @internal(disable_validation__entry_point_parameter) @internal(disable_validation__ignore_storage_class) tint_symbol_1 : ptr) { foo(&((*(tint_symbol_1)).arr)); } @@ -543,7 +543,7 @@ fn main(@group(0) @binding(0) @internal(disable_validation__entry_point_paramete TEST_F(ModuleScopeVarToEntryPointParamTest, Buffer_RuntimeArrayInsideFunction_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { foo(); } @@ -560,7 +560,7 @@ struct tint_symbol_1 { arr : array, } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@group(0) @binding(0) @internal(disable_validation__entry_point_parameter) @internal(disable_validation__ignore_storage_class) tint_symbol : ptr) { foo(&((*(tint_symbol)).arr)); } @@ -582,7 +582,7 @@ type myarray = array; @group(0) @binding(0) var buffer : myarray; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = buffer[0]; } @@ -595,7 +595,7 @@ struct tint_symbol_1 { type myarray = array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@group(0) @binding(0) @internal(disable_validation__entry_point_parameter) @internal(disable_validation__ignore_storage_class) tint_symbol : ptr) { _ = (*(tint_symbol)).arr[0]; } @@ -608,7 +608,7 @@ fn main(@group(0) @binding(0) @internal(disable_validation__entry_point_paramete TEST_F(ModuleScopeVarToEntryPointParamTest, Buffer_RuntimeArray_Alias_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = buffer[0]; } @@ -623,7 +623,7 @@ struct tint_symbol_1 { arr : array, } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@group(0) @binding(0) @internal(disable_validation__entry_point_parameter) @internal(disable_validation__ignore_storage_class) tint_symbol : ptr) { _ = (*(tint_symbol)).arr[0]; } @@ -645,7 +645,7 @@ struct S { @group(0) @binding(0) var buffer : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = buffer[0]; } @@ -660,7 +660,7 @@ struct tint_symbol_1 { arr : array, } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@group(0) @binding(0) @internal(disable_validation__entry_point_parameter) @internal(disable_validation__ignore_storage_class) tint_symbol : ptr) { _ = (*(tint_symbol)).arr[0]; } @@ -673,7 +673,7 @@ fn main(@group(0) @binding(0) @internal(disable_validation__entry_point_paramete TEST_F(ModuleScopeVarToEntryPointParamTest, Buffer_ArrayOfStruct_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = buffer[0]; } @@ -694,7 +694,7 @@ struct tint_symbol_1 { arr : array, } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@group(0) @binding(0) @internal(disable_validation__entry_point_parameter) @internal(disable_validation__ignore_storage_class) tint_symbol : ptr) { _ = (*(tint_symbol)).arr[0]; } @@ -731,7 +731,7 @@ fn foo(a : f32) { no_uses(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { foo(1.0); } @@ -757,7 +757,7 @@ fn foo(a : f32, @internal(disable_validation__ignore_storage_class) @internal(di no_uses(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@group(0) @binding(0) @internal(disable_validation__entry_point_parameter) @internal(disable_validation__ignore_storage_class) tint_symbol_4 : ptr, @group(0) @binding(1) @internal(disable_validation__entry_point_parameter) @internal(disable_validation__ignore_storage_class) tint_symbol_5 : ptr) { foo(1.0, tint_symbol_4, tint_symbol_5); } @@ -770,7 +770,7 @@ fn main(@group(0) @binding(0) @internal(disable_validation__entry_point_paramete TEST_F(ModuleScopeVarToEntryPointParamTest, Buffers_FunctionCalls_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { foo(1.0); } @@ -801,7 +801,7 @@ var s : S; )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@group(0) @binding(0) @internal(disable_validation__entry_point_parameter) @internal(disable_validation__ignore_storage_class) tint_symbol : ptr, @group(0) @binding(1) @internal(disable_validation__entry_point_parameter) @internal(disable_validation__ignore_storage_class) tint_symbol_1 : ptr) { foo(1.0, tint_symbol, tint_symbol_1); } @@ -836,7 +836,7 @@ TEST_F(ModuleScopeVarToEntryPointParamTest, HandleTypes_Basic) { @group(0) @binding(0) var t : texture_2d; @group(0) @binding(1) var s : sampler; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t; _ = s; @@ -844,7 +844,7 @@ fn main() { )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@group(0) @binding(0) @internal(disable_validation__entry_point_parameter) tint_symbol : texture_2d, @group(0) @binding(1) @internal(disable_validation__entry_point_parameter) tint_symbol_1 : sampler) { _ = tint_symbol; _ = tint_symbol_1; @@ -876,7 +876,7 @@ fn foo(a : f32) { no_uses(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { foo(1.0); } @@ -898,7 +898,7 @@ fn foo(a : f32, tint_symbol_2 : texture_2d, tint_symbol_3 : sampler) { no_uses(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@group(0) @binding(0) @internal(disable_validation__entry_point_parameter) tint_symbol_4 : texture_2d, @group(0) @binding(1) @internal(disable_validation__entry_point_parameter) tint_symbol_5 : sampler) { foo(1.0, tint_symbol_4, tint_symbol_5); } @@ -911,7 +911,7 @@ fn main(@group(0) @binding(0) @internal(disable_validation__entry_point_paramete TEST_F(ModuleScopeVarToEntryPointParamTest, HandleTypes_FunctionCalls_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { foo(1.0); } @@ -936,7 +936,7 @@ fn bar(a : f32, b : f32) { )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@group(0) @binding(0) @internal(disable_validation__entry_point_parameter) tint_symbol : texture_2d, @group(0) @binding(1) @internal(disable_validation__entry_point_parameter) tint_symbol_1 : sampler) { foo(1.0, tint_symbol, tint_symbol_1); } @@ -966,7 +966,7 @@ TEST_F(ModuleScopeVarToEntryPointParamTest, Matrix) { auto* src = R"( var m : mat2x2; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = m; } @@ -977,7 +977,7 @@ struct tint_symbol_2 { m : mat2x2, } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@internal(disable_validation__entry_point_parameter) tint_symbol_1 : ptr) { let tint_symbol : ptr> = &((*(tint_symbol_1)).m); let x = *(tint_symbol); @@ -999,7 +999,7 @@ struct S2 { }; var m : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = m; } @@ -1018,7 +1018,7 @@ struct tint_symbol_2 { m : array, } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@internal(disable_validation__entry_point_parameter) tint_symbol_1 : ptr) { let tint_symbol : ptr> = &((*(tint_symbol_1)).m); let x = *(tint_symbol); @@ -1042,7 +1042,7 @@ var a : S; var b : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = a; let y = b; @@ -1059,7 +1059,7 @@ struct tint_symbol_3 { b : S, } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@internal(disable_validation__entry_point_parameter) tint_symbol_1 : ptr) { let tint_symbol : ptr = &((*(tint_symbol_1)).a); let tint_symbol_2 : ptr = &((*(tint_symbol_1)).b); @@ -1077,7 +1077,7 @@ fn main(@internal(disable_validation__entry_point_parameter) tint_symbol_1 : ptr // variables that are promoted to threadgroup memory arguments. TEST_F(ModuleScopeVarToEntryPointParamTest, DuplicateThreadgroupArgumentTypes_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = a; let y = b; @@ -1101,7 +1101,7 @@ struct tint_symbol_3 { b : S, } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@internal(disable_validation__entry_point_parameter) tint_symbol_1 : ptr) { let tint_symbol : ptr = &((*(tint_symbol_1)).a); let tint_symbol_2 : ptr = &((*(tint_symbol_1)).b); @@ -1132,7 +1132,7 @@ var sb : S; @group(0) @binding(2) var t : texture_2d; @group(0) @binding(3) var s : sampler; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { } )"; @@ -1142,7 +1142,7 @@ struct S { a : f32, } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { } )"; diff --git a/src/tint/transform/multiplanar_external_texture_test.cc b/src/tint/transform/multiplanar_external_texture_test.cc index 39c4602259..63d12f1c21 100644 --- a/src/tint/transform/multiplanar_external_texture_test.cc +++ b/src/tint/transform/multiplanar_external_texture_test.cc @@ -56,7 +56,7 @@ TEST_F(MultiplanarExternalTextureTest, ErrorNoPassedData) { @group(0) @binding(0) var s : sampler; @group(0) @binding(1) var ext_tex : texture_external; -@stage(fragment) +@fragment fn main(@builtin(position) coord : vec4) -> @location(0) vec4 { return textureSampleLevel(ext_tex, s, coord.xy); } @@ -74,7 +74,7 @@ TEST_F(MultiplanarExternalTextureTest, ErrorIncorrectBindingPont) { @group(0) @binding(0) var s : sampler; @group(0) @binding(1) var ext_tex : texture_external; -@stage(fragment) +@fragment fn main(@builtin(position) coord : vec4) -> @location(0) vec4 { return textureSampleLevel(ext_tex, s, coord.xy); } @@ -96,7 +96,7 @@ TEST_F(MultiplanarExternalTextureTest, Dimensions) { auto* src = R"( @group(0) @binding(0) var ext_tex : texture_external; -@stage(fragment) +@fragment fn main(@builtin(position) coord : vec4) -> @location(0) vec4 { var dim : vec2; dim = textureDimensions(ext_tex); @@ -130,7 +130,7 @@ struct ExternalTextureParams { @group(0) @binding(0) var ext_tex : texture_2d; -@stage(fragment) +@fragment fn main(@builtin(position) coord : vec4) -> @location(0) vec4 { var dim : vec2; dim = textureDimensions(ext_tex); @@ -148,7 +148,7 @@ fn main(@builtin(position) coord : vec4) -> @location(0) vec4 { // Tests that the transform works with a textureDimensions call. TEST_F(MultiplanarExternalTextureTest, Dimensions_OutOfOrder) { auto* src = R"( -@stage(fragment) +@fragment fn main(@builtin(position) coord : vec4) -> @location(0) vec4 { var dim : vec2; dim = textureDimensions(ext_tex); @@ -182,7 +182,7 @@ struct ExternalTextureParams { @group(0) @binding(2) var ext_tex_params : ExternalTextureParams; -@stage(fragment) +@fragment fn main(@builtin(position) coord : vec4) -> @location(0) vec4 { var dim : vec2; dim = textureDimensions(ext_tex); @@ -205,7 +205,7 @@ TEST_F(MultiplanarExternalTextureTest, BasicTextureSampleLevel) { @group(0) @binding(0) var s : sampler; @group(0) @binding(1) var ext_tex : texture_external; -@stage(fragment) +@fragment fn main(@builtin(position) coord : vec4) -> @location(0) vec4 { return textureSampleLevel(ext_tex, s, coord.xy); } @@ -259,7 +259,7 @@ fn textureSampleExternal(plane0 : texture_2d, plane1 : texture_2d, smp return vec4(color, 1.0f); } -@stage(fragment) +@fragment fn main(@builtin(position) coord : vec4) -> @location(0) vec4 { return textureSampleExternal(ext_tex, ext_tex_plane_1, s, coord.xy, ext_tex_params); } @@ -275,7 +275,7 @@ fn main(@builtin(position) coord : vec4) -> @location(0) vec4 { // Test that the transform works with a textureSampleLevel call. TEST_F(MultiplanarExternalTextureTest, BasicTextureSampleLevel_OutOfOrder) { auto* src = R"( -@stage(fragment) +@fragment fn main(@builtin(position) coord : vec4) -> @location(0) vec4 { return textureSampleLevel(ext_tex, s, coord.xy); } @@ -328,7 +328,7 @@ fn textureSampleExternal(plane0 : texture_2d, plane1 : texture_2d, smp return vec4(color, 1.0f); } -@stage(fragment) +@fragment fn main(@builtin(position) coord : vec4) -> @location(0) vec4 { return textureSampleExternal(ext_tex, ext_tex_plane_1, s, coord.xy, ext_tex_params); } @@ -350,7 +350,7 @@ TEST_F(MultiplanarExternalTextureTest, BasicTextureLoad) { auto* src = R"( @group(0) @binding(0) var ext_tex : texture_external; -@stage(fragment) +@fragment fn main(@builtin(position) coord : vec4) -> @location(0) vec4 { return textureLoad(ext_tex, vec2(1, 1)); } @@ -402,7 +402,7 @@ fn textureLoadExternal(plane0 : texture_2d, plane1 : texture_2d, coord return vec4(color, 1.0f); } -@stage(fragment) +@fragment fn main(@builtin(position) coord : vec4) -> @location(0) vec4 { return textureLoadExternal(ext_tex, ext_tex_plane_1, vec2(1, 1), ext_tex_params); } @@ -418,7 +418,7 @@ fn main(@builtin(position) coord : vec4) -> @location(0) vec4 { // Tests that the transform works with a textureLoad call. TEST_F(MultiplanarExternalTextureTest, BasicTextureLoad_OutOfOrder) { auto* src = R"( -@stage(fragment) +@fragment fn main(@builtin(position) coord : vec4) -> @location(0) vec4 { return textureLoad(ext_tex, vec2(1, 1)); } @@ -470,7 +470,7 @@ fn textureLoadExternal(plane0 : texture_2d, plane1 : texture_2d, coord return vec4(color, 1.0f); } -@stage(fragment) +@fragment fn main(@builtin(position) coord : vec4) -> @location(0) vec4 { return textureLoadExternal(ext_tex, ext_tex_plane_1, vec2(1, 1), ext_tex_params); } @@ -492,7 +492,7 @@ TEST_F(MultiplanarExternalTextureTest, TextureSampleAndTextureLoad) { @group(0) @binding(0) var s : sampler; @group(0) @binding(1) var ext_tex : texture_external; -@stage(fragment) +@fragment fn main(@builtin(position) coord : vec4) -> @location(0) vec4 { return textureSampleLevel(ext_tex, s, coord.xy) + textureLoad(ext_tex, vec2(1, 1)); } @@ -559,7 +559,7 @@ fn textureLoadExternal(plane0 : texture_2d, plane1 : texture_2d, coord return vec4(color, 1.0f); } -@stage(fragment) +@fragment fn main(@builtin(position) coord : vec4) -> @location(0) vec4 { return (textureSampleExternal(ext_tex, ext_tex_plane_1, s, coord.xy, ext_tex_params) + textureLoadExternal(ext_tex, ext_tex_plane_1, vec2(1, 1), ext_tex_params)); } @@ -576,7 +576,7 @@ fn main(@builtin(position) coord : vec4) -> @location(0) vec4 { // call. TEST_F(MultiplanarExternalTextureTest, TextureSampleAndTextureLoad_OutOfOrder) { auto* src = R"( -@stage(fragment) +@fragment fn main(@builtin(position) coord : vec4) -> @location(0) vec4 { return textureSampleLevel(ext_tex, s, coord.xy) + textureLoad(ext_tex, vec2(1, 1)); } @@ -642,7 +642,7 @@ fn textureLoadExternal(plane0 : texture_2d, plane1 : texture_2d, coord return vec4(color, 1.0f); } -@stage(fragment) +@fragment fn main(@builtin(position) coord : vec4) -> @location(0) vec4 { return (textureSampleExternal(ext_tex, ext_tex_plane_1, s, coord.xy, ext_tex_params) + textureLoadExternal(ext_tex, ext_tex_plane_1, vec2(1, 1), ext_tex_params)); } @@ -668,7 +668,7 @@ TEST_F(MultiplanarExternalTextureTest, ManyTextureSampleLevel) { @group(0) @binding(3) var ext_tex_2 : texture_external; @group(1) @binding(0) var ext_tex_3 : texture_external; -@stage(fragment) +@fragment fn main(@builtin(position) coord : vec4) -> @location(0) vec4 { return textureSampleLevel(ext_tex, s, coord.xy) + textureSampleLevel(ext_tex_1, s, coord.xy) + textureSampleLevel(ext_tex_2, s, coord.xy) + textureSampleLevel(ext_tex_3, s, coord.xy); } @@ -740,7 +740,7 @@ fn textureSampleExternal(plane0 : texture_2d, plane1 : texture_2d, smp return vec4(color, 1.0f); } -@stage(fragment) +@fragment fn main(@builtin(position) coord : vec4) -> @location(0) vec4 { return (((textureSampleExternal(ext_tex, ext_tex_plane_1, s, coord.xy, ext_tex_params) + textureSampleExternal(ext_tex_1, ext_tex_plane_1_1, s, coord.xy, ext_tex_params_1)) + textureSampleExternal(ext_tex_2, ext_tex_plane_1_2, s, coord.xy, ext_tex_params_2)) + textureSampleExternal(ext_tex_3, ext_tex_plane_1_3, s, coord.xy, ext_tex_params_3)); } @@ -768,7 +768,7 @@ fn f(t : texture_external, s : sampler) { @group(0) @binding(0) var ext_tex : texture_external; @group(0) @binding(1) var smp : sampler; -@stage(fragment) +@fragment fn main() { f(ext_tex, smp); } @@ -826,7 +826,7 @@ fn f(t : texture_2d, ext_tex_plane_1_1 : texture_2d, ext_tex_params_1 @group(0) @binding(1) var smp : sampler; -@stage(fragment) +@fragment fn main() { f(ext_tex, ext_tex_plane_1, ext_tex_params, smp); } @@ -843,7 +843,7 @@ fn main() { // correct output. TEST_F(MultiplanarExternalTextureTest, ExternalTexturePassedAsParam_OutOfOrder) { auto* src = R"( -@stage(fragment) +@fragment fn main() { f(ext_tex, smp); } @@ -880,7 +880,7 @@ struct ExternalTextureParams { @group(0) @binding(3) var ext_tex_params : ExternalTextureParams; -@stage(fragment) +@fragment fn main() { f(ext_tex, ext_tex_plane_1, ext_tex_params, smp); } @@ -932,7 +932,7 @@ fn f(s : sampler, t : texture_external) { @group(0) @binding(0) var ext_tex : texture_external; @group(0) @binding(1) var smp : sampler; -@stage(fragment) +@fragment fn main() { f(smp, ext_tex); } @@ -990,7 +990,7 @@ fn f(s : sampler, t : texture_2d, ext_tex_plane_1_1 : texture_2d, ext_ @group(0) @binding(1) var smp : sampler; -@stage(fragment) +@fragment fn main() { f(smp, ext_tex, ext_tex_plane_1, ext_tex_params); } @@ -1016,7 +1016,7 @@ fn f(t : texture_external, s : sampler, t2 : texture_external) { @group(0) @binding(1) var smp : sampler; @group(0) @binding(2) var ext_tex2 : texture_external; -@stage(fragment) +@fragment fn main() { f(ext_tex, smp, ext_tex2); } @@ -1081,7 +1081,7 @@ fn f(t : texture_2d, ext_tex_plane_1_2 : texture_2d, ext_tex_params_2 @group(0) @binding(2) var ext_tex2 : texture_2d; -@stage(fragment) +@fragment fn main() { f(ext_tex, ext_tex_plane_1, ext_tex_params, smp, ext_tex2, ext_tex_plane_1_1, ext_tex_params_1); } @@ -1099,7 +1099,7 @@ fn main() { // correct output. TEST_F(MultiplanarExternalTextureTest, ExternalTexturePassedAsParamMultiple_OutOfOrder) { auto* src = R"( -@stage(fragment) +@fragment fn main() { f(ext_tex, smp, ext_tex2); } @@ -1143,7 +1143,7 @@ struct ExternalTextureParams { @group(0) @binding(6) var ext_tex_params_1 : ExternalTextureParams; -@stage(fragment) +@fragment fn main() { f(ext_tex, ext_tex_plane_1, ext_tex_params, smp, ext_tex2, ext_tex_plane_1_1, ext_tex_params_1); } @@ -1203,7 +1203,7 @@ fn f(t : texture_external, s : sampler) { @group(0) @binding(0) var ext_tex : texture_external; @group(0) @binding(1) var smp : sampler; -@stage(fragment) +@fragment fn main() { f(ext_tex, smp); } @@ -1265,7 +1265,7 @@ fn f(t : texture_2d, ext_tex_plane_1_2 : texture_2d, ext_tex_params_2 @group(0) @binding(1) var smp : sampler; -@stage(fragment) +@fragment fn main() { f(ext_tex, ext_tex_plane_1, ext_tex_params, smp); } @@ -1293,7 +1293,7 @@ fn f(t : texture_external, s : sampler) { @group(0) @binding(0) var ext_tex : texture_external; @group(0) @binding(1) var smp : sampler; -@stage(fragment) +@fragment fn main() { f(ext_tex, smp); } @@ -1355,7 +1355,7 @@ fn f(t : texture_2d, ext_tex_plane_1_2 : texture_2d, ext_tex_params_2 @group(0) @binding(1) var smp : sampler; -@stage(fragment) +@fragment fn main() { f(ext_tex, ext_tex_plane_1, ext_tex_params, smp); } @@ -1421,7 +1421,7 @@ fn f(t : ET, s : sampler) { @group(0) @binding(0) var ext_tex : ET; @group(0) @binding(1) var smp : sampler; -@stage(fragment) +@fragment fn main() { f(ext_tex, smp); } @@ -1481,7 +1481,7 @@ fn f(t : texture_2d, ext_tex_plane_1_1 : texture_2d, ext_tex_params_1 @group(0) @binding(1) var smp : sampler; -@stage(fragment) +@fragment fn main() { f(ext_tex, ext_tex_plane_1, ext_tex_params, smp); } @@ -1497,7 +1497,7 @@ fn main() { // Tests that the the transform handles aliases to external textures TEST_F(MultiplanarExternalTextureTest, ExternalTextureAlias_OutOfOrder) { auto* src = R"( -@stage(fragment) +@fragment fn main() { f(ext_tex, smp); } @@ -1536,7 +1536,7 @@ struct ExternalTextureParams { @group(0) @binding(3) var ext_tex_params : ExternalTextureParams; -@stage(fragment) +@fragment fn main() { f(ext_tex, ext_tex_plane_1, ext_tex_params, smp); } diff --git a/src/tint/transform/num_workgroups_from_uniform_test.cc b/src/tint/transform/num_workgroups_from_uniform_test.cc index ffc0ca8812..8562c01d2a 100644 --- a/src/tint/transform/num_workgroups_from_uniform_test.cc +++ b/src/tint/transform/num_workgroups_from_uniform_test.cc @@ -33,7 +33,7 @@ TEST_F(NumWorkgroupsFromUniformTest, ShouldRunEmptyModule) { TEST_F(NumWorkgroupsFromUniformTest, ShouldRunHasNumWorkgroups) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@builtin(num_workgroups) num_wgs : vec3) { } )"; @@ -43,7 +43,7 @@ fn main(@builtin(num_workgroups) num_wgs : vec3) { TEST_F(NumWorkgroupsFromUniformTest, Error_MissingTransformData) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@builtin(num_workgroups) num_wgs : vec3) { } )"; @@ -61,7 +61,7 @@ fn main(@builtin(num_workgroups) num_wgs : vec3) { TEST_F(NumWorkgroupsFromUniformTest, Basic) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@builtin(num_workgroups) num_wgs : vec3) { let groups_x = num_wgs.x; let groups_y = num_wgs.y; @@ -82,7 +82,7 @@ fn main_inner(num_wgs : vec3) { let groups_z = num_wgs.z; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { main_inner(tint_symbol_3.num_workgroups); } @@ -101,7 +101,7 @@ struct Builtins { @builtin(num_workgroups) num_wgs : vec3, }; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(in : Builtins) { let groups_x = in.num_wgs.x; let groups_y = in.num_wgs.y; @@ -126,7 +126,7 @@ fn main_inner(in : Builtins) { let groups_z = in.num_wgs.z; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { main_inner(Builtins(tint_symbol_3.num_workgroups)); } @@ -141,7 +141,7 @@ fn main() { TEST_F(NumWorkgroupsFromUniformTest, StructOnlyMember_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(in : Builtins) { let groups_x = in.num_wgs.x; let groups_y = in.num_wgs.y; @@ -166,7 +166,7 @@ fn main_inner(in : Builtins) { let groups_z = in.num_wgs.z; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { main_inner(Builtins(tint_symbol_3.num_workgroups)); } @@ -191,7 +191,7 @@ struct Builtins { @builtin(workgroup_id) wgid : vec3, }; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(in : Builtins) { let groups_x = in.num_wgs.x; let groups_y = in.num_wgs.y; @@ -225,7 +225,7 @@ fn main_inner(in : Builtins) { let groups_z = in.num_wgs.z; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(tint_symbol : tint_symbol_1) { main_inner(Builtins(tint_symbol.gid, tint_symbol_3.num_workgroups, tint_symbol.wgid)); } @@ -240,7 +240,7 @@ fn main(tint_symbol : tint_symbol_1) { TEST_F(NumWorkgroupsFromUniformTest, StructMultipleMembers_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(in : Builtins) { let groups_x = in.num_wgs.x; let groups_y = in.num_wgs.y; @@ -275,7 +275,7 @@ fn main_inner(in : Builtins) { let groups_z = in.num_wgs.z; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(tint_symbol : tint_symbol_1) { main_inner(Builtins(tint_symbol.gid, tint_symbol_3.num_workgroups, tint_symbol.wgid)); } @@ -306,21 +306,21 @@ struct Builtins2 { @builtin(workgroup_id) wgid : vec3, }; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main1(in : Builtins1) { let groups_x = in.num_wgs.x; let groups_y = in.num_wgs.y; let groups_z = in.num_wgs.z; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main2(in : Builtins2) { let groups_x = in.num_wgs.x; let groups_y = in.num_wgs.y; let groups_z = in.num_wgs.z; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main3(@builtin(num_workgroups) num_wgs : vec3) { let groups_x = num_wgs.x; let groups_y = num_wgs.y; @@ -351,7 +351,7 @@ fn main1_inner(in : Builtins1) { let groups_z = in.num_wgs.z; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main1() { main1_inner(Builtins1(tint_symbol_7.num_workgroups)); } @@ -369,7 +369,7 @@ fn main2_inner(in : Builtins2) { let groups_z = in.num_wgs.z; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main2(tint_symbol_2 : tint_symbol_3) { main2_inner(Builtins2(tint_symbol_2.gid, tint_symbol_7.num_workgroups, tint_symbol_2.wgid)); } @@ -380,7 +380,7 @@ fn main3_inner(num_wgs : vec3) { let groups_z = num_wgs.z; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main3() { main3_inner(tint_symbol_7.num_workgroups); } @@ -400,7 +400,7 @@ struct Builtins { @builtin(workgroup_id) wgid : vec3, }; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(in : Builtins) { } )"; @@ -421,7 +421,7 @@ struct tint_symbol_1 { fn main_inner(in : Builtins) { } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(tint_symbol : tint_symbol_1) { main_inner(Builtins(tint_symbol.gid, tint_symbol.wgid)); } @@ -448,21 +448,21 @@ struct Builtins2 { @builtin(workgroup_id) wgid : vec3, }; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main1(in : Builtins1) { let groups_x = in.num_wgs.x; let groups_y = in.num_wgs.y; let groups_z = in.num_wgs.z; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main2(in : Builtins2) { let groups_x = in.num_wgs.x; let groups_y = in.num_wgs.y; let groups_z = in.num_wgs.z; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main3(@builtin(num_workgroups) num_wgs : vec3) { let groups_x = num_wgs.x; let groups_y = num_wgs.y; @@ -493,7 +493,7 @@ fn main1_inner(in : Builtins1) { let groups_z = in.num_wgs.z; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main1() { main1_inner(Builtins1(tint_symbol_7.num_workgroups)); } @@ -511,7 +511,7 @@ fn main2_inner(in : Builtins2) { let groups_z = in.num_wgs.z; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main2(tint_symbol_2 : tint_symbol_3) { main2_inner(Builtins2(tint_symbol_2.gid, tint_symbol_7.num_workgroups, tint_symbol_2.wgid)); } @@ -522,7 +522,7 @@ fn main3_inner(num_wgs : vec3) { let groups_z = num_wgs.z; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main3() { main3_inner(tint_symbol_7.num_workgroups); } @@ -572,7 +572,7 @@ struct S1 { @group(1) @binding(3) var g9 : S0; @group(3) @binding(2) var g10 : S0; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main1(in : Builtins1) { let groups_x = in.num_wgs.x; let groups_y = in.num_wgs.y; @@ -580,14 +580,14 @@ fn main1(in : Builtins1) { g8.m0 = 1u; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main2(in : Builtins2) { let groups_x = in.num_wgs.x; let groups_y = in.num_wgs.y; let groups_z = in.num_wgs.z; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main3(@builtin(num_workgroups) num_wgs : vec3) { let groups_x = num_wgs.x; let groups_y = num_wgs.y; @@ -647,7 +647,7 @@ fn main1_inner(in : Builtins1) { g8.m0 = 1u; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main1() { main1_inner(Builtins1(tint_symbol_7.num_workgroups)); } @@ -665,7 +665,7 @@ fn main2_inner(in : Builtins2) { let groups_z = in.num_wgs.z; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main2(tint_symbol_2 : tint_symbol_3) { main2_inner(Builtins2(tint_symbol_2.gid, tint_symbol_7.num_workgroups, tint_symbol_2.wgid)); } @@ -676,7 +676,7 @@ fn main3_inner(num_wgs : vec3) { let groups_z = num_wgs.z; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main3() { main3_inner(tint_symbol_7.num_workgroups); } diff --git a/src/tint/transform/renamer_test.cc b/src/tint/transform/renamer_test.cc index f56971ea0b..516b164af7 100644 --- a/src/tint/transform/renamer_test.cc +++ b/src/tint/transform/renamer_test.cc @@ -50,7 +50,7 @@ fn test(vert_idx : u32) -> u32 { return vert_idx; } -@stage(vertex) +@vertex fn entry(@builtin(vertex_index) vert_idx : u32 ) -> @builtin(position) vec4 { _ = test(vert_idx); @@ -63,7 +63,7 @@ fn tint_symbol(tint_symbol_1 : u32) -> u32 { return tint_symbol_1; } -@stage(vertex) +@vertex fn tint_symbol_2(@builtin(vertex_index) tint_symbol_1 : u32) -> @builtin(position) vec4 { _ = tint_symbol(tint_symbol_1); return vec4(); @@ -87,7 +87,7 @@ fn tint_symbol_2(@builtin(vertex_index) tint_symbol_1 : u32) -> @builtin(positio TEST_F(RenamerTest, PreserveSwizzles) { auto* src = R"( -@stage(vertex) +@vertex fn entry() -> @builtin(position) vec4 { var v : vec4; var rgba : f32; @@ -97,7 +97,7 @@ fn entry() -> @builtin(position) vec4 { )"; auto* expect = R"( -@stage(vertex) +@vertex fn tint_symbol() -> @builtin(position) vec4 { var tint_symbol_1 : vec4; var tint_symbol_2 : f32; @@ -124,7 +124,7 @@ fn tint_symbol() -> @builtin(position) vec4 { TEST_F(RenamerTest, PreserveBuiltins) { auto* src = R"( -@stage(vertex) +@vertex fn entry() -> @builtin(position) vec4 { var blah : vec4; return abs(blah); @@ -132,7 +132,7 @@ fn entry() -> @builtin(position) vec4 { )"; auto* expect = R"( -@stage(vertex) +@vertex fn tint_symbol() -> @builtin(position) vec4 { var tint_symbol_1 : vec4; return abs(tint_symbol_1); @@ -155,7 +155,7 @@ fn tint_symbol() -> @builtin(position) vec4 { TEST_F(RenamerTest, PreserveBuiltinTypes) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn entry() { var a = modf(1.0).whole; var b = modf(1.0).fract; @@ -165,7 +165,7 @@ fn entry() { )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn tint_symbol() { var tint_symbol_1 = modf(1.0).whole; var tint_symbol_2 = modf(1.0).fract; @@ -190,7 +190,7 @@ fn tint_symbol() { TEST_F(RenamerTest, PreserveUnicode) { auto src = R"( -@stage(fragment) +@fragment fn frag_main() { var )" + std::string(kUnicodeIdentifier) + R"( : i32; @@ -209,7 +209,7 @@ fn frag_main() { TEST_F(RenamerTest, AttemptSymbolCollision) { auto* src = R"( -@stage(vertex) +@vertex fn entry() -> @builtin(position) vec4 { var tint_symbol : vec4; var tint_symbol_2 : vec4; @@ -219,7 +219,7 @@ fn entry() -> @builtin(position) vec4 { )"; auto* expect = R"( -@stage(vertex) +@vertex fn tint_symbol() -> @builtin(position) vec4 { var tint_symbol_1 : vec4; var tint_symbol_2 : vec4; @@ -252,7 +252,7 @@ TEST_P(RenamerTestGlsl, Keywords) { auto keyword = GetParam(); auto src = R"( -@stage(fragment) +@fragment fn frag_main() { var )" + keyword + R"( : i32; @@ -260,7 +260,7 @@ fn frag_main() { )"; auto* expect = R"( -@stage(fragment) +@fragment fn frag_main() { var tint_symbol : i32; } @@ -278,7 +278,7 @@ TEST_P(RenamerTestHlsl, Keywords) { auto keyword = GetParam(); auto src = R"( -@stage(fragment) +@fragment fn frag_main() { var )" + keyword + R"( : i32; @@ -286,7 +286,7 @@ fn frag_main() { )"; auto* expect = R"( -@stage(fragment) +@fragment fn frag_main() { var tint_symbol : i32; } @@ -304,7 +304,7 @@ TEST_P(RenamerTestMsl, Keywords) { auto keyword = GetParam(); auto src = R"( -@stage(fragment) +@fragment fn frag_main() { var )" + keyword + R"( : i32; @@ -312,7 +312,7 @@ fn frag_main() { )"; auto* expect = R"( -@stage(fragment) +@fragment fn frag_main() { var tint_symbol : i32; } diff --git a/src/tint/transform/simplify_pointers_test.cc b/src/tint/transform/simplify_pointers_test.cc index f5658dedb3..9848ff31bb 100644 --- a/src/tint/transform/simplify_pointers_test.cc +++ b/src/tint/transform/simplify_pointers_test.cc @@ -236,7 +236,7 @@ fn foo() -> i32 { return 1; } -@stage(fragment) +@fragment fn main() { var arr = array(); for (let a = &arr[foo()]; ;) { @@ -251,7 +251,7 @@ fn foo() -> i32 { return 1; } -@stage(fragment) +@fragment fn main() { var arr = array(); let a_save = foo(); @@ -337,7 +337,7 @@ TEST_F(SimplifyPointersTest, ShadowPointer) { auto* src = R"( var a : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = &a; var a : i32 = (*x)[0]; @@ -350,7 +350,7 @@ fn main() { auto* expect = R"( var a : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var a_1 : i32 = a[0]; { diff --git a/src/tint/transform/single_entry_point_test.cc b/src/tint/transform/single_entry_point_test.cc index 80446212ce..8445f61f01 100644 --- a/src/tint/transform/single_entry_point_test.cc +++ b/src/tint/transform/single_entry_point_test.cc @@ -47,7 +47,7 @@ TEST_F(SingleEntryPointTest, Error_NoEntryPoints) { TEST_F(SingleEntryPointTest, Error_InvalidEntryPoint) { auto* src = R"( -@stage(vertex) +@vertex fn main() -> @builtin(position) vec4 { return vec4(); } @@ -68,7 +68,7 @@ TEST_F(SingleEntryPointTest, Error_NotAnEntryPoint) { auto* src = R"( fn foo() {} -@stage(fragment) +@fragment fn main() {} )"; @@ -85,7 +85,7 @@ fn main() {} TEST_F(SingleEntryPointTest, SingleEntryPoint) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { } )"; @@ -101,26 +101,26 @@ fn main() { TEST_F(SingleEntryPointTest, MultipleEntryPoints) { auto* src = R"( -@stage(vertex) +@vertex fn vert_main() -> @builtin(position) vec4 { return vec4(); } -@stage(fragment) +@fragment fn frag_main() { } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main1() { } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main2() { } )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main1() { } )"; @@ -144,23 +144,23 @@ var c : f32; var d : f32; -@stage(vertex) +@vertex fn vert_main() -> @builtin(position) vec4 { a = 0.0; return vec4(); } -@stage(fragment) +@fragment fn frag_main() { b = 0.0; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main1() { c = 0.0; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main2() { d = 0.0; } @@ -169,7 +169,7 @@ fn comp_main2() { auto* expect = R"( var c : f32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main1() { c = 0.0; } @@ -194,23 +194,23 @@ let c : f32 = 1.0; let d : f32 = 1.0; -@stage(vertex) +@vertex fn vert_main() -> @builtin(position) vec4 { let local_a : f32 = a; return vec4(); } -@stage(fragment) +@fragment fn frag_main() { let local_b : f32 = b; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main1() { let local_c : f32 = c; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main2() { let local_d : f32 = d; } @@ -219,7 +219,7 @@ fn comp_main2() { auto* expect = R"( let c : f32 = 1.0; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main1() { let local_c : f32 = c; } @@ -238,7 +238,7 @@ TEST_F(SingleEntryPointTest, WorkgroupSizeLetPreserved) { auto* src = R"( let size : i32 = 1; -@stage(compute) @workgroup_size(size) +@compute @workgroup_size(size) fn main() { } )"; @@ -261,27 +261,27 @@ TEST_F(SingleEntryPointTest, OverridableConstants) { @id(0) override c3 : u32 = 1u; @id(9999) override c4 : u32 = 1u; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main1() { let local_d = c1; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main2() { let local_d = c2; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main3() { let local_d = c3; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main4() { let local_d = c4; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main5() { let local_d = 1u; } @@ -292,7 +292,7 @@ fn comp_main5() { auto* expect = R"( @id(1001) override c1 : u32 = 1u; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main1() { let local_d = c1; } @@ -310,7 +310,7 @@ fn comp_main1() { auto* expect = R"( @id(1) override c2 : u32 = 1u; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main2() { let local_d = c2; } @@ -326,7 +326,7 @@ fn comp_main2() { auto* expect = R"( @id(0) override c3 : u32 = 1u; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main3() { let local_d = c3; } @@ -342,7 +342,7 @@ fn comp_main3() { auto* expect = R"( @id(9999) override c4 : u32 = 1u; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main4() { let local_d = c4; } @@ -356,7 +356,7 @@ fn comp_main4() { { SingleEntryPoint::Config cfg("comp_main5"); auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main5() { let local_d = 1u; } @@ -389,12 +389,12 @@ fn outer2() { inner_shared(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main1() { outer1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main2() { outer2(); } @@ -412,7 +412,7 @@ fn outer1() { inner_shared(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main1() { outer1(); } @@ -463,12 +463,12 @@ fn outer2() { outer2_var = 0.0; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main1() { outer1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main2() { outer2(); } @@ -495,7 +495,7 @@ fn outer1() { outer1_var = 0.0; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main1() { outer1(); } diff --git a/src/tint/transform/unwind_discard_functions_test.cc b/src/tint/transform/unwind_discard_functions_test.cc index 70b421889f..481df9dfdb 100644 --- a/src/tint/transform/unwind_discard_functions_test.cc +++ b/src/tint/transform/unwind_discard_functions_test.cc @@ -102,7 +102,7 @@ fn f() { let marker1 = 0; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in: vec4) -> @location(0) vec4 { f(); let marker1 = 0; @@ -122,7 +122,7 @@ fn tint_discard_func() { discard; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in : vec4) -> @location(0) vec4 { f(); if (tint_discard) { @@ -156,7 +156,7 @@ fn f() -> S { return s; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in: vec4) -> @location(0) vec4 { let marker1 = 0; f(); @@ -186,7 +186,7 @@ fn tint_discard_func() { discard; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in : vec4) -> @location(0) vec4 { let marker1 = 0; f(); @@ -230,7 +230,7 @@ fn h() -> i32{ return 0; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in: vec4) -> @location(0) vec4 { let marker1 = 0; h(); @@ -275,7 +275,7 @@ fn tint_discard_func() { discard; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in : vec4) -> @location(0) vec4 { let marker1 = 0; h(); @@ -311,7 +311,7 @@ fn h() { let marker1 = 0; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in: vec4) -> @location(0) vec4 { let marker1 = 0; f(); @@ -348,7 +348,7 @@ fn tint_discard_func() { discard; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in : vec4) -> @location(0) vec4 { let marker1 = 0; f(); @@ -381,7 +381,7 @@ fn main(@builtin(position) coord_in : vec4) -> @location(0) vec4 { TEST_F(UnwindDiscardFunctionsTest, Call_DiscardFuncDeclaredBelow) { auto* src = R"( -@stage(fragment) +@fragment fn main(@builtin(position) coord_in: vec4) -> @location(0) vec4 { f(); let marker1 = 0; @@ -400,7 +400,7 @@ fn tint_discard_func() { var tint_discard : bool = false; -@stage(fragment) +@fragment fn main(@builtin(position) coord_in : vec4) -> @location(0) vec4 { f(); if (tint_discard) { @@ -433,7 +433,7 @@ fn f() -> i32 { return 42; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in: vec4) -> @location(0) vec4 { if (f() == 42) { let marker1 = 0; @@ -456,7 +456,7 @@ fn tint_discard_func() { discard; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in : vec4) -> @location(0) vec4 { let tint_symbol = f(); if (tint_discard) { @@ -485,7 +485,7 @@ fn f() -> i32 { return 42; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in: vec4) -> @location(0) vec4 { if (true) { let marker1 = 0; @@ -512,7 +512,7 @@ fn tint_discard_func() { discard; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in : vec4) -> @location(0) vec4 { if (true) { let marker1 = 0; @@ -547,7 +547,7 @@ fn f() -> i32 { return 42; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in: vec4) -> @location(0) vec4 { let marker1 = 0; var a = 0; @@ -573,7 +573,7 @@ fn tint_discard_func() { discard; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in : vec4) -> @location(0) vec4 { let marker1 = 0; var a = 0; @@ -605,7 +605,7 @@ fn f() -> i32 { return 42; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in: vec4) -> @location(0) vec4 { let marker1 = 0; for (f(); ; ) { @@ -630,7 +630,7 @@ fn tint_discard_func() { discard; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in : vec4) -> @location(0) vec4 { let marker1 = 0; var tint_symbol = f(); @@ -661,7 +661,7 @@ fn f() -> i32 { return 42; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in: vec4) -> @location(0) vec4 { let marker1 = 0; for (let i = f(); ; ) { @@ -686,7 +686,7 @@ fn tint_discard_func() { discard; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in : vec4) -> @location(0) vec4 { let marker1 = 0; var tint_symbol = f(); @@ -717,7 +717,7 @@ fn f() -> i32 { return 42; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in: vec4) -> @location(0) vec4 { let marker1 = 0; for (; f() == 42; ) { @@ -742,7 +742,7 @@ fn tint_discard_func() { discard; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in : vec4) -> @location(0) vec4 { let marker1 = 0; loop { @@ -778,7 +778,7 @@ fn f() -> i32 { return 42; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in: vec4) -> @location(0) vec4 { let marker1 = 0; for (; ; f()) { @@ -809,7 +809,7 @@ fn f() -> i32 { return 42; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in: vec4) -> @location(0) vec4 { switch (f()) { case 0: { @@ -843,7 +843,7 @@ fn tint_discard_func() { discard; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in : vec4) -> @location(0) vec4 { var tint_symbol = f(); if (tint_discard) { @@ -893,7 +893,7 @@ fn g() -> S { return f(); } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in: vec4) -> @location(0) vec4 { let marker1 = 0; g(); @@ -929,7 +929,7 @@ fn tint_discard_func() { discard; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in : vec4) -> @location(0) vec4 { let marker1 = 0; g(); @@ -956,7 +956,7 @@ fn f() -> i32 { return 42; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in: vec4) -> @location(0) vec4 { var a = f(); let marker1 = 0; @@ -978,7 +978,7 @@ fn tint_discard_func() { discard; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in : vec4) -> @location(0) vec4 { var a = f(); if (tint_discard) { @@ -1005,7 +1005,7 @@ fn f() -> i32 { return 42; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in: vec4) -> @location(0) vec4 { var a : i32; a = f(); @@ -1028,7 +1028,7 @@ fn tint_discard_func() { discard; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in : vec4) -> @location(0) vec4 { var a : i32; a = f(); @@ -1056,7 +1056,7 @@ fn f() -> i32 { return 0; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in: vec4) -> @location(0) vec4 { var b = array(); b[f()] = 10; @@ -1079,7 +1079,7 @@ fn tint_discard_func() { discard; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in : vec4) -> @location(0) vec4 { var b = array(); let tint_symbol = f(); @@ -1115,7 +1115,7 @@ fn g() -> i32 { return 0; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in: vec4) -> @location(0) vec4 { var b = array(); b[f()] = g(); @@ -1146,7 +1146,7 @@ fn tint_discard_func() { discard; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in : vec4) -> @location(0) vec4 { var b = array(); let tint_symbol = g(); @@ -1194,7 +1194,7 @@ fn h() -> i32{ return 0; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in: vec4) -> @location(0) vec4 { if ((f() + g() + h()) == 0) { let marker1 = 0; @@ -1233,7 +1233,7 @@ fn tint_discard_func() { discard; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in : vec4) -> @location(0) vec4 { let tint_symbol = f(); if (tint_discard) { @@ -1286,7 +1286,7 @@ fn h() -> i32{ return 0; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in: vec4) -> @location(0) vec4 { if (f() == 1 && g() == 2 && h() == 3) { let marker1 = 0; @@ -1325,7 +1325,7 @@ fn tint_discard_func() { discard; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in : vec4) -> @location(0) vec4 { let tint_symbol_2 = f(); if (tint_discard) { @@ -1373,7 +1373,7 @@ fn f() { let marker1 = 0; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in: vec4) -> @location(0) vec4 { f(); let marker1 = 0; @@ -1397,7 +1397,7 @@ fn tint_discard_func_1() { discard; } -@stage(fragment) +@fragment fn main(@builtin(position) coord_in : vec4) -> @location(0) vec4 { f(); if (tint_discard_1) { diff --git a/src/tint/transform/vectorize_scalar_matrix_constructors_test.cc b/src/tint/transform/vectorize_scalar_matrix_constructors_test.cc index 2b1c09817b..1ee9d337b7 100644 --- a/src/tint/transform/vectorize_scalar_matrix_constructors_test.cc +++ b/src/tint/transform/vectorize_scalar_matrix_constructors_test.cc @@ -53,7 +53,7 @@ TEST_P(VectorizeScalarMatrixConstructorsTest, SingleScalars) { } std::string src = R"( -@stage(fragment) +@fragment fn main() { let m = ${matrix}(42.0); } @@ -64,7 +64,7 @@ fn build_${matrix_no_type}(value : f32) -> ${matrix} { return ${matrix}(${values}); } -@stage(fragment) +@fragment fn main() { let m = build_${matrix_no_type}(42.0); } @@ -107,7 +107,7 @@ TEST_P(VectorizeScalarMatrixConstructorsTest, MultipleScalars) { } std::string tmpl = R"( -@stage(fragment) +@fragment fn main() { let m = ${matrix}(${values}); } @@ -137,7 +137,7 @@ TEST_P(VectorizeScalarMatrixConstructorsTest, NonScalarConstructors) { } std::string tmpl = R"( -@stage(fragment) +@fragment fn main() { let m = ${matrix}(${columns}); } diff --git a/src/tint/transform/vertex_pulling_test.cc b/src/tint/transform/vertex_pulling_test.cc index ef37631adc..5fb8b1cd40 100644 --- a/src/tint/transform/vertex_pulling_test.cc +++ b/src/tint/transform/vertex_pulling_test.cc @@ -37,7 +37,7 @@ TEST_F(VertexPullingTest, Error_NoEntryPoint) { TEST_F(VertexPullingTest, Error_InvalidEntryPoint) { auto* src = R"( -@stage(vertex) +@vertex fn main() -> @builtin(position) vec4 { return vec4(); } @@ -57,7 +57,7 @@ fn main() -> @builtin(position) vec4 { TEST_F(VertexPullingTest, Error_EntryPointWrongStage) { auto* src = R"( -@stage(fragment) +@fragment fn main() {} )"; @@ -75,7 +75,7 @@ fn main() {} TEST_F(VertexPullingTest, Error_BadStride) { auto* src = R"( -@stage(vertex) +@vertex fn main(@location(0) var_a : f32) -> @builtin(position) vec4 { return vec4(var_a, 0.0, 0.0, 1.0); } @@ -98,7 +98,7 @@ fn main(@location(0) var_a : f32) -> @builtin(position) vec4 { TEST_F(VertexPullingTest, BasicModule) { auto* src = R"( -@stage(vertex) +@vertex fn main() -> @builtin(position) vec4 { return vec4(); } @@ -109,7 +109,7 @@ struct TintVertexData { tint_vertex_data : array, } -@stage(vertex) +@vertex fn main() -> @builtin(position) vec4 { return vec4(); } @@ -127,7 +127,7 @@ fn main() -> @builtin(position) vec4 { TEST_F(VertexPullingTest, OneAttribute) { auto* src = R"( -@stage(vertex) +@vertex fn main(@location(0) var_a : f32) -> @builtin(position) vec4 { return vec4(var_a, 0.0, 0.0, 1.0); } @@ -140,7 +140,7 @@ struct TintVertexData { @binding(0) @group(4) var tint_pulling_vertex_buffer_0 : TintVertexData; -@stage(vertex) +@vertex fn main(@builtin(vertex_index) tint_pulling_vertex_index : u32) -> @builtin(position) vec4 { var var_a : f32; { @@ -164,7 +164,7 @@ fn main(@builtin(vertex_index) tint_pulling_vertex_index : u32) -> @builtin(posi TEST_F(VertexPullingTest, OneInstancedAttribute) { auto* src = R"( -@stage(vertex) +@vertex fn main(@location(0) var_a : f32) -> @builtin(position) vec4 { return vec4(var_a, 0.0, 0.0, 1.0); } @@ -177,7 +177,7 @@ struct TintVertexData { @binding(0) @group(4) var tint_pulling_vertex_buffer_0 : TintVertexData; -@stage(vertex) +@vertex fn main(@builtin(instance_index) tint_pulling_instance_index : u32) -> @builtin(position) vec4 { var var_a : f32; { @@ -201,7 +201,7 @@ fn main(@builtin(instance_index) tint_pulling_instance_index : u32) -> @builtin( TEST_F(VertexPullingTest, OneAttributeDifferentOutputSet) { auto* src = R"( -@stage(vertex) +@vertex fn main(@location(0) var_a : f32) -> @builtin(position) vec4 { return vec4(var_a, 0.0, 0.0, 1.0); } @@ -214,7 +214,7 @@ struct TintVertexData { @binding(0) @group(5) var tint_pulling_vertex_buffer_0 : TintVertexData; -@stage(vertex) +@vertex fn main(@builtin(vertex_index) tint_pulling_vertex_index : u32) -> @builtin(position) vec4 { var var_a : f32; { @@ -243,7 +243,7 @@ struct Inputs { @location(0) var_a : f32, }; -@stage(vertex) +@vertex fn main(inputs : Inputs) -> @builtin(position) vec4 { return vec4(inputs.var_a, 0.0, 0.0, 1.0); } @@ -261,7 +261,7 @@ struct Inputs { var_a : f32, } -@stage(vertex) +@vertex fn main(@builtin(vertex_index) tint_pulling_vertex_index : u32) -> @builtin(position) vec4 { var inputs : Inputs; { @@ -286,7 +286,7 @@ fn main(@builtin(vertex_index) tint_pulling_vertex_index : u32) -> @builtin(posi // We expect the transform to use an existing builtin variables if it finds them TEST_F(VertexPullingTest, ExistingVertexIndexAndInstanceIndex) { auto* src = R"( -@stage(vertex) +@vertex fn main(@location(0) var_a : f32, @location(1) var_b : f32, @builtin(vertex_index) custom_vertex_index : u32, @@ -305,7 +305,7 @@ struct TintVertexData { @binding(1) @group(4) var tint_pulling_vertex_buffer_1 : TintVertexData; -@stage(vertex) +@vertex fn main(@builtin(vertex_index) custom_vertex_index : u32, @builtin(instance_index) custom_instance_index : u32) -> @builtin(position) vec4 { var var_a : f32; var var_b : f32; @@ -350,7 +350,7 @@ struct Inputs { @builtin(instance_index) custom_instance_index : u32, }; -@stage(vertex) +@vertex fn main(inputs : Inputs) -> @builtin(position) vec4 { return vec4(inputs.var_a, inputs.var_b, 0.0, 1.0); } @@ -383,7 +383,7 @@ struct Inputs { custom_instance_index : u32, } -@stage(vertex) +@vertex fn main(tint_symbol_1 : tint_symbol) -> @builtin(position) vec4 { var inputs : Inputs; inputs.custom_vertex_index = tint_symbol_1.custom_vertex_index; @@ -422,7 +422,7 @@ fn main(tint_symbol_1 : tint_symbol) -> @builtin(position) vec4 { TEST_F(VertexPullingTest, ExistingVertexIndexAndInstanceIndex_Struct_OutOfOrder) { auto* src = R"( -@stage(vertex) +@vertex fn main(inputs : Inputs) -> @builtin(position) vec4 { return vec4(inputs.var_a, inputs.var_b, 0.0, 1.0); } @@ -451,7 +451,7 @@ struct tint_symbol { custom_instance_index : u32, } -@stage(vertex) +@vertex fn main(tint_symbol_1 : tint_symbol) -> @builtin(position) vec4 { var inputs : Inputs; inputs.custom_vertex_index = tint_symbol_1.custom_vertex_index; @@ -511,7 +511,7 @@ struct Indices { @builtin(instance_index) custom_instance_index : u32, }; -@stage(vertex) +@vertex fn main(inputs : Inputs, indices : Indices) -> @builtin(position) vec4 { return vec4(inputs.var_a, inputs.var_b, 0.0, 1.0); } @@ -540,7 +540,7 @@ struct Indices { custom_instance_index : u32, } -@stage(vertex) +@vertex fn main(indices : Indices) -> @builtin(position) vec4 { var inputs : Inputs; { @@ -577,7 +577,7 @@ fn main(indices : Indices) -> @builtin(position) vec4 { TEST_F(VertexPullingTest, ExistingVertexIndexAndInstanceIndex_SeparateStruct_OutOfOrder) { auto* src = R"( -@stage(vertex) +@vertex fn main(inputs : Inputs, indices : Indices) -> @builtin(position) vec4 { return vec4(inputs.var_a, inputs.var_b, 0.0, 1.0); } @@ -602,7 +602,7 @@ struct TintVertexData { @binding(1) @group(4) var tint_pulling_vertex_buffer_1 : TintVertexData; -@stage(vertex) +@vertex fn main(indices : Indices) -> @builtin(position) vec4 { var inputs : Inputs; { @@ -653,7 +653,7 @@ struct Indices { TEST_F(VertexPullingTest, TwoAttributesSameBuffer) { auto* src = R"( -@stage(vertex) +@vertex fn main(@location(0) var_a : f32, @location(1) var_b : vec4) -> @builtin(position) vec4 { return vec4(); @@ -667,7 +667,7 @@ struct TintVertexData { @binding(0) @group(4) var tint_pulling_vertex_buffer_0 : TintVertexData; -@stage(vertex) +@vertex fn main(@builtin(vertex_index) tint_pulling_vertex_index : u32) -> @builtin(position) vec4 { var var_a : f32; var var_b : vec4; @@ -695,7 +695,7 @@ fn main(@builtin(vertex_index) tint_pulling_vertex_index : u32) -> @builtin(posi TEST_F(VertexPullingTest, FloatVectorAttributes) { auto* src = R"( -@stage(vertex) +@vertex fn main(@location(0) var_a : vec2, @location(1) var_b : vec3, @location(2) var_c : vec4 @@ -715,7 +715,7 @@ struct TintVertexData { @binding(2) @group(4) var tint_pulling_vertex_buffer_2 : TintVertexData; -@stage(vertex) +@vertex fn main(@builtin(vertex_index) tint_pulling_vertex_index : u32) -> @builtin(position) vec4 { var var_a : vec2; var var_b : vec3; @@ -749,7 +749,7 @@ fn main(@builtin(vertex_index) tint_pulling_vertex_index : u32) -> @builtin(posi TEST_F(VertexPullingTest, AttemptSymbolCollision) { auto* src = R"( -@stage(vertex) +@vertex fn main(@location(0) var_a : f32, @location(1) var_b : vec4) -> @builtin(position) vec4 { var tint_pulling_vertex_index : i32; @@ -767,7 +767,7 @@ struct TintVertexData { @binding(0) @group(4) var tint_pulling_vertex_buffer_0_1 : TintVertexData; -@stage(vertex) +@vertex fn main(@builtin(vertex_index) tint_pulling_vertex_index_1 : u32) -> @builtin(position) vec4 { var var_a : f32; var var_b : vec4; @@ -799,7 +799,7 @@ fn main(@builtin(vertex_index) tint_pulling_vertex_index_1 : u32) -> @builtin(po TEST_F(VertexPullingTest, FormatsAligned) { auto* src = R"( -@stage(vertex) +@vertex fn main( @location(0) uint8x2 : vec2, @location(1) uint8x4 : vec4, @@ -843,7 +843,7 @@ struct TintVertexData { @binding(0) @group(4) var tint_pulling_vertex_buffer_0 : TintVertexData; -@stage(vertex) +@vertex fn main(@builtin(vertex_index) tint_pulling_vertex_index : u32) -> @builtin(position) vec4 { var uint8x2 : vec2; var uint8x4 : vec4; @@ -944,7 +944,7 @@ fn main(@builtin(vertex_index) tint_pulling_vertex_index : u32) -> @builtin(posi TEST_F(VertexPullingTest, FormatsStrideUnaligned) { auto* src = R"( -@stage(vertex) +@vertex fn main( @location(0) uint8x2 : vec2, @location(1) uint8x4 : vec4, @@ -989,7 +989,7 @@ struct TintVertexData { @binding(0) @group(4) var tint_pulling_vertex_buffer_0 : TintVertexData; -@stage(vertex) +@vertex fn main(@builtin(vertex_index) tint_pulling_vertex_index : u32) -> @builtin(position) vec4 { var uint8x2 : vec2; var uint8x4 : vec4; @@ -1090,7 +1090,7 @@ fn main(@builtin(vertex_index) tint_pulling_vertex_index : u32) -> @builtin(posi TEST_F(VertexPullingTest, FormatsWithVectorsResized) { auto* src = R"( -@stage(vertex) +@vertex fn main( @location(0) uint8x2 : vec3, @location(1) uint8x4 : vec2, @@ -1134,7 +1134,7 @@ struct TintVertexData { @binding(0) @group(4) var tint_pulling_vertex_buffer_0 : TintVertexData; -@stage(vertex) +@vertex fn main(@builtin(vertex_index) tint_pulling_vertex_index : u32) -> @builtin(position) vec4 { var uint8x2 : vec3; var uint8x4 : vec2; diff --git a/src/tint/transform/zero_init_workgroup_memory_test.cc b/src/tint/transform/zero_init_workgroup_memory_test.cc index c846d55eed..93f3933f41 100644 --- a/src/tint/transform/zero_init_workgroup_memory_test.cc +++ b/src/tint/transform/zero_init_workgroup_memory_test.cc @@ -81,7 +81,7 @@ fn unreferenced() { b = c; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { } )"; @@ -94,7 +94,7 @@ fn f() { TEST_F(ZeroInitWorkgroupMemoryTest, UnreferencedWorkgroupVars_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { } @@ -119,7 +119,7 @@ TEST_F(ZeroInitWorkgroupMemoryTest, SingleWorkgroupVar_ExistingLocalIndex) { auto* src = R"( var v : i32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_index) local_idx : u32) { _ = v; // Initialization should be inserted above this statement } @@ -127,7 +127,7 @@ fn f(@builtin(local_invocation_index) local_idx : u32) { auto* expect = R"( var v : i32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_index) local_idx : u32) { { v = i32(); @@ -144,7 +144,7 @@ fn f(@builtin(local_invocation_index) local_idx : u32) { TEST_F(ZeroInitWorkgroupMemoryTest, SingleWorkgroupVar_ExistingLocalIndex_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_index) local_idx : u32) { _ = v; // Initialization should be inserted above this statement } @@ -152,7 +152,7 @@ fn f(@builtin(local_invocation_index) local_idx : u32) { var v : i32; )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_index) local_idx : u32) { { v = i32(); @@ -177,7 +177,7 @@ struct Params { @builtin(local_invocation_index) local_idx : u32, }; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(params : Params) { _ = v; // Initialization should be inserted above this statement } @@ -190,7 +190,7 @@ struct Params { local_idx : u32, } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(params : Params) { { v = i32(); @@ -207,7 +207,7 @@ fn f(params : Params) { TEST_F(ZeroInitWorkgroupMemoryTest, SingleWorkgroupVar_ExistingLocalIndexInStruct_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(params : Params) { _ = v; // Initialization should be inserted above this statement } @@ -219,7 +219,7 @@ struct Params { var v : i32; )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(params : Params) { { v = i32(); @@ -245,7 +245,7 @@ TEST_F(ZeroInitWorkgroupMemoryTest, SingleWorkgroupVar_InjectedLocalIndex) { auto* src = R"( var v : i32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { _ = v; // Initialization should be inserted above this statement } @@ -253,7 +253,7 @@ fn f() { auto* expect = R"( var v : i32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_index) local_invocation_index : u32) { { v = i32(); @@ -270,7 +270,7 @@ fn f(@builtin(local_invocation_index) local_invocation_index : u32) { TEST_F(ZeroInitWorkgroupMemoryTest, SingleWorkgroupVar_InjectedLocalIndex_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { _ = v; // Initialization should be inserted above this statement } @@ -278,7 +278,7 @@ fn f() { var v : i32; )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_index) local_invocation_index : u32) { { v = i32(); @@ -308,7 +308,7 @@ var b : S; var c : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_index) local_idx : u32) { _ = a; // Initialization should be inserted above this statement _ = b; @@ -327,7 +327,7 @@ var b : S; var c : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_index) local_idx : u32) { { a = i32(); @@ -360,7 +360,7 @@ fn f(@builtin(local_invocation_index) local_idx : u32) { TEST_F(ZeroInitWorkgroupMemoryTest, MultipleWorkgroupVar_ExistingLocalIndex_Size1_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_index) local_idx : u32) { _ = a; // Initialization should be inserted above this statement _ = b; @@ -379,7 +379,7 @@ struct S { }; )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_index) local_idx : u32) { { a = i32(); @@ -434,7 +434,7 @@ var b : S; var c : array; -@stage(compute) @workgroup_size(2, 3) +@compute @workgroup_size(2, 3) fn f(@builtin(local_invocation_index) local_idx : u32) { _ = a; // Initialization should be inserted above this statement _ = b; @@ -453,7 +453,7 @@ var b : S; var c : array; -@stage(compute) @workgroup_size(2, 3) +@compute @workgroup_size(2, 3) fn f(@builtin(local_invocation_index) local_idx : u32) { if ((local_idx < 1u)) { a = i32(); @@ -499,7 +499,7 @@ var c : array; @id(1) override X : i32; -@stage(compute) @workgroup_size(2, 3, X) +@compute @workgroup_size(2, 3, X) fn f(@builtin(local_invocation_index) local_idx : u32) { _ = a; // Initialization should be inserted above this statement _ = b; @@ -521,7 +521,7 @@ var c : array; @id(1) override X : i32; -@stage(compute) @workgroup_size(2, 3, X) +@compute @workgroup_size(2, 3, X) fn f(@builtin(local_invocation_index) local_idx : u32) { for(var idx : u32 = local_idx; (idx < 1u); idx = (idx + (u32(X) * 6u))) { a = i32(); @@ -568,7 +568,7 @@ var c : array; @id(1) override X : u32; -@stage(compute) @workgroup_size(5u, X, 10u) +@compute @workgroup_size(5u, X, 10u) fn f(@builtin(local_invocation_index) local_idx : u32) { _ = a; // Initialization should be inserted above this statement _ = b; @@ -591,7 +591,7 @@ var c : array; @id(1) override X : u32; -@stage(compute) @workgroup_size(5u, X, 10u) +@compute @workgroup_size(5u, X, 10u) fn f(@builtin(local_invocation_index) local_idx : u32) { for(var idx : u32 = local_idx; (idx < 1u); idx = (idx + (X * 50u))) { a = i32(); @@ -654,7 +654,7 @@ var b : S; var c : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_id) local_invocation_id : vec3) { _ = a; // Initialization should be inserted above this statement _ = b; @@ -673,7 +673,7 @@ var b : S; var c : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_id) local_invocation_id : vec3, @builtin(local_invocation_index) local_invocation_index : u32) { { a = i32(); @@ -706,7 +706,7 @@ fn f(@builtin(local_invocation_id) local_invocation_id : vec3, @builtin(loc TEST_F(ZeroInitWorkgroupMemoryTest, MultipleWorkgroupVar_InjectedLocalIndex_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_id) local_invocation_id : vec3) { _ = a; // Initialization should be inserted above this statement _ = b; @@ -725,7 +725,7 @@ struct S { }; )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_id) local_invocation_id : vec3, @builtin(local_invocation_index) local_invocation_index : u32) { { a = i32(); @@ -780,18 +780,18 @@ var b : S; var c : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f1() { _ = a; // Initialization should be inserted above this statement _ = c; } -@stage(compute) @workgroup_size(1, 2, 3) +@compute @workgroup_size(1, 2, 3) fn f2(@builtin(local_invocation_id) local_invocation_id : vec3) { _ = b; // Initialization should be inserted above this statement } -@stage(compute) @workgroup_size(4, 5, 6) +@compute @workgroup_size(4, 5, 6) fn f3() { _ = c; // Initialization should be inserted above this statement _ = a; @@ -809,7 +809,7 @@ var b : S; var c : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f1(@builtin(local_invocation_index) local_invocation_index : u32) { { a = i32(); @@ -828,7 +828,7 @@ fn f1(@builtin(local_invocation_index) local_invocation_index : u32) { _ = c; } -@stage(compute) @workgroup_size(1, 2, 3) +@compute @workgroup_size(1, 2, 3) fn f2(@builtin(local_invocation_id) local_invocation_id : vec3, @builtin(local_invocation_index) local_invocation_index_1 : u32) { if ((local_invocation_index_1 < 1u)) { b.x = i32(); @@ -841,7 +841,7 @@ fn f2(@builtin(local_invocation_id) local_invocation_id : vec3, @builtin(lo _ = b; } -@stage(compute) @workgroup_size(4, 5, 6) +@compute @workgroup_size(4, 5, 6) fn f3(@builtin(local_invocation_index) local_invocation_index_2 : u32) { if ((local_invocation_index_2 < 1u)) { a = i32(); @@ -868,18 +868,18 @@ fn f3(@builtin(local_invocation_index) local_invocation_index_2 : u32) { TEST_F(ZeroInitWorkgroupMemoryTest, MultipleWorkgroupVar_MultipleEntryPoints_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f1() { _ = a; // Initialization should be inserted above this statement _ = c; } -@stage(compute) @workgroup_size(1, 2, 3) +@compute @workgroup_size(1, 2, 3) fn f2(@builtin(local_invocation_id) local_invocation_id : vec3) { _ = b; // Initialization should be inserted above this statement } -@stage(compute) @workgroup_size(4, 5, 6) +@compute @workgroup_size(4, 5, 6) fn f3() { _ = c; // Initialization should be inserted above this statement _ = a; @@ -897,7 +897,7 @@ struct S { }; )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f1(@builtin(local_invocation_index) local_invocation_index : u32) { { a = i32(); @@ -916,7 +916,7 @@ fn f1(@builtin(local_invocation_index) local_invocation_index : u32) { _ = c; } -@stage(compute) @workgroup_size(1, 2, 3) +@compute @workgroup_size(1, 2, 3) fn f2(@builtin(local_invocation_id) local_invocation_id : vec3, @builtin(local_invocation_index) local_invocation_index_1 : u32) { if ((local_invocation_index_1 < 1u)) { b.x = i32(); @@ -929,7 +929,7 @@ fn f2(@builtin(local_invocation_id) local_invocation_id : vec3, @builtin(lo _ = b; } -@stage(compute) @workgroup_size(4, 5, 6) +@compute @workgroup_size(4, 5, 6) fn f3(@builtin(local_invocation_index) local_invocation_index_2 : u32) { if ((local_invocation_index_2 < 1u)) { a = i32(); @@ -977,7 +977,7 @@ fn call_use_v() { use_v(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_index) local_idx : u32) { call_use_v(); // Initialization should be inserted above this statement } @@ -993,7 +993,7 @@ fn call_use_v() { use_v(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_index) local_idx : u32) { { v = i32(); @@ -1010,7 +1010,7 @@ fn f(@builtin(local_invocation_index) local_idx : u32) { TEST_F(ZeroInitWorkgroupMemoryTest, TransitiveUsage_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_index) local_idx : u32) { call_use_v(); // Initialization should be inserted above this statement } @@ -1026,7 +1026,7 @@ fn use_v() { var v : i32; )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_index) local_idx : u32) { { v = i32(); @@ -1056,7 +1056,7 @@ TEST_F(ZeroInitWorkgroupMemoryTest, WorkgroupAtomics) { var i : atomic; var u : atomic; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { atomicLoad(&(i)); // Initialization should be inserted above this statement atomicLoad(&(u)); @@ -1067,7 +1067,7 @@ var i : atomic; var u : atomic; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_index) local_invocation_index : u32) { { atomicStore(&(i), i32()); @@ -1086,7 +1086,7 @@ fn f(@builtin(local_invocation_index) local_invocation_index : u32) { TEST_F(ZeroInitWorkgroupMemoryTest, WorkgroupAtomics_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { atomicLoad(&(i)); // Initialization should be inserted above this statement atomicLoad(&(u)); @@ -1096,7 +1096,7 @@ var i : atomic; var u : atomic; )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_index) local_invocation_index : u32) { { atomicStore(&(i), i32()); @@ -1129,7 +1129,7 @@ struct S { var w : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { _ = w.a; // Initialization should be inserted above this statement } @@ -1145,7 +1145,7 @@ struct S { var w : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_index) local_invocation_index : u32) { { w.a = i32(); @@ -1166,7 +1166,7 @@ fn f(@builtin(local_invocation_index) local_invocation_index : u32) { TEST_F(ZeroInitWorkgroupMemoryTest, WorkgroupStructOfAtomics_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { _ = w.a; // Initialization should be inserted above this statement } @@ -1182,7 +1182,7 @@ struct S { }; )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_index) local_invocation_index : u32) { { w.a = i32(); @@ -1215,7 +1215,7 @@ TEST_F(ZeroInitWorkgroupMemoryTest, WorkgroupArrayOfAtomics) { auto* src = R"( var w : array, 4>; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { atomicLoad(&w[0]); // Initialization should be inserted above this statement } @@ -1223,7 +1223,7 @@ fn f() { auto* expect = R"( var w : array, 4>; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_index) local_invocation_index : u32) { for(var idx : u32 = local_invocation_index; (idx < 4u); idx = (idx + 1u)) { let i : u32 = idx; @@ -1241,7 +1241,7 @@ fn f(@builtin(local_invocation_index) local_invocation_index : u32) { TEST_F(ZeroInitWorkgroupMemoryTest, WorkgroupArrayOfAtomics_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { atomicLoad(&w[0]); // Initialization should be inserted above this statement } @@ -1249,7 +1249,7 @@ fn f() { var w : array, 4>; )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_index) local_invocation_index : u32) { for(var idx : u32 = local_invocation_index; (idx < 4u); idx = (idx + 1u)) { let i : u32 = idx; @@ -1279,7 +1279,7 @@ struct S { var w : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { _ = w[0].a; // Initialization should be inserted above this statement } @@ -1295,7 +1295,7 @@ struct S { var w : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_index) local_invocation_index : u32) { for(var idx : u32 = local_invocation_index; (idx < 4u); idx = (idx + 1u)) { let i_1 : u32 = idx; @@ -1317,7 +1317,7 @@ fn f(@builtin(local_invocation_index) local_invocation_index : u32) { TEST_F(ZeroInitWorkgroupMemoryTest, WorkgroupArrayOfStructOfAtomics_OutOfOrder) { auto* src = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { _ = w[0].a; // Initialization should be inserted above this statement } @@ -1333,7 +1333,7 @@ struct S { }; )"; auto* expect = R"( -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f(@builtin(local_invocation_index) local_invocation_index : u32) { for(var idx : u32 = local_invocation_index; (idx < 4u); idx = (idx + 1u)) { let i_1 : u32 = idx; diff --git a/src/tint/writer/glsl/generator_impl_function_test.cc b/src/tint/writer/glsl/generator_impl_function_test.cc index 201e757088..c5bccf263b 100644 --- a/src/tint/writer/glsl/generator_impl_function_test.cc +++ b/src/tint/writer/glsl/generator_impl_function_test.cc @@ -877,13 +877,13 @@ TEST_F(GlslGeneratorImplTest_Function, Emit_Multiple_EntryPoint_With_Same_Module // }; // @binding(0) @group(0) var data : Data; // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn a() { // var v = data.d; // return; // } // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn b() { // var v = data.d; // return; diff --git a/src/tint/writer/hlsl/generator_impl_function_test.cc b/src/tint/writer/hlsl/generator_impl_function_test.cc index cbd95ec1e4..c994b35b5d 100644 --- a/src/tint/writer/hlsl/generator_impl_function_test.cc +++ b/src/tint/writer/hlsl/generator_impl_function_test.cc @@ -816,13 +816,13 @@ TEST_F(HlslGeneratorImplTest_Function, Emit_Multiple_EntryPoint_With_Same_Module // }; // @binding(0) @group(0) var data : Data; // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn a() { // var v = data.d; // return; // } // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn b() { // var v = data.d; // return; diff --git a/src/tint/writer/msl/generator_impl_function_test.cc b/src/tint/writer/msl/generator_impl_function_test.cc index 585e8fcf9d..3c78522487 100644 --- a/src/tint/writer/msl/generator_impl_function_test.cc +++ b/src/tint/writer/msl/generator_impl_function_test.cc @@ -615,12 +615,12 @@ TEST_F(MslGeneratorImplTest, Emit_Function_Multiple_EntryPoint_With_Same_ModuleV // }; // @binding(0) @group(0) var data : Data; // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn a() { // return; // } // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn b() { // return; // } diff --git a/src/tint/writer/spirv/builder_entry_point_test.cc b/src/tint/writer/spirv/builder_entry_point_test.cc index 50398a363b..a407aa7fb9 100644 --- a/src/tint/writer/spirv/builder_entry_point_test.cc +++ b/src/tint/writer/spirv/builder_entry_point_test.cc @@ -37,7 +37,7 @@ namespace { using BuilderTest = TestHelper; TEST_F(BuilderTest, EntryPoint_Parameters) { - // @stage(fragment) + // @fragment // fn frag_main(@builtin(position) coord : vec4, // @location(1) loc1 : f32) { // var col : f32 = (coord.x * loc1); @@ -105,7 +105,7 @@ OpFunctionEnd } TEST_F(BuilderTest, EntryPoint_ReturnValue) { - // @stage(fragment) + // @fragment // fn frag_main(@location(0) @interpolate(flat) loc_in : u32) // -> @location(0) f32 { // if (loc_in > 10) { @@ -187,12 +187,12 @@ TEST_F(BuilderTest, EntryPoint_SharedStruct) { // @builtin(position) pos : vec4; // }; // - // @stage(vertex) + // @vertex // fn vert_main() -> Interface { // return Interface(42.0, vec4()); // } // - // @stage(fragment) + // @fragment // fn frag_main(inputs : Interface) -> @builtin(frag_depth) f32 { // return inputs.value; // } diff --git a/src/tint/writer/spirv/builder_function_test.cc b/src/tint/writer/spirv/builder_function_test.cc index fdb6a34b92..2fd1c32696 100644 --- a/src/tint/writer/spirv/builder_function_test.cc +++ b/src/tint/writer/spirv/builder_function_test.cc @@ -186,12 +186,12 @@ TEST_F(BuilderTest, Emit_Multiple_EntryPoint_With_Same_ModuleVar) { // }; // @binding(0) @group(0) var data : Data; // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn a() { // return; // } // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn b() { // return; // } diff --git a/src/tint/writer/wgsl/generator_impl.cc b/src/tint/writer/wgsl/generator_impl.cc index c71cd4959c..5e0ce8c16f 100644 --- a/src/tint/writer/wgsl/generator_impl.cc +++ b/src/tint/writer/wgsl/generator_impl.cc @@ -710,7 +710,7 @@ bool GeneratorImpl::EmitAttributes(std::ostream& out, const ast::AttributeList& return true; }, [&](const ast::StageAttribute* stage) { - out << "stage(" << stage->stage << ")"; + out << stage->stage; return true; }, [&](const ast::BindingAttribute* binding) { diff --git a/src/tint/writer/wgsl/generator_impl_function_test.cc b/src/tint/writer/wgsl/generator_impl_function_test.cc index 4c43a592f1..e34292bb15 100644 --- a/src/tint/writer/wgsl/generator_impl_function_test.cc +++ b/src/tint/writer/wgsl/generator_impl_function_test.cc @@ -73,7 +73,7 @@ TEST_F(WgslGeneratorImplTest, Emit_Function_WithAttribute_WorkgroupSize) { gen.increment_indent(); ASSERT_TRUE(gen.EmitFunction(func)); - EXPECT_EQ(gen.result(), R"( @stage(compute) @workgroup_size(2i, 4i, 6i) + EXPECT_EQ(gen.result(), R"( @compute @workgroup_size(2i, 4i, 6i) fn my_func() { return; } @@ -93,7 +93,7 @@ TEST_F(WgslGeneratorImplTest, Emit_Function_WithAttribute_WorkgroupSize_WithIden gen.increment_indent(); ASSERT_TRUE(gen.EmitFunction(func)); - EXPECT_EQ(gen.result(), R"( @stage(compute) @workgroup_size(2i, height) + EXPECT_EQ(gen.result(), R"( @compute @workgroup_size(2i, height) fn my_func() { return; } @@ -114,7 +114,7 @@ TEST_F(WgslGeneratorImplTest, Emit_Function_EntryPoint_Parameters) { gen.increment_indent(); ASSERT_TRUE(gen.EmitFunction(func)); - EXPECT_EQ(gen.result(), R"( @stage(fragment) + EXPECT_EQ(gen.result(), R"( @fragment fn frag_main(@builtin(position) coord : vec4, @location(1) loc1 : f32) { } )"); @@ -137,7 +137,7 @@ TEST_F(WgslGeneratorImplTest, Emit_Function_EntryPoint_ReturnValue) { gen.increment_indent(); ASSERT_TRUE(gen.EmitFunction(func)); - EXPECT_EQ(gen.result(), R"( @stage(fragment) + EXPECT_EQ(gen.result(), R"( @fragment fn frag_main() -> @location(1) f32 { return 1.0f; } @@ -151,12 +151,12 @@ TEST_F(WgslGeneratorImplTest, Emit_Function_Multiple_EntryPoint_With_Same_Module // }; // @binding(0) @group(0) var data : Data; // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn a() { // return; // } // - // @stage(compute) @workgroup_size(1) + // @compute @workgroup_size(1) // fn b() { // return; // } @@ -206,13 +206,13 @@ TEST_F(WgslGeneratorImplTest, Emit_Function_Multiple_EntryPoint_With_Same_Module @binding(0) @group(0) var data : Data; -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn a() { var v : f32 = data.d; return; } -@stage(compute) @workgroup_size(1i) +@compute @workgroup_size(1i) fn b() { var v : f32 = data.d; return; diff --git a/src/tint/writer/wgsl/generator_impl_global_decl_test.cc b/src/tint/writer/wgsl/generator_impl_global_decl_test.cc index 8e1c9a6f23..48f1276790 100644 --- a/src/tint/writer/wgsl/generator_impl_global_decl_test.cc +++ b/src/tint/writer/wgsl/generator_impl_global_decl_test.cc @@ -35,7 +35,7 @@ TEST_F(WgslGeneratorImplTest, Emit_GlobalDeclAfterFunction) { gen.increment_indent(); ASSERT_TRUE(gen.Generate()) << gen.error(); - EXPECT_EQ(gen.result(), R"( @stage(compute) @workgroup_size(1i, 1i, 1i) + EXPECT_EQ(gen.result(), R"( @compute @workgroup_size(1i, 1i, 1i) fn test_function() { var a : f32; } @@ -91,7 +91,7 @@ TEST_F(WgslGeneratorImplTest, Emit_GlobalsInterleaved) { a : i32, } - @stage(compute) @workgroup_size(1i) + @compute @workgroup_size(1i) fn main() { var s0 : S0; var s1 : S1; diff --git a/test/tint/access/let/matrix.spvasm.expected.wgsl b/test/tint/access/let/matrix.spvasm.expected.wgsl index 9b26713f11..01bd4419ab 100644 --- a/test/tint/access/let/matrix.spvasm.expected.wgsl +++ b/test/tint/access/let/matrix.spvasm.expected.wgsl @@ -3,7 +3,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main() { main_1(); } diff --git a/test/tint/access/let/matrix.wgsl b/test/tint/access/let/matrix.wgsl index b4c77cfb3c..3d96fba6b7 100644 --- a/test/tint/access/let/matrix.wgsl +++ b/test/tint/access/let/matrix.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let m : mat3x3 = mat3x3(vec3(1., 2., 3.), vec3(4., 5., 6.), vec3(7., 8., 9.)); let v : vec3 = m[1]; diff --git a/test/tint/access/let/matrix.wgsl.expected.wgsl b/test/tint/access/let/matrix.wgsl.expected.wgsl index f5dbdfb808..bdfd20785b 100644 --- a/test/tint/access/let/matrix.wgsl.expected.wgsl +++ b/test/tint/access/let/matrix.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let m : mat3x3 = mat3x3(vec3(1.0, 2.0, 3.0), vec3(4.0, 5.0, 6.0), vec3(7.0, 8.0, 9.0)); let v : vec3 = m[1]; diff --git a/test/tint/access/let/vector.spvasm.expected.wgsl b/test/tint/access/let/vector.spvasm.expected.wgsl index a5385e1b5b..d80b9cfb08 100644 --- a/test/tint/access/let/vector.spvasm.expected.wgsl +++ b/test/tint/access/let/vector.spvasm.expected.wgsl @@ -5,7 +5,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main() { main_1(); } diff --git a/test/tint/access/let/vector.wgsl b/test/tint/access/let/vector.wgsl index 3589c6b445..87604a91c9 100644 --- a/test/tint/access/let/vector.wgsl +++ b/test/tint/access/let/vector.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let v : vec3 = vec3(1., 2., 3.); let scalar : f32 = v.y; diff --git a/test/tint/access/let/vector.wgsl.expected.wgsl b/test/tint/access/let/vector.wgsl.expected.wgsl index d7d7a2de0c..6646867042 100644 --- a/test/tint/access/let/vector.wgsl.expected.wgsl +++ b/test/tint/access/let/vector.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let v : vec3 = vec3(1.0, 2.0, 3.0); let scalar : f32 = v.y; diff --git a/test/tint/access/var/matrix.spvasm.expected.wgsl b/test/tint/access/var/matrix.spvasm.expected.wgsl index a187f2c629..df0ad85b02 100644 --- a/test/tint/access/var/matrix.spvasm.expected.wgsl +++ b/test/tint/access/var/matrix.spvasm.expected.wgsl @@ -5,7 +5,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main() { main_1(); } diff --git a/test/tint/access/var/matrix.wgsl b/test/tint/access/var/matrix.wgsl index d511bd42d0..92db7c0b20 100644 --- a/test/tint/access/var/matrix.wgsl +++ b/test/tint/access/var/matrix.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var m : mat3x3; let v : vec3 = m[1]; diff --git a/test/tint/access/var/matrix.wgsl.expected.wgsl b/test/tint/access/var/matrix.wgsl.expected.wgsl index d511bd42d0..92db7c0b20 100644 --- a/test/tint/access/var/matrix.wgsl.expected.wgsl +++ b/test/tint/access/var/matrix.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var m : mat3x3; let v : vec3 = m[1]; diff --git a/test/tint/access/var/vector.spvasm.expected.wgsl b/test/tint/access/var/vector.spvasm.expected.wgsl index b13bb1aea6..a44d63328b 100644 --- a/test/tint/access/var/vector.spvasm.expected.wgsl +++ b/test/tint/access/var/vector.spvasm.expected.wgsl @@ -8,7 +8,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main() { main_1(); } diff --git a/test/tint/access/var/vector.wgsl b/test/tint/access/var/vector.wgsl index 078f82e453..8cc17f879b 100644 --- a/test/tint/access/var/vector.wgsl +++ b/test/tint/access/var/vector.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : vec3; let scalar : f32 = v.y; diff --git a/test/tint/access/var/vector.wgsl.expected.wgsl b/test/tint/access/var/vector.wgsl.expected.wgsl index 078f82e453..8cc17f879b 100644 --- a/test/tint/access/var/vector.wgsl.expected.wgsl +++ b/test/tint/access/var/vector.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : vec3; let scalar : f32 = v.y; diff --git a/test/tint/array/function_parameter.wgsl b/test/tint/array/function_parameter.wgsl index 23de855764..be06c51413 100644 --- a/test/tint/array/function_parameter.wgsl +++ b/test/tint/array/function_parameter.wgsl @@ -10,7 +10,7 @@ fn f3(a : array, 3>, 2>) -> f32 { return a[1][2][3]; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let a1 : array = array(); let a2 : array, 3> = array, 3>(); diff --git a/test/tint/array/function_parameter.wgsl.expected.wgsl b/test/tint/array/function_parameter.wgsl.expected.wgsl index 23de855764..be06c51413 100644 --- a/test/tint/array/function_parameter.wgsl.expected.wgsl +++ b/test/tint/array/function_parameter.wgsl.expected.wgsl @@ -10,7 +10,7 @@ fn f3(a : array, 3>, 2>) -> f32 { return a[1][2][3]; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let a1 : array = array(); let a2 : array, 3> = array, 3>(); diff --git a/test/tint/array/function_return_type.wgsl b/test/tint/array/function_return_type.wgsl index 749124546a..4b5dddc81c 100644 --- a/test/tint/array/function_return_type.wgsl +++ b/test/tint/array/function_return_type.wgsl @@ -10,7 +10,7 @@ fn f3() -> array, 3>, 2> { return array, 3>, 2>(f2(), f2()); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let a1 : array = f1(); let a2 : array, 3> = f2(); diff --git a/test/tint/array/function_return_type.wgsl.expected.wgsl b/test/tint/array/function_return_type.wgsl.expected.wgsl index 749124546a..4b5dddc81c 100644 --- a/test/tint/array/function_return_type.wgsl.expected.wgsl +++ b/test/tint/array/function_return_type.wgsl.expected.wgsl @@ -10,7 +10,7 @@ fn f3() -> array, 3>, 2> { return array, 3>, 2>(f2(), f2()); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let a1 : array = f1(); let a2 : array, 3> = f2(); diff --git a/test/tint/array/size.wgsl b/test/tint/array/size.wgsl index 60721dbf6e..f9135ad9e4 100644 --- a/test/tint/array/size.wgsl +++ b/test/tint/array/size.wgsl @@ -1,7 +1,7 @@ let slen = 4; let ulen = 4u; -@stage(fragment) +@fragment fn main() { var signed_literal : array; var unsigned_literal : array; diff --git a/test/tint/array/size.wgsl.expected.wgsl b/test/tint/array/size.wgsl.expected.wgsl index 0998407a21..7b6efc627b 100644 --- a/test/tint/array/size.wgsl.expected.wgsl +++ b/test/tint/array/size.wgsl.expected.wgsl @@ -2,7 +2,7 @@ let slen = 4; let ulen = 4u; -@stage(fragment) +@fragment fn main() { var signed_literal : array; var unsigned_literal : array; diff --git a/test/tint/array/strides.spvasm b/test/tint/array/strides.spvasm index d0ae14d7bd..9730642eb1 100644 --- a/test/tint/array/strides.spvasm +++ b/test/tint/array/strides.spvasm @@ -5,7 +5,7 @@ ; }; ; @group(0) @binding(0) var s : S; ; -; @stage(compute) @workgroup_size(1) +; @compute @workgroup_size(1) ; fn f() { ; let a : ARR_B = s.a; ; let b : array<@stride(8) array, 3> = s.a[3]; diff --git a/test/tint/array/strides.spvasm.expected.wgsl b/test/tint/array/strides.spvasm.expected.wgsl index 14e0a9e85a..74fe15c627 100644 --- a/test/tint/array/strides.spvasm.expected.wgsl +++ b/test/tint/array/strides.spvasm.expected.wgsl @@ -30,7 +30,7 @@ fn f_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn f() { f_1(); } diff --git a/test/tint/array/type_constructor.wgsl b/test/tint/array/type_constructor.wgsl index 8a07f39a83..e975089f99 100644 --- a/test/tint/array/type_constructor.wgsl +++ b/test/tint/array/type_constructor.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x : i32 = 42; diff --git a/test/tint/array/type_constructor.wgsl.expected.wgsl b/test/tint/array/type_constructor.wgsl.expected.wgsl index 4381ec8741..a1a942a25b 100644 --- a/test/tint/array/type_constructor.wgsl.expected.wgsl +++ b/test/tint/array/type_constructor.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x : i32 = 42; let empty : array = array(); diff --git a/test/tint/benchmark/animometer.wgsl b/test/tint/benchmark/animometer.wgsl index 393c487149..db0eae28e3 100644 --- a/test/tint/benchmark/animometer.wgsl +++ b/test/tint/benchmark/animometer.wgsl @@ -21,7 +21,7 @@ struct VertexOutput { v_color : vec4, } -@stage(vertex) +@vertex fn vert_main(@location(0) position : vec4, @location(1) color : vec4) -> VertexOutput { var fade : f32 = ((uniforms.scalarOffset + ((time.value * uniforms.scalar) / 10.0)) % 1.0); if ((fade < 0.5)) { @@ -42,7 +42,7 @@ fn vert_main(@location(0) position : vec4, @location(1) color : vec4) return output; } -@stage(fragment) +@fragment fn frag_main(@location(0) v_color : vec4) -> @location(0) vec4 { return v_color; } diff --git a/test/tint/benchmark/bloom-vertical-blur.wgsl b/test/tint/benchmark/bloom-vertical-blur.wgsl index 79145c95af..3754c10843 100644 --- a/test/tint/benchmark/bloom-vertical-blur.wgsl +++ b/test/tint/benchmark/bloom-vertical-blur.wgsl @@ -34,7 +34,7 @@ fn getGaussianBlur(texCoord : vec2) -> vec4 { @group(0) @binding(3) var prevTexture : texture_2d; -@stage(fragment) +@fragment fn fragmentMain(input : FragmentInput) -> @location(0) vec4 { let blurColor = getGaussianBlur(input.texCoord); let dimColor = (textureSample(prevTexture, bloomSampler, input.texCoord) * bloom.dim); diff --git a/test/tint/benchmark/cluster-lights.wgsl b/test/tint/benchmark/cluster-lights.wgsl index 81d937c483..c6eacc4064 100644 --- a/test/tint/benchmark/cluster-lights.wgsl +++ b/test/tint/benchmark/cluster-lights.wgsl @@ -85,7 +85,7 @@ fn sqDistPointAABB(point : vec3, minAABB : vec3, maxAABB : vec3) return sqDist; } -@stage(compute) @workgroup_size(4, 2, 4) +@compute @workgroup_size(4, 2, 4) fn computeMain(@builtin(global_invocation_id) global_id : vec3) { let tileIndex = ((global_id.x + (global_id.y * tileCount.x)) + ((global_id.z * tileCount.x) * tileCount.y)); var clusterLightCount = 0u; diff --git a/test/tint/benchmark/metaball-isosurface.wgsl b/test/tint/benchmark/metaball-isosurface.wgsl index e5dd3811bc..33eecb041f 100644 --- a/test/tint/benchmark/metaball-isosurface.wgsl +++ b/test/tint/benchmark/metaball-isosurface.wgsl @@ -102,7 +102,7 @@ fn interpZ(index : u32, i : vec3, va : f32, vb : f32) { cubeVerts = (cubeVerts + 1u); } -@stage(compute) @workgroup_size(4, 4, 4) +@compute @workgroup_size(4, 4, 4) fn computeMain(@builtin(global_invocation_id) global_id : vec3) { let i0 = global_id; let i1 = (global_id + vec3(1u, 0u, 0u)); diff --git a/test/tint/benchmark/particles.wgsl b/test/tint/benchmark/particles.wgsl index 416f878394..48628fffbf 100644 --- a/test/tint/benchmark/particles.wgsl +++ b/test/tint/benchmark/particles.wgsl @@ -31,7 +31,7 @@ struct VertexOutput { @location(1) quad_pos : vec2, // -1..+1 }; -@stage(vertex) +@vertex fn vs_main(in : VertexInput) -> VertexOutput { var quad_pos = mat2x3(render_params.right, render_params.up) * in.quad_pos; var position = in.position + quad_pos * 0.01; @@ -45,7 +45,7 @@ fn vs_main(in : VertexInput) -> VertexOutput { //////////////////////////////////////////////////////////////////////////////// // Fragment shader //////////////////////////////////////////////////////////////////////////////// -@stage(fragment) +@fragment fn fs_main(in : VertexOutput) -> @location(0) vec4 { var color = in.color; // Apply a circular particle alpha mask @@ -76,7 +76,7 @@ struct Particles { @binding(1) @group(0) var data : Particles; @binding(2) @group(0) var texture : texture_2d; -@stage(compute) @workgroup_size(64) +@compute @workgroup_size(64) fn simulate(@builtin(global_invocation_id) GlobalInvocationID : vec3) { rand_seed = (sim_params.seed.xy + vec2(GlobalInvocationID.xy)) * sim_params.seed.zw; @@ -148,7 +148,7 @@ struct Buffer { // Loads the alpha channel from a texel of the source image, and writes it to // the buf_out.weights. //////////////////////////////////////////////////////////////////////////////// -@stage(compute) @workgroup_size(64) +@compute @workgroup_size(64) fn import_level(@builtin(global_invocation_id) coord : vec3) { _ = &buf_in; let offset = coord.x + coord.y * ubo.width; @@ -163,7 +163,7 @@ fn import_level(@builtin(global_invocation_id) coord : vec3) { // mip level of tex_out. See simulate() in particle.wgsl to understand the // probability logic. //////////////////////////////////////////////////////////////////////////////// -@stage(compute) @workgroup_size(64) +@compute @workgroup_size(64) fn export_level(@builtin(global_invocation_id) coord : vec3) { if (all(coord.xy < vec2(textureDimensions(tex_out)))) { let dst_offset = coord.x + coord.y * ubo.width; diff --git a/test/tint/benchmark/shadow-fragment.wgsl b/test/tint/benchmark/shadow-fragment.wgsl index ee8269e532..29eee8665b 100644 --- a/test/tint/benchmark/shadow-fragment.wgsl +++ b/test/tint/benchmark/shadow-fragment.wgsl @@ -25,7 +25,7 @@ let albedo : vec3 = vec3(0.899999976, 0.899999976, 0.899999976); let ambientFactor : f32 = 0.200000003; -@stage(fragment) +@fragment fn main(input : FragmentInput) -> @location(0) vec4 { var visibility : f32 = 0.0; let oneOverShadowDepthTextureSize = (1.0 / shadowDepthTextureSize); diff --git a/test/tint/benchmark/simple-compute.wgsl b/test/tint/benchmark/simple-compute.wgsl index d2c2f20e79..427e51ccea 100644 --- a/test/tint/benchmark/simple-compute.wgsl +++ b/test/tint/benchmark/simple-compute.wgsl @@ -4,7 +4,7 @@ struct SB { @group(0) @binding(0) var buffer : SB; -@stage(compute) @workgroup_size(1, 2, 3) +@compute @workgroup_size(1, 2, 3) fn main(@builtin(global_invocation_id) id : vec3) { buffer.data[id.x] = buffer.data[id.x] + 1; } diff --git a/test/tint/benchmark/simple-fragment.wgsl b/test/tint/benchmark/simple-fragment.wgsl index 70413551e5..73e8ff87a8 100644 --- a/test/tint/benchmark/simple-fragment.wgsl +++ b/test/tint/benchmark/simple-fragment.wgsl @@ -6,7 +6,7 @@ struct Output { @location(0) color: vec4, }; -@stage(fragment) +@fragment fn main(in : Input) -> Output { return Output(in.color); } diff --git a/test/tint/benchmark/simple-vertex.wgsl b/test/tint/benchmark/simple-vertex.wgsl index b3e260eb2e..45b6bce4da 100644 --- a/test/tint/benchmark/simple-vertex.wgsl +++ b/test/tint/benchmark/simple-vertex.wgsl @@ -6,7 +6,7 @@ struct Output { @builtin(position) position : vec4, }; -@stage(vertex) +@vertex fn main(in : Input) -> Output { return Output(in.position); } diff --git a/test/tint/benchmark/skinned-shadowed-pbr-fragment.wgsl b/test/tint/benchmark/skinned-shadowed-pbr-fragment.wgsl index 5aa8758a8b..eb1c0b0242 100644 --- a/test/tint/benchmark/skinned-shadowed-pbr-fragment.wgsl +++ b/test/tint/benchmark/skinned-shadowed-pbr-fragment.wgsl @@ -330,7 +330,7 @@ struct FragmentOutput { emissive : vec4, } -@stage(fragment) +@fragment fn fragmentMain(input : VertexOutput) -> FragmentOutput { let surface = GetSurfaceInfo(input); var Lo = vec3(0.0, 0.0, 0.0); diff --git a/test/tint/benchmark/skinned-shadowed-pbr-vertex.wgsl b/test/tint/benchmark/skinned-shadowed-pbr-vertex.wgsl index 593ba23f69..daef31d1ec 100644 --- a/test/tint/benchmark/skinned-shadowed-pbr-vertex.wgsl +++ b/test/tint/benchmark/skinned-shadowed-pbr-vertex.wgsl @@ -80,7 +80,7 @@ fn getSkinMatrix(input : VertexInput) -> mat4x4 { return skinMatrix; } -@stage(vertex) +@vertex fn vertexMain(input : VertexInput) -> VertexOutput { var output : VertexOutput; let modelMatrix = getSkinMatrix(input); diff --git a/test/tint/buffer/storage/dynamic_index/read.wgsl b/test/tint/buffer/storage/dynamic_index/read.wgsl index d46694aa00..7c50c42f0f 100644 --- a/test/tint/buffer/storage/dynamic_index/read.wgsl +++ b/test/tint/buffer/storage/dynamic_index/read.wgsl @@ -16,7 +16,7 @@ struct S { @binding(0) @group(0) var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@builtin(local_invocation_index) idx : u32) { let a = s.arr[idx].a; let b = s.arr[idx].b; diff --git a/test/tint/buffer/storage/dynamic_index/read.wgsl.expected.wgsl b/test/tint/buffer/storage/dynamic_index/read.wgsl.expected.wgsl index ddfe806d1e..f082887d02 100644 --- a/test/tint/buffer/storage/dynamic_index/read.wgsl.expected.wgsl +++ b/test/tint/buffer/storage/dynamic_index/read.wgsl.expected.wgsl @@ -16,7 +16,7 @@ struct S { @binding(0) @group(0) var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@builtin(local_invocation_index) idx : u32) { let a = s.arr[idx].a; let b = s.arr[idx].b; diff --git a/test/tint/buffer/storage/dynamic_index/write.wgsl b/test/tint/buffer/storage/dynamic_index/write.wgsl index 03980d577f..38f202cc0d 100644 --- a/test/tint/buffer/storage/dynamic_index/write.wgsl +++ b/test/tint/buffer/storage/dynamic_index/write.wgsl @@ -16,7 +16,7 @@ struct S { @binding(0) @group(0) var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@builtin(local_invocation_index) idx : u32) { s.arr[idx].a = vec3(); s.arr[idx].b = i32(); diff --git a/test/tint/buffer/storage/dynamic_index/write.wgsl.expected.wgsl b/test/tint/buffer/storage/dynamic_index/write.wgsl.expected.wgsl index dc76bc0bc5..d2fbdfffc6 100644 --- a/test/tint/buffer/storage/dynamic_index/write.wgsl.expected.wgsl +++ b/test/tint/buffer/storage/dynamic_index/write.wgsl.expected.wgsl @@ -16,7 +16,7 @@ struct S { @binding(0) @group(0) var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@builtin(local_invocation_index) idx : u32) { s.arr[idx].a = vec3(); s.arr[idx].b = i32(); diff --git a/test/tint/buffer/storage/static_index/read.wgsl b/test/tint/buffer/storage/static_index/read.wgsl index fb56a9c349..84c51486c4 100644 --- a/test/tint/buffer/storage/static_index/read.wgsl +++ b/test/tint/buffer/storage/static_index/read.wgsl @@ -17,7 +17,7 @@ struct S { @binding(0) @group(0) var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let a = s.a; let b = s.b; diff --git a/test/tint/buffer/storage/static_index/read.wgsl.expected.wgsl b/test/tint/buffer/storage/static_index/read.wgsl.expected.wgsl index 6a5f32bb9d..89ab3c2c2f 100644 --- a/test/tint/buffer/storage/static_index/read.wgsl.expected.wgsl +++ b/test/tint/buffer/storage/static_index/read.wgsl.expected.wgsl @@ -17,7 +17,7 @@ struct S { @binding(0) @group(0) var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let a = s.a; let b = s.b; diff --git a/test/tint/buffer/storage/static_index/write.wgsl b/test/tint/buffer/storage/static_index/write.wgsl index d9c16cf83a..e1f7eab7e3 100644 --- a/test/tint/buffer/storage/static_index/write.wgsl +++ b/test/tint/buffer/storage/static_index/write.wgsl @@ -17,7 +17,7 @@ struct S { @binding(0) @group(0) var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { s.a = vec3(); s.b = i32(); diff --git a/test/tint/buffer/storage/static_index/write.wgsl.expected.wgsl b/test/tint/buffer/storage/static_index/write.wgsl.expected.wgsl index 74e590268a..fd7a1376a4 100644 --- a/test/tint/buffer/storage/static_index/write.wgsl.expected.wgsl +++ b/test/tint/buffer/storage/static_index/write.wgsl.expected.wgsl @@ -17,7 +17,7 @@ struct S { @binding(0) @group(0) var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { s.a = vec3(); s.b = i32(); diff --git a/test/tint/buffer/storage/types/array.wgsl b/test/tint/buffer/storage/types/array.wgsl index ae79369091..b78ebdc87f 100644 --- a/test/tint/buffer/storage/types/array.wgsl +++ b/test/tint/buffer/storage/types/array.wgsl @@ -4,7 +4,7 @@ var in : array; @group(0) @binding(1) var out : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out = in; } diff --git a/test/tint/buffer/storage/types/array.wgsl.expected.wgsl b/test/tint/buffer/storage/types/array.wgsl.expected.wgsl index 7cfa5a3ed2..690258d73b 100644 --- a/test/tint/buffer/storage/types/array.wgsl.expected.wgsl +++ b/test/tint/buffer/storage/types/array.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(0) @binding(1) var out : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out = in; } diff --git a/test/tint/buffer/storage/types/f32.wgsl b/test/tint/buffer/storage/types/f32.wgsl index d8d60afb26..08826f4162 100644 --- a/test/tint/buffer/storage/types/f32.wgsl +++ b/test/tint/buffer/storage/types/f32.wgsl @@ -4,7 +4,7 @@ var in : f32; @group(0) @binding(1) var out : f32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out = in; } diff --git a/test/tint/buffer/storage/types/f32.wgsl.expected.wgsl b/test/tint/buffer/storage/types/f32.wgsl.expected.wgsl index fc61aa9c81..968b335a60 100644 --- a/test/tint/buffer/storage/types/f32.wgsl.expected.wgsl +++ b/test/tint/buffer/storage/types/f32.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(0) @binding(1) var out : f32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out = in; } diff --git a/test/tint/buffer/storage/types/i32.wgsl b/test/tint/buffer/storage/types/i32.wgsl index fa63f1dce5..63f64e55e0 100644 --- a/test/tint/buffer/storage/types/i32.wgsl +++ b/test/tint/buffer/storage/types/i32.wgsl @@ -4,7 +4,7 @@ var in : i32; @group(0) @binding(1) var out : i32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out = in; } diff --git a/test/tint/buffer/storage/types/i32.wgsl.expected.wgsl b/test/tint/buffer/storage/types/i32.wgsl.expected.wgsl index f4b6b78ee3..9e0bc0f87b 100644 --- a/test/tint/buffer/storage/types/i32.wgsl.expected.wgsl +++ b/test/tint/buffer/storage/types/i32.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(0) @binding(1) var out : i32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out = in; } diff --git a/test/tint/buffer/storage/types/mat2x2.wgsl b/test/tint/buffer/storage/types/mat2x2.wgsl index 0fece1843d..0e2b545a4f 100644 --- a/test/tint/buffer/storage/types/mat2x2.wgsl +++ b/test/tint/buffer/storage/types/mat2x2.wgsl @@ -4,7 +4,7 @@ var in : mat2x2; @group(0) @binding(1) var out : mat2x2; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out = in; } diff --git a/test/tint/buffer/storage/types/mat2x2.wgsl.expected.wgsl b/test/tint/buffer/storage/types/mat2x2.wgsl.expected.wgsl index 5d3e65083b..75a7f2814f 100644 --- a/test/tint/buffer/storage/types/mat2x2.wgsl.expected.wgsl +++ b/test/tint/buffer/storage/types/mat2x2.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(0) @binding(1) var out : mat2x2; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out = in; } diff --git a/test/tint/buffer/storage/types/mat2x3.wgsl b/test/tint/buffer/storage/types/mat2x3.wgsl index 7d64f7ba4c..f4cc6d264f 100644 --- a/test/tint/buffer/storage/types/mat2x3.wgsl +++ b/test/tint/buffer/storage/types/mat2x3.wgsl @@ -4,7 +4,7 @@ var in : mat2x3; @group(0) @binding(1) var out : mat2x3; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out = in; } diff --git a/test/tint/buffer/storage/types/mat2x3.wgsl.expected.wgsl b/test/tint/buffer/storage/types/mat2x3.wgsl.expected.wgsl index 48eda48043..b3d979a956 100644 --- a/test/tint/buffer/storage/types/mat2x3.wgsl.expected.wgsl +++ b/test/tint/buffer/storage/types/mat2x3.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(0) @binding(1) var out : mat2x3; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out = in; } diff --git a/test/tint/buffer/storage/types/mat3x2.wgsl b/test/tint/buffer/storage/types/mat3x2.wgsl index e3f972f456..b9eee8ccbe 100644 --- a/test/tint/buffer/storage/types/mat3x2.wgsl +++ b/test/tint/buffer/storage/types/mat3x2.wgsl @@ -4,7 +4,7 @@ var in : mat3x2; @group(0) @binding(1) var out : mat3x2; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out = in; } diff --git a/test/tint/buffer/storage/types/mat3x2.wgsl.expected.wgsl b/test/tint/buffer/storage/types/mat3x2.wgsl.expected.wgsl index d5db4366c9..aa300eaee3 100644 --- a/test/tint/buffer/storage/types/mat3x2.wgsl.expected.wgsl +++ b/test/tint/buffer/storage/types/mat3x2.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(0) @binding(1) var out : mat3x2; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out = in; } diff --git a/test/tint/buffer/storage/types/mat4x4.wgsl b/test/tint/buffer/storage/types/mat4x4.wgsl index 673d9d3e3f..7a2d7730bd 100644 --- a/test/tint/buffer/storage/types/mat4x4.wgsl +++ b/test/tint/buffer/storage/types/mat4x4.wgsl @@ -4,7 +4,7 @@ var in : mat4x4; @group(0) @binding(1) var out : mat4x4; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out = in; } diff --git a/test/tint/buffer/storage/types/mat4x4.wgsl.expected.wgsl b/test/tint/buffer/storage/types/mat4x4.wgsl.expected.wgsl index 402743f69b..d06843b7e4 100644 --- a/test/tint/buffer/storage/types/mat4x4.wgsl.expected.wgsl +++ b/test/tint/buffer/storage/types/mat4x4.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(0) @binding(1) var out : mat4x4; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out = in; } diff --git a/test/tint/buffer/storage/types/runtime_array.wgsl b/test/tint/buffer/storage/types/runtime_array.wgsl index 156fd68912..4ecdc37a82 100644 --- a/test/tint/buffer/storage/types/runtime_array.wgsl +++ b/test/tint/buffer/storage/types/runtime_array.wgsl @@ -8,7 +8,7 @@ var in : array; @group(0) @binding(1) var out : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out[0] = in[0]; } diff --git a/test/tint/buffer/storage/types/runtime_array.wgsl.expected.wgsl b/test/tint/buffer/storage/types/runtime_array.wgsl.expected.wgsl index 5ceee23fe8..394663575a 100644 --- a/test/tint/buffer/storage/types/runtime_array.wgsl.expected.wgsl +++ b/test/tint/buffer/storage/types/runtime_array.wgsl.expected.wgsl @@ -6,7 +6,7 @@ struct S { @group(0) @binding(1) var out : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out[0] = in[0]; } diff --git a/test/tint/buffer/storage/types/struct.wgsl b/test/tint/buffer/storage/types/struct.wgsl index 57ad78af52..ad75a94e18 100644 --- a/test/tint/buffer/storage/types/struct.wgsl +++ b/test/tint/buffer/storage/types/struct.wgsl @@ -11,7 +11,7 @@ var in : S; @group(0) @binding(1) var out : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out = in; } diff --git a/test/tint/buffer/storage/types/struct.wgsl.expected.wgsl b/test/tint/buffer/storage/types/struct.wgsl.expected.wgsl index 553d4b7847..ad3cde32dd 100644 --- a/test/tint/buffer/storage/types/struct.wgsl.expected.wgsl +++ b/test/tint/buffer/storage/types/struct.wgsl.expected.wgsl @@ -10,7 +10,7 @@ struct S { @group(0) @binding(1) var out : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out = in; } diff --git a/test/tint/buffer/storage/types/u32.wgsl b/test/tint/buffer/storage/types/u32.wgsl index 0b875101d6..421ec82f9e 100644 --- a/test/tint/buffer/storage/types/u32.wgsl +++ b/test/tint/buffer/storage/types/u32.wgsl @@ -4,7 +4,7 @@ var in : u32; @group(0) @binding(1) var out : u32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out = in; } diff --git a/test/tint/buffer/storage/types/u32.wgsl.expected.wgsl b/test/tint/buffer/storage/types/u32.wgsl.expected.wgsl index 2cebf5e9da..896139e11e 100644 --- a/test/tint/buffer/storage/types/u32.wgsl.expected.wgsl +++ b/test/tint/buffer/storage/types/u32.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(0) @binding(1) var out : u32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out = in; } diff --git a/test/tint/buffer/storage/types/vec2.wgsl b/test/tint/buffer/storage/types/vec2.wgsl index d1466d5d1b..ae7b643e97 100644 --- a/test/tint/buffer/storage/types/vec2.wgsl +++ b/test/tint/buffer/storage/types/vec2.wgsl @@ -4,7 +4,7 @@ var in : vec2; @group(0) @binding(1) var out : vec2; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out = in; } diff --git a/test/tint/buffer/storage/types/vec2.wgsl.expected.wgsl b/test/tint/buffer/storage/types/vec2.wgsl.expected.wgsl index 806600b8cd..a129911494 100644 --- a/test/tint/buffer/storage/types/vec2.wgsl.expected.wgsl +++ b/test/tint/buffer/storage/types/vec2.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(0) @binding(1) var out : vec2; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out = in; } diff --git a/test/tint/buffer/storage/types/vec3.wgsl b/test/tint/buffer/storage/types/vec3.wgsl index 38e25d074d..d7872e4555 100644 --- a/test/tint/buffer/storage/types/vec3.wgsl +++ b/test/tint/buffer/storage/types/vec3.wgsl @@ -4,7 +4,7 @@ var in : vec3; @group(0) @binding(1) var out : vec3; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out = in; } diff --git a/test/tint/buffer/storage/types/vec3.wgsl.expected.wgsl b/test/tint/buffer/storage/types/vec3.wgsl.expected.wgsl index a3fcf3a70f..a476b2fe1d 100644 --- a/test/tint/buffer/storage/types/vec3.wgsl.expected.wgsl +++ b/test/tint/buffer/storage/types/vec3.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(0) @binding(1) var out : vec3; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out = in; } diff --git a/test/tint/buffer/storage/types/vec4.wgsl b/test/tint/buffer/storage/types/vec4.wgsl index b9bf279e75..c5041b6949 100644 --- a/test/tint/buffer/storage/types/vec4.wgsl +++ b/test/tint/buffer/storage/types/vec4.wgsl @@ -4,7 +4,7 @@ var in : vec4; @group(0) @binding(1) var out : vec4; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out = in; } diff --git a/test/tint/buffer/storage/types/vec4.wgsl.expected.wgsl b/test/tint/buffer/storage/types/vec4.wgsl.expected.wgsl index 22065c76cd..5450df4695 100644 --- a/test/tint/buffer/storage/types/vec4.wgsl.expected.wgsl +++ b/test/tint/buffer/storage/types/vec4.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(0) @binding(1) var out : vec4; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { out = in; } diff --git a/test/tint/buffer/uniform/dynamic_index/read.wgsl b/test/tint/buffer/uniform/dynamic_index/read.wgsl index 6057810309..05d1083a69 100644 --- a/test/tint/buffer/uniform/dynamic_index/read.wgsl +++ b/test/tint/buffer/uniform/dynamic_index/read.wgsl @@ -18,7 +18,7 @@ struct S { @binding(0) @group(0) var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@builtin(local_invocation_index) idx : u32) { let a = s.arr[idx].a; let b = s.arr[idx].b; diff --git a/test/tint/buffer/uniform/dynamic_index/read.wgsl.expected.wgsl b/test/tint/buffer/uniform/dynamic_index/read.wgsl.expected.wgsl index 486b22b6e1..8c8e684ddf 100644 --- a/test/tint/buffer/uniform/dynamic_index/read.wgsl.expected.wgsl +++ b/test/tint/buffer/uniform/dynamic_index/read.wgsl.expected.wgsl @@ -20,7 +20,7 @@ struct S { @binding(0) @group(0) var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@builtin(local_invocation_index) idx : u32) { let a = s.arr[idx].a; let b = s.arr[idx].b; diff --git a/test/tint/buffer/uniform/static_index/read.wgsl b/test/tint/buffer/uniform/static_index/read.wgsl index 85552f369e..ed6e7dc133 100644 --- a/test/tint/buffer/uniform/static_index/read.wgsl +++ b/test/tint/buffer/uniform/static_index/read.wgsl @@ -19,7 +19,7 @@ struct S { @binding(0) @group(0) var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let a = s.a; let b = s.b; diff --git a/test/tint/buffer/uniform/static_index/read.wgsl.expected.wgsl b/test/tint/buffer/uniform/static_index/read.wgsl.expected.wgsl index eb0a0f1c5b..3c5c891fd5 100644 --- a/test/tint/buffer/uniform/static_index/read.wgsl.expected.wgsl +++ b/test/tint/buffer/uniform/static_index/read.wgsl.expected.wgsl @@ -22,7 +22,7 @@ struct S { @binding(0) @group(0) var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let a = s.a; let b = s.b; diff --git a/test/tint/buffer/uniform/types/array.wgsl b/test/tint/buffer/uniform/types/array.wgsl index 01a7138b51..90a400cea3 100644 --- a/test/tint/buffer/uniform/types/array.wgsl +++ b/test/tint/buffer/uniform/types/array.wgsl @@ -1,7 +1,7 @@ @group(0) @binding(0) var u : array, 4>; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = u; } diff --git a/test/tint/buffer/uniform/types/array.wgsl.expected.wgsl b/test/tint/buffer/uniform/types/array.wgsl.expected.wgsl index 43d91c8c5c..8c2b5f09ac 100644 --- a/test/tint/buffer/uniform/types/array.wgsl.expected.wgsl +++ b/test/tint/buffer/uniform/types/array.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var u : array, 4>; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = u; } diff --git a/test/tint/buffer/uniform/types/f32.wgsl b/test/tint/buffer/uniform/types/f32.wgsl index bd785bb963..5826ac71be 100644 --- a/test/tint/buffer/uniform/types/f32.wgsl +++ b/test/tint/buffer/uniform/types/f32.wgsl @@ -1,7 +1,7 @@ @group(0) @binding(0) var u : f32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = u; } diff --git a/test/tint/buffer/uniform/types/f32.wgsl.expected.wgsl b/test/tint/buffer/uniform/types/f32.wgsl.expected.wgsl index ef2fa27baa..967dc09275 100644 --- a/test/tint/buffer/uniform/types/f32.wgsl.expected.wgsl +++ b/test/tint/buffer/uniform/types/f32.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var u : f32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = u; } diff --git a/test/tint/buffer/uniform/types/i32.wgsl b/test/tint/buffer/uniform/types/i32.wgsl index 9d6e5d4ce2..ce51ee86ce 100644 --- a/test/tint/buffer/uniform/types/i32.wgsl +++ b/test/tint/buffer/uniform/types/i32.wgsl @@ -1,7 +1,7 @@ @group(0) @binding(0) var u : i32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = u; } diff --git a/test/tint/buffer/uniform/types/i32.wgsl.expected.wgsl b/test/tint/buffer/uniform/types/i32.wgsl.expected.wgsl index 794f018acb..5862e44aa1 100644 --- a/test/tint/buffer/uniform/types/i32.wgsl.expected.wgsl +++ b/test/tint/buffer/uniform/types/i32.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var u : i32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = u; } diff --git a/test/tint/buffer/uniform/types/mat2x2.wgsl b/test/tint/buffer/uniform/types/mat2x2.wgsl index 5522accced..cedb1d62bf 100644 --- a/test/tint/buffer/uniform/types/mat2x2.wgsl +++ b/test/tint/buffer/uniform/types/mat2x2.wgsl @@ -1,7 +1,7 @@ @group(0) @binding(0) var u : mat2x2; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = u; } diff --git a/test/tint/buffer/uniform/types/mat2x2.wgsl.expected.wgsl b/test/tint/buffer/uniform/types/mat2x2.wgsl.expected.wgsl index 49ce708690..815d3d376a 100644 --- a/test/tint/buffer/uniform/types/mat2x2.wgsl.expected.wgsl +++ b/test/tint/buffer/uniform/types/mat2x2.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var u : mat2x2; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = u; } diff --git a/test/tint/buffer/uniform/types/mat2x3.wgsl b/test/tint/buffer/uniform/types/mat2x3.wgsl index 5179d281bf..4ded5c4e9e 100644 --- a/test/tint/buffer/uniform/types/mat2x3.wgsl +++ b/test/tint/buffer/uniform/types/mat2x3.wgsl @@ -1,7 +1,7 @@ @group(0) @binding(0) var u : mat2x3; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = u; } diff --git a/test/tint/buffer/uniform/types/mat2x3.wgsl.expected.wgsl b/test/tint/buffer/uniform/types/mat2x3.wgsl.expected.wgsl index e7f00733d4..58b2268c8e 100644 --- a/test/tint/buffer/uniform/types/mat2x3.wgsl.expected.wgsl +++ b/test/tint/buffer/uniform/types/mat2x3.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var u : mat2x3; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = u; } diff --git a/test/tint/buffer/uniform/types/mat3x2.wgsl b/test/tint/buffer/uniform/types/mat3x2.wgsl index 0a308b4775..2f6d0b7061 100644 --- a/test/tint/buffer/uniform/types/mat3x2.wgsl +++ b/test/tint/buffer/uniform/types/mat3x2.wgsl @@ -1,7 +1,7 @@ @group(0) @binding(0) var u : mat3x2; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = u; } diff --git a/test/tint/buffer/uniform/types/mat3x2.wgsl.expected.wgsl b/test/tint/buffer/uniform/types/mat3x2.wgsl.expected.wgsl index 874cf97757..f1c0ae0f99 100644 --- a/test/tint/buffer/uniform/types/mat3x2.wgsl.expected.wgsl +++ b/test/tint/buffer/uniform/types/mat3x2.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var u : mat3x2; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = u; } diff --git a/test/tint/buffer/uniform/types/mat4x4.wgsl b/test/tint/buffer/uniform/types/mat4x4.wgsl index a9bf3ca73d..7b587afbb2 100644 --- a/test/tint/buffer/uniform/types/mat4x4.wgsl +++ b/test/tint/buffer/uniform/types/mat4x4.wgsl @@ -1,7 +1,7 @@ @group(0) @binding(0) var u : mat4x4; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = u; } diff --git a/test/tint/buffer/uniform/types/mat4x4.wgsl.expected.wgsl b/test/tint/buffer/uniform/types/mat4x4.wgsl.expected.wgsl index aa2f714c26..ac47c7d52b 100644 --- a/test/tint/buffer/uniform/types/mat4x4.wgsl.expected.wgsl +++ b/test/tint/buffer/uniform/types/mat4x4.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var u : mat4x4; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = u; } diff --git a/test/tint/buffer/uniform/types/struct.wgsl b/test/tint/buffer/uniform/types/struct.wgsl index 91dbeb1f89..c50edb34c6 100644 --- a/test/tint/buffer/uniform/types/struct.wgsl +++ b/test/tint/buffer/uniform/types/struct.wgsl @@ -8,7 +8,7 @@ struct S { @group(0) @binding(0) var u : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = u; } diff --git a/test/tint/buffer/uniform/types/struct.wgsl.expected.wgsl b/test/tint/buffer/uniform/types/struct.wgsl.expected.wgsl index 745979dbd0..552be2cfc8 100644 --- a/test/tint/buffer/uniform/types/struct.wgsl.expected.wgsl +++ b/test/tint/buffer/uniform/types/struct.wgsl.expected.wgsl @@ -8,7 +8,7 @@ struct S { @group(0) @binding(0) var u : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = u; } diff --git a/test/tint/buffer/uniform/types/u32.wgsl b/test/tint/buffer/uniform/types/u32.wgsl index 3afc920224..ffccee1a5d 100644 --- a/test/tint/buffer/uniform/types/u32.wgsl +++ b/test/tint/buffer/uniform/types/u32.wgsl @@ -1,7 +1,7 @@ @group(0) @binding(0) var u : u32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = u; } diff --git a/test/tint/buffer/uniform/types/u32.wgsl.expected.wgsl b/test/tint/buffer/uniform/types/u32.wgsl.expected.wgsl index d5d7e7ff8b..ab6b39f218 100644 --- a/test/tint/buffer/uniform/types/u32.wgsl.expected.wgsl +++ b/test/tint/buffer/uniform/types/u32.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var u : u32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = u; } diff --git a/test/tint/buffer/uniform/types/vec2.wgsl b/test/tint/buffer/uniform/types/vec2.wgsl index 89e888916a..d86481ffa5 100644 --- a/test/tint/buffer/uniform/types/vec2.wgsl +++ b/test/tint/buffer/uniform/types/vec2.wgsl @@ -1,7 +1,7 @@ @group(0) @binding(0) var u : vec2; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = u; } diff --git a/test/tint/buffer/uniform/types/vec2.wgsl.expected.wgsl b/test/tint/buffer/uniform/types/vec2.wgsl.expected.wgsl index 44de55f4ec..0aa9b70a69 100644 --- a/test/tint/buffer/uniform/types/vec2.wgsl.expected.wgsl +++ b/test/tint/buffer/uniform/types/vec2.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var u : vec2; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = u; } diff --git a/test/tint/buffer/uniform/types/vec3.wgsl b/test/tint/buffer/uniform/types/vec3.wgsl index e571c47ee3..60e53dffd2 100644 --- a/test/tint/buffer/uniform/types/vec3.wgsl +++ b/test/tint/buffer/uniform/types/vec3.wgsl @@ -1,7 +1,7 @@ @group(0) @binding(0) var u : vec3; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = u; } diff --git a/test/tint/buffer/uniform/types/vec3.wgsl.expected.wgsl b/test/tint/buffer/uniform/types/vec3.wgsl.expected.wgsl index be459f763e..07e210299b 100644 --- a/test/tint/buffer/uniform/types/vec3.wgsl.expected.wgsl +++ b/test/tint/buffer/uniform/types/vec3.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var u : vec3; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = u; } diff --git a/test/tint/buffer/uniform/types/vec4.wgsl b/test/tint/buffer/uniform/types/vec4.wgsl index f15e971f8f..f3f92cc935 100644 --- a/test/tint/buffer/uniform/types/vec4.wgsl +++ b/test/tint/buffer/uniform/types/vec4.wgsl @@ -1,7 +1,7 @@ @group(0) @binding(0) var u : vec4; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = u; } diff --git a/test/tint/buffer/uniform/types/vec4.wgsl.expected.wgsl b/test/tint/buffer/uniform/types/vec4.wgsl.expected.wgsl index 41a4f37939..e3a8eb7ed4 100644 --- a/test/tint/buffer/uniform/types/vec4.wgsl.expected.wgsl +++ b/test/tint/buffer/uniform/types/vec4.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var u : vec4; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x = u; } diff --git a/test/tint/bug/chromium/1251009.wgsl b/test/tint/bug/chromium/1251009.wgsl index 436cd2f11c..7d4a346a5d 100644 --- a/test/tint/bug/chromium/1251009.wgsl +++ b/test/tint/bug/chromium/1251009.wgsl @@ -7,7 +7,7 @@ struct VertexInputs1 { @location(3) loc3 : vec4, }; -@stage(vertex) +@vertex fn main( inputs0 : VertexInputs0, @location(1) loc1 : u32, diff --git a/test/tint/bug/chromium/1251009.wgsl.expected.wgsl b/test/tint/bug/chromium/1251009.wgsl.expected.wgsl index 745618e4e5..17b12cebcb 100644 --- a/test/tint/bug/chromium/1251009.wgsl.expected.wgsl +++ b/test/tint/bug/chromium/1251009.wgsl.expected.wgsl @@ -12,7 +12,7 @@ struct VertexInputs1 { loc3 : vec4, } -@stage(vertex) +@vertex fn main(inputs0 : VertexInputs0, @location(1) loc1 : u32, @builtin(instance_index) instance_index : u32, inputs1 : VertexInputs1) -> @builtin(position) vec4 { let foo : u32 = (inputs0.vertex_index + instance_index); return vec4(); diff --git a/test/tint/bug/chromium/1273230.wgsl b/test/tint/bug/chromium/1273230.wgsl index 4fcf8f92e0..674edaf327 100644 --- a/test/tint/bug/chromium/1273230.wgsl +++ b/test/tint/bug/chromium/1273230.wgsl @@ -101,7 +101,7 @@ fn doIgnore() { var g55 = atomicLoad(&(LUT.values[0])); } -@stage(compute) @workgroup_size(128) +@compute @workgroup_size(128) fn main_count(@builtin(global_invocation_id) GlobalInvocationID : vec3) { var triangleIndex = GlobalInvocationID.x; if ((triangleIndex >= uniforms.numTriangles)) { diff --git a/test/tint/bug/chromium/1273230.wgsl.expected.wgsl b/test/tint/bug/chromium/1273230.wgsl.expected.wgsl index 165ae07139..80a32cdc95 100644 --- a/test/tint/bug/chromium/1273230.wgsl.expected.wgsl +++ b/test/tint/bug/chromium/1273230.wgsl.expected.wgsl @@ -98,7 +98,7 @@ fn doIgnore() { var g55 = atomicLoad(&(LUT.values[0])); } -@stage(compute) @workgroup_size(128) +@compute @workgroup_size(128) fn main_count(@builtin(global_invocation_id) GlobalInvocationID : vec3) { var triangleIndex = GlobalInvocationID.x; if ((triangleIndex >= uniforms.numTriangles)) { diff --git a/test/tint/bug/chromium/1290107.wgsl b/test/tint/bug/chromium/1290107.wgsl index 22899ad08b..de69aad725 100644 --- a/test/tint/bug/chromium/1290107.wgsl +++ b/test/tint/bug/chromium/1290107.wgsl @@ -4,7 +4,7 @@ struct S { @group(0) @binding(0) var arr : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let len = arrayLength(&arr); } diff --git a/test/tint/bug/chromium/1290107.wgsl.expected.wgsl b/test/tint/bug/chromium/1290107.wgsl.expected.wgsl index 99d1abba51..24eb88f491 100644 --- a/test/tint/bug/chromium/1290107.wgsl.expected.wgsl +++ b/test/tint/bug/chromium/1290107.wgsl.expected.wgsl @@ -4,7 +4,7 @@ struct S { @group(0) @binding(0) var arr : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let len = arrayLength(&(arr)); } diff --git a/test/tint/bug/dawn/947.wgsl b/test/tint/bug/dawn/947.wgsl index f89542ff94..5c5fa77029 100644 --- a/test/tint/bug/dawn/947.wgsl +++ b/test/tint/bug/dawn/947.wgsl @@ -9,7 +9,7 @@ struct VertexOutputs { @builtin(position) position : vec4, }; -@stage(vertex) fn vs_main( +@vertex fn vs_main( @builtin(vertex_index) VertexIndex : u32 ) -> VertexOutputs { var texcoord = array, 3>( @@ -46,7 +46,7 @@ struct VertexOutputs { @binding(1) @group(0) var mySampler: sampler; @binding(2) @group(0) var myTexture: texture_2d; -@stage(fragment) fn fs_main( +@fragment fn fs_main( @location(0) texcoord : vec2 ) -> @location(0) vec4 { // Clamp the texcoord and discard the out-of-bound pixels. diff --git a/test/tint/bug/dawn/947.wgsl.expected.wgsl b/test/tint/bug/dawn/947.wgsl.expected.wgsl index 04d34b06db..69590c5e2f 100644 --- a/test/tint/bug/dawn/947.wgsl.expected.wgsl +++ b/test/tint/bug/dawn/947.wgsl.expected.wgsl @@ -24,7 +24,7 @@ struct VertexOutputs { position : vec4, } -@stage(vertex) +@vertex fn vs_main(@builtin(vertex_index) VertexIndex : u32) -> VertexOutputs { var texcoord = array, 3>(vec2(-0.5, 0.0), vec2(1.5, 0.0), vec2(0.5, 2.0)); var output : VertexOutputs; @@ -42,7 +42,7 @@ fn vs_main(@builtin(vertex_index) VertexIndex : u32) -> VertexOutputs { @binding(2) @group(0) var myTexture : texture_2d; -@stage(fragment) +@fragment fn fs_main(@location(0) texcoord : vec2) -> @location(0) vec4 { var clampedTexcoord = clamp(texcoord, vec2(0.0, 0.0), vec2(1.0, 1.0)); if (!(all((clampedTexcoord == texcoord)))) { diff --git a/test/tint/bug/fxc/dyn_array_idx/read/function.wgsl b/test/tint/bug/fxc/dyn_array_idx/read/function.wgsl index 549d2671d6..089d82b2ce 100644 --- a/test/tint/bug/fxc/dyn_array_idx/read/function.wgsl +++ b/test/tint/bug/fxc/dyn_array_idx/read/function.wgsl @@ -10,7 +10,7 @@ struct Result { }; @group(0) @binding(1) var result: Result; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var s : S; result.out = s.data[ubo.dynamic_idx]; diff --git a/test/tint/bug/fxc/dyn_array_idx/read/function.wgsl.expected.wgsl b/test/tint/bug/fxc/dyn_array_idx/read/function.wgsl.expected.wgsl index 74fe1680b9..0d74328c66 100644 --- a/test/tint/bug/fxc/dyn_array_idx/read/function.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/dyn_array_idx/read/function.wgsl.expected.wgsl @@ -14,7 +14,7 @@ struct Result { @group(0) @binding(1) var result : Result; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var s : S; result.out = s.data[ubo.dynamic_idx]; diff --git a/test/tint/bug/fxc/dyn_array_idx/read/private.wgsl b/test/tint/bug/fxc/dyn_array_idx/read/private.wgsl index 28cf03278b..838c01f83c 100644 --- a/test/tint/bug/fxc/dyn_array_idx/read/private.wgsl +++ b/test/tint/bug/fxc/dyn_array_idx/read/private.wgsl @@ -12,7 +12,7 @@ struct Result { var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { result.out = s.data[ubo.dynamic_idx]; } diff --git a/test/tint/bug/fxc/dyn_array_idx/read/private.wgsl.expected.wgsl b/test/tint/bug/fxc/dyn_array_idx/read/private.wgsl.expected.wgsl index e8ecf948fb..53ae23a49d 100644 --- a/test/tint/bug/fxc/dyn_array_idx/read/private.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/dyn_array_idx/read/private.wgsl.expected.wgsl @@ -16,7 +16,7 @@ struct Result { var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { result.out = s.data[ubo.dynamic_idx]; } diff --git a/test/tint/bug/fxc/dyn_array_idx/read/storage.wgsl b/test/tint/bug/fxc/dyn_array_idx/read/storage.wgsl index c665d8e74c..eed6688b31 100644 --- a/test/tint/bug/fxc/dyn_array_idx/read/storage.wgsl +++ b/test/tint/bug/fxc/dyn_array_idx/read/storage.wgsl @@ -12,7 +12,7 @@ struct SSBO { }; @group(0) @binding(1) var ssbo: SSBO; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { result.out = ssbo.data[ubo.dynamic_idx]; } diff --git a/test/tint/bug/fxc/dyn_array_idx/read/storage.wgsl.expected.wgsl b/test/tint/bug/fxc/dyn_array_idx/read/storage.wgsl.expected.wgsl index 82b357d4e9..537156dc80 100644 --- a/test/tint/bug/fxc/dyn_array_idx/read/storage.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/dyn_array_idx/read/storage.wgsl.expected.wgsl @@ -16,7 +16,7 @@ struct SSBO { @group(0) @binding(1) var ssbo : SSBO; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { result.out = ssbo.data[ubo.dynamic_idx]; } diff --git a/test/tint/bug/fxc/dyn_array_idx/read/uniform.wgsl b/test/tint/bug/fxc/dyn_array_idx/read/uniform.wgsl index 0201af50db..c5140a7be1 100644 --- a/test/tint/bug/fxc/dyn_array_idx/read/uniform.wgsl +++ b/test/tint/bug/fxc/dyn_array_idx/read/uniform.wgsl @@ -8,7 +8,7 @@ struct Result { }; @group(0) @binding(2) var result: Result; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { result.out = ubo.data[ubo.dynamic_idx].x; } diff --git a/test/tint/bug/fxc/dyn_array_idx/read/uniform.wgsl.expected.wgsl b/test/tint/bug/fxc/dyn_array_idx/read/uniform.wgsl.expected.wgsl index 1a0f804926..d1903e378f 100644 --- a/test/tint/bug/fxc/dyn_array_idx/read/uniform.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/dyn_array_idx/read/uniform.wgsl.expected.wgsl @@ -11,7 +11,7 @@ struct Result { @group(0) @binding(2) var result : Result; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { result.out = ubo.data[ubo.dynamic_idx].x; } diff --git a/test/tint/bug/fxc/dyn_array_idx/read/workgroup.wgsl b/test/tint/bug/fxc/dyn_array_idx/read/workgroup.wgsl index 44d7f1eda9..210adfef4d 100644 --- a/test/tint/bug/fxc/dyn_array_idx/read/workgroup.wgsl +++ b/test/tint/bug/fxc/dyn_array_idx/read/workgroup.wgsl @@ -12,7 +12,7 @@ struct Result { var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { result.out = s.data[ubo.dynamic_idx]; } diff --git a/test/tint/bug/fxc/dyn_array_idx/read/workgroup.wgsl.expected.wgsl b/test/tint/bug/fxc/dyn_array_idx/read/workgroup.wgsl.expected.wgsl index 35d672ab39..c49cc40ed6 100644 --- a/test/tint/bug/fxc/dyn_array_idx/read/workgroup.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/dyn_array_idx/read/workgroup.wgsl.expected.wgsl @@ -16,7 +16,7 @@ struct Result { var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { result.out = s.data[ubo.dynamic_idx]; } diff --git a/test/tint/bug/fxc/dyn_array_idx/write/function.wgsl b/test/tint/bug/fxc/dyn_array_idx/write/function.wgsl index f8b1cbbaaf..b19ea5395c 100644 --- a/test/tint/bug/fxc/dyn_array_idx/write/function.wgsl +++ b/test/tint/bug/fxc/dyn_array_idx/write/function.wgsl @@ -10,7 +10,7 @@ struct Result { }; @group(0) @binding(1) var result: Result; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var s : S; s.data[ubo.dynamic_idx] = 1; diff --git a/test/tint/bug/fxc/dyn_array_idx/write/function.wgsl.expected.wgsl b/test/tint/bug/fxc/dyn_array_idx/write/function.wgsl.expected.wgsl index 4d3b911407..4c2070d5da 100644 --- a/test/tint/bug/fxc/dyn_array_idx/write/function.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/dyn_array_idx/write/function.wgsl.expected.wgsl @@ -14,7 +14,7 @@ struct Result { @group(0) @binding(1) var result : Result; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var s : S; s.data[ubo.dynamic_idx] = 1; diff --git a/test/tint/bug/fxc/dyn_array_idx/write/function_via_param.wgsl b/test/tint/bug/fxc/dyn_array_idx/write/function_via_param.wgsl index 4fcf160442..15863252aa 100644 --- a/test/tint/bug/fxc/dyn_array_idx/write/function_via_param.wgsl +++ b/test/tint/bug/fxc/dyn_array_idx/write/function_via_param.wgsl @@ -14,7 +14,7 @@ fn x(p : ptr) { (*p).data[ubo.dynamic_idx] = 1; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var s : S; x(&s); diff --git a/test/tint/bug/fxc/dyn_array_idx/write/function_via_param.wgsl.expected.wgsl b/test/tint/bug/fxc/dyn_array_idx/write/function_via_param.wgsl.expected.wgsl index 79b222285f..85c61a5f71 100644 --- a/test/tint/bug/fxc/dyn_array_idx/write/function_via_param.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/dyn_array_idx/write/function_via_param.wgsl.expected.wgsl @@ -18,7 +18,7 @@ fn x(p : ptr) { (*(p)).data[ubo.dynamic_idx] = 1; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var s : S; x(&(s)); diff --git a/test/tint/bug/fxc/dyn_array_idx/write/private.wgsl b/test/tint/bug/fxc/dyn_array_idx/write/private.wgsl index c86094a1c7..a6e4f17c41 100644 --- a/test/tint/bug/fxc/dyn_array_idx/write/private.wgsl +++ b/test/tint/bug/fxc/dyn_array_idx/write/private.wgsl @@ -12,7 +12,7 @@ struct Result { var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { s.data[ubo.dynamic_idx] = 1; result.out = s.data[3]; diff --git a/test/tint/bug/fxc/dyn_array_idx/write/private.wgsl.expected.wgsl b/test/tint/bug/fxc/dyn_array_idx/write/private.wgsl.expected.wgsl index 31d7c74d53..5505a8b909 100644 --- a/test/tint/bug/fxc/dyn_array_idx/write/private.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/dyn_array_idx/write/private.wgsl.expected.wgsl @@ -16,7 +16,7 @@ struct Result { var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { s.data[ubo.dynamic_idx] = 1; result.out = s.data[3]; diff --git a/test/tint/bug/fxc/dyn_array_idx/write/private_via_param.wgsl b/test/tint/bug/fxc/dyn_array_idx/write/private_via_param.wgsl index 94329c6c00..67706cd377 100644 --- a/test/tint/bug/fxc/dyn_array_idx/write/private_via_param.wgsl +++ b/test/tint/bug/fxc/dyn_array_idx/write/private_via_param.wgsl @@ -16,7 +16,7 @@ fn x(p : ptr) { (*p).data[ubo.dynamic_idx] = 1; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { x(&s); result.out = s.data[3]; diff --git a/test/tint/bug/fxc/dyn_array_idx/write/private_via_param.wgsl.expected.wgsl b/test/tint/bug/fxc/dyn_array_idx/write/private_via_param.wgsl.expected.wgsl index 9724ec040d..21d815f8ff 100644 --- a/test/tint/bug/fxc/dyn_array_idx/write/private_via_param.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/dyn_array_idx/write/private_via_param.wgsl.expected.wgsl @@ -20,7 +20,7 @@ fn x(p : ptr) { (*(p)).data[ubo.dynamic_idx] = 1; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { x(&(s)); result.out = s.data[3]; diff --git a/test/tint/bug/fxc/dyn_array_idx/write/storage.wgsl b/test/tint/bug/fxc/dyn_array_idx/write/storage.wgsl index f0204babff..9429cf66c6 100644 --- a/test/tint/bug/fxc/dyn_array_idx/write/storage.wgsl +++ b/test/tint/bug/fxc/dyn_array_idx/write/storage.wgsl @@ -12,7 +12,7 @@ struct SSBO { }; @group(0) @binding(1) var ssbo: SSBO; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { ssbo.data[ubo.dynamic_idx] = 1; result.out = ssbo.data[3]; diff --git a/test/tint/bug/fxc/dyn_array_idx/write/storage.wgsl.expected.wgsl b/test/tint/bug/fxc/dyn_array_idx/write/storage.wgsl.expected.wgsl index 942aea7358..aa07c77732 100644 --- a/test/tint/bug/fxc/dyn_array_idx/write/storage.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/dyn_array_idx/write/storage.wgsl.expected.wgsl @@ -16,7 +16,7 @@ struct SSBO { @group(0) @binding(1) var ssbo : SSBO; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { ssbo.data[ubo.dynamic_idx] = 1; result.out = ssbo.data[3]; diff --git a/test/tint/bug/fxc/dyn_array_idx/write/workgroup.wgsl b/test/tint/bug/fxc/dyn_array_idx/write/workgroup.wgsl index 8aa0ab3693..08bacaa902 100644 --- a/test/tint/bug/fxc/dyn_array_idx/write/workgroup.wgsl +++ b/test/tint/bug/fxc/dyn_array_idx/write/workgroup.wgsl @@ -12,7 +12,7 @@ struct Result { var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { s.data[ubo.dynamic_idx] = 1; result.out = s.data[3]; diff --git a/test/tint/bug/fxc/dyn_array_idx/write/workgroup.wgsl.expected.wgsl b/test/tint/bug/fxc/dyn_array_idx/write/workgroup.wgsl.expected.wgsl index 59c68f2090..0bdf4ac2ec 100644 --- a/test/tint/bug/fxc/dyn_array_idx/write/workgroup.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/dyn_array_idx/write/workgroup.wgsl.expected.wgsl @@ -16,7 +16,7 @@ struct Result { var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { s.data[ubo.dynamic_idx] = 1; result.out = s.data[3]; diff --git a/test/tint/bug/fxc/gradient_in_varying_loop/1112.wgsl b/test/tint/bug/fxc/gradient_in_varying_loop/1112.wgsl index a18d525655..dab8b71a34 100644 --- a/test/tint/bug/fxc/gradient_in_varying_loop/1112.wgsl +++ b/test/tint/bug/fxc/gradient_in_varying_loop/1112.wgsl @@ -3,7 +3,7 @@ @group(0) @binding(1) var randomTexture: texture_2d; @group(0) @binding(2) var depthTexture: texture_2d; -@stage(fragment) +@fragment fn main(@location(0) vUV : vec2) -> @location(0) vec4 { let random: vec3 = textureSample(randomTexture, Sampler, vUV).rgb; diff --git a/test/tint/bug/fxc/gradient_in_varying_loop/1112.wgsl.expected.wgsl b/test/tint/bug/fxc/gradient_in_varying_loop/1112.wgsl.expected.wgsl index 6b76e79063..1c743a40ad 100644 --- a/test/tint/bug/fxc/gradient_in_varying_loop/1112.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/gradient_in_varying_loop/1112.wgsl.expected.wgsl @@ -16,7 +16,7 @@ bug/fxc/gradient_in_varying_loop/1112.wgsl:8:29 note: return value of 'textureSa @group(0) @binding(2) var depthTexture : texture_2d; -@stage(fragment) +@fragment fn main(@location(0) vUV : vec2) -> @location(0) vec4 { let random : vec3 = textureSample(randomTexture, Sampler, vUV).rgb; var i = 0; diff --git a/test/tint/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl b/test/tint/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl index 4ac0a51ce2..7008e7853a 100644 --- a/test/tint/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl +++ b/test/tint/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl @@ -16,7 +16,7 @@ struct Particles { @group(1) @binding(3) var particles : Particles; @group(1) @binding(4) var sim : Simulation; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var particle = particles.p[0]; particle.position[sim.i] = particle.position[sim.i]; diff --git a/test/tint/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl.expected.wgsl b/test/tint/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl.expected.wgsl index 25f718b317..d27f5567ee 100644 --- a/test/tint/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl.expected.wgsl @@ -17,7 +17,7 @@ struct Particles { @group(1) @binding(4) var sim : Simulation; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var particle = particles.p[0]; particle.position[sim.i] = particle.position[sim.i]; diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_x.wgsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_x.wgsl index 2e7870bfb2..934ac92724 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_x.wgsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_x.wgsl @@ -5,7 +5,7 @@ @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var m1 : mat2x4; m1[uniforms.i][0] = 1.0; diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_x.wgsl.expected.wgsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_x.wgsl.expected.wgsl index 03abbbb0dc..b3f2644c77 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_x.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_x.wgsl.expected.wgsl @@ -5,7 +5,7 @@ struct Uniforms { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var m1 : mat2x4; m1[uniforms.i][0] = 1.0; diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_xy.wgsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_xy.wgsl index 11678921c3..8384885433 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_xy.wgsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_xy.wgsl @@ -5,7 +5,7 @@ @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var m1 : mat2x4; m1[uniforms.i][uniforms.j] = 1.0; diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_xy.wgsl.expected.wgsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_xy.wgsl.expected.wgsl index 76c2e489c4..2d7f64566c 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_xy.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_xy.wgsl.expected.wgsl @@ -5,7 +5,7 @@ struct Uniforms { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var m1 : mat2x4; m1[uniforms.i][uniforms.j] = 1.0; diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_y.wgsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_y.wgsl index 138c9a7c34..15112c5d00 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_y.wgsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_y.wgsl @@ -7,7 +7,7 @@ var m1 : mat2x4; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { m1[0][uniforms.j] = 1.0; } diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_y.wgsl.expected.wgsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_y.wgsl.expected.wgsl index f58814701d..24e47abc17 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_y.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_scalar_y.wgsl.expected.wgsl @@ -7,7 +7,7 @@ struct Uniforms { var m1 : mat2x4; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { m1[0][uniforms.j] = 1.0; } diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl index e531d92d9c..4e51c4e356 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl @@ -5,7 +5,7 @@ @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var m1 : mat2x4; m1[uniforms.i] = vec4(1.0); diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl.expected.wgsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl.expected.wgsl index d03625decf..fa5e1121e2 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl.expected.wgsl @@ -5,7 +5,7 @@ struct Uniforms { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var m1 : mat2x4; m1[uniforms.i] = vec4(1.0); diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_x.wgsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_x.wgsl index 0ec75d9e54..8d866e9a4a 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_x.wgsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_x.wgsl @@ -7,7 +7,7 @@ var m1 : mat2x4; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { m1[uniforms.i][0] = 1.0; } diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_x.wgsl.expected.wgsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_x.wgsl.expected.wgsl index 4f4c665e47..ec0a575b00 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_x.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_x.wgsl.expected.wgsl @@ -7,7 +7,7 @@ struct Uniforms { var m1 : mat2x4; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { m1[uniforms.i][0] = 1.0; } diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_xy.wgsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_xy.wgsl index 89630b73a6..324ba03a32 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_xy.wgsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_xy.wgsl @@ -7,7 +7,7 @@ var m1 : mat2x4; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { m1[uniforms.i][uniforms.j] = 1.0; } diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_xy.wgsl.expected.wgsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_xy.wgsl.expected.wgsl index 931ae51dd4..a231286d95 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_xy.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_xy.wgsl.expected.wgsl @@ -7,7 +7,7 @@ struct Uniforms { var m1 : mat2x4; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { m1[uniforms.i][uniforms.j] = 1.0; } diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl index 138c9a7c34..15112c5d00 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl @@ -7,7 +7,7 @@ var m1 : mat2x4; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { m1[0][uniforms.j] = 1.0; } diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl.expected.wgsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl.expected.wgsl index f58814701d..24e47abc17 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_scalar_y.wgsl.expected.wgsl @@ -7,7 +7,7 @@ struct Uniforms { var m1 : mat2x4; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { m1[0][uniforms.j] = 1.0; } diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl index 31cee85a6f..0c80983ceb 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl @@ -7,7 +7,7 @@ var m1 : mat2x4; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { m1[uniforms.i] = vec4(1.0); } diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl.expected.wgsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl.expected.wgsl index 913ff02d7d..7ca896fddc 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl.expected.wgsl @@ -7,7 +7,7 @@ struct Uniforms { var m1 : mat2x4; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { m1[uniforms.i] = vec4(1.0); } diff --git a/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_loop.wgsl b/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_loop.wgsl index 82fdac2ce1..9dd26c78d8 100644 --- a/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_loop.wgsl +++ b/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_loop.wgsl @@ -12,7 +12,7 @@ fn foo() { } } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main() { for (var i : i32 = 0; i < 2; i = i + 1) { diff --git a/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_loop.wgsl.expected.wgsl b/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_loop.wgsl.expected.wgsl index be75b1848b..4bac1fdac0 100644 --- a/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_loop.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_loop.wgsl.expected.wgsl @@ -15,7 +15,7 @@ fn foo() { } } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main() { for(var i : i32 = 0; (i < 2); i = (i + 1)) { foo(); diff --git a/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_no_loop.wgsl b/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_no_loop.wgsl index f7d64cdb94..02b5ab0f65 100644 --- a/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_no_loop.wgsl +++ b/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_no_loop.wgsl @@ -11,7 +11,7 @@ fn foo() { v2b[i] = true; } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main() { for (var i : i32 = 0; i < 2; i = i + 1) { diff --git a/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_no_loop.wgsl.expected.wgsl b/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_no_loop.wgsl.expected.wgsl index 8b055f2b13..84a1ba7b35 100644 --- a/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_no_loop.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/vector_assignment_in_loop/loop_call_with_no_loop.wgsl.expected.wgsl @@ -14,7 +14,7 @@ fn foo() { v2b[i] = true; } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main() { for(var i : i32 = 0; (i < 2); i = (i + 1)) { foo(); diff --git a/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_all.wgsl b/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_all.wgsl index 51460ebd1b..d382062459 100644 --- a/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_all.wgsl +++ b/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_all.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main() { var v2f : vec2; var v3f : vec3; diff --git a/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_all.wgsl.expected.wgsl b/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_all.wgsl.expected.wgsl index 45acb5d00a..8c4a734ddf 100644 --- a/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_all.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_all.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main() { var v2f : vec2; var v3f : vec3; diff --git a/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_repeated.wgsl b/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_repeated.wgsl index beeaa2cbe0..eda040dce9 100644 --- a/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_repeated.wgsl +++ b/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_repeated.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main() { var v2f : vec2; var v2f_2 : vec2; diff --git a/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_repeated.wgsl.expected.wgsl b/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_repeated.wgsl.expected.wgsl index 659db4954e..2776a1887a 100644 --- a/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_repeated.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_repeated.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main() { var v2f : vec2; var v2f_2 : vec2; diff --git a/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_some.wgsl b/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_some.wgsl index c48c1a8cd1..56f5adc56a 100644 --- a/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_some.wgsl +++ b/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_some.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main() { var v2f : vec2; var v3f : vec3; diff --git a/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_some.wgsl.expected.wgsl b/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_some.wgsl.expected.wgsl index 01115a6b4d..b59e49ea7a 100644 --- a/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_some.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/vector_assignment_in_loop/loop_types_some.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main() { var v2f : vec2; var v3f : vec3; diff --git a/test/tint/bug/fxc/vector_assignment_in_loop/no_loop.wgsl b/test/tint/bug/fxc/vector_assignment_in_loop/no_loop.wgsl index 2ff69eb70a..63bf302a87 100644 --- a/test/tint/bug/fxc/vector_assignment_in_loop/no_loop.wgsl +++ b/test/tint/bug/fxc/vector_assignment_in_loop/no_loop.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main() { var v2f : vec2; var v3f : vec3; diff --git a/test/tint/bug/fxc/vector_assignment_in_loop/no_loop.wgsl.expected.wgsl b/test/tint/bug/fxc/vector_assignment_in_loop/no_loop.wgsl.expected.wgsl index 72a4494bd9..5013baf57f 100644 --- a/test/tint/bug/fxc/vector_assignment_in_loop/no_loop.wgsl.expected.wgsl +++ b/test/tint/bug/fxc/vector_assignment_in_loop/no_loop.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main() { var v2f : vec2; var v3f : vec3; diff --git a/test/tint/bug/tint/1046.wgsl b/test/tint/bug/tint/1046.wgsl index 4acfe95006..56d191f101 100644 --- a/test/tint/bug/tint/1046.wgsl +++ b/test/tint/bug/tint/1046.wgsl @@ -63,7 +63,7 @@ fn getColor(fragment : FragmentInput) -> vec4{ return color; }; -@stage(fragment) +@fragment fn main(fragment : FragmentInput) -> FragmentOutput { var output : FragmentOutput; diff --git a/test/tint/bug/tint/1046.wgsl.expected.wgsl b/test/tint/bug/tint/1046.wgsl.expected.wgsl index 430eb9d511..56a8c8ea26 100644 --- a/test/tint/bug/tint/1046.wgsl.expected.wgsl +++ b/test/tint/bug/tint/1046.wgsl.expected.wgsl @@ -55,7 +55,7 @@ fn getColor(fragment : FragmentInput) -> vec4 { return color; } -@stage(fragment) +@fragment fn main(fragment : FragmentInput) -> FragmentOutput { var output : FragmentOutput; output.color = vec4(1.0, 0.0, 0.0, 1.0); diff --git a/test/tint/bug/tint/1064.wgsl b/test/tint/bug/tint/1064.wgsl index 4ab5117d0f..db344ea90d 100644 --- a/test/tint/bug/tint/1064.wgsl +++ b/test/tint/bug/tint/1064.wgsl @@ -1,4 +1,4 @@ -@stage(fragment) +@fragment fn main() { loop { if (false) { diff --git a/test/tint/bug/tint/1064.wgsl.expected.wgsl b/test/tint/bug/tint/1064.wgsl.expected.wgsl index 581cb90764..2fe72ba178 100644 --- a/test/tint/bug/tint/1064.wgsl.expected.wgsl +++ b/test/tint/bug/tint/1064.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(fragment) +@fragment fn main() { loop { if (false) { diff --git a/test/tint/bug/tint/1076.wgsl b/test/tint/bug/tint/1076.wgsl index 4ce9001e06..c4077408f5 100644 --- a/test/tint/bug/tint/1076.wgsl +++ b/test/tint/bug/tint/1076.wgsl @@ -3,7 +3,7 @@ struct FragIn { @builtin(sample_mask) mask : u32, }; -@stage(fragment) +@fragment fn main(in : FragIn, @location(1) b : f32) -> FragIn { if (in.mask == 0u) { return in; diff --git a/test/tint/bug/tint/1076.wgsl.expected.wgsl b/test/tint/bug/tint/1076.wgsl.expected.wgsl index 716cb9186b..0a21df0251 100644 --- a/test/tint/bug/tint/1076.wgsl.expected.wgsl +++ b/test/tint/bug/tint/1076.wgsl.expected.wgsl @@ -5,7 +5,7 @@ struct FragIn { mask : u32, } -@stage(fragment) +@fragment fn main(in : FragIn, @location(1) b : f32) -> FragIn { if ((in.mask == 0u)) { return in; diff --git a/test/tint/bug/tint/1081.wgsl b/test/tint/bug/tint/1081.wgsl index 6d339a87cc..14ba2edf9f 100644 --- a/test/tint/bug/tint/1081.wgsl +++ b/test/tint/bug/tint/1081.wgsl @@ -5,7 +5,7 @@ fn f(x : i32) -> i32 { return x; } -@stage(fragment) +@fragment fn main(@location(1) @interpolate(flat) x: vec3) -> @location(2) i32 { var y = x.x; loop { diff --git a/test/tint/bug/tint/1081.wgsl.expected.wgsl b/test/tint/bug/tint/1081.wgsl.expected.wgsl index 3f7cc7a4d2..61b05684aa 100644 --- a/test/tint/bug/tint/1081.wgsl.expected.wgsl +++ b/test/tint/bug/tint/1081.wgsl.expected.wgsl @@ -5,7 +5,7 @@ fn f(x : i32) -> i32 { return x; } -@stage(fragment) +@fragment fn main(@location(1) @interpolate(flat) x : vec3) -> @location(2) i32 { var y = x.x; loop { diff --git a/test/tint/bug/tint/1083.wgsl b/test/tint/bug/tint/1083.wgsl index 12e985ff86..046d356ba0 100644 --- a/test/tint/bug/tint/1083.wgsl +++ b/test/tint/bug/tint/1083.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 0; diff --git a/test/tint/bug/tint/1083.wgsl.expected.wgsl b/test/tint/bug/tint/1083.wgsl.expected.wgsl index 4d2024cace..b664e4c9bb 100644 --- a/test/tint/bug/tint/1083.wgsl.expected.wgsl +++ b/test/tint/bug/tint/1083.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 0; diff --git a/test/tint/bug/tint/1086.wgsl b/test/tint/bug/tint/1086.wgsl index a5c2982b05..0c2e0fea87 100644 --- a/test/tint/bug/tint/1086.wgsl +++ b/test/tint/bug/tint/1086.wgsl @@ -8,7 +8,7 @@ fn g() { x(&v); } -@stage(fragment) +@fragment fn f() { g(); } diff --git a/test/tint/bug/tint/1086.wgsl.expected.wgsl b/test/tint/bug/tint/1086.wgsl.expected.wgsl index 9c7a8fcfff..f8e4bea653 100644 --- a/test/tint/bug/tint/1086.wgsl.expected.wgsl +++ b/test/tint/bug/tint/1086.wgsl.expected.wgsl @@ -8,7 +8,7 @@ fn g() { x(&(v)); } -@stage(fragment) +@fragment fn f() { g(); } diff --git a/test/tint/bug/tint/1088.spvasm.expected.wgsl b/test/tint/bug/tint/1088.spvasm.expected.wgsl index 23899cccf5..74fb32d09b 100644 --- a/test/tint/bug/tint/1088.spvasm.expected.wgsl +++ b/test/tint/bug/tint/1088.spvasm.expected.wgsl @@ -60,7 +60,7 @@ struct main_out { vUV_1 : vec2, } -@stage(vertex) +@vertex fn main(@location(0) position_param : vec3, @location(2) uv_param : vec2, @location(1) normal_param : vec3) -> main_out { position = position_param; uv = uv_param; diff --git a/test/tint/bug/tint/1113.wgsl b/test/tint/bug/tint/1113.wgsl index 1b38021deb..e1c2ce8018 100644 --- a/test/tint/bug/tint/1113.wgsl +++ b/test/tint/bug/tint/1113.wgsl @@ -95,7 +95,7 @@ fn doIgnore(){ } -@stage(compute) @workgroup_size(128) +@compute @workgroup_size(128) fn main_count(@builtin(global_invocation_id) GlobalInvocationID : vec3) { var triangleIndex = GlobalInvocationID.x; @@ -132,7 +132,7 @@ fn main_count(@builtin(global_invocation_id) GlobalInvocationID : vec3) { } -@stage(compute) @workgroup_size(128) +@compute @workgroup_size(128) fn main_create_lut(@builtin(global_invocation_id) GlobalInvocationID : vec3) { var voxelIndex = GlobalInvocationID.x; @@ -155,7 +155,7 @@ fn main_create_lut(@builtin(global_invocation_id) GlobalInvocationID : vec3 } -@stage(compute) @workgroup_size(128) +@compute @workgroup_size(128) fn main_sort_triangles(@builtin(global_invocation_id) GlobalInvocationID : vec3) { var triangleIndex = GlobalInvocationID.x; diff --git a/test/tint/bug/tint/1113.wgsl.expected.wgsl b/test/tint/bug/tint/1113.wgsl.expected.wgsl index 187c752ef8..1d69ccdb63 100644 --- a/test/tint/bug/tint/1113.wgsl.expected.wgsl +++ b/test/tint/bug/tint/1113.wgsl.expected.wgsl @@ -92,7 +92,7 @@ fn doIgnore() { var g55 = atomicLoad(&(LUT.values[0])); } -@stage(compute) @workgroup_size(128) +@compute @workgroup_size(128) fn main_count(@builtin(global_invocation_id) GlobalInvocationID : vec3) { var triangleIndex = GlobalInvocationID.x; if ((triangleIndex >= uniforms.numTriangles)) { @@ -117,7 +117,7 @@ fn main_count(@builtin(global_invocation_id) GlobalInvocationID : vec3) { } } -@stage(compute) @workgroup_size(128) +@compute @workgroup_size(128) fn main_create_lut(@builtin(global_invocation_id) GlobalInvocationID : vec3) { var voxelIndex = GlobalInvocationID.x; doIgnore(); @@ -133,7 +133,7 @@ fn main_create_lut(@builtin(global_invocation_id) GlobalInvocationID : vec3 atomicStore(&(LUT.values[voxelIndex]), offset); } -@stage(compute) @workgroup_size(128) +@compute @workgroup_size(128) fn main_sort_triangles(@builtin(global_invocation_id) GlobalInvocationID : vec3) { var triangleIndex = GlobalInvocationID.x; doIgnore(); diff --git a/test/tint/bug/tint/1118.wgsl b/test/tint/bug/tint/1118.wgsl index bd59a5f3f1..67703f92ca 100644 --- a/test/tint/bug/tint/1118.wgsl +++ b/test/tint/bug/tint/1118.wgsl @@ -108,7 +108,7 @@ struct main_out { glFragColor_1 : vec4, }; -@stage(fragment) +@fragment fn main(@location(2) fClipDistance3_param : f32, @location(3) fClipDistance4_param : f32) -> main_out { fClipDistance3 = fClipDistance3_param; fClipDistance4 = fClipDistance4_param; diff --git a/test/tint/bug/tint/1118.wgsl.expected.wgsl b/test/tint/bug/tint/1118.wgsl.expected.wgsl index 87f594891d..a82080aed0 100644 --- a/test/tint/bug/tint/1118.wgsl.expected.wgsl +++ b/test/tint/bug/tint/1118.wgsl.expected.wgsl @@ -120,7 +120,7 @@ struct main_out { glFragColor_1 : vec4, } -@stage(fragment) +@fragment fn main(@location(2) fClipDistance3_param : f32, @location(3) fClipDistance4_param : f32) -> main_out { fClipDistance3 = fClipDistance3_param; fClipDistance4 = fClipDistance4_param; diff --git a/test/tint/bug/tint/1121.wgsl b/test/tint/bug/tint/1121.wgsl index 7e5cfd0d88..fa82219cad 100644 --- a/test/tint/bug/tint/1121.wgsl +++ b/test/tint/bug/tint/1121.wgsl @@ -44,7 +44,7 @@ struct TileLightIdData { fullScreenSize : vec4, // width, height }; @group(3) @binding(0) var uniforms: Uniforms; -@stage(compute) @workgroup_size(64, 1, 1) +@compute @workgroup_size(64, 1, 1) fn main(@builtin(global_invocation_id) GlobalInvocationID : vec3) { var index = GlobalInvocationID.x; if (index >= config.numLights) { diff --git a/test/tint/bug/tint/1121.wgsl.expected.wgsl b/test/tint/bug/tint/1121.wgsl.expected.wgsl index 9207245ff6..bea6cabe0c 100644 --- a/test/tint/bug/tint/1121.wgsl.expected.wgsl +++ b/test/tint/bug/tint/1121.wgsl.expected.wgsl @@ -42,7 +42,7 @@ struct Uniforms { @group(3) @binding(0) var uniforms : Uniforms; -@stage(compute) @workgroup_size(64, 1, 1) +@compute @workgroup_size(64, 1, 1) fn main(@builtin(global_invocation_id) GlobalInvocationID : vec3) { var index = GlobalInvocationID.x; if ((index >= config.numLights)) { diff --git a/test/tint/bug/tint/1321.wgsl b/test/tint/bug/tint/1321.wgsl index 1ab9e23e70..b2ec2f7ff6 100644 --- a/test/tint/bug/tint/1321.wgsl +++ b/test/tint/bug/tint/1321.wgsl @@ -2,7 +2,7 @@ fn foo() -> i32 { return 1; } -@stage(fragment) +@fragment fn main() { var arr = array(); for (let a = &arr[foo()]; ;) { diff --git a/test/tint/bug/tint/1321.wgsl.expected.wgsl b/test/tint/bug/tint/1321.wgsl.expected.wgsl index 21173939f1..a6d0d98e1d 100644 --- a/test/tint/bug/tint/1321.wgsl.expected.wgsl +++ b/test/tint/bug/tint/1321.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn foo() -> i32 { return 1; } -@stage(fragment) +@fragment fn main() { var arr = array(); for(let a = &(arr[foo()]); ; ) { diff --git a/test/tint/bug/tint/1332.wgsl b/test/tint/bug/tint/1332.wgsl index 985fccb2a6..d83c3ab456 100644 --- a/test/tint/bug/tint/1332.wgsl +++ b/test/tint/bug/tint/1332.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { let a = 1.23; var b = max(a, 1.17549435e-38); diff --git a/test/tint/bug/tint/1332.wgsl.expected.wgsl b/test/tint/bug/tint/1332.wgsl.expected.wgsl index c0ccd8d4bb..f95540e197 100644 --- a/test/tint/bug/tint/1332.wgsl.expected.wgsl +++ b/test/tint/bug/tint/1332.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { let a = 1.230000019; var b = max(a, 1.17549435e-38); diff --git a/test/tint/bug/tint/1369.wgsl b/test/tint/bug/tint/1369.wgsl index b90b8e31a1..30e3d019a7 100644 --- a/test/tint/bug/tint/1369.wgsl +++ b/test/tint/bug/tint/1369.wgsl @@ -3,7 +3,7 @@ fn call_discard() -> bool { return true; } -@stage(fragment) +@fragment fn f() { var v = call_discard(); var also_unreachable : bool; diff --git a/test/tint/bug/tint/1369.wgsl.expected.wgsl b/test/tint/bug/tint/1369.wgsl.expected.wgsl index 2da3171c6b..818f5a33fa 100644 --- a/test/tint/bug/tint/1369.wgsl.expected.wgsl +++ b/test/tint/bug/tint/1369.wgsl.expected.wgsl @@ -11,7 +11,7 @@ fn call_discard() -> bool { return true; } -@stage(fragment) +@fragment fn f() { var v = call_discard(); var also_unreachable : bool; diff --git a/test/tint/bug/tint/1385.wgsl b/test/tint/bug/tint/1385.wgsl index 78f402ed64..9be207ea44 100644 --- a/test/tint/bug/tint/1385.wgsl +++ b/test/tint/bug/tint/1385.wgsl @@ -5,7 +5,7 @@ fn foo() -> i32 { return data[0]; } -@stage(compute) @workgroup_size(16, 16, 1) +@compute @workgroup_size(16, 16, 1) fn main() { foo(); } diff --git a/test/tint/bug/tint/1385.wgsl.expected.wgsl b/test/tint/bug/tint/1385.wgsl.expected.wgsl index 3e522fd41b..f4f5d94920 100644 --- a/test/tint/bug/tint/1385.wgsl.expected.wgsl +++ b/test/tint/bug/tint/1385.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn foo() -> i32 { return data[0]; } -@stage(compute) @workgroup_size(16, 16, 1) +@compute @workgroup_size(16, 16, 1) fn main() { foo(); } diff --git a/test/tint/bug/tint/1520.spvasm.expected.wgsl b/test/tint/bug/tint/1520.spvasm.expected.wgsl index 88c4ea4b9a..e3b92b828c 100644 --- a/test/tint/bug/tint/1520.spvasm.expected.wgsl +++ b/test/tint/bug/tint/1520.spvasm.expected.wgsl @@ -156,7 +156,7 @@ struct main_out { sk_FragColor_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(front_facing) sk_Clockwise_param : bool, @location(0) vcolor_S0_param : vec4) -> main_out { sk_Clockwise = sk_Clockwise_param; vcolor_S0 = vcolor_S0_param; diff --git a/test/tint/bug/tint/1540.wgsl b/test/tint/bug/tint/1540.wgsl index 95c51fb1d2..54314d1102 100644 --- a/test/tint/bug/tint/1540.wgsl +++ b/test/tint/bug/tint/1540.wgsl @@ -2,7 +2,7 @@ struct S { e: bool, } -@stage(compute) +@compute @workgroup_size(1) fn main() { var b : bool; diff --git a/test/tint/bug/tint/1540.wgsl.expected.wgsl b/test/tint/bug/tint/1540.wgsl.expected.wgsl index 50f6bf3ddf..d19be0ff15 100644 --- a/test/tint/bug/tint/1540.wgsl.expected.wgsl +++ b/test/tint/bug/tint/1540.wgsl.expected.wgsl @@ -2,7 +2,7 @@ struct S { e : bool, } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var b : bool; var v = S((true & b)); diff --git a/test/tint/bug/tint/1541.wgsl b/test/tint/bug/tint/1541.wgsl index 44d04f04ec..afcec54df5 100644 --- a/test/tint/bug/tint/1541.wgsl +++ b/test/tint/bug/tint/1541.wgsl @@ -1,4 +1,4 @@ -@stage(compute) +@compute @workgroup_size(1) fn main() { var v = select(true & true, true, false); diff --git a/test/tint/bug/tint/1541.wgsl.expected.wgsl b/test/tint/bug/tint/1541.wgsl.expected.wgsl index ed2d91b708..fc554b1e90 100644 --- a/test/tint/bug/tint/1541.wgsl.expected.wgsl +++ b/test/tint/bug/tint/1541.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v = select((true & true), true, false); } diff --git a/test/tint/bug/tint/1573.wgsl b/test/tint/bug/tint/1573.wgsl index 850e79c7b3..b8c3c8174d 100644 --- a/test/tint/bug/tint/1573.wgsl +++ b/test/tint/bug/tint/1573.wgsl @@ -1,7 +1,7 @@ @group(0) @binding(0) var a : atomic; -@stage(compute) @workgroup_size(16) +@compute @workgroup_size(16) fn main() { var value = 42u; let result = atomicCompareExchangeWeak(&a, 0u, value); diff --git a/test/tint/bug/tint/1573.wgsl.expected.wgsl b/test/tint/bug/tint/1573.wgsl.expected.wgsl index 639dc55e6c..be83957e4e 100644 --- a/test/tint/bug/tint/1573.wgsl.expected.wgsl +++ b/test/tint/bug/tint/1573.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var a : atomic; -@stage(compute) @workgroup_size(16) +@compute @workgroup_size(16) fn main() { var value = 42u; let result = atomicCompareExchangeWeak(&(a), 0u, value); diff --git a/test/tint/bug/tint/1574.wgsl b/test/tint/bug/tint/1574.wgsl index 3a52312c56..fb0723997a 100644 --- a/test/tint/bug/tint/1574.wgsl +++ b/test/tint/bug/tint/1574.wgsl @@ -9,7 +9,7 @@ var b_u32 : atomic; var b_i32 : atomic; -@stage(compute) @workgroup_size(16) +@compute @workgroup_size(16) fn main() { { var value = 42u; diff --git a/test/tint/bug/tint/1574.wgsl.expected.wgsl b/test/tint/bug/tint/1574.wgsl.expected.wgsl index 97dbbee365..e5ca3c9287 100644 --- a/test/tint/bug/tint/1574.wgsl.expected.wgsl +++ b/test/tint/bug/tint/1574.wgsl.expected.wgsl @@ -6,7 +6,7 @@ var b_u32 : atomic; var b_i32 : atomic; -@stage(compute) @workgroup_size(16) +@compute @workgroup_size(16) fn main() { { var value = 42u; diff --git a/test/tint/bug/tint/219.spvasm.expected.wgsl b/test/tint/bug/tint/219.spvasm.expected.wgsl index 3f4fca292a..edcc23c697 100644 --- a/test/tint/bug/tint/219.spvasm.expected.wgsl +++ b/test/tint/bug/tint/219.spvasm.expected.wgsl @@ -9,7 +9,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main() { main_1(); } diff --git a/test/tint/bug/tint/221.wgsl b/test/tint/bug/tint/221.wgsl index 3beb8ed457..49c40d1fbf 100644 --- a/test/tint/bug/tint/221.wgsl +++ b/test/tint/bug/tint/221.wgsl @@ -7,7 +7,7 @@ struct Buf{ @group(0) @binding(0) var b : Buf; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var i : u32 = 0u; loop { diff --git a/test/tint/bug/tint/221.wgsl.expected.wgsl b/test/tint/bug/tint/221.wgsl.expected.wgsl index ee36aeaad3..0a49ba5000 100644 --- a/test/tint/bug/tint/221.wgsl.expected.wgsl +++ b/test/tint/bug/tint/221.wgsl.expected.wgsl @@ -7,7 +7,7 @@ struct Buf { @group(0) @binding(0) var b : Buf; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var i : u32 = 0u; loop { diff --git a/test/tint/bug/tint/292.wgsl b/test/tint/bug/tint/292.wgsl index daebb4f96f..ac2b421309 100644 --- a/test/tint/bug/tint/292.wgsl +++ b/test/tint/bug/tint/292.wgsl @@ -1,4 +1,4 @@ -@stage(vertex) +@vertex fn main() -> @builtin(position) vec4 { var light : vec3 = vec3(1.2, 1., 2.); var negative_light : vec3 = -light; diff --git a/test/tint/bug/tint/292.wgsl.expected.wgsl b/test/tint/bug/tint/292.wgsl.expected.wgsl index 071b9da8dd..b89b32731c 100644 --- a/test/tint/bug/tint/292.wgsl.expected.wgsl +++ b/test/tint/bug/tint/292.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(vertex) +@vertex fn main() -> @builtin(position) vec4 { var light : vec3 = vec3(1.200000048, 1.0, 2.0); var negative_light : vec3 = -(light); diff --git a/test/tint/bug/tint/403.wgsl b/test/tint/bug/tint/403.wgsl index 1c2a46fcbc..ed20da631b 100644 --- a/test/tint/bug/tint/403.wgsl +++ b/test/tint/bug/tint/403.wgsl @@ -10,7 +10,7 @@ struct vertexUniformBuffer2 { @group(1) @binding(0) var x_26 : vertexUniformBuffer2; -@stage(vertex) +@vertex fn main(@builtin(vertex_index) gl_VertexIndex : u32) -> @builtin(position) vec4 { var indexable : array, 3>; let x_23 : mat2x2 = x_20.transform1; diff --git a/test/tint/bug/tint/403.wgsl.expected.wgsl b/test/tint/bug/tint/403.wgsl.expected.wgsl index 9ab50eca1d..a88948337f 100644 --- a/test/tint/bug/tint/403.wgsl.expected.wgsl +++ b/test/tint/bug/tint/403.wgsl.expected.wgsl @@ -10,7 +10,7 @@ struct vertexUniformBuffer2 { @group(1) @binding(0) var x_26 : vertexUniformBuffer2; -@stage(vertex) +@vertex fn main(@builtin(vertex_index) gl_VertexIndex : u32) -> @builtin(position) vec4 { var indexable : array, 3>; let x_23 : mat2x2 = x_20.transform1; diff --git a/test/tint/bug/tint/413.spvasm.expected.wgsl b/test/tint/bug/tint/413.spvasm.expected.wgsl index 623f45adb0..e9101a2893 100644 --- a/test/tint/bug/tint/413.spvasm.expected.wgsl +++ b/test/tint/bug/tint/413.spvasm.expected.wgsl @@ -13,7 +13,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main() { main_1(); } diff --git a/test/tint/bug/tint/453.wgsl b/test/tint/bug/tint/453.wgsl index 99e53b4c19..e45e85f0ee 100644 --- a/test/tint/bug/tint/453.wgsl +++ b/test/tint/bug/tint/453.wgsl @@ -1,7 +1,7 @@ @group(0) @binding(0) var Src : texture_2d; @group(0) @binding(1) var Dst : texture_storage_2d; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var srcValue : vec4; let x_22 : vec4 = textureLoad(Src, vec2(0, 0), 0); diff --git a/test/tint/bug/tint/453.wgsl.expected.wgsl b/test/tint/bug/tint/453.wgsl.expected.wgsl index 8fe57951c8..87f03dfa2d 100644 --- a/test/tint/bug/tint/453.wgsl.expected.wgsl +++ b/test/tint/bug/tint/453.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(0) @binding(1) var Dst : texture_storage_2d; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var srcValue : vec4; let x_22 : vec4 = textureLoad(Src, vec2(0, 0), 0); diff --git a/test/tint/bug/tint/492.wgsl b/test/tint/bug/tint/492.wgsl index 7f361f4f08..e9cc78f344 100644 --- a/test/tint/bug/tint/492.wgsl +++ b/test/tint/bug/tint/492.wgsl @@ -1,7 +1,7 @@ struct S { a : i32, }; @group(0) @binding(0) var buf : S; -@stage(compute) @workgroup_size(1) fn main() { +@compute @workgroup_size(1) fn main() { let p : ptr = &buf.a; *p = 12; } diff --git a/test/tint/bug/tint/492.wgsl.expected.wgsl b/test/tint/bug/tint/492.wgsl.expected.wgsl index 9831e48fc7..0d16b19a71 100644 --- a/test/tint/bug/tint/492.wgsl.expected.wgsl +++ b/test/tint/bug/tint/492.wgsl.expected.wgsl @@ -4,7 +4,7 @@ struct S { @group(0) @binding(0) var buf : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let p : ptr = &(buf.a); *(p) = 12; diff --git a/test/tint/bug/tint/534.wgsl b/test/tint/bug/tint/534.wgsl index 6a41cc417b..b328b1af0d 100644 --- a/test/tint/bug/tint/534.wgsl +++ b/test/tint/bug/tint/534.wgsl @@ -18,7 +18,7 @@ fn ConvertToFp16FloatValue(fp32 : f32) -> u32 { return 1u; } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main(@builtin(global_invocation_id) GlobalInvocationID : vec3) { var size : vec2 = textureDimensions(src); var dstTexCoord : vec2 = vec2(GlobalInvocationID.xy); diff --git a/test/tint/bug/tint/534.wgsl.expected.wgsl b/test/tint/bug/tint/534.wgsl.expected.wgsl index fefeba0cb8..83a4bfd053 100644 --- a/test/tint/bug/tint/534.wgsl.expected.wgsl +++ b/test/tint/bug/tint/534.wgsl.expected.wgsl @@ -21,7 +21,7 @@ fn ConvertToFp16FloatValue(fp32 : f32) -> u32 { return 1u; } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main(@builtin(global_invocation_id) GlobalInvocationID : vec3) { var size : vec2 = textureDimensions(src); var dstTexCoord : vec2 = vec2(GlobalInvocationID.xy); diff --git a/test/tint/bug/tint/744.wgsl b/test/tint/bug/tint/744.wgsl index 4391fd8c7f..70e57cc605 100644 --- a/test/tint/bug/tint/744.wgsl +++ b/test/tint/bug/tint/744.wgsl @@ -12,7 +12,7 @@ @group(0) @binding(2) var resultMatrix : Matrix; @group(0) @binding(3) var uniforms : Uniforms; -@stage(compute) @workgroup_size(2,2,1) +@compute @workgroup_size(2,2,1) fn main(@builtin(global_invocation_id) global_id : vec3) { let resultCell : vec2 = vec2(global_id.y, global_id.x); let dimInner : u32 = uniforms.aShape.y; diff --git a/test/tint/bug/tint/744.wgsl.expected.wgsl b/test/tint/bug/tint/744.wgsl.expected.wgsl index 9ac2447830..d08d2d9b39 100644 --- a/test/tint/bug/tint/744.wgsl.expected.wgsl +++ b/test/tint/bug/tint/744.wgsl.expected.wgsl @@ -16,7 +16,7 @@ struct Matrix { @group(0) @binding(3) var uniforms : Uniforms; -@stage(compute) @workgroup_size(2, 2, 1) +@compute @workgroup_size(2, 2, 1) fn main(@builtin(global_invocation_id) global_id : vec3) { let resultCell : vec2 = vec2(global_id.y, global_id.x); let dimInner : u32 = uniforms.aShape.y; diff --git a/test/tint/bug/tint/749.spvasm.expected.wgsl b/test/tint/bug/tint/749.spvasm.expected.wgsl index 577838b8c0..2592686dee 100644 --- a/test/tint/bug/tint/749.spvasm.expected.wgsl +++ b/test/tint/bug/tint/749.spvasm.expected.wgsl @@ -1473,7 +1473,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/bug/tint/757.wgsl b/test/tint/bug/tint/757.wgsl index 437f7b4dfb..d3d01e5a62 100644 --- a/test/tint/bug/tint/757.wgsl +++ b/test/tint/bug/tint/757.wgsl @@ -11,7 +11,7 @@ }; @group(0) @binding(3) var result : Result; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@builtin(global_invocation_id) GlobalInvocationID : vec3) { var flatIndex : u32 = 2u * 2u * GlobalInvocationID.z + diff --git a/test/tint/bug/tint/757.wgsl.expected.wgsl b/test/tint/bug/tint/757.wgsl.expected.wgsl index 15f4e3f690..bc2b941f74 100644 --- a/test/tint/bug/tint/757.wgsl.expected.wgsl +++ b/test/tint/bug/tint/757.wgsl.expected.wgsl @@ -12,7 +12,7 @@ struct Result { @group(0) @binding(3) var result : Result; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@builtin(global_invocation_id) GlobalInvocationID : vec3) { var flatIndex : u32 = ((((2u * 2u) * GlobalInvocationID.z) + (2u * GlobalInvocationID.y)) + GlobalInvocationID.x); flatIndex = (flatIndex * 1u); diff --git a/test/tint/bug/tint/824.wgsl b/test/tint/bug/tint/824.wgsl index 7319fc0f6a..f9e1467dda 100644 --- a/test/tint/bug/tint/824.wgsl +++ b/test/tint/bug/tint/824.wgsl @@ -2,7 +2,7 @@ struct Output { @builtin(position) Position : vec4, @location(0) color : vec4, }; -@stage(vertex) fn main( +@vertex fn main( @builtin(vertex_index) VertexIndex : u32, @builtin(instance_index) InstanceIndex : u32) -> Output { // TODO: remove workaround for Tint unary array access broke diff --git a/test/tint/bug/tint/824.wgsl.expected.wgsl b/test/tint/bug/tint/824.wgsl.expected.wgsl index 7518b89292..9ac4af376e 100644 --- a/test/tint/bug/tint/824.wgsl.expected.wgsl +++ b/test/tint/bug/tint/824.wgsl.expected.wgsl @@ -5,7 +5,7 @@ struct Output { color : vec4, } -@stage(vertex) +@vertex fn main(@builtin(vertex_index) VertexIndex : u32, @builtin(instance_index) InstanceIndex : u32) -> Output { let zv : array, 4> = array, 4>(vec2(0.200000003, 0.200000003), vec2(0.300000012, 0.300000012), vec2(-0.100000001, -0.100000001), vec2(1.100000024, 1.100000024)); let z : f32 = zv[InstanceIndex].x; diff --git a/test/tint/bug/tint/827.wgsl b/test/tint/bug/tint/827.wgsl index d1dbc00b85..761b3d85db 100644 --- a/test/tint/bug/tint/827.wgsl +++ b/test/tint/bug/tint/827.wgsl @@ -7,7 +7,7 @@ let width : u32 = 128u; @group(0) @binding(0) var tex : texture_depth_2d; @group(0) @binding(1) var result : Result; -@stage(compute) @workgroup_size(1) fn main( +@compute @workgroup_size(1) fn main( @builtin(global_invocation_id) GlobalInvocationId : vec3 ) { result.values[GlobalInvocationId.y * width + GlobalInvocationId.x] = textureLoad( diff --git a/test/tint/bug/tint/827.wgsl.expected.wgsl b/test/tint/bug/tint/827.wgsl.expected.wgsl index 57561ca0ca..c54420ee61 100644 --- a/test/tint/bug/tint/827.wgsl.expected.wgsl +++ b/test/tint/bug/tint/827.wgsl.expected.wgsl @@ -8,7 +8,7 @@ let width : u32 = 128u; @group(0) @binding(1) var result : Result; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@builtin(global_invocation_id) GlobalInvocationId : vec3) { result.values[((GlobalInvocationId.y * width) + GlobalInvocationId.x)] = textureLoad(tex, vec2(i32(GlobalInvocationId.x), i32(GlobalInvocationId.y)), 0); } diff --git a/test/tint/bug/tint/870.spvasm.expected.wgsl b/test/tint/bug/tint/870.spvasm.expected.wgsl index c3b7c8f6e8..1dfaaa072b 100644 --- a/test/tint/bug/tint/870.spvasm.expected.wgsl +++ b/test/tint/bug/tint/870.spvasm.expected.wgsl @@ -25,7 +25,7 @@ fn main_1() { return; } -@stage(fragment) +@fragment fn main() { main_1(); } diff --git a/test/tint/bug/tint/913.wgsl b/test/tint/bug/tint/913.wgsl index 5d1ad7a373..a7786d5b44 100644 --- a/test/tint/bug/tint/913.wgsl +++ b/test/tint/bug/tint/913.wgsl @@ -16,7 +16,7 @@ fn aboutEqual(value : f32, expect : f32) -> bool { // The value diff should be smaller than the hard coded tolerance. return abs(value - expect) < 0.001; } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main(@builtin(global_invocation_id) GlobalInvocationID : vec3) { let srcSize : vec2 = textureDimensions(src); let dstSize : vec2 = textureDimensions(dst); diff --git a/test/tint/bug/tint/913.wgsl.expected.wgsl b/test/tint/bug/tint/913.wgsl.expected.wgsl index 2e471dafb0..d06c995b6e 100644 --- a/test/tint/bug/tint/913.wgsl.expected.wgsl +++ b/test/tint/bug/tint/913.wgsl.expected.wgsl @@ -22,7 +22,7 @@ fn aboutEqual(value : f32, expect : f32) -> bool { return (abs((value - expect)) < 0.001); } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main(@builtin(global_invocation_id) GlobalInvocationID : vec3) { let srcSize : vec2 = textureDimensions(src); let dstSize : vec2 = textureDimensions(dst); diff --git a/test/tint/bug/tint/914.wgsl b/test/tint/bug/tint/914.wgsl index 5ee9ad2255..9493b2b7d3 100644 --- a/test/tint/bug/tint/914.wgsl +++ b/test/tint/bug/tint/914.wgsl @@ -45,7 +45,7 @@ let TileBOuter : u32 = 64u; let TileInner : u32 = 64u; var mm_Asub : array, 64>; var mm_Bsub : array, 64>; -@stage(compute) @workgroup_size(16, 16, 1) +@compute @workgroup_size(16, 16, 1) fn main(@builtin(local_invocation_id) local_id : vec3, @builtin(global_invocation_id) global_id : vec3) { let tileRow : u32 = local_id.y * RowPerThread; diff --git a/test/tint/bug/tint/914.wgsl.expected.wgsl b/test/tint/bug/tint/914.wgsl.expected.wgsl index 9c5ad0c378..67fd49410e 100644 --- a/test/tint/bug/tint/914.wgsl.expected.wgsl +++ b/test/tint/bug/tint/914.wgsl.expected.wgsl @@ -53,7 +53,7 @@ var mm_Asub : array, 64>; var mm_Bsub : array, 64>; -@stage(compute) @workgroup_size(16, 16, 1) +@compute @workgroup_size(16, 16, 1) fn main(@builtin(local_invocation_id) local_id : vec3, @builtin(global_invocation_id) global_id : vec3) { let tileRow : u32 = (local_id.y * RowPerThread); let tileCol : u32 = (local_id.x * ColPerThread); diff --git a/test/tint/bug/tint/922.wgsl b/test/tint/bug/tint/922.wgsl index 0e7a0cb112..0d83270095 100644 --- a/test/tint/bug/tint/922.wgsl +++ b/test/tint/bug/tint/922.wgsl @@ -283,7 +283,7 @@ fn main1() { } } -@stage(vertex) +@vertex fn main(@location(0) a_Position: vec3, @location(1) a_UV: vec2, @location(2) a_Color: vec4, @location(3) a_Normal: vec3, @location(4) a_PosMtxIdx: f32) -> VertexOutput { a_Position1 = a_Position; a_UV1 = a_UV; diff --git a/test/tint/bug/tint/922.wgsl.expected.wgsl b/test/tint/bug/tint/922.wgsl.expected.wgsl index 00055b11a3..82dd43130d 100644 --- a/test/tint/bug/tint/922.wgsl.expected.wgsl +++ b/test/tint/bug/tint/922.wgsl.expected.wgsl @@ -279,7 +279,7 @@ fn main1() { } } -@stage(vertex) +@vertex fn main(@location(0) a_Position : vec3, @location(1) a_UV : vec2, @location(2) a_Color : vec4, @location(3) a_Normal : vec3, @location(4) a_PosMtxIdx : f32) -> VertexOutput { a_Position1 = a_Position; a_UV1 = a_UV; diff --git a/test/tint/bug/tint/926.wgsl b/test/tint/bug/tint/926.wgsl index ba04a7ba29..1fe80571d3 100644 --- a/test/tint/bug/tint/926.wgsl +++ b/test/tint/bug/tint/926.wgsl @@ -5,7 +5,7 @@ var cubeVerts : u32 = 0u; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn computeMain(@builtin(global_invocation_id) global_id : vec3) { // Increment cubeVerts based on some criteria... diff --git a/test/tint/bug/tint/926.wgsl.expected.wgsl b/test/tint/bug/tint/926.wgsl.expected.wgsl index 847850d237..bc0535c328 100644 --- a/test/tint/bug/tint/926.wgsl.expected.wgsl +++ b/test/tint/bug/tint/926.wgsl.expected.wgsl @@ -6,7 +6,7 @@ struct DrawIndirectArgs { var cubeVerts : u32 = 0u; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn computeMain(@builtin(global_invocation_id) global_id : vec3) { let firstVertex : u32 = atomicAdd(&(drawOut.vertexCount), cubeVerts); } diff --git a/test/tint/bug/tint/942.wgsl b/test/tint/bug/tint/942.wgsl index 722dc75f1b..d4c2bcbddf 100644 --- a/test/tint/bug/tint/942.wgsl +++ b/test/tint/bug/tint/942.wgsl @@ -29,7 +29,7 @@ var tile : array, 256>, 4>; -@stage(compute) @workgroup_size(64, 1, 1) +@compute @workgroup_size(64, 1, 1) fn main( @builtin(workgroup_id) WorkGroupID : vec3, @builtin(local_invocation_id) LocalInvocationID : vec3 diff --git a/test/tint/bug/tint/942.wgsl.expected.wgsl b/test/tint/bug/tint/942.wgsl.expected.wgsl index 99b1bd4646..837581e713 100644 --- a/test/tint/bug/tint/942.wgsl.expected.wgsl +++ b/test/tint/bug/tint/942.wgsl.expected.wgsl @@ -19,7 +19,7 @@ struct Flip { var tile : array, 256>, 4>; -@stage(compute) @workgroup_size(64, 1, 1) +@compute @workgroup_size(64, 1, 1) fn main(@builtin(workgroup_id) WorkGroupID : vec3, @builtin(local_invocation_id) LocalInvocationID : vec3) { let filterOffset : u32 = ((params.filterDim - 1u) / 2u); let dims : vec2 = textureDimensions(inputTex, 0); diff --git a/test/tint/bug/tint/943.spvasm.expected.wgsl b/test/tint/bug/tint/943.spvasm.expected.wgsl index 30df0007f8..645db5af61 100644 --- a/test/tint/bug/tint/943.spvasm.expected.wgsl +++ b/test/tint/bug/tint/943.spvasm.expected.wgsl @@ -517,7 +517,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 64i, 1i) +@compute @workgroup_size(1i, 64i, 1i) fn main(@builtin(local_invocation_id) gl_LocalInvocationID_param : vec3, @builtin(global_invocation_id) gl_GlobalInvocationID_param : vec3) { gl_LocalInvocationID = gl_LocalInvocationID_param; gl_GlobalInvocationID = gl_GlobalInvocationID_param; diff --git a/test/tint/bug/tint/948.wgsl b/test/tint/bug/tint/948.wgsl index 4cc43296a7..68432d5f6f 100644 --- a/test/tint/bug/tint/948.wgsl +++ b/test/tint/bug/tint/948.wgsl @@ -215,7 +215,7 @@ struct main_out { glFragColor_1 : vec4, }; -@stage(fragment) +@fragment fn main(@location(2) tUV_param : vec2, @location(5) tileID_1_param : vec2, @location(4) levelUnits_param : vec2, @location(3) stageUnits_1_param : vec2, @location(0) vPosition_param : vec3, @location(1) vUV_param : vec2) -> main_out { tUV = tUV_param; tileID_1 = tileID_1_param; diff --git a/test/tint/bug/tint/948.wgsl.expected.wgsl b/test/tint/bug/tint/948.wgsl.expected.wgsl index 533c9e46ee..a902aec9d7 100644 --- a/test/tint/bug/tint/948.wgsl.expected.wgsl +++ b/test/tint/bug/tint/948.wgsl.expected.wgsl @@ -227,7 +227,7 @@ struct main_out { glFragColor_1 : vec4, } -@stage(fragment) +@fragment fn main(@location(2) tUV_param : vec2, @location(5) tileID_1_param : vec2, @location(4) levelUnits_param : vec2, @location(3) stageUnits_1_param : vec2, @location(0) vPosition_param : vec3, @location(1) vUV_param : vec2) -> main_out { tUV = tUV_param; tileID_1 = tileID_1_param; diff --git a/test/tint/bug/tint/949.wgsl b/test/tint/bug/tint/949.wgsl index 3b302a6a06..b06e420b93 100644 --- a/test/tint/bug/tint/949.wgsl +++ b/test/tint/bug/tint/949.wgsl @@ -441,7 +441,7 @@ struct main_out { glFragColor_1 : vec4, }; -@stage(fragment) +@fragment fn main(@location(1) vMainuv_param : vec2, @location(0) v_output1_param : vec4, @builtin(front_facing) gl_FrontFacing_param : bool, @location(3) v_uv_param : vec2, @location(2) v_output2_param : vec4) -> main_out { vMainuv = vMainuv_param; v_output1 = v_output1_param; diff --git a/test/tint/bug/tint/949.wgsl.expected.wgsl b/test/tint/bug/tint/949.wgsl.expected.wgsl index d9116218b2..aac23a0797 100644 --- a/test/tint/bug/tint/949.wgsl.expected.wgsl +++ b/test/tint/bug/tint/949.wgsl.expected.wgsl @@ -452,7 +452,7 @@ struct main_out { glFragColor_1 : vec4, } -@stage(fragment) +@fragment fn main(@location(1) vMainuv_param : vec2, @location(0) v_output1_param : vec4, @builtin(front_facing) gl_FrontFacing_param : bool, @location(3) v_uv_param : vec2, @location(2) v_output2_param : vec4) -> main_out { vMainuv = vMainuv_param; v_output1 = v_output1_param; diff --git a/test/tint/bug/tint/951.spvasm.expected.wgsl b/test/tint/bug/tint/951.spvasm.expected.wgsl index 8778a7bcbe..c59626abe3 100644 --- a/test/tint/bug/tint/951.spvasm.expected.wgsl +++ b/test/tint/bug/tint/951.spvasm.expected.wgsl @@ -72,7 +72,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(128i, 1i, 1i) +@compute @workgroup_size(128i, 1i, 1i) fn main(@builtin(global_invocation_id) gl_GlobalInvocationID_param : vec3) { gl_GlobalInvocationID = gl_GlobalInvocationID_param; main_1(); diff --git a/test/tint/bug/tint/959.wgsl b/test/tint/bug/tint/959.wgsl index e472591a56..8f3d9ba867 100644 --- a/test/tint/bug/tint/959.wgsl +++ b/test/tint/bug/tint/959.wgsl @@ -58,7 +58,7 @@ struct S { @group(14) @binding(300) var s14 : sampler_comparison; @group(15) @binding(300) var s15 : sampler_comparison; -@stage(fragment) +@fragment fn main() { _ = b0; _ = b1; diff --git a/test/tint/bug/tint/959.wgsl.expected.wgsl b/test/tint/bug/tint/959.wgsl.expected.wgsl index face4f9b9c..95fad73ee8 100644 --- a/test/tint/bug/tint/959.wgsl.expected.wgsl +++ b/test/tint/bug/tint/959.wgsl.expected.wgsl @@ -98,7 +98,7 @@ struct S { @group(15) @binding(300) var s15 : sampler_comparison; -@stage(fragment) +@fragment fn main() { _ = b0; _ = b1; diff --git a/test/tint/bug/tint/977.spvasm.expected.wgsl b/test/tint/bug/tint/977.spvasm.expected.wgsl index 5b02dce0b4..7ec6a24547 100644 --- a/test/tint/bug/tint/977.spvasm.expected.wgsl +++ b/test/tint/bug/tint/977.spvasm.expected.wgsl @@ -69,7 +69,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main(@builtin(global_invocation_id) gl_GlobalInvocationID_param : vec3) { gl_GlobalInvocationID = gl_GlobalInvocationID_param; main_1(); diff --git a/test/tint/bug/tint/978.wgsl b/test/tint/bug/tint/978.wgsl index 3a0635f28c..c0b51329ce 100644 --- a/test/tint/bug/tint/978.wgsl +++ b/test/tint/bug/tint/978.wgsl @@ -14,7 +14,7 @@ struct FragmentOutput @binding(3) @group(1) var texSampler : sampler; -@stage(fragment) +@fragment fn main( fIn : FragmentInput ) -> FragmentOutput { let sample : f32 = textureSample( depthMap , texSampler, fIn.vUv ); diff --git a/test/tint/bug/tint/978.wgsl.expected.wgsl b/test/tint/bug/tint/978.wgsl.expected.wgsl index 8327a5768a..4b36794333 100644 --- a/test/tint/bug/tint/978.wgsl.expected.wgsl +++ b/test/tint/bug/tint/978.wgsl.expected.wgsl @@ -12,7 +12,7 @@ struct FragmentOutput { @binding(3) @group(1) var texSampler : sampler; -@stage(fragment) +@fragment fn main(fIn : FragmentInput) -> FragmentOutput { let sample : f32 = textureSample(depthMap, texSampler, fIn.vUv); let color : vec3 = vec3(sample, sample, sample); diff --git a/test/tint/bug/tint/980.wgsl b/test/tint/bug/tint/980.wgsl index 3188a8080b..5d64cc1ac1 100644 --- a/test/tint/bug/tint/980.wgsl +++ b/test/tint/bug/tint/980.wgsl @@ -7,7 +7,7 @@ fn Bad(index: u32, rd: vec3) -> vec3 { struct S { v : vec3, i : u32, }; @binding(0) @group(0) var io : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@builtin(local_invocation_index) idx : u32) { io.v = Bad(io.i, io.v); } diff --git a/test/tint/bug/tint/980.wgsl.expected.wgsl b/test/tint/bug/tint/980.wgsl.expected.wgsl index 076e4503ab..f7c24e9e5e 100644 --- a/test/tint/bug/tint/980.wgsl.expected.wgsl +++ b/test/tint/bug/tint/980.wgsl.expected.wgsl @@ -11,7 +11,7 @@ struct S { @binding(0) @group(0) var io : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@builtin(local_invocation_index) idx : u32) { io.v = Bad(io.i, io.v); } diff --git a/test/tint/bug/tint/992.wgsl b/test/tint/bug/tint/992.wgsl index 461e17ceae..0e315bf976 100644 --- a/test/tint/bug/tint/992.wgsl +++ b/test/tint/bug/tint/992.wgsl @@ -1,4 +1,4 @@ -@stage(fragment) +@fragment fn frag_main() -> @location(0) vec4 { var b: f32 = 0.0; var v: vec3 = vec3(b); diff --git a/test/tint/bug/tint/992.wgsl.expected.wgsl b/test/tint/bug/tint/992.wgsl.expected.wgsl index 1742838145..60a20228d9 100644 --- a/test/tint/bug/tint/992.wgsl.expected.wgsl +++ b/test/tint/bug/tint/992.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(fragment) +@fragment fn frag_main() -> @location(0) vec4 { var b : f32 = 0.0; var v : vec3 = vec3(b); diff --git a/test/tint/bug/tint/993.wgsl b/test/tint/bug/tint/993.wgsl index 35f4599e32..e45d78982b 100644 --- a/test/tint/bug/tint/993.wgsl +++ b/test/tint/bug/tint/993.wgsl @@ -18,7 +18,7 @@ fn runTest() -> i32 { return atomicLoad(&s.data[(0u) + u32(constants.zero)]); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { result.value = u32(runTest()); } diff --git a/test/tint/bug/tint/993.wgsl.expected.wgsl b/test/tint/bug/tint/993.wgsl.expected.wgsl index 32aefc6403..df926b80cf 100644 --- a/test/tint/bug/tint/993.wgsl.expected.wgsl +++ b/test/tint/bug/tint/993.wgsl.expected.wgsl @@ -20,7 +20,7 @@ fn runTest() -> i32 { return atomicLoad(&(s.data[(0u + u32(constants.zero))])); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { result.value = u32(runTest()); } diff --git a/test/tint/bug/tint/998.wgsl b/test/tint/bug/tint/998.wgsl index cb85ddefb9..e04eec0c60 100644 --- a/test/tint/bug/tint/998.wgsl +++ b/test/tint/bug/tint/998.wgsl @@ -13,7 +13,7 @@ struct S { }; var s: S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { s.data[constants.zero] = 0u; } diff --git a/test/tint/bug/tint/998.wgsl.expected.wgsl b/test/tint/bug/tint/998.wgsl.expected.wgsl index 1068851cbb..ebdae6e633 100644 --- a/test/tint/bug/tint/998.wgsl.expected.wgsl +++ b/test/tint/bug/tint/998.wgsl.expected.wgsl @@ -16,7 +16,7 @@ struct S { var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { s.data[constants.zero] = 0u; } diff --git a/test/tint/builtins/arrayLength/complex_via_let.wgsl b/test/tint/builtins/arrayLength/complex_via_let.wgsl index 29c07c9021..85836f04ba 100644 --- a/test/tint/builtins/arrayLength/complex_via_let.wgsl +++ b/test/tint/builtins/arrayLength/complex_via_let.wgsl @@ -4,7 +4,7 @@ struct S { @group(0) @binding(0) var G : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let p = &G; let p2 = &((*p).a); diff --git a/test/tint/builtins/arrayLength/complex_via_let.wgsl.expected.wgsl b/test/tint/builtins/arrayLength/complex_via_let.wgsl.expected.wgsl index a35b6e4706..6fed13cdbc 100644 --- a/test/tint/builtins/arrayLength/complex_via_let.wgsl.expected.wgsl +++ b/test/tint/builtins/arrayLength/complex_via_let.wgsl.expected.wgsl @@ -4,7 +4,7 @@ struct S { @group(0) @binding(0) var G : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let p = &(G); let p2 = &((*(p)).a); diff --git a/test/tint/builtins/arrayLength/complex_via_let_no_struct.wgsl b/test/tint/builtins/arrayLength/complex_via_let_no_struct.wgsl index 8626deeb04..231dbd25e6 100644 --- a/test/tint/builtins/arrayLength/complex_via_let_no_struct.wgsl +++ b/test/tint/builtins/arrayLength/complex_via_let_no_struct.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var G : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let p = &G; let p2 = &(*p); diff --git a/test/tint/builtins/arrayLength/complex_via_let_no_struct.wgsl.expected.wgsl b/test/tint/builtins/arrayLength/complex_via_let_no_struct.wgsl.expected.wgsl index 2d06902eb1..2cce05d9c1 100644 --- a/test/tint/builtins/arrayLength/complex_via_let_no_struct.wgsl.expected.wgsl +++ b/test/tint/builtins/arrayLength/complex_via_let_no_struct.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var G : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let p = &(G); let p2 = &(*(p)); diff --git a/test/tint/builtins/arrayLength/deprecated.wgsl b/test/tint/builtins/arrayLength/deprecated.wgsl index 0af15ea52e..2de8025615 100644 --- a/test/tint/builtins/arrayLength/deprecated.wgsl +++ b/test/tint/builtins/arrayLength/deprecated.wgsl @@ -4,7 +4,7 @@ struct S { @group(0) @binding(0) var G : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let l1 : u32 = arrayLength(&G.a); diff --git a/test/tint/builtins/arrayLength/deprecated.wgsl.expected.wgsl b/test/tint/builtins/arrayLength/deprecated.wgsl.expected.wgsl index 7d96296e53..fb4b550ede 100644 --- a/test/tint/builtins/arrayLength/deprecated.wgsl.expected.wgsl +++ b/test/tint/builtins/arrayLength/deprecated.wgsl.expected.wgsl @@ -4,7 +4,7 @@ struct S { @group(0) @binding(0) var G : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let l1 : u32 = arrayLength(&(G.a)); let p = &(G.a); diff --git a/test/tint/builtins/arrayLength/simple.wgsl b/test/tint/builtins/arrayLength/simple.wgsl index 74ff5cc597..23e917646e 100644 --- a/test/tint/builtins/arrayLength/simple.wgsl +++ b/test/tint/builtins/arrayLength/simple.wgsl @@ -4,7 +4,7 @@ struct S { @group(0) @binding(0) var G : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let l1 : u32 = arrayLength(&G.a); } diff --git a/test/tint/builtins/arrayLength/simple.wgsl.expected.wgsl b/test/tint/builtins/arrayLength/simple.wgsl.expected.wgsl index f1db44b0ee..6641075001 100644 --- a/test/tint/builtins/arrayLength/simple.wgsl.expected.wgsl +++ b/test/tint/builtins/arrayLength/simple.wgsl.expected.wgsl @@ -4,7 +4,7 @@ struct S { @group(0) @binding(0) var G : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let l1 : u32 = arrayLength(&(G.a)); } diff --git a/test/tint/builtins/arrayLength/simple_no_struct.wgsl b/test/tint/builtins/arrayLength/simple_no_struct.wgsl index 985c87e1be..5f24327531 100644 --- a/test/tint/builtins/arrayLength/simple_no_struct.wgsl +++ b/test/tint/builtins/arrayLength/simple_no_struct.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var G : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let l1 : u32 = arrayLength(&G); } diff --git a/test/tint/builtins/arrayLength/simple_no_struct.wgsl.expected.wgsl b/test/tint/builtins/arrayLength/simple_no_struct.wgsl.expected.wgsl index b45cd361c6..463136ce1d 100644 --- a/test/tint/builtins/arrayLength/simple_no_struct.wgsl.expected.wgsl +++ b/test/tint/builtins/arrayLength/simple_no_struct.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var G : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let l1 : u32 = arrayLength(&(G)); } diff --git a/test/tint/builtins/arrayLength/via_let.wgsl b/test/tint/builtins/arrayLength/via_let.wgsl index e3dff0baad..11b3200432 100644 --- a/test/tint/builtins/arrayLength/via_let.wgsl +++ b/test/tint/builtins/arrayLength/via_let.wgsl @@ -4,7 +4,7 @@ struct S { @group(0) @binding(0) var G : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let p = &G.a; let p2 = p; diff --git a/test/tint/builtins/arrayLength/via_let.wgsl.expected.wgsl b/test/tint/builtins/arrayLength/via_let.wgsl.expected.wgsl index 7a7ffbd510..b2f9d9d4a7 100644 --- a/test/tint/builtins/arrayLength/via_let.wgsl.expected.wgsl +++ b/test/tint/builtins/arrayLength/via_let.wgsl.expected.wgsl @@ -4,7 +4,7 @@ struct S { @group(0) @binding(0) var G : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let p = &(G.a); let p2 = p; diff --git a/test/tint/builtins/arrayLength/via_let_complex.wgsl b/test/tint/builtins/arrayLength/via_let_complex.wgsl index a30a39d450..6704983ac8 100644 --- a/test/tint/builtins/arrayLength/via_let_complex.wgsl +++ b/test/tint/builtins/arrayLength/via_let_complex.wgsl @@ -4,7 +4,7 @@ struct S { @group(0) @binding(0) var G : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let p = &*&G; let p2 = &*p; diff --git a/test/tint/builtins/arrayLength/via_let_complex.wgsl.expected.wgsl b/test/tint/builtins/arrayLength/via_let_complex.wgsl.expected.wgsl index 2db8863954..b229c01cfd 100644 --- a/test/tint/builtins/arrayLength/via_let_complex.wgsl.expected.wgsl +++ b/test/tint/builtins/arrayLength/via_let_complex.wgsl.expected.wgsl @@ -4,7 +4,7 @@ struct S { @group(0) @binding(0) var G : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let p = &(*(&(G))); let p2 = &(*(p)); diff --git a/test/tint/builtins/arrayLength/via_let_complex_no_struct.wgsl b/test/tint/builtins/arrayLength/via_let_complex_no_struct.wgsl index dd8beb64e7..e199d23a90 100644 --- a/test/tint/builtins/arrayLength/via_let_complex_no_struct.wgsl +++ b/test/tint/builtins/arrayLength/via_let_complex_no_struct.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var G : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let p = &*&G; let p2 = &*p; diff --git a/test/tint/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.wgsl b/test/tint/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.wgsl index a92b9beb26..cb644677cd 100644 --- a/test/tint/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.wgsl +++ b/test/tint/builtins/arrayLength/via_let_complex_no_struct.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var G : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let p = &(*(&(G))); let p2 = &(*(p)); diff --git a/test/tint/builtins/arrayLength/via_let_no_struct.wgsl b/test/tint/builtins/arrayLength/via_let_no_struct.wgsl index 203f0e0666..066c19f5a5 100644 --- a/test/tint/builtins/arrayLength/via_let_no_struct.wgsl +++ b/test/tint/builtins/arrayLength/via_let_no_struct.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var G : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let p = &G; let p2 = p; diff --git a/test/tint/builtins/arrayLength/via_let_no_struct.wgsl.expected.wgsl b/test/tint/builtins/arrayLength/via_let_no_struct.wgsl.expected.wgsl index 3e0760312f..fea405805b 100644 --- a/test/tint/builtins/arrayLength/via_let_no_struct.wgsl.expected.wgsl +++ b/test/tint/builtins/arrayLength/via_let_no_struct.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var G : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let p = &(G); let p2 = p; diff --git a/test/tint/builtins/degrees.spvasm.expected.wgsl b/test/tint/builtins/degrees.spvasm.expected.wgsl index d0d2ba5d71..d5a3382ea2 100644 --- a/test/tint/builtins/degrees.spvasm.expected.wgsl +++ b/test/tint/builtins/degrees.spvasm.expected.wgsl @@ -7,7 +7,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main() { main_1(); } diff --git a/test/tint/builtins/extractBits/scalar/i32.spvasm.expected.wgsl b/test/tint/builtins/extractBits/scalar/i32.spvasm.expected.wgsl index 37c53142d5..c381fada48 100644 --- a/test/tint/builtins/extractBits/scalar/i32.spvasm.expected.wgsl +++ b/test/tint/builtins/extractBits/scalar/i32.spvasm.expected.wgsl @@ -9,7 +9,7 @@ fn f_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn f() { f_1(); } diff --git a/test/tint/builtins/extractBits/scalar/u32.spvasm.expected.wgsl b/test/tint/builtins/extractBits/scalar/u32.spvasm.expected.wgsl index cab6bcf4bf..c9987a9ac2 100644 --- a/test/tint/builtins/extractBits/scalar/u32.spvasm.expected.wgsl +++ b/test/tint/builtins/extractBits/scalar/u32.spvasm.expected.wgsl @@ -9,7 +9,7 @@ fn f_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn f() { f_1(); } diff --git a/test/tint/builtins/extractBits/vec3/i32.spvasm.expected.wgsl b/test/tint/builtins/extractBits/vec3/i32.spvasm.expected.wgsl index 9497207708..2a9d713e15 100644 --- a/test/tint/builtins/extractBits/vec3/i32.spvasm.expected.wgsl +++ b/test/tint/builtins/extractBits/vec3/i32.spvasm.expected.wgsl @@ -9,7 +9,7 @@ fn f_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn f() { f_1(); } diff --git a/test/tint/builtins/extractBits/vec3/u32.spvasm.expected.wgsl b/test/tint/builtins/extractBits/vec3/u32.spvasm.expected.wgsl index 7bb29a5cbe..5c48450743 100644 --- a/test/tint/builtins/extractBits/vec3/u32.spvasm.expected.wgsl +++ b/test/tint/builtins/extractBits/vec3/u32.spvasm.expected.wgsl @@ -9,7 +9,7 @@ fn f_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn f() { f_1(); } diff --git a/test/tint/builtins/frexp.wgsl b/test/tint/builtins/frexp.wgsl index f4c30d4644..549c3c623a 100644 --- a/test/tint/builtins/frexp.wgsl +++ b/test/tint/builtins/frexp.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let res = frexp(1.23); let exp : i32 = res.exp; diff --git a/test/tint/builtins/frexp.wgsl.expected.wgsl b/test/tint/builtins/frexp.wgsl.expected.wgsl index 50cbd404e5..a36f01a466 100644 --- a/test/tint/builtins/frexp.wgsl.expected.wgsl +++ b/test/tint/builtins/frexp.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let res = frexp(1.230000019); let exp : i32 = res.exp; diff --git a/test/tint/builtins/gen/gen.wgsl.tmpl b/test/tint/builtins/gen/gen.wgsl.tmpl index 0e43231e71..2f28e000ba 100644 --- a/test/tint/builtins/gen/gen.wgsl.tmpl +++ b/test/tint/builtins/gen/gen.wgsl.tmpl @@ -144,7 +144,7 @@ fn {{$permutation}}() { {{/*new line*/ -}} {{- if $overload.CanBeUsedInStage.Vertex }} -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { {{$permutation}}(); return vec4(); @@ -152,14 +152,14 @@ fn vertex_main() -> @builtin(position) vec4 { {{ end -}} {{- if $overload.CanBeUsedInStage.Fragment }} -@stage(fragment) +@fragment fn fragment_main() { {{$permutation}}(); } {{ end -}} {{- if $overload.CanBeUsedInStage.Compute }} -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { {{$permutation}}(); } diff --git a/test/tint/builtins/gen/literal/abs/002533.wgsl b/test/tint/builtins/gen/literal/abs/002533.wgsl index 629d1459ca..d3c51c9aec 100644 --- a/test/tint/builtins/gen/literal/abs/002533.wgsl +++ b/test/tint/builtins/gen/literal/abs/002533.wgsl @@ -28,18 +28,18 @@ fn abs_002533() { var res: vec4 = abs(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_002533(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_002533(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_002533(); } diff --git a/test/tint/builtins/gen/literal/abs/002533.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/abs/002533.wgsl.expected.wgsl index 8edc059f0c..9e957d4cb8 100644 --- a/test/tint/builtins/gen/literal/abs/002533.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/abs/002533.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn abs_002533() { var res : vec4 = abs(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_002533(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_002533(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_002533(); } diff --git a/test/tint/builtins/gen/literal/abs/005174.wgsl b/test/tint/builtins/gen/literal/abs/005174.wgsl index b22b60dfd5..c6032b3e5e 100644 --- a/test/tint/builtins/gen/literal/abs/005174.wgsl +++ b/test/tint/builtins/gen/literal/abs/005174.wgsl @@ -28,18 +28,18 @@ fn abs_005174() { var res: vec3 = abs(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_005174(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_005174(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_005174(); } diff --git a/test/tint/builtins/gen/literal/abs/005174.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/abs/005174.wgsl.expected.wgsl index 0675fff80c..f3e949455b 100644 --- a/test/tint/builtins/gen/literal/abs/005174.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/abs/005174.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn abs_005174() { var res : vec3 = abs(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_005174(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_005174(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_005174(); } diff --git a/test/tint/builtins/gen/literal/abs/1ce782.wgsl b/test/tint/builtins/gen/literal/abs/1ce782.wgsl index 7487129ce0..8076d8e424 100644 --- a/test/tint/builtins/gen/literal/abs/1ce782.wgsl +++ b/test/tint/builtins/gen/literal/abs/1ce782.wgsl @@ -28,18 +28,18 @@ fn abs_1ce782() { var res: vec4 = abs(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_1ce782(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_1ce782(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_1ce782(); } diff --git a/test/tint/builtins/gen/literal/abs/1ce782.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/abs/1ce782.wgsl.expected.wgsl index 02c1c23454..cc92a173f8 100644 --- a/test/tint/builtins/gen/literal/abs/1ce782.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/abs/1ce782.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn abs_1ce782() { var res : vec4 = abs(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_1ce782(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_1ce782(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_1ce782(); } diff --git a/test/tint/builtins/gen/literal/abs/1e9d53.wgsl b/test/tint/builtins/gen/literal/abs/1e9d53.wgsl index 0a43ebc342..d8d5cfd4a0 100644 --- a/test/tint/builtins/gen/literal/abs/1e9d53.wgsl +++ b/test/tint/builtins/gen/literal/abs/1e9d53.wgsl @@ -28,18 +28,18 @@ fn abs_1e9d53() { var res: vec2 = abs(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_1e9d53(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_1e9d53(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_1e9d53(); } diff --git a/test/tint/builtins/gen/literal/abs/1e9d53.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/abs/1e9d53.wgsl.expected.wgsl index ba2ae4b4be..5e5072d1f9 100644 --- a/test/tint/builtins/gen/literal/abs/1e9d53.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/abs/1e9d53.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn abs_1e9d53() { var res : vec2 = abs(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_1e9d53(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_1e9d53(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_1e9d53(); } diff --git a/test/tint/builtins/gen/literal/abs/467cd1.wgsl b/test/tint/builtins/gen/literal/abs/467cd1.wgsl index f56c0e7549..f6052d01dd 100644 --- a/test/tint/builtins/gen/literal/abs/467cd1.wgsl +++ b/test/tint/builtins/gen/literal/abs/467cd1.wgsl @@ -28,18 +28,18 @@ fn abs_467cd1() { var res: u32 = abs(1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_467cd1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_467cd1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_467cd1(); } diff --git a/test/tint/builtins/gen/literal/abs/467cd1.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/abs/467cd1.wgsl.expected.wgsl index 0af41411e1..a69414d474 100644 --- a/test/tint/builtins/gen/literal/abs/467cd1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/abs/467cd1.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn abs_467cd1() { var res : u32 = abs(1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_467cd1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_467cd1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_467cd1(); } diff --git a/test/tint/builtins/gen/literal/abs/4ad288.wgsl b/test/tint/builtins/gen/literal/abs/4ad288.wgsl index ac0a540cbb..a07ca3704a 100644 --- a/test/tint/builtins/gen/literal/abs/4ad288.wgsl +++ b/test/tint/builtins/gen/literal/abs/4ad288.wgsl @@ -28,18 +28,18 @@ fn abs_4ad288() { var res: i32 = abs(1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_4ad288(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_4ad288(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_4ad288(); } diff --git a/test/tint/builtins/gen/literal/abs/4ad288.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/abs/4ad288.wgsl.expected.wgsl index e96f64463a..7c47bf87a7 100644 --- a/test/tint/builtins/gen/literal/abs/4ad288.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/abs/4ad288.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn abs_4ad288() { var res : i32 = abs(1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_4ad288(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_4ad288(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_4ad288(); } diff --git a/test/tint/builtins/gen/literal/abs/5ad50a.wgsl b/test/tint/builtins/gen/literal/abs/5ad50a.wgsl index b31a2d7e3f..aa6b91f00b 100644 --- a/test/tint/builtins/gen/literal/abs/5ad50a.wgsl +++ b/test/tint/builtins/gen/literal/abs/5ad50a.wgsl @@ -28,18 +28,18 @@ fn abs_5ad50a() { var res: vec3 = abs(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_5ad50a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_5ad50a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_5ad50a(); } diff --git a/test/tint/builtins/gen/literal/abs/5ad50a.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/abs/5ad50a.wgsl.expected.wgsl index d1cf47f3cd..7ed9352326 100644 --- a/test/tint/builtins/gen/literal/abs/5ad50a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/abs/5ad50a.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn abs_5ad50a() { var res : vec3 = abs(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_5ad50a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_5ad50a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_5ad50a(); } diff --git a/test/tint/builtins/gen/literal/abs/7326de.wgsl b/test/tint/builtins/gen/literal/abs/7326de.wgsl index 2341b407bd..6d9857a65a 100644 --- a/test/tint/builtins/gen/literal/abs/7326de.wgsl +++ b/test/tint/builtins/gen/literal/abs/7326de.wgsl @@ -28,18 +28,18 @@ fn abs_7326de() { var res: vec3 = abs(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_7326de(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_7326de(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_7326de(); } diff --git a/test/tint/builtins/gen/literal/abs/7326de.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/abs/7326de.wgsl.expected.wgsl index 4d07d263f1..d7d7be17a6 100644 --- a/test/tint/builtins/gen/literal/abs/7326de.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/abs/7326de.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn abs_7326de() { var res : vec3 = abs(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_7326de(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_7326de(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_7326de(); } diff --git a/test/tint/builtins/gen/literal/abs/7f28e6.wgsl b/test/tint/builtins/gen/literal/abs/7f28e6.wgsl index 140a4a81fe..f49e2f3dd8 100644 --- a/test/tint/builtins/gen/literal/abs/7f28e6.wgsl +++ b/test/tint/builtins/gen/literal/abs/7f28e6.wgsl @@ -28,18 +28,18 @@ fn abs_7f28e6() { var res: vec2 = abs(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_7f28e6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_7f28e6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_7f28e6(); } diff --git a/test/tint/builtins/gen/literal/abs/7f28e6.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/abs/7f28e6.wgsl.expected.wgsl index 8f83b406dc..6b2658c08b 100644 --- a/test/tint/builtins/gen/literal/abs/7f28e6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/abs/7f28e6.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn abs_7f28e6() { var res : vec2 = abs(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_7f28e6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_7f28e6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_7f28e6(); } diff --git a/test/tint/builtins/gen/literal/abs/7faa9e.wgsl b/test/tint/builtins/gen/literal/abs/7faa9e.wgsl index 23011a2f3c..6cc6230a9a 100644 --- a/test/tint/builtins/gen/literal/abs/7faa9e.wgsl +++ b/test/tint/builtins/gen/literal/abs/7faa9e.wgsl @@ -28,18 +28,18 @@ fn abs_7faa9e() { var res: vec2 = abs(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_7faa9e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_7faa9e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_7faa9e(); } diff --git a/test/tint/builtins/gen/literal/abs/7faa9e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/abs/7faa9e.wgsl.expected.wgsl index c8e0001e08..d2b29b2a80 100644 --- a/test/tint/builtins/gen/literal/abs/7faa9e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/abs/7faa9e.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn abs_7faa9e() { var res : vec2 = abs(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_7faa9e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_7faa9e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_7faa9e(); } diff --git a/test/tint/builtins/gen/literal/abs/9c80a6.wgsl b/test/tint/builtins/gen/literal/abs/9c80a6.wgsl index 1fba92e646..fe7c446781 100644 --- a/test/tint/builtins/gen/literal/abs/9c80a6.wgsl +++ b/test/tint/builtins/gen/literal/abs/9c80a6.wgsl @@ -28,18 +28,18 @@ fn abs_9c80a6() { var res: vec4 = abs(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_9c80a6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_9c80a6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_9c80a6(); } diff --git a/test/tint/builtins/gen/literal/abs/9c80a6.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/abs/9c80a6.wgsl.expected.wgsl index 6e3519d381..46af62a4e9 100644 --- a/test/tint/builtins/gen/literal/abs/9c80a6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/abs/9c80a6.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn abs_9c80a6() { var res : vec4 = abs(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_9c80a6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_9c80a6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_9c80a6(); } diff --git a/test/tint/builtins/gen/literal/abs/b96037.wgsl b/test/tint/builtins/gen/literal/abs/b96037.wgsl index 603d341dc4..9299117d2b 100644 --- a/test/tint/builtins/gen/literal/abs/b96037.wgsl +++ b/test/tint/builtins/gen/literal/abs/b96037.wgsl @@ -28,18 +28,18 @@ fn abs_b96037() { var res: f32 = abs(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_b96037(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_b96037(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_b96037(); } diff --git a/test/tint/builtins/gen/literal/abs/b96037.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/abs/b96037.wgsl.expected.wgsl index 22c47c28e2..f9b972bb10 100644 --- a/test/tint/builtins/gen/literal/abs/b96037.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/abs/b96037.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn abs_b96037() { var res : f32 = abs(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_b96037(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_b96037(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_b96037(); } diff --git a/test/tint/builtins/gen/literal/acos/489247.wgsl b/test/tint/builtins/gen/literal/acos/489247.wgsl index 0bdc1bf6c3..3ff4a38505 100644 --- a/test/tint/builtins/gen/literal/acos/489247.wgsl +++ b/test/tint/builtins/gen/literal/acos/489247.wgsl @@ -28,18 +28,18 @@ fn acos_489247() { var res: f32 = acos(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { acos_489247(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { acos_489247(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { acos_489247(); } diff --git a/test/tint/builtins/gen/literal/acos/489247.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/acos/489247.wgsl.expected.wgsl index d8570fb212..b2d78e1e52 100644 --- a/test/tint/builtins/gen/literal/acos/489247.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/acos/489247.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn acos_489247() { var res : f32 = acos(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { acos_489247(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { acos_489247(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { acos_489247(); } diff --git a/test/tint/builtins/gen/literal/acos/8e2acf.wgsl b/test/tint/builtins/gen/literal/acos/8e2acf.wgsl index 6371bc9c80..13d836a6d3 100644 --- a/test/tint/builtins/gen/literal/acos/8e2acf.wgsl +++ b/test/tint/builtins/gen/literal/acos/8e2acf.wgsl @@ -28,18 +28,18 @@ fn acos_8e2acf() { var res: vec4 = acos(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { acos_8e2acf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { acos_8e2acf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { acos_8e2acf(); } diff --git a/test/tint/builtins/gen/literal/acos/8e2acf.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/acos/8e2acf.wgsl.expected.wgsl index c03ab26213..2703d5bc22 100644 --- a/test/tint/builtins/gen/literal/acos/8e2acf.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/acos/8e2acf.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn acos_8e2acf() { var res : vec4 = acos(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { acos_8e2acf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { acos_8e2acf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { acos_8e2acf(); } diff --git a/test/tint/builtins/gen/literal/acos/a610c4.wgsl b/test/tint/builtins/gen/literal/acos/a610c4.wgsl index 1d8c7f0abb..27d6d3eca4 100644 --- a/test/tint/builtins/gen/literal/acos/a610c4.wgsl +++ b/test/tint/builtins/gen/literal/acos/a610c4.wgsl @@ -28,18 +28,18 @@ fn acos_a610c4() { var res: vec3 = acos(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { acos_a610c4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { acos_a610c4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { acos_a610c4(); } diff --git a/test/tint/builtins/gen/literal/acos/a610c4.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/acos/a610c4.wgsl.expected.wgsl index 24807be11d..e6e820b4ae 100644 --- a/test/tint/builtins/gen/literal/acos/a610c4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/acos/a610c4.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn acos_a610c4() { var res : vec3 = acos(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { acos_a610c4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { acos_a610c4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { acos_a610c4(); } diff --git a/test/tint/builtins/gen/literal/acos/dfc915.wgsl b/test/tint/builtins/gen/literal/acos/dfc915.wgsl index b8d95bdc89..58a06dd7a1 100644 --- a/test/tint/builtins/gen/literal/acos/dfc915.wgsl +++ b/test/tint/builtins/gen/literal/acos/dfc915.wgsl @@ -28,18 +28,18 @@ fn acos_dfc915() { var res: vec2 = acos(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { acos_dfc915(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { acos_dfc915(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { acos_dfc915(); } diff --git a/test/tint/builtins/gen/literal/acos/dfc915.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/acos/dfc915.wgsl.expected.wgsl index e16d1eabe3..f76f516879 100644 --- a/test/tint/builtins/gen/literal/acos/dfc915.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/acos/dfc915.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn acos_dfc915() { var res : vec2 = acos(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { acos_dfc915(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { acos_dfc915(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { acos_dfc915(); } diff --git a/test/tint/builtins/gen/literal/all/353d6a.wgsl b/test/tint/builtins/gen/literal/all/353d6a.wgsl index 2709c4401d..678b0ce637 100644 --- a/test/tint/builtins/gen/literal/all/353d6a.wgsl +++ b/test/tint/builtins/gen/literal/all/353d6a.wgsl @@ -28,18 +28,18 @@ fn all_353d6a() { var res: bool = all(bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { all_353d6a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { all_353d6a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { all_353d6a(); } diff --git a/test/tint/builtins/gen/literal/all/353d6a.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/all/353d6a.wgsl.expected.wgsl index b1ae87d5d6..2cab924c56 100644 --- a/test/tint/builtins/gen/literal/all/353d6a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/all/353d6a.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn all_353d6a() { var res : bool = all(bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { all_353d6a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { all_353d6a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { all_353d6a(); } diff --git a/test/tint/builtins/gen/literal/all/986c7b.wgsl b/test/tint/builtins/gen/literal/all/986c7b.wgsl index 92714f7c6c..1c89cb30db 100644 --- a/test/tint/builtins/gen/literal/all/986c7b.wgsl +++ b/test/tint/builtins/gen/literal/all/986c7b.wgsl @@ -28,18 +28,18 @@ fn all_986c7b() { var res: bool = all(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { all_986c7b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { all_986c7b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { all_986c7b(); } diff --git a/test/tint/builtins/gen/literal/all/986c7b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/all/986c7b.wgsl.expected.wgsl index 919532111f..c6d562beef 100644 --- a/test/tint/builtins/gen/literal/all/986c7b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/all/986c7b.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn all_986c7b() { var res : bool = all(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { all_986c7b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { all_986c7b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { all_986c7b(); } diff --git a/test/tint/builtins/gen/literal/all/bd2dba.wgsl b/test/tint/builtins/gen/literal/all/bd2dba.wgsl index e28d07bd75..df0672c2c4 100644 --- a/test/tint/builtins/gen/literal/all/bd2dba.wgsl +++ b/test/tint/builtins/gen/literal/all/bd2dba.wgsl @@ -28,18 +28,18 @@ fn all_bd2dba() { var res: bool = all(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { all_bd2dba(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { all_bd2dba(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { all_bd2dba(); } diff --git a/test/tint/builtins/gen/literal/all/bd2dba.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/all/bd2dba.wgsl.expected.wgsl index 9ec977d188..062840b1ab 100644 --- a/test/tint/builtins/gen/literal/all/bd2dba.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/all/bd2dba.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn all_bd2dba() { var res : bool = all(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { all_bd2dba(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { all_bd2dba(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { all_bd2dba(); } diff --git a/test/tint/builtins/gen/literal/all/f46790.wgsl b/test/tint/builtins/gen/literal/all/f46790.wgsl index cef2ae2326..3d5b39fdb6 100644 --- a/test/tint/builtins/gen/literal/all/f46790.wgsl +++ b/test/tint/builtins/gen/literal/all/f46790.wgsl @@ -28,18 +28,18 @@ fn all_f46790() { var res: bool = all(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { all_f46790(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { all_f46790(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { all_f46790(); } diff --git a/test/tint/builtins/gen/literal/all/f46790.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/all/f46790.wgsl.expected.wgsl index a222bb5a2c..27bdf58a37 100644 --- a/test/tint/builtins/gen/literal/all/f46790.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/all/f46790.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn all_f46790() { var res : bool = all(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { all_f46790(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { all_f46790(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { all_f46790(); } diff --git a/test/tint/builtins/gen/literal/any/083428.wgsl b/test/tint/builtins/gen/literal/any/083428.wgsl index 0d7f1b3839..81ce45122c 100644 --- a/test/tint/builtins/gen/literal/any/083428.wgsl +++ b/test/tint/builtins/gen/literal/any/083428.wgsl @@ -28,18 +28,18 @@ fn any_083428() { var res: bool = any(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { any_083428(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { any_083428(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { any_083428(); } diff --git a/test/tint/builtins/gen/literal/any/083428.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/any/083428.wgsl.expected.wgsl index acd23c8424..7f58549c31 100644 --- a/test/tint/builtins/gen/literal/any/083428.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/any/083428.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn any_083428() { var res : bool = any(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { any_083428(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { any_083428(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { any_083428(); } diff --git a/test/tint/builtins/gen/literal/any/0e3e58.wgsl b/test/tint/builtins/gen/literal/any/0e3e58.wgsl index c71e30b2f7..ddcf052922 100644 --- a/test/tint/builtins/gen/literal/any/0e3e58.wgsl +++ b/test/tint/builtins/gen/literal/any/0e3e58.wgsl @@ -28,18 +28,18 @@ fn any_0e3e58() { var res: bool = any(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { any_0e3e58(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { any_0e3e58(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { any_0e3e58(); } diff --git a/test/tint/builtins/gen/literal/any/0e3e58.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/any/0e3e58.wgsl.expected.wgsl index c94d9a1029..d553b64f08 100644 --- a/test/tint/builtins/gen/literal/any/0e3e58.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/any/0e3e58.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn any_0e3e58() { var res : bool = any(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { any_0e3e58(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { any_0e3e58(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { any_0e3e58(); } diff --git a/test/tint/builtins/gen/literal/any/2ab91a.wgsl b/test/tint/builtins/gen/literal/any/2ab91a.wgsl index 819c6921b4..463da0f5e8 100644 --- a/test/tint/builtins/gen/literal/any/2ab91a.wgsl +++ b/test/tint/builtins/gen/literal/any/2ab91a.wgsl @@ -28,18 +28,18 @@ fn any_2ab91a() { var res: bool = any(bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { any_2ab91a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { any_2ab91a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { any_2ab91a(); } diff --git a/test/tint/builtins/gen/literal/any/2ab91a.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/any/2ab91a.wgsl.expected.wgsl index 283ab5a7dc..7300c560fd 100644 --- a/test/tint/builtins/gen/literal/any/2ab91a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/any/2ab91a.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn any_2ab91a() { var res : bool = any(bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { any_2ab91a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { any_2ab91a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { any_2ab91a(); } diff --git a/test/tint/builtins/gen/literal/any/e755c1.wgsl b/test/tint/builtins/gen/literal/any/e755c1.wgsl index 39e9415cbb..2a40218bcf 100644 --- a/test/tint/builtins/gen/literal/any/e755c1.wgsl +++ b/test/tint/builtins/gen/literal/any/e755c1.wgsl @@ -28,18 +28,18 @@ fn any_e755c1() { var res: bool = any(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { any_e755c1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { any_e755c1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { any_e755c1(); } diff --git a/test/tint/builtins/gen/literal/any/e755c1.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/any/e755c1.wgsl.expected.wgsl index bf47826409..dfbbe680af 100644 --- a/test/tint/builtins/gen/literal/any/e755c1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/any/e755c1.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn any_e755c1() { var res : bool = any(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { any_e755c1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { any_e755c1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { any_e755c1(); } diff --git a/test/tint/builtins/gen/literal/arrayLength/1588cd.wgsl b/test/tint/builtins/gen/literal/arrayLength/1588cd.wgsl index c4dec13c3c..5af41cc5bb 100644 --- a/test/tint/builtins/gen/literal/arrayLength/1588cd.wgsl +++ b/test/tint/builtins/gen/literal/arrayLength/1588cd.wgsl @@ -32,18 +32,18 @@ fn arrayLength_1588cd() { var res: u32 = arrayLength(&sb_ro.arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { arrayLength_1588cd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { arrayLength_1588cd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { arrayLength_1588cd(); } diff --git a/test/tint/builtins/gen/literal/arrayLength/1588cd.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/arrayLength/1588cd.wgsl.expected.wgsl index 2a2648d3e0..8b3b166c5c 100644 --- a/test/tint/builtins/gen/literal/arrayLength/1588cd.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/arrayLength/1588cd.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn arrayLength_1588cd() { var res : u32 = arrayLength(&(sb_ro.arg_0)); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { arrayLength_1588cd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { arrayLength_1588cd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { arrayLength_1588cd(); } diff --git a/test/tint/builtins/gen/literal/arrayLength/61b1c7.wgsl b/test/tint/builtins/gen/literal/arrayLength/61b1c7.wgsl index a7adcc1bea..6e5afea9e8 100644 --- a/test/tint/builtins/gen/literal/arrayLength/61b1c7.wgsl +++ b/test/tint/builtins/gen/literal/arrayLength/61b1c7.wgsl @@ -32,18 +32,18 @@ fn arrayLength_61b1c7() { var res: u32 = arrayLength(&sb_rw.arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { arrayLength_61b1c7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { arrayLength_61b1c7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { arrayLength_61b1c7(); } diff --git a/test/tint/builtins/gen/literal/arrayLength/61b1c7.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/arrayLength/61b1c7.wgsl.expected.wgsl index 73dbbb7f3a..b9b63ee4ad 100644 --- a/test/tint/builtins/gen/literal/arrayLength/61b1c7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/arrayLength/61b1c7.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn arrayLength_61b1c7() { var res : u32 = arrayLength(&(sb_rw.arg_0)); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { arrayLength_61b1c7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { arrayLength_61b1c7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { arrayLength_61b1c7(); } diff --git a/test/tint/builtins/gen/literal/arrayLength/a0f5ca.wgsl b/test/tint/builtins/gen/literal/arrayLength/a0f5ca.wgsl index 3f83858e27..547dc4ee2d 100644 --- a/test/tint/builtins/gen/literal/arrayLength/a0f5ca.wgsl +++ b/test/tint/builtins/gen/literal/arrayLength/a0f5ca.wgsl @@ -32,18 +32,18 @@ fn arrayLength_a0f5ca() { var res: u32 = arrayLength(&sb_ro.arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { arrayLength_a0f5ca(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { arrayLength_a0f5ca(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { arrayLength_a0f5ca(); } diff --git a/test/tint/builtins/gen/literal/arrayLength/a0f5ca.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/arrayLength/a0f5ca.wgsl.expected.wgsl index a1eb324f96..fa60a15aab 100644 --- a/test/tint/builtins/gen/literal/arrayLength/a0f5ca.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/arrayLength/a0f5ca.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn arrayLength_a0f5ca() { var res : u32 = arrayLength(&(sb_ro.arg_0)); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { arrayLength_a0f5ca(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { arrayLength_a0f5ca(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { arrayLength_a0f5ca(); } diff --git a/test/tint/builtins/gen/literal/arrayLength/cdd123.wgsl b/test/tint/builtins/gen/literal/arrayLength/cdd123.wgsl index 3b38e51c77..1a1fe9948b 100644 --- a/test/tint/builtins/gen/literal/arrayLength/cdd123.wgsl +++ b/test/tint/builtins/gen/literal/arrayLength/cdd123.wgsl @@ -32,18 +32,18 @@ fn arrayLength_cdd123() { var res: u32 = arrayLength(&sb_rw.arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { arrayLength_cdd123(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { arrayLength_cdd123(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { arrayLength_cdd123(); } diff --git a/test/tint/builtins/gen/literal/arrayLength/cdd123.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/arrayLength/cdd123.wgsl.expected.wgsl index 1f2d17cb09..d792619112 100644 --- a/test/tint/builtins/gen/literal/arrayLength/cdd123.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/arrayLength/cdd123.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn arrayLength_cdd123() { var res : u32 = arrayLength(&(sb_rw.arg_0)); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { arrayLength_cdd123(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { arrayLength_cdd123(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { arrayLength_cdd123(); } diff --git a/test/tint/builtins/gen/literal/arrayLength/cfca0a.wgsl b/test/tint/builtins/gen/literal/arrayLength/cfca0a.wgsl index 99d788d87b..0951ce44a3 100644 --- a/test/tint/builtins/gen/literal/arrayLength/cfca0a.wgsl +++ b/test/tint/builtins/gen/literal/arrayLength/cfca0a.wgsl @@ -32,18 +32,18 @@ fn arrayLength_cfca0a() { var res: u32 = arrayLength(&sb_ro.arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { arrayLength_cfca0a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { arrayLength_cfca0a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { arrayLength_cfca0a(); } diff --git a/test/tint/builtins/gen/literal/arrayLength/cfca0a.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/arrayLength/cfca0a.wgsl.expected.wgsl index 5778963880..d741ef0924 100644 --- a/test/tint/builtins/gen/literal/arrayLength/cfca0a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/arrayLength/cfca0a.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn arrayLength_cfca0a() { var res : u32 = arrayLength(&(sb_ro.arg_0)); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { arrayLength_cfca0a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { arrayLength_cfca0a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { arrayLength_cfca0a(); } diff --git a/test/tint/builtins/gen/literal/arrayLength/eb510f.wgsl b/test/tint/builtins/gen/literal/arrayLength/eb510f.wgsl index cc2627bbda..23085697d0 100644 --- a/test/tint/builtins/gen/literal/arrayLength/eb510f.wgsl +++ b/test/tint/builtins/gen/literal/arrayLength/eb510f.wgsl @@ -32,18 +32,18 @@ fn arrayLength_eb510f() { var res: u32 = arrayLength(&sb_rw.arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { arrayLength_eb510f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { arrayLength_eb510f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { arrayLength_eb510f(); } diff --git a/test/tint/builtins/gen/literal/arrayLength/eb510f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/arrayLength/eb510f.wgsl.expected.wgsl index 805917c027..a048944656 100644 --- a/test/tint/builtins/gen/literal/arrayLength/eb510f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/arrayLength/eb510f.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn arrayLength_eb510f() { var res : u32 = arrayLength(&(sb_rw.arg_0)); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { arrayLength_eb510f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { arrayLength_eb510f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { arrayLength_eb510f(); } diff --git a/test/tint/builtins/gen/literal/asin/064953.wgsl b/test/tint/builtins/gen/literal/asin/064953.wgsl index 0d11d1d3ee..f220fee0f8 100644 --- a/test/tint/builtins/gen/literal/asin/064953.wgsl +++ b/test/tint/builtins/gen/literal/asin/064953.wgsl @@ -28,18 +28,18 @@ fn asin_064953() { var res: vec4 = asin(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { asin_064953(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { asin_064953(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { asin_064953(); } diff --git a/test/tint/builtins/gen/literal/asin/064953.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/asin/064953.wgsl.expected.wgsl index ed58d99dd3..6dadefdbf1 100644 --- a/test/tint/builtins/gen/literal/asin/064953.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/asin/064953.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn asin_064953() { var res : vec4 = asin(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { asin_064953(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { asin_064953(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { asin_064953(); } diff --git a/test/tint/builtins/gen/literal/asin/7b6a44.wgsl b/test/tint/builtins/gen/literal/asin/7b6a44.wgsl index d51fc3fdcb..c57c3a12ab 100644 --- a/test/tint/builtins/gen/literal/asin/7b6a44.wgsl +++ b/test/tint/builtins/gen/literal/asin/7b6a44.wgsl @@ -28,18 +28,18 @@ fn asin_7b6a44() { var res: vec2 = asin(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { asin_7b6a44(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { asin_7b6a44(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { asin_7b6a44(); } diff --git a/test/tint/builtins/gen/literal/asin/7b6a44.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/asin/7b6a44.wgsl.expected.wgsl index d70e952909..f45d522bd8 100644 --- a/test/tint/builtins/gen/literal/asin/7b6a44.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/asin/7b6a44.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn asin_7b6a44() { var res : vec2 = asin(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { asin_7b6a44(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { asin_7b6a44(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { asin_7b6a44(); } diff --git a/test/tint/builtins/gen/literal/asin/8cd9c9.wgsl b/test/tint/builtins/gen/literal/asin/8cd9c9.wgsl index 0fec6234f1..b266449bbc 100644 --- a/test/tint/builtins/gen/literal/asin/8cd9c9.wgsl +++ b/test/tint/builtins/gen/literal/asin/8cd9c9.wgsl @@ -28,18 +28,18 @@ fn asin_8cd9c9() { var res: vec3 = asin(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { asin_8cd9c9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { asin_8cd9c9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { asin_8cd9c9(); } diff --git a/test/tint/builtins/gen/literal/asin/8cd9c9.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/asin/8cd9c9.wgsl.expected.wgsl index 2f4ea23b0f..6a6b96ade9 100644 --- a/test/tint/builtins/gen/literal/asin/8cd9c9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/asin/8cd9c9.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn asin_8cd9c9() { var res : vec3 = asin(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { asin_8cd9c9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { asin_8cd9c9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { asin_8cd9c9(); } diff --git a/test/tint/builtins/gen/literal/asin/c0c272.wgsl b/test/tint/builtins/gen/literal/asin/c0c272.wgsl index 155742887d..5c7a0b516e 100644 --- a/test/tint/builtins/gen/literal/asin/c0c272.wgsl +++ b/test/tint/builtins/gen/literal/asin/c0c272.wgsl @@ -28,18 +28,18 @@ fn asin_c0c272() { var res: f32 = asin(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { asin_c0c272(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { asin_c0c272(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { asin_c0c272(); } diff --git a/test/tint/builtins/gen/literal/asin/c0c272.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/asin/c0c272.wgsl.expected.wgsl index d3a8d05e1d..731845e0f0 100644 --- a/test/tint/builtins/gen/literal/asin/c0c272.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/asin/c0c272.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn asin_c0c272() { var res : f32 = asin(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { asin_c0c272(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { asin_c0c272(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { asin_c0c272(); } diff --git a/test/tint/builtins/gen/literal/atan/02979a.wgsl b/test/tint/builtins/gen/literal/atan/02979a.wgsl index 11619cc543..84a31897de 100644 --- a/test/tint/builtins/gen/literal/atan/02979a.wgsl +++ b/test/tint/builtins/gen/literal/atan/02979a.wgsl @@ -28,18 +28,18 @@ fn atan_02979a() { var res: f32 = atan(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan_02979a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan_02979a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan_02979a(); } diff --git a/test/tint/builtins/gen/literal/atan/02979a.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atan/02979a.wgsl.expected.wgsl index 75af7436e8..5e33806edc 100644 --- a/test/tint/builtins/gen/literal/atan/02979a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atan/02979a.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn atan_02979a() { var res : f32 = atan(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan_02979a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan_02979a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan_02979a(); } diff --git a/test/tint/builtins/gen/literal/atan/331e6d.wgsl b/test/tint/builtins/gen/literal/atan/331e6d.wgsl index d3bac2d325..7e8bf08c27 100644 --- a/test/tint/builtins/gen/literal/atan/331e6d.wgsl +++ b/test/tint/builtins/gen/literal/atan/331e6d.wgsl @@ -28,18 +28,18 @@ fn atan_331e6d() { var res: vec3 = atan(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan_331e6d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan_331e6d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan_331e6d(); } diff --git a/test/tint/builtins/gen/literal/atan/331e6d.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atan/331e6d.wgsl.expected.wgsl index 7bc7982749..def3810738 100644 --- a/test/tint/builtins/gen/literal/atan/331e6d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atan/331e6d.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn atan_331e6d() { var res : vec3 = atan(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan_331e6d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan_331e6d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan_331e6d(); } diff --git a/test/tint/builtins/gen/literal/atan/a8b696.wgsl b/test/tint/builtins/gen/literal/atan/a8b696.wgsl index e517917baf..4ea6dec83e 100644 --- a/test/tint/builtins/gen/literal/atan/a8b696.wgsl +++ b/test/tint/builtins/gen/literal/atan/a8b696.wgsl @@ -28,18 +28,18 @@ fn atan_a8b696() { var res: vec4 = atan(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan_a8b696(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan_a8b696(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan_a8b696(); } diff --git a/test/tint/builtins/gen/literal/atan/a8b696.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atan/a8b696.wgsl.expected.wgsl index 70b4684e77..007981ddc3 100644 --- a/test/tint/builtins/gen/literal/atan/a8b696.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atan/a8b696.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn atan_a8b696() { var res : vec4 = atan(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan_a8b696(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan_a8b696(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan_a8b696(); } diff --git a/test/tint/builtins/gen/literal/atan/ad96e4.wgsl b/test/tint/builtins/gen/literal/atan/ad96e4.wgsl index 75a7564c8c..2cb00b6e9d 100644 --- a/test/tint/builtins/gen/literal/atan/ad96e4.wgsl +++ b/test/tint/builtins/gen/literal/atan/ad96e4.wgsl @@ -28,18 +28,18 @@ fn atan_ad96e4() { var res: vec2 = atan(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan_ad96e4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan_ad96e4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan_ad96e4(); } diff --git a/test/tint/builtins/gen/literal/atan/ad96e4.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atan/ad96e4.wgsl.expected.wgsl index dcf775a362..d2622df3d2 100644 --- a/test/tint/builtins/gen/literal/atan/ad96e4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atan/ad96e4.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn atan_ad96e4() { var res : vec2 = atan(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan_ad96e4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan_ad96e4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan_ad96e4(); } diff --git a/test/tint/builtins/gen/literal/atan2/57fb13.wgsl b/test/tint/builtins/gen/literal/atan2/57fb13.wgsl index e1d196774f..204c83a67e 100644 --- a/test/tint/builtins/gen/literal/atan2/57fb13.wgsl +++ b/test/tint/builtins/gen/literal/atan2/57fb13.wgsl @@ -28,18 +28,18 @@ fn atan2_57fb13() { var res: vec2 = atan2(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan2_57fb13(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan2_57fb13(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan2_57fb13(); } diff --git a/test/tint/builtins/gen/literal/atan2/57fb13.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atan2/57fb13.wgsl.expected.wgsl index ec7ff3aef7..57193fb8c6 100644 --- a/test/tint/builtins/gen/literal/atan2/57fb13.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atan2/57fb13.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn atan2_57fb13() { var res : vec2 = atan2(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan2_57fb13(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan2_57fb13(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan2_57fb13(); } diff --git a/test/tint/builtins/gen/literal/atan2/96057c.wgsl b/test/tint/builtins/gen/literal/atan2/96057c.wgsl index d4c2769a22..5327ebbc3d 100644 --- a/test/tint/builtins/gen/literal/atan2/96057c.wgsl +++ b/test/tint/builtins/gen/literal/atan2/96057c.wgsl @@ -28,18 +28,18 @@ fn atan2_96057c() { var res: f32 = atan2(1.0, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan2_96057c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan2_96057c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan2_96057c(); } diff --git a/test/tint/builtins/gen/literal/atan2/96057c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atan2/96057c.wgsl.expected.wgsl index 78abdd4438..9a2817d222 100644 --- a/test/tint/builtins/gen/literal/atan2/96057c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atan2/96057c.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn atan2_96057c() { var res : f32 = atan2(1.0, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan2_96057c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan2_96057c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan2_96057c(); } diff --git a/test/tint/builtins/gen/literal/atan2/a70d0d.wgsl b/test/tint/builtins/gen/literal/atan2/a70d0d.wgsl index 7341157b99..5822a6b20a 100644 --- a/test/tint/builtins/gen/literal/atan2/a70d0d.wgsl +++ b/test/tint/builtins/gen/literal/atan2/a70d0d.wgsl @@ -28,18 +28,18 @@ fn atan2_a70d0d() { var res: vec3 = atan2(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan2_a70d0d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan2_a70d0d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan2_a70d0d(); } diff --git a/test/tint/builtins/gen/literal/atan2/a70d0d.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atan2/a70d0d.wgsl.expected.wgsl index 9b32967d19..99d3201eec 100644 --- a/test/tint/builtins/gen/literal/atan2/a70d0d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atan2/a70d0d.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn atan2_a70d0d() { var res : vec3 = atan2(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan2_a70d0d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan2_a70d0d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan2_a70d0d(); } diff --git a/test/tint/builtins/gen/literal/atan2/ae713e.wgsl b/test/tint/builtins/gen/literal/atan2/ae713e.wgsl index 3b021564f5..08c2bdf94e 100644 --- a/test/tint/builtins/gen/literal/atan2/ae713e.wgsl +++ b/test/tint/builtins/gen/literal/atan2/ae713e.wgsl @@ -28,18 +28,18 @@ fn atan2_ae713e() { var res: vec4 = atan2(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan2_ae713e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan2_ae713e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan2_ae713e(); } diff --git a/test/tint/builtins/gen/literal/atan2/ae713e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atan2/ae713e.wgsl.expected.wgsl index d765ab46d3..dc1a474db7 100644 --- a/test/tint/builtins/gen/literal/atan2/ae713e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atan2/ae713e.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn atan2_ae713e() { var res : vec4 = atan2(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan2_ae713e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan2_ae713e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan2_ae713e(); } diff --git a/test/tint/builtins/gen/literal/atomicAdd/794055.wgsl b/test/tint/builtins/gen/literal/atomicAdd/794055.wgsl index 56d93383c0..2f3cab35c2 100644 --- a/test/tint/builtins/gen/literal/atomicAdd/794055.wgsl +++ b/test/tint/builtins/gen/literal/atomicAdd/794055.wgsl @@ -29,7 +29,7 @@ fn atomicAdd_794055() { var res: i32 = atomicAdd(&arg_0, 1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAdd_794055(); } diff --git a/test/tint/builtins/gen/literal/atomicAdd/794055.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicAdd/794055.wgsl.expected.wgsl index 57290be0b0..ce52b8fc2d 100644 --- a/test/tint/builtins/gen/literal/atomicAdd/794055.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicAdd/794055.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn atomicAdd_794055() { var res : i32 = atomicAdd(&(arg_0), 1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAdd_794055(); } diff --git a/test/tint/builtins/gen/literal/atomicAdd/8a199a.wgsl b/test/tint/builtins/gen/literal/atomicAdd/8a199a.wgsl index 91e2298eeb..3975fb61b3 100644 --- a/test/tint/builtins/gen/literal/atomicAdd/8a199a.wgsl +++ b/test/tint/builtins/gen/literal/atomicAdd/8a199a.wgsl @@ -32,12 +32,12 @@ fn atomicAdd_8a199a() { var res: u32 = atomicAdd(&sb_rw.arg_0, 1u); } -@stage(fragment) +@fragment fn fragment_main() { atomicAdd_8a199a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAdd_8a199a(); } diff --git a/test/tint/builtins/gen/literal/atomicAdd/8a199a.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicAdd/8a199a.wgsl.expected.wgsl index c97cce1e6b..973ffe2d46 100644 --- a/test/tint/builtins/gen/literal/atomicAdd/8a199a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicAdd/8a199a.wgsl.expected.wgsl @@ -8,12 +8,12 @@ fn atomicAdd_8a199a() { var res : u32 = atomicAdd(&(sb_rw.arg_0), 1u); } -@stage(fragment) +@fragment fn fragment_main() { atomicAdd_8a199a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAdd_8a199a(); } diff --git a/test/tint/builtins/gen/literal/atomicAdd/d32fe4.wgsl b/test/tint/builtins/gen/literal/atomicAdd/d32fe4.wgsl index 8bbef8b068..eb5a968504 100644 --- a/test/tint/builtins/gen/literal/atomicAdd/d32fe4.wgsl +++ b/test/tint/builtins/gen/literal/atomicAdd/d32fe4.wgsl @@ -32,12 +32,12 @@ fn atomicAdd_d32fe4() { var res: i32 = atomicAdd(&sb_rw.arg_0, 1); } -@stage(fragment) +@fragment fn fragment_main() { atomicAdd_d32fe4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAdd_d32fe4(); } diff --git a/test/tint/builtins/gen/literal/atomicAdd/d32fe4.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicAdd/d32fe4.wgsl.expected.wgsl index 9eeac04890..4303284003 100644 --- a/test/tint/builtins/gen/literal/atomicAdd/d32fe4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicAdd/d32fe4.wgsl.expected.wgsl @@ -8,12 +8,12 @@ fn atomicAdd_d32fe4() { var res : i32 = atomicAdd(&(sb_rw.arg_0), 1); } -@stage(fragment) +@fragment fn fragment_main() { atomicAdd_d32fe4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAdd_d32fe4(); } diff --git a/test/tint/builtins/gen/literal/atomicAdd/d5db1d.wgsl b/test/tint/builtins/gen/literal/atomicAdd/d5db1d.wgsl index b5e30f2ffa..5742c492f3 100644 --- a/test/tint/builtins/gen/literal/atomicAdd/d5db1d.wgsl +++ b/test/tint/builtins/gen/literal/atomicAdd/d5db1d.wgsl @@ -29,7 +29,7 @@ fn atomicAdd_d5db1d() { var res: u32 = atomicAdd(&arg_0, 1u); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAdd_d5db1d(); } diff --git a/test/tint/builtins/gen/literal/atomicAdd/d5db1d.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicAdd/d5db1d.wgsl.expected.wgsl index e7381bbb38..22b1fbbc55 100644 --- a/test/tint/builtins/gen/literal/atomicAdd/d5db1d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicAdd/d5db1d.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn atomicAdd_d5db1d() { var res : u32 = atomicAdd(&(arg_0), 1u); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAdd_d5db1d(); } diff --git a/test/tint/builtins/gen/literal/atomicAnd/152966.wgsl b/test/tint/builtins/gen/literal/atomicAnd/152966.wgsl index 4409003216..803964f1aa 100644 --- a/test/tint/builtins/gen/literal/atomicAnd/152966.wgsl +++ b/test/tint/builtins/gen/literal/atomicAnd/152966.wgsl @@ -32,12 +32,12 @@ fn atomicAnd_152966() { var res: i32 = atomicAnd(&sb_rw.arg_0, 1); } -@stage(fragment) +@fragment fn fragment_main() { atomicAnd_152966(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAnd_152966(); } diff --git a/test/tint/builtins/gen/literal/atomicAnd/152966.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicAnd/152966.wgsl.expected.wgsl index ec13db7e31..38d19dde53 100644 --- a/test/tint/builtins/gen/literal/atomicAnd/152966.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicAnd/152966.wgsl.expected.wgsl @@ -8,12 +8,12 @@ fn atomicAnd_152966() { var res : i32 = atomicAnd(&(sb_rw.arg_0), 1); } -@stage(fragment) +@fragment fn fragment_main() { atomicAnd_152966(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAnd_152966(); } diff --git a/test/tint/builtins/gen/literal/atomicAnd/34edd3.wgsl b/test/tint/builtins/gen/literal/atomicAnd/34edd3.wgsl index 4029423cdd..0e9a314249 100644 --- a/test/tint/builtins/gen/literal/atomicAnd/34edd3.wgsl +++ b/test/tint/builtins/gen/literal/atomicAnd/34edd3.wgsl @@ -29,7 +29,7 @@ fn atomicAnd_34edd3() { var res: u32 = atomicAnd(&arg_0, 1u); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAnd_34edd3(); } diff --git a/test/tint/builtins/gen/literal/atomicAnd/34edd3.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicAnd/34edd3.wgsl.expected.wgsl index 89cec48ae6..7cae2d8d5e 100644 --- a/test/tint/builtins/gen/literal/atomicAnd/34edd3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicAnd/34edd3.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn atomicAnd_34edd3() { var res : u32 = atomicAnd(&(arg_0), 1u); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAnd_34edd3(); } diff --git a/test/tint/builtins/gen/literal/atomicAnd/45a819.wgsl b/test/tint/builtins/gen/literal/atomicAnd/45a819.wgsl index b47df1c931..0924c7a89e 100644 --- a/test/tint/builtins/gen/literal/atomicAnd/45a819.wgsl +++ b/test/tint/builtins/gen/literal/atomicAnd/45a819.wgsl @@ -29,7 +29,7 @@ fn atomicAnd_45a819() { var res: i32 = atomicAnd(&arg_0, 1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAnd_45a819(); } diff --git a/test/tint/builtins/gen/literal/atomicAnd/45a819.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicAnd/45a819.wgsl.expected.wgsl index c022cee167..a93b45a050 100644 --- a/test/tint/builtins/gen/literal/atomicAnd/45a819.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicAnd/45a819.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn atomicAnd_45a819() { var res : i32 = atomicAnd(&(arg_0), 1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAnd_45a819(); } diff --git a/test/tint/builtins/gen/literal/atomicAnd/85a8d9.wgsl b/test/tint/builtins/gen/literal/atomicAnd/85a8d9.wgsl index 2948f9aa78..5c402def8d 100644 --- a/test/tint/builtins/gen/literal/atomicAnd/85a8d9.wgsl +++ b/test/tint/builtins/gen/literal/atomicAnd/85a8d9.wgsl @@ -32,12 +32,12 @@ fn atomicAnd_85a8d9() { var res: u32 = atomicAnd(&sb_rw.arg_0, 1u); } -@stage(fragment) +@fragment fn fragment_main() { atomicAnd_85a8d9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAnd_85a8d9(); } diff --git a/test/tint/builtins/gen/literal/atomicAnd/85a8d9.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicAnd/85a8d9.wgsl.expected.wgsl index 3a32a764ef..f570c70047 100644 --- a/test/tint/builtins/gen/literal/atomicAnd/85a8d9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicAnd/85a8d9.wgsl.expected.wgsl @@ -8,12 +8,12 @@ fn atomicAnd_85a8d9() { var res : u32 = atomicAnd(&(sb_rw.arg_0), 1u); } -@stage(fragment) +@fragment fn fragment_main() { atomicAnd_85a8d9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAnd_85a8d9(); } diff --git a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/1bd40a.wgsl b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/1bd40a.wgsl index 7732bd9983..ac831e62e7 100644 --- a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/1bd40a.wgsl +++ b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/1bd40a.wgsl @@ -32,12 +32,12 @@ fn atomicCompareExchangeWeak_1bd40a() { var res = atomicCompareExchangeWeak(&sb_rw.arg_0, 1, 1); } -@stage(fragment) +@fragment fn fragment_main() { atomicCompareExchangeWeak_1bd40a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicCompareExchangeWeak_1bd40a(); } diff --git a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/1bd40a.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/1bd40a.wgsl.expected.wgsl index 7e22177963..d52ac19ec4 100644 --- a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/1bd40a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/1bd40a.wgsl.expected.wgsl @@ -8,12 +8,12 @@ fn atomicCompareExchangeWeak_1bd40a() { var res = atomicCompareExchangeWeak(&(sb_rw.arg_0), 1, 1); } -@stage(fragment) +@fragment fn fragment_main() { atomicCompareExchangeWeak_1bd40a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicCompareExchangeWeak_1bd40a(); } diff --git a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/63d8e6.wgsl b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/63d8e6.wgsl index 61972dcd71..360c33c91c 100644 --- a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/63d8e6.wgsl +++ b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/63d8e6.wgsl @@ -32,12 +32,12 @@ fn atomicCompareExchangeWeak_63d8e6() { var res = atomicCompareExchangeWeak(&sb_rw.arg_0, 1u, 1u); } -@stage(fragment) +@fragment fn fragment_main() { atomicCompareExchangeWeak_63d8e6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicCompareExchangeWeak_63d8e6(); } diff --git a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/63d8e6.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/63d8e6.wgsl.expected.wgsl index 3ecac33dbf..af3d89f92c 100644 --- a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/63d8e6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/63d8e6.wgsl.expected.wgsl @@ -8,12 +8,12 @@ fn atomicCompareExchangeWeak_63d8e6() { var res = atomicCompareExchangeWeak(&(sb_rw.arg_0), 1u, 1u); } -@stage(fragment) +@fragment fn fragment_main() { atomicCompareExchangeWeak_63d8e6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicCompareExchangeWeak_63d8e6(); } diff --git a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/83580d.wgsl b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/83580d.wgsl index 9545b423e8..2677d48e03 100644 --- a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/83580d.wgsl +++ b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/83580d.wgsl @@ -29,7 +29,7 @@ fn atomicCompareExchangeWeak_83580d() { var res = atomicCompareExchangeWeak(&arg_0, 1u, 1u); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicCompareExchangeWeak_83580d(); } diff --git a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/83580d.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/83580d.wgsl.expected.wgsl index 77a8862a5c..aec8cabe46 100644 --- a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/83580d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/83580d.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn atomicCompareExchangeWeak_83580d() { var res = atomicCompareExchangeWeak(&(arg_0), 1u, 1u); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicCompareExchangeWeak_83580d(); } diff --git a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/e88938.wgsl b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/e88938.wgsl index 03076c54cd..4d9299f048 100644 --- a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/e88938.wgsl +++ b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/e88938.wgsl @@ -29,7 +29,7 @@ fn atomicCompareExchangeWeak_e88938() { var res = atomicCompareExchangeWeak(&arg_0, 1, 1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicCompareExchangeWeak_e88938(); } diff --git a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/e88938.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/e88938.wgsl.expected.wgsl index e882b01620..d79317dd77 100644 --- a/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/e88938.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicCompareExchangeWeak/e88938.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn atomicCompareExchangeWeak_e88938() { var res = atomicCompareExchangeWeak(&(arg_0), 1, 1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicCompareExchangeWeak_e88938(); } diff --git a/test/tint/builtins/gen/literal/atomicExchange/0a5dca.wgsl b/test/tint/builtins/gen/literal/atomicExchange/0a5dca.wgsl index eea1d0fdc6..5f3fbf7288 100644 --- a/test/tint/builtins/gen/literal/atomicExchange/0a5dca.wgsl +++ b/test/tint/builtins/gen/literal/atomicExchange/0a5dca.wgsl @@ -29,7 +29,7 @@ fn atomicExchange_0a5dca() { var res: u32 = atomicExchange(&arg_0, 1u); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicExchange_0a5dca(); } diff --git a/test/tint/builtins/gen/literal/atomicExchange/0a5dca.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicExchange/0a5dca.wgsl.expected.wgsl index a7acabddb6..cf1786b157 100644 --- a/test/tint/builtins/gen/literal/atomicExchange/0a5dca.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicExchange/0a5dca.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn atomicExchange_0a5dca() { var res : u32 = atomicExchange(&(arg_0), 1u); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicExchange_0a5dca(); } diff --git a/test/tint/builtins/gen/literal/atomicExchange/d59712.wgsl b/test/tint/builtins/gen/literal/atomicExchange/d59712.wgsl index e47ed14e50..a41a0be514 100644 --- a/test/tint/builtins/gen/literal/atomicExchange/d59712.wgsl +++ b/test/tint/builtins/gen/literal/atomicExchange/d59712.wgsl @@ -32,12 +32,12 @@ fn atomicExchange_d59712() { var res: u32 = atomicExchange(&sb_rw.arg_0, 1u); } -@stage(fragment) +@fragment fn fragment_main() { atomicExchange_d59712(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicExchange_d59712(); } diff --git a/test/tint/builtins/gen/literal/atomicExchange/d59712.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicExchange/d59712.wgsl.expected.wgsl index 2e72015368..1fda8048c4 100644 --- a/test/tint/builtins/gen/literal/atomicExchange/d59712.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicExchange/d59712.wgsl.expected.wgsl @@ -8,12 +8,12 @@ fn atomicExchange_d59712() { var res : u32 = atomicExchange(&(sb_rw.arg_0), 1u); } -@stage(fragment) +@fragment fn fragment_main() { atomicExchange_d59712(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicExchange_d59712(); } diff --git a/test/tint/builtins/gen/literal/atomicExchange/e114ba.wgsl b/test/tint/builtins/gen/literal/atomicExchange/e114ba.wgsl index 541c188e8a..4ec862bd7e 100644 --- a/test/tint/builtins/gen/literal/atomicExchange/e114ba.wgsl +++ b/test/tint/builtins/gen/literal/atomicExchange/e114ba.wgsl @@ -29,7 +29,7 @@ fn atomicExchange_e114ba() { var res: i32 = atomicExchange(&arg_0, 1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicExchange_e114ba(); } diff --git a/test/tint/builtins/gen/literal/atomicExchange/e114ba.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicExchange/e114ba.wgsl.expected.wgsl index 9735838939..785a006c64 100644 --- a/test/tint/builtins/gen/literal/atomicExchange/e114ba.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicExchange/e114ba.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn atomicExchange_e114ba() { var res : i32 = atomicExchange(&(arg_0), 1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicExchange_e114ba(); } diff --git a/test/tint/builtins/gen/literal/atomicExchange/f2e22f.wgsl b/test/tint/builtins/gen/literal/atomicExchange/f2e22f.wgsl index 5832659304..5d111393c6 100644 --- a/test/tint/builtins/gen/literal/atomicExchange/f2e22f.wgsl +++ b/test/tint/builtins/gen/literal/atomicExchange/f2e22f.wgsl @@ -32,12 +32,12 @@ fn atomicExchange_f2e22f() { var res: i32 = atomicExchange(&sb_rw.arg_0, 1); } -@stage(fragment) +@fragment fn fragment_main() { atomicExchange_f2e22f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicExchange_f2e22f(); } diff --git a/test/tint/builtins/gen/literal/atomicExchange/f2e22f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicExchange/f2e22f.wgsl.expected.wgsl index 5405f25dac..4b473d29d5 100644 --- a/test/tint/builtins/gen/literal/atomicExchange/f2e22f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicExchange/f2e22f.wgsl.expected.wgsl @@ -8,12 +8,12 @@ fn atomicExchange_f2e22f() { var res : i32 = atomicExchange(&(sb_rw.arg_0), 1); } -@stage(fragment) +@fragment fn fragment_main() { atomicExchange_f2e22f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicExchange_f2e22f(); } diff --git a/test/tint/builtins/gen/literal/atomicLoad/0806ad.wgsl b/test/tint/builtins/gen/literal/atomicLoad/0806ad.wgsl index e20d830b0e..e2cee71148 100644 --- a/test/tint/builtins/gen/literal/atomicLoad/0806ad.wgsl +++ b/test/tint/builtins/gen/literal/atomicLoad/0806ad.wgsl @@ -32,12 +32,12 @@ fn atomicLoad_0806ad() { var res: i32 = atomicLoad(&sb_rw.arg_0); } -@stage(fragment) +@fragment fn fragment_main() { atomicLoad_0806ad(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicLoad_0806ad(); } diff --git a/test/tint/builtins/gen/literal/atomicLoad/0806ad.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicLoad/0806ad.wgsl.expected.wgsl index e761dd984f..06c2703d56 100644 --- a/test/tint/builtins/gen/literal/atomicLoad/0806ad.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicLoad/0806ad.wgsl.expected.wgsl @@ -8,12 +8,12 @@ fn atomicLoad_0806ad() { var res : i32 = atomicLoad(&(sb_rw.arg_0)); } -@stage(fragment) +@fragment fn fragment_main() { atomicLoad_0806ad(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicLoad_0806ad(); } diff --git a/test/tint/builtins/gen/literal/atomicLoad/361bf1.wgsl b/test/tint/builtins/gen/literal/atomicLoad/361bf1.wgsl index e0cc43fdb4..3ebeea95be 100644 --- a/test/tint/builtins/gen/literal/atomicLoad/361bf1.wgsl +++ b/test/tint/builtins/gen/literal/atomicLoad/361bf1.wgsl @@ -29,7 +29,7 @@ fn atomicLoad_361bf1() { var res: u32 = atomicLoad(&arg_0); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicLoad_361bf1(); } diff --git a/test/tint/builtins/gen/literal/atomicLoad/361bf1.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicLoad/361bf1.wgsl.expected.wgsl index 1040bf29af..2fb4caaf45 100644 --- a/test/tint/builtins/gen/literal/atomicLoad/361bf1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicLoad/361bf1.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn atomicLoad_361bf1() { var res : u32 = atomicLoad(&(arg_0)); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicLoad_361bf1(); } diff --git a/test/tint/builtins/gen/literal/atomicLoad/afcc03.wgsl b/test/tint/builtins/gen/literal/atomicLoad/afcc03.wgsl index 025384fc78..bc946afc87 100644 --- a/test/tint/builtins/gen/literal/atomicLoad/afcc03.wgsl +++ b/test/tint/builtins/gen/literal/atomicLoad/afcc03.wgsl @@ -29,7 +29,7 @@ fn atomicLoad_afcc03() { var res: i32 = atomicLoad(&arg_0); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicLoad_afcc03(); } diff --git a/test/tint/builtins/gen/literal/atomicLoad/afcc03.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicLoad/afcc03.wgsl.expected.wgsl index e39317dde8..37509cad76 100644 --- a/test/tint/builtins/gen/literal/atomicLoad/afcc03.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicLoad/afcc03.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn atomicLoad_afcc03() { var res : i32 = atomicLoad(&(arg_0)); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicLoad_afcc03(); } diff --git a/test/tint/builtins/gen/literal/atomicLoad/fe6cc3.wgsl b/test/tint/builtins/gen/literal/atomicLoad/fe6cc3.wgsl index 63b1594678..6c297001d0 100644 --- a/test/tint/builtins/gen/literal/atomicLoad/fe6cc3.wgsl +++ b/test/tint/builtins/gen/literal/atomicLoad/fe6cc3.wgsl @@ -32,12 +32,12 @@ fn atomicLoad_fe6cc3() { var res: u32 = atomicLoad(&sb_rw.arg_0); } -@stage(fragment) +@fragment fn fragment_main() { atomicLoad_fe6cc3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicLoad_fe6cc3(); } diff --git a/test/tint/builtins/gen/literal/atomicLoad/fe6cc3.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicLoad/fe6cc3.wgsl.expected.wgsl index f811ee370e..8691467386 100644 --- a/test/tint/builtins/gen/literal/atomicLoad/fe6cc3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicLoad/fe6cc3.wgsl.expected.wgsl @@ -8,12 +8,12 @@ fn atomicLoad_fe6cc3() { var res : u32 = atomicLoad(&(sb_rw.arg_0)); } -@stage(fragment) +@fragment fn fragment_main() { atomicLoad_fe6cc3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicLoad_fe6cc3(); } diff --git a/test/tint/builtins/gen/literal/atomicMax/51b9be.wgsl b/test/tint/builtins/gen/literal/atomicMax/51b9be.wgsl index f83327c7d2..905b7a8efd 100644 --- a/test/tint/builtins/gen/literal/atomicMax/51b9be.wgsl +++ b/test/tint/builtins/gen/literal/atomicMax/51b9be.wgsl @@ -32,12 +32,12 @@ fn atomicMax_51b9be() { var res: u32 = atomicMax(&sb_rw.arg_0, 1u); } -@stage(fragment) +@fragment fn fragment_main() { atomicMax_51b9be(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMax_51b9be(); } diff --git a/test/tint/builtins/gen/literal/atomicMax/51b9be.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicMax/51b9be.wgsl.expected.wgsl index ec37f3998c..f59ae6d2c6 100644 --- a/test/tint/builtins/gen/literal/atomicMax/51b9be.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicMax/51b9be.wgsl.expected.wgsl @@ -8,12 +8,12 @@ fn atomicMax_51b9be() { var res : u32 = atomicMax(&(sb_rw.arg_0), 1u); } -@stage(fragment) +@fragment fn fragment_main() { atomicMax_51b9be(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMax_51b9be(); } diff --git a/test/tint/builtins/gen/literal/atomicMax/92aa72.wgsl b/test/tint/builtins/gen/literal/atomicMax/92aa72.wgsl index 29f0e77f2d..14f85050cb 100644 --- a/test/tint/builtins/gen/literal/atomicMax/92aa72.wgsl +++ b/test/tint/builtins/gen/literal/atomicMax/92aa72.wgsl @@ -32,12 +32,12 @@ fn atomicMax_92aa72() { var res: i32 = atomicMax(&sb_rw.arg_0, 1); } -@stage(fragment) +@fragment fn fragment_main() { atomicMax_92aa72(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMax_92aa72(); } diff --git a/test/tint/builtins/gen/literal/atomicMax/92aa72.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicMax/92aa72.wgsl.expected.wgsl index 24dcfcca5e..ead8895279 100644 --- a/test/tint/builtins/gen/literal/atomicMax/92aa72.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicMax/92aa72.wgsl.expected.wgsl @@ -8,12 +8,12 @@ fn atomicMax_92aa72() { var res : i32 = atomicMax(&(sb_rw.arg_0), 1); } -@stage(fragment) +@fragment fn fragment_main() { atomicMax_92aa72(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMax_92aa72(); } diff --git a/test/tint/builtins/gen/literal/atomicMax/a89cc3.wgsl b/test/tint/builtins/gen/literal/atomicMax/a89cc3.wgsl index c008f256be..c612589838 100644 --- a/test/tint/builtins/gen/literal/atomicMax/a89cc3.wgsl +++ b/test/tint/builtins/gen/literal/atomicMax/a89cc3.wgsl @@ -29,7 +29,7 @@ fn atomicMax_a89cc3() { var res: i32 = atomicMax(&arg_0, 1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMax_a89cc3(); } diff --git a/test/tint/builtins/gen/literal/atomicMax/a89cc3.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicMax/a89cc3.wgsl.expected.wgsl index d36703ef14..80c0ae1dc7 100644 --- a/test/tint/builtins/gen/literal/atomicMax/a89cc3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicMax/a89cc3.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn atomicMax_a89cc3() { var res : i32 = atomicMax(&(arg_0), 1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMax_a89cc3(); } diff --git a/test/tint/builtins/gen/literal/atomicMax/beccfc.wgsl b/test/tint/builtins/gen/literal/atomicMax/beccfc.wgsl index eee2d88442..b1a20cf282 100644 --- a/test/tint/builtins/gen/literal/atomicMax/beccfc.wgsl +++ b/test/tint/builtins/gen/literal/atomicMax/beccfc.wgsl @@ -29,7 +29,7 @@ fn atomicMax_beccfc() { var res: u32 = atomicMax(&arg_0, 1u); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMax_beccfc(); } diff --git a/test/tint/builtins/gen/literal/atomicMax/beccfc.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicMax/beccfc.wgsl.expected.wgsl index f14f91a088..7b1f90af57 100644 --- a/test/tint/builtins/gen/literal/atomicMax/beccfc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicMax/beccfc.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn atomicMax_beccfc() { var res : u32 = atomicMax(&(arg_0), 1u); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMax_beccfc(); } diff --git a/test/tint/builtins/gen/literal/atomicMin/278235.wgsl b/test/tint/builtins/gen/literal/atomicMin/278235.wgsl index e21994e08b..9edf8325ab 100644 --- a/test/tint/builtins/gen/literal/atomicMin/278235.wgsl +++ b/test/tint/builtins/gen/literal/atomicMin/278235.wgsl @@ -29,7 +29,7 @@ fn atomicMin_278235() { var res: i32 = atomicMin(&arg_0, 1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMin_278235(); } diff --git a/test/tint/builtins/gen/literal/atomicMin/278235.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicMin/278235.wgsl.expected.wgsl index 981a7b328d..9619e26b15 100644 --- a/test/tint/builtins/gen/literal/atomicMin/278235.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicMin/278235.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn atomicMin_278235() { var res : i32 = atomicMin(&(arg_0), 1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMin_278235(); } diff --git a/test/tint/builtins/gen/literal/atomicMin/69d383.wgsl b/test/tint/builtins/gen/literal/atomicMin/69d383.wgsl index 1eacad5d6d..f7f6f3309d 100644 --- a/test/tint/builtins/gen/literal/atomicMin/69d383.wgsl +++ b/test/tint/builtins/gen/literal/atomicMin/69d383.wgsl @@ -29,7 +29,7 @@ fn atomicMin_69d383() { var res: u32 = atomicMin(&arg_0, 1u); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMin_69d383(); } diff --git a/test/tint/builtins/gen/literal/atomicMin/69d383.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicMin/69d383.wgsl.expected.wgsl index 034d1afc73..1fba69fce8 100644 --- a/test/tint/builtins/gen/literal/atomicMin/69d383.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicMin/69d383.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn atomicMin_69d383() { var res : u32 = atomicMin(&(arg_0), 1u); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMin_69d383(); } diff --git a/test/tint/builtins/gen/literal/atomicMin/8e38dc.wgsl b/test/tint/builtins/gen/literal/atomicMin/8e38dc.wgsl index 66134fea4e..7a79d74ed9 100644 --- a/test/tint/builtins/gen/literal/atomicMin/8e38dc.wgsl +++ b/test/tint/builtins/gen/literal/atomicMin/8e38dc.wgsl @@ -32,12 +32,12 @@ fn atomicMin_8e38dc() { var res: i32 = atomicMin(&sb_rw.arg_0, 1); } -@stage(fragment) +@fragment fn fragment_main() { atomicMin_8e38dc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMin_8e38dc(); } diff --git a/test/tint/builtins/gen/literal/atomicMin/8e38dc.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicMin/8e38dc.wgsl.expected.wgsl index bd66a39c2c..7b649669ed 100644 --- a/test/tint/builtins/gen/literal/atomicMin/8e38dc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicMin/8e38dc.wgsl.expected.wgsl @@ -8,12 +8,12 @@ fn atomicMin_8e38dc() { var res : i32 = atomicMin(&(sb_rw.arg_0), 1); } -@stage(fragment) +@fragment fn fragment_main() { atomicMin_8e38dc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMin_8e38dc(); } diff --git a/test/tint/builtins/gen/literal/atomicMin/c67a74.wgsl b/test/tint/builtins/gen/literal/atomicMin/c67a74.wgsl index 150bb3f9a9..90476621d1 100644 --- a/test/tint/builtins/gen/literal/atomicMin/c67a74.wgsl +++ b/test/tint/builtins/gen/literal/atomicMin/c67a74.wgsl @@ -32,12 +32,12 @@ fn atomicMin_c67a74() { var res: u32 = atomicMin(&sb_rw.arg_0, 1u); } -@stage(fragment) +@fragment fn fragment_main() { atomicMin_c67a74(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMin_c67a74(); } diff --git a/test/tint/builtins/gen/literal/atomicMin/c67a74.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicMin/c67a74.wgsl.expected.wgsl index 96d7c2a19f..cd9b000264 100644 --- a/test/tint/builtins/gen/literal/atomicMin/c67a74.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicMin/c67a74.wgsl.expected.wgsl @@ -8,12 +8,12 @@ fn atomicMin_c67a74() { var res : u32 = atomicMin(&(sb_rw.arg_0), 1u); } -@stage(fragment) +@fragment fn fragment_main() { atomicMin_c67a74(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMin_c67a74(); } diff --git a/test/tint/builtins/gen/literal/atomicOr/5e3d61.wgsl b/test/tint/builtins/gen/literal/atomicOr/5e3d61.wgsl index 17f9ba1777..1b49098aa2 100644 --- a/test/tint/builtins/gen/literal/atomicOr/5e3d61.wgsl +++ b/test/tint/builtins/gen/literal/atomicOr/5e3d61.wgsl @@ -29,7 +29,7 @@ fn atomicOr_5e3d61() { var res: u32 = atomicOr(&arg_0, 1u); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicOr_5e3d61(); } diff --git a/test/tint/builtins/gen/literal/atomicOr/5e3d61.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicOr/5e3d61.wgsl.expected.wgsl index 00f3e66171..9de0d3fd98 100644 --- a/test/tint/builtins/gen/literal/atomicOr/5e3d61.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicOr/5e3d61.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn atomicOr_5e3d61() { var res : u32 = atomicOr(&(arg_0), 1u); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicOr_5e3d61(); } diff --git a/test/tint/builtins/gen/literal/atomicOr/5e95d4.wgsl b/test/tint/builtins/gen/literal/atomicOr/5e95d4.wgsl index 64fd15531f..36a3ff6e75 100644 --- a/test/tint/builtins/gen/literal/atomicOr/5e95d4.wgsl +++ b/test/tint/builtins/gen/literal/atomicOr/5e95d4.wgsl @@ -32,12 +32,12 @@ fn atomicOr_5e95d4() { var res: u32 = atomicOr(&sb_rw.arg_0, 1u); } -@stage(fragment) +@fragment fn fragment_main() { atomicOr_5e95d4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicOr_5e95d4(); } diff --git a/test/tint/builtins/gen/literal/atomicOr/5e95d4.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicOr/5e95d4.wgsl.expected.wgsl index 1d8867ecf4..839af64eec 100644 --- a/test/tint/builtins/gen/literal/atomicOr/5e95d4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicOr/5e95d4.wgsl.expected.wgsl @@ -8,12 +8,12 @@ fn atomicOr_5e95d4() { var res : u32 = atomicOr(&(sb_rw.arg_0), 1u); } -@stage(fragment) +@fragment fn fragment_main() { atomicOr_5e95d4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicOr_5e95d4(); } diff --git a/test/tint/builtins/gen/literal/atomicOr/8d96a0.wgsl b/test/tint/builtins/gen/literal/atomicOr/8d96a0.wgsl index 506fe202bc..354a4efaa2 100644 --- a/test/tint/builtins/gen/literal/atomicOr/8d96a0.wgsl +++ b/test/tint/builtins/gen/literal/atomicOr/8d96a0.wgsl @@ -32,12 +32,12 @@ fn atomicOr_8d96a0() { var res: i32 = atomicOr(&sb_rw.arg_0, 1); } -@stage(fragment) +@fragment fn fragment_main() { atomicOr_8d96a0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicOr_8d96a0(); } diff --git a/test/tint/builtins/gen/literal/atomicOr/8d96a0.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicOr/8d96a0.wgsl.expected.wgsl index c9b16048d2..9cae8d3563 100644 --- a/test/tint/builtins/gen/literal/atomicOr/8d96a0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicOr/8d96a0.wgsl.expected.wgsl @@ -8,12 +8,12 @@ fn atomicOr_8d96a0() { var res : i32 = atomicOr(&(sb_rw.arg_0), 1); } -@stage(fragment) +@fragment fn fragment_main() { atomicOr_8d96a0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicOr_8d96a0(); } diff --git a/test/tint/builtins/gen/literal/atomicOr/d09248.wgsl b/test/tint/builtins/gen/literal/atomicOr/d09248.wgsl index 29d80f8c05..35f12d8ab0 100644 --- a/test/tint/builtins/gen/literal/atomicOr/d09248.wgsl +++ b/test/tint/builtins/gen/literal/atomicOr/d09248.wgsl @@ -29,7 +29,7 @@ fn atomicOr_d09248() { var res: i32 = atomicOr(&arg_0, 1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicOr_d09248(); } diff --git a/test/tint/builtins/gen/literal/atomicOr/d09248.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicOr/d09248.wgsl.expected.wgsl index c28f1c7dbc..38bb4627ce 100644 --- a/test/tint/builtins/gen/literal/atomicOr/d09248.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicOr/d09248.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn atomicOr_d09248() { var res : i32 = atomicOr(&(arg_0), 1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicOr_d09248(); } diff --git a/test/tint/builtins/gen/literal/atomicStore/726882.wgsl b/test/tint/builtins/gen/literal/atomicStore/726882.wgsl index c9ebbffd13..06da7e5e4d 100644 --- a/test/tint/builtins/gen/literal/atomicStore/726882.wgsl +++ b/test/tint/builtins/gen/literal/atomicStore/726882.wgsl @@ -29,7 +29,7 @@ fn atomicStore_726882() { atomicStore(&arg_0, 1u); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicStore_726882(); } diff --git a/test/tint/builtins/gen/literal/atomicStore/726882.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicStore/726882.wgsl.expected.wgsl index d81b71e4e6..e50c9e2844 100644 --- a/test/tint/builtins/gen/literal/atomicStore/726882.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicStore/726882.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn atomicStore_726882() { atomicStore(&(arg_0), 1u); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicStore_726882(); } diff --git a/test/tint/builtins/gen/literal/atomicStore/8bea94.wgsl b/test/tint/builtins/gen/literal/atomicStore/8bea94.wgsl index 079c62eb99..86770abf96 100644 --- a/test/tint/builtins/gen/literal/atomicStore/8bea94.wgsl +++ b/test/tint/builtins/gen/literal/atomicStore/8bea94.wgsl @@ -29,7 +29,7 @@ fn atomicStore_8bea94() { atomicStore(&arg_0, 1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicStore_8bea94(); } diff --git a/test/tint/builtins/gen/literal/atomicStore/8bea94.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicStore/8bea94.wgsl.expected.wgsl index 2616d87dec..a2394c20ea 100644 --- a/test/tint/builtins/gen/literal/atomicStore/8bea94.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicStore/8bea94.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn atomicStore_8bea94() { atomicStore(&(arg_0), 1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicStore_8bea94(); } diff --git a/test/tint/builtins/gen/literal/atomicStore/cdc29e.wgsl b/test/tint/builtins/gen/literal/atomicStore/cdc29e.wgsl index 1b35f8078f..9ac610e988 100644 --- a/test/tint/builtins/gen/literal/atomicStore/cdc29e.wgsl +++ b/test/tint/builtins/gen/literal/atomicStore/cdc29e.wgsl @@ -32,12 +32,12 @@ fn atomicStore_cdc29e() { atomicStore(&sb_rw.arg_0, 1u); } -@stage(fragment) +@fragment fn fragment_main() { atomicStore_cdc29e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicStore_cdc29e(); } diff --git a/test/tint/builtins/gen/literal/atomicStore/cdc29e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicStore/cdc29e.wgsl.expected.wgsl index 6da44d4e1c..61aa944e65 100644 --- a/test/tint/builtins/gen/literal/atomicStore/cdc29e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicStore/cdc29e.wgsl.expected.wgsl @@ -8,12 +8,12 @@ fn atomicStore_cdc29e() { atomicStore(&(sb_rw.arg_0), 1u); } -@stage(fragment) +@fragment fn fragment_main() { atomicStore_cdc29e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicStore_cdc29e(); } diff --git a/test/tint/builtins/gen/literal/atomicStore/d1e9a6.wgsl b/test/tint/builtins/gen/literal/atomicStore/d1e9a6.wgsl index 00cb359c29..8fedd1b67b 100644 --- a/test/tint/builtins/gen/literal/atomicStore/d1e9a6.wgsl +++ b/test/tint/builtins/gen/literal/atomicStore/d1e9a6.wgsl @@ -32,12 +32,12 @@ fn atomicStore_d1e9a6() { atomicStore(&sb_rw.arg_0, 1); } -@stage(fragment) +@fragment fn fragment_main() { atomicStore_d1e9a6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicStore_d1e9a6(); } diff --git a/test/tint/builtins/gen/literal/atomicStore/d1e9a6.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicStore/d1e9a6.wgsl.expected.wgsl index 5d509ce5f3..e7c02a6cd8 100644 --- a/test/tint/builtins/gen/literal/atomicStore/d1e9a6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicStore/d1e9a6.wgsl.expected.wgsl @@ -8,12 +8,12 @@ fn atomicStore_d1e9a6() { atomicStore(&(sb_rw.arg_0), 1); } -@stage(fragment) +@fragment fn fragment_main() { atomicStore_d1e9a6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicStore_d1e9a6(); } diff --git a/test/tint/builtins/gen/literal/atomicSub/051100.wgsl b/test/tint/builtins/gen/literal/atomicSub/051100.wgsl index 38f24bc56c..1c95889f80 100644 --- a/test/tint/builtins/gen/literal/atomicSub/051100.wgsl +++ b/test/tint/builtins/gen/literal/atomicSub/051100.wgsl @@ -32,12 +32,12 @@ fn atomicSub_051100() { var res: i32 = atomicSub(&sb_rw.arg_0, 1); } -@stage(fragment) +@fragment fn fragment_main() { atomicSub_051100(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicSub_051100(); } diff --git a/test/tint/builtins/gen/literal/atomicSub/051100.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicSub/051100.wgsl.expected.wgsl index faf9784587..539fd24935 100644 --- a/test/tint/builtins/gen/literal/atomicSub/051100.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicSub/051100.wgsl.expected.wgsl @@ -8,12 +8,12 @@ fn atomicSub_051100() { var res : i32 = atomicSub(&(sb_rw.arg_0), 1); } -@stage(fragment) +@fragment fn fragment_main() { atomicSub_051100(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicSub_051100(); } diff --git a/test/tint/builtins/gen/literal/atomicSub/0d26c2.wgsl b/test/tint/builtins/gen/literal/atomicSub/0d26c2.wgsl index 4104bbf4d7..f6b1102ef3 100644 --- a/test/tint/builtins/gen/literal/atomicSub/0d26c2.wgsl +++ b/test/tint/builtins/gen/literal/atomicSub/0d26c2.wgsl @@ -29,7 +29,7 @@ fn atomicSub_0d26c2() { var res: u32 = atomicSub(&arg_0, 1u); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicSub_0d26c2(); } diff --git a/test/tint/builtins/gen/literal/atomicSub/0d26c2.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicSub/0d26c2.wgsl.expected.wgsl index 6b75ecbcf2..fcbe53cf4f 100644 --- a/test/tint/builtins/gen/literal/atomicSub/0d26c2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicSub/0d26c2.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn atomicSub_0d26c2() { var res : u32 = atomicSub(&(arg_0), 1u); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicSub_0d26c2(); } diff --git a/test/tint/builtins/gen/literal/atomicSub/15bfc9.wgsl b/test/tint/builtins/gen/literal/atomicSub/15bfc9.wgsl index fb46746aee..31e1da0595 100644 --- a/test/tint/builtins/gen/literal/atomicSub/15bfc9.wgsl +++ b/test/tint/builtins/gen/literal/atomicSub/15bfc9.wgsl @@ -32,12 +32,12 @@ fn atomicSub_15bfc9() { var res: u32 = atomicSub(&sb_rw.arg_0, 1u); } -@stage(fragment) +@fragment fn fragment_main() { atomicSub_15bfc9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicSub_15bfc9(); } diff --git a/test/tint/builtins/gen/literal/atomicSub/15bfc9.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicSub/15bfc9.wgsl.expected.wgsl index 74ec8cd385..8d1ad29659 100644 --- a/test/tint/builtins/gen/literal/atomicSub/15bfc9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicSub/15bfc9.wgsl.expected.wgsl @@ -8,12 +8,12 @@ fn atomicSub_15bfc9() { var res : u32 = atomicSub(&(sb_rw.arg_0), 1u); } -@stage(fragment) +@fragment fn fragment_main() { atomicSub_15bfc9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicSub_15bfc9(); } diff --git a/test/tint/builtins/gen/literal/atomicSub/77883a.wgsl b/test/tint/builtins/gen/literal/atomicSub/77883a.wgsl index 257aead823..57409e3a0c 100644 --- a/test/tint/builtins/gen/literal/atomicSub/77883a.wgsl +++ b/test/tint/builtins/gen/literal/atomicSub/77883a.wgsl @@ -29,7 +29,7 @@ fn atomicSub_77883a() { var res: i32 = atomicSub(&arg_0, 1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicSub_77883a(); } diff --git a/test/tint/builtins/gen/literal/atomicSub/77883a.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicSub/77883a.wgsl.expected.wgsl index 4a49222bc9..3443f94c5f 100644 --- a/test/tint/builtins/gen/literal/atomicSub/77883a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicSub/77883a.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn atomicSub_77883a() { var res : i32 = atomicSub(&(arg_0), 1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicSub_77883a(); } diff --git a/test/tint/builtins/gen/literal/atomicXor/54510e.wgsl b/test/tint/builtins/gen/literal/atomicXor/54510e.wgsl index 8de2df608f..5f36b0af02 100644 --- a/test/tint/builtins/gen/literal/atomicXor/54510e.wgsl +++ b/test/tint/builtins/gen/literal/atomicXor/54510e.wgsl @@ -32,12 +32,12 @@ fn atomicXor_54510e() { var res: u32 = atomicXor(&sb_rw.arg_0, 1u); } -@stage(fragment) +@fragment fn fragment_main() { atomicXor_54510e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicXor_54510e(); } diff --git a/test/tint/builtins/gen/literal/atomicXor/54510e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicXor/54510e.wgsl.expected.wgsl index 61a2419369..b77110249e 100644 --- a/test/tint/builtins/gen/literal/atomicXor/54510e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicXor/54510e.wgsl.expected.wgsl @@ -8,12 +8,12 @@ fn atomicXor_54510e() { var res : u32 = atomicXor(&(sb_rw.arg_0), 1u); } -@stage(fragment) +@fragment fn fragment_main() { atomicXor_54510e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicXor_54510e(); } diff --git a/test/tint/builtins/gen/literal/atomicXor/75dc95.wgsl b/test/tint/builtins/gen/literal/atomicXor/75dc95.wgsl index 8bc0705322..ab557616bc 100644 --- a/test/tint/builtins/gen/literal/atomicXor/75dc95.wgsl +++ b/test/tint/builtins/gen/literal/atomicXor/75dc95.wgsl @@ -29,7 +29,7 @@ fn atomicXor_75dc95() { var res: i32 = atomicXor(&arg_0, 1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicXor_75dc95(); } diff --git a/test/tint/builtins/gen/literal/atomicXor/75dc95.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicXor/75dc95.wgsl.expected.wgsl index cae6c216f1..30add298d5 100644 --- a/test/tint/builtins/gen/literal/atomicXor/75dc95.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicXor/75dc95.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn atomicXor_75dc95() { var res : i32 = atomicXor(&(arg_0), 1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicXor_75dc95(); } diff --git a/test/tint/builtins/gen/literal/atomicXor/c1b78c.wgsl b/test/tint/builtins/gen/literal/atomicXor/c1b78c.wgsl index 9fd915eb21..1e26cbe032 100644 --- a/test/tint/builtins/gen/literal/atomicXor/c1b78c.wgsl +++ b/test/tint/builtins/gen/literal/atomicXor/c1b78c.wgsl @@ -32,12 +32,12 @@ fn atomicXor_c1b78c() { var res: i32 = atomicXor(&sb_rw.arg_0, 1); } -@stage(fragment) +@fragment fn fragment_main() { atomicXor_c1b78c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicXor_c1b78c(); } diff --git a/test/tint/builtins/gen/literal/atomicXor/c1b78c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicXor/c1b78c.wgsl.expected.wgsl index 219e9d495c..c63962c52a 100644 --- a/test/tint/builtins/gen/literal/atomicXor/c1b78c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicXor/c1b78c.wgsl.expected.wgsl @@ -8,12 +8,12 @@ fn atomicXor_c1b78c() { var res : i32 = atomicXor(&(sb_rw.arg_0), 1); } -@stage(fragment) +@fragment fn fragment_main() { atomicXor_c1b78c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicXor_c1b78c(); } diff --git a/test/tint/builtins/gen/literal/atomicXor/c8e6be.wgsl b/test/tint/builtins/gen/literal/atomicXor/c8e6be.wgsl index 5a7f935574..805c3056bf 100644 --- a/test/tint/builtins/gen/literal/atomicXor/c8e6be.wgsl +++ b/test/tint/builtins/gen/literal/atomicXor/c8e6be.wgsl @@ -29,7 +29,7 @@ fn atomicXor_c8e6be() { var res: u32 = atomicXor(&arg_0, 1u); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicXor_c8e6be(); } diff --git a/test/tint/builtins/gen/literal/atomicXor/c8e6be.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/atomicXor/c8e6be.wgsl.expected.wgsl index d422ea04d7..f6bb2b9bb2 100644 --- a/test/tint/builtins/gen/literal/atomicXor/c8e6be.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/atomicXor/c8e6be.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn atomicXor_c8e6be() { var res : u32 = atomicXor(&(arg_0), 1u); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicXor_c8e6be(); } diff --git a/test/tint/builtins/gen/literal/ceil/34064b.wgsl b/test/tint/builtins/gen/literal/ceil/34064b.wgsl index 99b39a4724..24a4535947 100644 --- a/test/tint/builtins/gen/literal/ceil/34064b.wgsl +++ b/test/tint/builtins/gen/literal/ceil/34064b.wgsl @@ -28,18 +28,18 @@ fn ceil_34064b() { var res: vec3 = ceil(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ceil_34064b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ceil_34064b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ceil_34064b(); } diff --git a/test/tint/builtins/gen/literal/ceil/34064b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/ceil/34064b.wgsl.expected.wgsl index a72e184657..36539d6c84 100644 --- a/test/tint/builtins/gen/literal/ceil/34064b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/ceil/34064b.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn ceil_34064b() { var res : vec3 = ceil(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ceil_34064b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ceil_34064b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ceil_34064b(); } diff --git a/test/tint/builtins/gen/literal/ceil/678655.wgsl b/test/tint/builtins/gen/literal/ceil/678655.wgsl index 7af78008b9..71813ff14a 100644 --- a/test/tint/builtins/gen/literal/ceil/678655.wgsl +++ b/test/tint/builtins/gen/literal/ceil/678655.wgsl @@ -28,18 +28,18 @@ fn ceil_678655() { var res: f32 = ceil(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ceil_678655(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ceil_678655(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ceil_678655(); } diff --git a/test/tint/builtins/gen/literal/ceil/678655.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/ceil/678655.wgsl.expected.wgsl index bb57a0aae7..bf111b7567 100644 --- a/test/tint/builtins/gen/literal/ceil/678655.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/ceil/678655.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn ceil_678655() { var res : f32 = ceil(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ceil_678655(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ceil_678655(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ceil_678655(); } diff --git a/test/tint/builtins/gen/literal/ceil/96f597.wgsl b/test/tint/builtins/gen/literal/ceil/96f597.wgsl index 13dd9afcda..582a96c95d 100644 --- a/test/tint/builtins/gen/literal/ceil/96f597.wgsl +++ b/test/tint/builtins/gen/literal/ceil/96f597.wgsl @@ -28,18 +28,18 @@ fn ceil_96f597() { var res: vec2 = ceil(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ceil_96f597(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ceil_96f597(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ceil_96f597(); } diff --git a/test/tint/builtins/gen/literal/ceil/96f597.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/ceil/96f597.wgsl.expected.wgsl index bf6d138fe9..8a226271df 100644 --- a/test/tint/builtins/gen/literal/ceil/96f597.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/ceil/96f597.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn ceil_96f597() { var res : vec2 = ceil(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ceil_96f597(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ceil_96f597(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ceil_96f597(); } diff --git a/test/tint/builtins/gen/literal/ceil/b74c16.wgsl b/test/tint/builtins/gen/literal/ceil/b74c16.wgsl index 6f2a52f4ba..fa466e9e88 100644 --- a/test/tint/builtins/gen/literal/ceil/b74c16.wgsl +++ b/test/tint/builtins/gen/literal/ceil/b74c16.wgsl @@ -28,18 +28,18 @@ fn ceil_b74c16() { var res: vec4 = ceil(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ceil_b74c16(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ceil_b74c16(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ceil_b74c16(); } diff --git a/test/tint/builtins/gen/literal/ceil/b74c16.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/ceil/b74c16.wgsl.expected.wgsl index c019db42bb..138281ce6f 100644 --- a/test/tint/builtins/gen/literal/ceil/b74c16.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/ceil/b74c16.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn ceil_b74c16() { var res : vec4 = ceil(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ceil_b74c16(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ceil_b74c16(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ceil_b74c16(); } diff --git a/test/tint/builtins/gen/literal/clamp/0acf8f.wgsl b/test/tint/builtins/gen/literal/clamp/0acf8f.wgsl index 75e94eef93..08142ac809 100644 --- a/test/tint/builtins/gen/literal/clamp/0acf8f.wgsl +++ b/test/tint/builtins/gen/literal/clamp/0acf8f.wgsl @@ -28,18 +28,18 @@ fn clamp_0acf8f() { var res: vec2 = clamp(vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_0acf8f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_0acf8f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_0acf8f(); } diff --git a/test/tint/builtins/gen/literal/clamp/0acf8f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/clamp/0acf8f.wgsl.expected.wgsl index a6f58e586e..bf10a7b1f8 100644 --- a/test/tint/builtins/gen/literal/clamp/0acf8f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/clamp/0acf8f.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn clamp_0acf8f() { var res : vec2 = clamp(vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_0acf8f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_0acf8f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_0acf8f(); } diff --git a/test/tint/builtins/gen/literal/clamp/1a32e3.wgsl b/test/tint/builtins/gen/literal/clamp/1a32e3.wgsl index 908c846585..38b9f23c68 100644 --- a/test/tint/builtins/gen/literal/clamp/1a32e3.wgsl +++ b/test/tint/builtins/gen/literal/clamp/1a32e3.wgsl @@ -28,18 +28,18 @@ fn clamp_1a32e3() { var res: vec4 = clamp(vec4(), vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_1a32e3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_1a32e3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_1a32e3(); } diff --git a/test/tint/builtins/gen/literal/clamp/1a32e3.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/clamp/1a32e3.wgsl.expected.wgsl index 4ca8d1e3ec..c27d9565b5 100644 --- a/test/tint/builtins/gen/literal/clamp/1a32e3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/clamp/1a32e3.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn clamp_1a32e3() { var res : vec4 = clamp(vec4(), vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_1a32e3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_1a32e3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_1a32e3(); } diff --git a/test/tint/builtins/gen/literal/clamp/2bd567.wgsl b/test/tint/builtins/gen/literal/clamp/2bd567.wgsl index 464ea3323f..2b4686ee71 100644 --- a/test/tint/builtins/gen/literal/clamp/2bd567.wgsl +++ b/test/tint/builtins/gen/literal/clamp/2bd567.wgsl @@ -28,18 +28,18 @@ fn clamp_2bd567() { var res: f32 = clamp(1.0, 1.0, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_2bd567(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_2bd567(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_2bd567(); } diff --git a/test/tint/builtins/gen/literal/clamp/2bd567.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/clamp/2bd567.wgsl.expected.wgsl index fdd1c3c469..9076b3aea1 100644 --- a/test/tint/builtins/gen/literal/clamp/2bd567.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/clamp/2bd567.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn clamp_2bd567() { var res : f32 = clamp(1.0, 1.0, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_2bd567(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_2bd567(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_2bd567(); } diff --git a/test/tint/builtins/gen/literal/clamp/2bde41.wgsl b/test/tint/builtins/gen/literal/clamp/2bde41.wgsl index 0b91f22911..948afcaaee 100644 --- a/test/tint/builtins/gen/literal/clamp/2bde41.wgsl +++ b/test/tint/builtins/gen/literal/clamp/2bde41.wgsl @@ -28,18 +28,18 @@ fn clamp_2bde41() { var res: vec4 = clamp(vec4(), vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_2bde41(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_2bde41(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_2bde41(); } diff --git a/test/tint/builtins/gen/literal/clamp/2bde41.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/clamp/2bde41.wgsl.expected.wgsl index 21f3a2d216..e4bf23f818 100644 --- a/test/tint/builtins/gen/literal/clamp/2bde41.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/clamp/2bde41.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn clamp_2bde41() { var res : vec4 = clamp(vec4(), vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_2bde41(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_2bde41(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_2bde41(); } diff --git a/test/tint/builtins/gen/literal/clamp/548fc7.wgsl b/test/tint/builtins/gen/literal/clamp/548fc7.wgsl index a12a22e8cb..07ef786cd5 100644 --- a/test/tint/builtins/gen/literal/clamp/548fc7.wgsl +++ b/test/tint/builtins/gen/literal/clamp/548fc7.wgsl @@ -28,18 +28,18 @@ fn clamp_548fc7() { var res: vec3 = clamp(vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_548fc7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_548fc7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_548fc7(); } diff --git a/test/tint/builtins/gen/literal/clamp/548fc7.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/clamp/548fc7.wgsl.expected.wgsl index 05f4d9e365..14f57ec5f5 100644 --- a/test/tint/builtins/gen/literal/clamp/548fc7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/clamp/548fc7.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn clamp_548fc7() { var res : vec3 = clamp(vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_548fc7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_548fc7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_548fc7(); } diff --git a/test/tint/builtins/gen/literal/clamp/5f0819.wgsl b/test/tint/builtins/gen/literal/clamp/5f0819.wgsl index 04d79c7707..638f8cc3f0 100644 --- a/test/tint/builtins/gen/literal/clamp/5f0819.wgsl +++ b/test/tint/builtins/gen/literal/clamp/5f0819.wgsl @@ -28,18 +28,18 @@ fn clamp_5f0819() { var res: vec3 = clamp(vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_5f0819(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_5f0819(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_5f0819(); } diff --git a/test/tint/builtins/gen/literal/clamp/5f0819.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/clamp/5f0819.wgsl.expected.wgsl index 6265d723d1..6266b183ea 100644 --- a/test/tint/builtins/gen/literal/clamp/5f0819.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/clamp/5f0819.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn clamp_5f0819() { var res : vec3 = clamp(vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_5f0819(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_5f0819(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_5f0819(); } diff --git a/test/tint/builtins/gen/literal/clamp/6c1749.wgsl b/test/tint/builtins/gen/literal/clamp/6c1749.wgsl index 430bd15b8b..b090e35b57 100644 --- a/test/tint/builtins/gen/literal/clamp/6c1749.wgsl +++ b/test/tint/builtins/gen/literal/clamp/6c1749.wgsl @@ -28,18 +28,18 @@ fn clamp_6c1749() { var res: vec2 = clamp(vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_6c1749(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_6c1749(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_6c1749(); } diff --git a/test/tint/builtins/gen/literal/clamp/6c1749.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/clamp/6c1749.wgsl.expected.wgsl index 58ea37011c..e1153a2dcd 100644 --- a/test/tint/builtins/gen/literal/clamp/6c1749.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/clamp/6c1749.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn clamp_6c1749() { var res : vec2 = clamp(vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_6c1749(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_6c1749(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_6c1749(); } diff --git a/test/tint/builtins/gen/literal/clamp/7706d7.wgsl b/test/tint/builtins/gen/literal/clamp/7706d7.wgsl index 381e25d449..ca4aa60ca6 100644 --- a/test/tint/builtins/gen/literal/clamp/7706d7.wgsl +++ b/test/tint/builtins/gen/literal/clamp/7706d7.wgsl @@ -28,18 +28,18 @@ fn clamp_7706d7() { var res: vec2 = clamp(vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_7706d7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_7706d7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_7706d7(); } diff --git a/test/tint/builtins/gen/literal/clamp/7706d7.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/clamp/7706d7.wgsl.expected.wgsl index b21343c67a..33837ee43c 100644 --- a/test/tint/builtins/gen/literal/clamp/7706d7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/clamp/7706d7.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn clamp_7706d7() { var res : vec2 = clamp(vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_7706d7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_7706d7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_7706d7(); } diff --git a/test/tint/builtins/gen/literal/clamp/867397.wgsl b/test/tint/builtins/gen/literal/clamp/867397.wgsl index 91cacc2196..ae1ee11404 100644 --- a/test/tint/builtins/gen/literal/clamp/867397.wgsl +++ b/test/tint/builtins/gen/literal/clamp/867397.wgsl @@ -28,18 +28,18 @@ fn clamp_867397() { var res: vec3 = clamp(vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_867397(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_867397(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_867397(); } diff --git a/test/tint/builtins/gen/literal/clamp/867397.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/clamp/867397.wgsl.expected.wgsl index 0c74877cb3..9f0b0f56e2 100644 --- a/test/tint/builtins/gen/literal/clamp/867397.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/clamp/867397.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn clamp_867397() { var res : vec3 = clamp(vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_867397(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_867397(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_867397(); } diff --git a/test/tint/builtins/gen/literal/clamp/a2de25.wgsl b/test/tint/builtins/gen/literal/clamp/a2de25.wgsl index bc687e3854..7e4bbaa65e 100644 --- a/test/tint/builtins/gen/literal/clamp/a2de25.wgsl +++ b/test/tint/builtins/gen/literal/clamp/a2de25.wgsl @@ -28,18 +28,18 @@ fn clamp_a2de25() { var res: u32 = clamp(1u, 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_a2de25(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_a2de25(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_a2de25(); } diff --git a/test/tint/builtins/gen/literal/clamp/a2de25.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/clamp/a2de25.wgsl.expected.wgsl index 28aa33039e..5aee4d3a31 100644 --- a/test/tint/builtins/gen/literal/clamp/a2de25.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/clamp/a2de25.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn clamp_a2de25() { var res : u32 = clamp(1u, 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_a2de25(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_a2de25(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_a2de25(); } diff --git a/test/tint/builtins/gen/literal/clamp/b07c65.wgsl b/test/tint/builtins/gen/literal/clamp/b07c65.wgsl index 4387f72607..11c9efaaee 100644 --- a/test/tint/builtins/gen/literal/clamp/b07c65.wgsl +++ b/test/tint/builtins/gen/literal/clamp/b07c65.wgsl @@ -28,18 +28,18 @@ fn clamp_b07c65() { var res: i32 = clamp(1, 1, 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_b07c65(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_b07c65(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_b07c65(); } diff --git a/test/tint/builtins/gen/literal/clamp/b07c65.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/clamp/b07c65.wgsl.expected.wgsl index 3ed77bc898..2ad022bfd4 100644 --- a/test/tint/builtins/gen/literal/clamp/b07c65.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/clamp/b07c65.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn clamp_b07c65() { var res : i32 = clamp(1, 1, 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_b07c65(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_b07c65(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_b07c65(); } diff --git a/test/tint/builtins/gen/literal/clamp/bd43ce.wgsl b/test/tint/builtins/gen/literal/clamp/bd43ce.wgsl index 80d6b853dd..844362607f 100644 --- a/test/tint/builtins/gen/literal/clamp/bd43ce.wgsl +++ b/test/tint/builtins/gen/literal/clamp/bd43ce.wgsl @@ -28,18 +28,18 @@ fn clamp_bd43ce() { var res: vec4 = clamp(vec4(), vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_bd43ce(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_bd43ce(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_bd43ce(); } diff --git a/test/tint/builtins/gen/literal/clamp/bd43ce.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/clamp/bd43ce.wgsl.expected.wgsl index 51f94ba5bd..7be89df276 100644 --- a/test/tint/builtins/gen/literal/clamp/bd43ce.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/clamp/bd43ce.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn clamp_bd43ce() { var res : vec4 = clamp(vec4(), vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_bd43ce(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_bd43ce(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_bd43ce(); } diff --git a/test/tint/builtins/gen/literal/cos/16dc15.wgsl b/test/tint/builtins/gen/literal/cos/16dc15.wgsl index a49842f846..cdbc9c1e81 100644 --- a/test/tint/builtins/gen/literal/cos/16dc15.wgsl +++ b/test/tint/builtins/gen/literal/cos/16dc15.wgsl @@ -28,18 +28,18 @@ fn cos_16dc15() { var res: vec3 = cos(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cos_16dc15(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cos_16dc15(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cos_16dc15(); } diff --git a/test/tint/builtins/gen/literal/cos/16dc15.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/cos/16dc15.wgsl.expected.wgsl index fb24d34f37..d4b9449c00 100644 --- a/test/tint/builtins/gen/literal/cos/16dc15.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/cos/16dc15.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn cos_16dc15() { var res : vec3 = cos(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cos_16dc15(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cos_16dc15(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cos_16dc15(); } diff --git a/test/tint/builtins/gen/literal/cos/29d66d.wgsl b/test/tint/builtins/gen/literal/cos/29d66d.wgsl index 2488f6f439..5caf5f3394 100644 --- a/test/tint/builtins/gen/literal/cos/29d66d.wgsl +++ b/test/tint/builtins/gen/literal/cos/29d66d.wgsl @@ -28,18 +28,18 @@ fn cos_29d66d() { var res: vec4 = cos(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cos_29d66d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cos_29d66d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cos_29d66d(); } diff --git a/test/tint/builtins/gen/literal/cos/29d66d.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/cos/29d66d.wgsl.expected.wgsl index 7bd094716f..8ec11e5e87 100644 --- a/test/tint/builtins/gen/literal/cos/29d66d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/cos/29d66d.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn cos_29d66d() { var res : vec4 = cos(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cos_29d66d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cos_29d66d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cos_29d66d(); } diff --git a/test/tint/builtins/gen/literal/cos/c3b486.wgsl b/test/tint/builtins/gen/literal/cos/c3b486.wgsl index 053ed820c4..30c718f894 100644 --- a/test/tint/builtins/gen/literal/cos/c3b486.wgsl +++ b/test/tint/builtins/gen/literal/cos/c3b486.wgsl @@ -28,18 +28,18 @@ fn cos_c3b486() { var res: vec2 = cos(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cos_c3b486(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cos_c3b486(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cos_c3b486(); } diff --git a/test/tint/builtins/gen/literal/cos/c3b486.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/cos/c3b486.wgsl.expected.wgsl index 3dfb7da69a..888becfa56 100644 --- a/test/tint/builtins/gen/literal/cos/c3b486.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/cos/c3b486.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn cos_c3b486() { var res : vec2 = cos(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cos_c3b486(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cos_c3b486(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cos_c3b486(); } diff --git a/test/tint/builtins/gen/literal/cos/c5c28e.wgsl b/test/tint/builtins/gen/literal/cos/c5c28e.wgsl index 649e53f521..8293d1b506 100644 --- a/test/tint/builtins/gen/literal/cos/c5c28e.wgsl +++ b/test/tint/builtins/gen/literal/cos/c5c28e.wgsl @@ -28,18 +28,18 @@ fn cos_c5c28e() { var res: f32 = cos(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cos_c5c28e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cos_c5c28e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cos_c5c28e(); } diff --git a/test/tint/builtins/gen/literal/cos/c5c28e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/cos/c5c28e.wgsl.expected.wgsl index e2986219e8..28bc70e261 100644 --- a/test/tint/builtins/gen/literal/cos/c5c28e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/cos/c5c28e.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn cos_c5c28e() { var res : f32 = cos(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cos_c5c28e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cos_c5c28e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cos_c5c28e(); } diff --git a/test/tint/builtins/gen/literal/cosh/377652.wgsl b/test/tint/builtins/gen/literal/cosh/377652.wgsl index b30d0f0936..e462cddcc5 100644 --- a/test/tint/builtins/gen/literal/cosh/377652.wgsl +++ b/test/tint/builtins/gen/literal/cosh/377652.wgsl @@ -28,18 +28,18 @@ fn cosh_377652() { var res: vec3 = cosh(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cosh_377652(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cosh_377652(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cosh_377652(); } diff --git a/test/tint/builtins/gen/literal/cosh/377652.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/cosh/377652.wgsl.expected.wgsl index bfcc51afaf..953b20772a 100644 --- a/test/tint/builtins/gen/literal/cosh/377652.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/cosh/377652.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn cosh_377652() { var res : vec3 = cosh(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cosh_377652(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cosh_377652(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cosh_377652(); } diff --git a/test/tint/builtins/gen/literal/cosh/c13756.wgsl b/test/tint/builtins/gen/literal/cosh/c13756.wgsl index fb791cf5e8..cb58944291 100644 --- a/test/tint/builtins/gen/literal/cosh/c13756.wgsl +++ b/test/tint/builtins/gen/literal/cosh/c13756.wgsl @@ -28,18 +28,18 @@ fn cosh_c13756() { var res: vec2 = cosh(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cosh_c13756(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cosh_c13756(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cosh_c13756(); } diff --git a/test/tint/builtins/gen/literal/cosh/c13756.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/cosh/c13756.wgsl.expected.wgsl index 3940b8edde..efd35c13f8 100644 --- a/test/tint/builtins/gen/literal/cosh/c13756.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/cosh/c13756.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn cosh_c13756() { var res : vec2 = cosh(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cosh_c13756(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cosh_c13756(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cosh_c13756(); } diff --git a/test/tint/builtins/gen/literal/cosh/da92dd.wgsl b/test/tint/builtins/gen/literal/cosh/da92dd.wgsl index 61dc016552..261223993d 100644 --- a/test/tint/builtins/gen/literal/cosh/da92dd.wgsl +++ b/test/tint/builtins/gen/literal/cosh/da92dd.wgsl @@ -28,18 +28,18 @@ fn cosh_da92dd() { var res: f32 = cosh(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cosh_da92dd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cosh_da92dd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cosh_da92dd(); } diff --git a/test/tint/builtins/gen/literal/cosh/da92dd.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/cosh/da92dd.wgsl.expected.wgsl index e653a5c675..79c75e648d 100644 --- a/test/tint/builtins/gen/literal/cosh/da92dd.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/cosh/da92dd.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn cosh_da92dd() { var res : f32 = cosh(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cosh_da92dd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cosh_da92dd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cosh_da92dd(); } diff --git a/test/tint/builtins/gen/literal/cosh/e0c1de.wgsl b/test/tint/builtins/gen/literal/cosh/e0c1de.wgsl index 10fe5b4fef..afc084158b 100644 --- a/test/tint/builtins/gen/literal/cosh/e0c1de.wgsl +++ b/test/tint/builtins/gen/literal/cosh/e0c1de.wgsl @@ -28,18 +28,18 @@ fn cosh_e0c1de() { var res: vec4 = cosh(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cosh_e0c1de(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cosh_e0c1de(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cosh_e0c1de(); } diff --git a/test/tint/builtins/gen/literal/cosh/e0c1de.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/cosh/e0c1de.wgsl.expected.wgsl index 64b0a086ce..47456626ea 100644 --- a/test/tint/builtins/gen/literal/cosh/e0c1de.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/cosh/e0c1de.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn cosh_e0c1de() { var res : vec4 = cosh(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cosh_e0c1de(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cosh_e0c1de(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cosh_e0c1de(); } diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/208d46.wgsl b/test/tint/builtins/gen/literal/countLeadingZeros/208d46.wgsl index b68a887dcc..74faea7984 100644 --- a/test/tint/builtins/gen/literal/countLeadingZeros/208d46.wgsl +++ b/test/tint/builtins/gen/literal/countLeadingZeros/208d46.wgsl @@ -28,18 +28,18 @@ fn countLeadingZeros_208d46() { var res: u32 = countLeadingZeros(1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_208d46(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_208d46(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_208d46(); } diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/208d46.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/countLeadingZeros/208d46.wgsl.expected.wgsl index f2120c37f2..ccf686a47d 100644 --- a/test/tint/builtins/gen/literal/countLeadingZeros/208d46.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/countLeadingZeros/208d46.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn countLeadingZeros_208d46() { var res : u32 = countLeadingZeros(1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_208d46(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_208d46(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_208d46(); } diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/6d4656.wgsl b/test/tint/builtins/gen/literal/countLeadingZeros/6d4656.wgsl index bb8d2f1371..fe84c3429e 100644 --- a/test/tint/builtins/gen/literal/countLeadingZeros/6d4656.wgsl +++ b/test/tint/builtins/gen/literal/countLeadingZeros/6d4656.wgsl @@ -28,18 +28,18 @@ fn countLeadingZeros_6d4656() { var res: i32 = countLeadingZeros(1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_6d4656(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_6d4656(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_6d4656(); } diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/6d4656.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/countLeadingZeros/6d4656.wgsl.expected.wgsl index f8b28afd60..cc35ad5d80 100644 --- a/test/tint/builtins/gen/literal/countLeadingZeros/6d4656.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/countLeadingZeros/6d4656.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn countLeadingZeros_6d4656() { var res : i32 = countLeadingZeros(1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_6d4656(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_6d4656(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_6d4656(); } diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/70783f.wgsl b/test/tint/builtins/gen/literal/countLeadingZeros/70783f.wgsl index 2c807da509..16d7040756 100644 --- a/test/tint/builtins/gen/literal/countLeadingZeros/70783f.wgsl +++ b/test/tint/builtins/gen/literal/countLeadingZeros/70783f.wgsl @@ -28,18 +28,18 @@ fn countLeadingZeros_70783f() { var res: vec2 = countLeadingZeros(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_70783f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_70783f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_70783f(); } diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/70783f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/countLeadingZeros/70783f.wgsl.expected.wgsl index 340cac2e41..00f65ce048 100644 --- a/test/tint/builtins/gen/literal/countLeadingZeros/70783f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/countLeadingZeros/70783f.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn countLeadingZeros_70783f() { var res : vec2 = countLeadingZeros(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_70783f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_70783f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_70783f(); } diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/7c38a6.wgsl b/test/tint/builtins/gen/literal/countLeadingZeros/7c38a6.wgsl index d17f72b085..4838028eb9 100644 --- a/test/tint/builtins/gen/literal/countLeadingZeros/7c38a6.wgsl +++ b/test/tint/builtins/gen/literal/countLeadingZeros/7c38a6.wgsl @@ -28,18 +28,18 @@ fn countLeadingZeros_7c38a6() { var res: vec3 = countLeadingZeros(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_7c38a6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_7c38a6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_7c38a6(); } diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/7c38a6.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/countLeadingZeros/7c38a6.wgsl.expected.wgsl index 11cdbfa006..866762f085 100644 --- a/test/tint/builtins/gen/literal/countLeadingZeros/7c38a6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/countLeadingZeros/7c38a6.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn countLeadingZeros_7c38a6() { var res : vec3 = countLeadingZeros(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_7c38a6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_7c38a6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_7c38a6(); } diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/858d40.wgsl b/test/tint/builtins/gen/literal/countLeadingZeros/858d40.wgsl index 6690e558a0..745f6d0a7a 100644 --- a/test/tint/builtins/gen/literal/countLeadingZeros/858d40.wgsl +++ b/test/tint/builtins/gen/literal/countLeadingZeros/858d40.wgsl @@ -28,18 +28,18 @@ fn countLeadingZeros_858d40() { var res: vec2 = countLeadingZeros(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_858d40(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_858d40(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_858d40(); } diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/858d40.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/countLeadingZeros/858d40.wgsl.expected.wgsl index d083be8fbe..f5c838ade3 100644 --- a/test/tint/builtins/gen/literal/countLeadingZeros/858d40.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/countLeadingZeros/858d40.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn countLeadingZeros_858d40() { var res : vec2 = countLeadingZeros(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_858d40(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_858d40(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_858d40(); } diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/ab6345.wgsl b/test/tint/builtins/gen/literal/countLeadingZeros/ab6345.wgsl index 64926a4541..ff43e9cd50 100644 --- a/test/tint/builtins/gen/literal/countLeadingZeros/ab6345.wgsl +++ b/test/tint/builtins/gen/literal/countLeadingZeros/ab6345.wgsl @@ -28,18 +28,18 @@ fn countLeadingZeros_ab6345() { var res: vec3 = countLeadingZeros(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_ab6345(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_ab6345(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_ab6345(); } diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/ab6345.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/countLeadingZeros/ab6345.wgsl.expected.wgsl index d710174ef3..05ba162c48 100644 --- a/test/tint/builtins/gen/literal/countLeadingZeros/ab6345.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/countLeadingZeros/ab6345.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn countLeadingZeros_ab6345() { var res : vec3 = countLeadingZeros(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_ab6345(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_ab6345(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_ab6345(); } diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/eab32b.wgsl b/test/tint/builtins/gen/literal/countLeadingZeros/eab32b.wgsl index b62ce8579b..03d018eb4b 100644 --- a/test/tint/builtins/gen/literal/countLeadingZeros/eab32b.wgsl +++ b/test/tint/builtins/gen/literal/countLeadingZeros/eab32b.wgsl @@ -28,18 +28,18 @@ fn countLeadingZeros_eab32b() { var res: vec4 = countLeadingZeros(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_eab32b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_eab32b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_eab32b(); } diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/eab32b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/countLeadingZeros/eab32b.wgsl.expected.wgsl index fe3546135e..dc7c03c4eb 100644 --- a/test/tint/builtins/gen/literal/countLeadingZeros/eab32b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/countLeadingZeros/eab32b.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn countLeadingZeros_eab32b() { var res : vec4 = countLeadingZeros(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_eab32b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_eab32b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_eab32b(); } diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/f70103.wgsl b/test/tint/builtins/gen/literal/countLeadingZeros/f70103.wgsl index 0c19060e4a..ae1e44979b 100644 --- a/test/tint/builtins/gen/literal/countLeadingZeros/f70103.wgsl +++ b/test/tint/builtins/gen/literal/countLeadingZeros/f70103.wgsl @@ -28,18 +28,18 @@ fn countLeadingZeros_f70103() { var res: vec4 = countLeadingZeros(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_f70103(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_f70103(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_f70103(); } diff --git a/test/tint/builtins/gen/literal/countLeadingZeros/f70103.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/countLeadingZeros/f70103.wgsl.expected.wgsl index 6ce4b6cb29..17d7078d77 100644 --- a/test/tint/builtins/gen/literal/countLeadingZeros/f70103.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/countLeadingZeros/f70103.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn countLeadingZeros_f70103() { var res : vec4 = countLeadingZeros(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_f70103(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_f70103(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_f70103(); } diff --git a/test/tint/builtins/gen/literal/countOneBits/0d0e46.wgsl b/test/tint/builtins/gen/literal/countOneBits/0d0e46.wgsl index cd82445abc..00e4e39c02 100644 --- a/test/tint/builtins/gen/literal/countOneBits/0d0e46.wgsl +++ b/test/tint/builtins/gen/literal/countOneBits/0d0e46.wgsl @@ -28,18 +28,18 @@ fn countOneBits_0d0e46() { var res: vec4 = countOneBits(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_0d0e46(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_0d0e46(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_0d0e46(); } diff --git a/test/tint/builtins/gen/literal/countOneBits/0d0e46.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/countOneBits/0d0e46.wgsl.expected.wgsl index 271af00678..d5c977e858 100644 --- a/test/tint/builtins/gen/literal/countOneBits/0d0e46.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/countOneBits/0d0e46.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn countOneBits_0d0e46() { var res : vec4 = countOneBits(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_0d0e46(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_0d0e46(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_0d0e46(); } diff --git a/test/tint/builtins/gen/literal/countOneBits/0f7980.wgsl b/test/tint/builtins/gen/literal/countOneBits/0f7980.wgsl index 0e1a0c528b..5b64377894 100644 --- a/test/tint/builtins/gen/literal/countOneBits/0f7980.wgsl +++ b/test/tint/builtins/gen/literal/countOneBits/0f7980.wgsl @@ -28,18 +28,18 @@ fn countOneBits_0f7980() { var res: vec4 = countOneBits(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_0f7980(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_0f7980(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_0f7980(); } diff --git a/test/tint/builtins/gen/literal/countOneBits/0f7980.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/countOneBits/0f7980.wgsl.expected.wgsl index 1291aa3f35..4e506ef8fc 100644 --- a/test/tint/builtins/gen/literal/countOneBits/0f7980.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/countOneBits/0f7980.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn countOneBits_0f7980() { var res : vec4 = countOneBits(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_0f7980(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_0f7980(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_0f7980(); } diff --git a/test/tint/builtins/gen/literal/countOneBits/65d2ae.wgsl b/test/tint/builtins/gen/literal/countOneBits/65d2ae.wgsl index b2d344b32e..d493b7c11c 100644 --- a/test/tint/builtins/gen/literal/countOneBits/65d2ae.wgsl +++ b/test/tint/builtins/gen/literal/countOneBits/65d2ae.wgsl @@ -28,18 +28,18 @@ fn countOneBits_65d2ae() { var res: vec3 = countOneBits(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_65d2ae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_65d2ae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_65d2ae(); } diff --git a/test/tint/builtins/gen/literal/countOneBits/65d2ae.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/countOneBits/65d2ae.wgsl.expected.wgsl index e1428608ae..6cabccb85a 100644 --- a/test/tint/builtins/gen/literal/countOneBits/65d2ae.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/countOneBits/65d2ae.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn countOneBits_65d2ae() { var res : vec3 = countOneBits(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_65d2ae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_65d2ae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_65d2ae(); } diff --git a/test/tint/builtins/gen/literal/countOneBits/690cfc.wgsl b/test/tint/builtins/gen/literal/countOneBits/690cfc.wgsl index 3ffaaad64e..60360d3aee 100644 --- a/test/tint/builtins/gen/literal/countOneBits/690cfc.wgsl +++ b/test/tint/builtins/gen/literal/countOneBits/690cfc.wgsl @@ -28,18 +28,18 @@ fn countOneBits_690cfc() { var res: vec3 = countOneBits(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_690cfc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_690cfc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_690cfc(); } diff --git a/test/tint/builtins/gen/literal/countOneBits/690cfc.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/countOneBits/690cfc.wgsl.expected.wgsl index b74eb792c5..8347470061 100644 --- a/test/tint/builtins/gen/literal/countOneBits/690cfc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/countOneBits/690cfc.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn countOneBits_690cfc() { var res : vec3 = countOneBits(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_690cfc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_690cfc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_690cfc(); } diff --git a/test/tint/builtins/gen/literal/countOneBits/94fd81.wgsl b/test/tint/builtins/gen/literal/countOneBits/94fd81.wgsl index f3dc8110e6..136829aaeb 100644 --- a/test/tint/builtins/gen/literal/countOneBits/94fd81.wgsl +++ b/test/tint/builtins/gen/literal/countOneBits/94fd81.wgsl @@ -28,18 +28,18 @@ fn countOneBits_94fd81() { var res: vec2 = countOneBits(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_94fd81(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_94fd81(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_94fd81(); } diff --git a/test/tint/builtins/gen/literal/countOneBits/94fd81.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/countOneBits/94fd81.wgsl.expected.wgsl index e713f92eff..51b9380856 100644 --- a/test/tint/builtins/gen/literal/countOneBits/94fd81.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/countOneBits/94fd81.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn countOneBits_94fd81() { var res : vec2 = countOneBits(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_94fd81(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_94fd81(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_94fd81(); } diff --git a/test/tint/builtins/gen/literal/countOneBits/ae44f9.wgsl b/test/tint/builtins/gen/literal/countOneBits/ae44f9.wgsl index db3be109b1..1e13e00085 100644 --- a/test/tint/builtins/gen/literal/countOneBits/ae44f9.wgsl +++ b/test/tint/builtins/gen/literal/countOneBits/ae44f9.wgsl @@ -28,18 +28,18 @@ fn countOneBits_ae44f9() { var res: u32 = countOneBits(1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_ae44f9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_ae44f9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_ae44f9(); } diff --git a/test/tint/builtins/gen/literal/countOneBits/ae44f9.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/countOneBits/ae44f9.wgsl.expected.wgsl index 3a549934ef..880bb56d2f 100644 --- a/test/tint/builtins/gen/literal/countOneBits/ae44f9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/countOneBits/ae44f9.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn countOneBits_ae44f9() { var res : u32 = countOneBits(1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_ae44f9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_ae44f9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_ae44f9(); } diff --git a/test/tint/builtins/gen/literal/countOneBits/af90e2.wgsl b/test/tint/builtins/gen/literal/countOneBits/af90e2.wgsl index 1a12e33abb..983e4713b6 100644 --- a/test/tint/builtins/gen/literal/countOneBits/af90e2.wgsl +++ b/test/tint/builtins/gen/literal/countOneBits/af90e2.wgsl @@ -28,18 +28,18 @@ fn countOneBits_af90e2() { var res: vec2 = countOneBits(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_af90e2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_af90e2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_af90e2(); } diff --git a/test/tint/builtins/gen/literal/countOneBits/af90e2.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/countOneBits/af90e2.wgsl.expected.wgsl index c2d693a10c..f0c48d370c 100644 --- a/test/tint/builtins/gen/literal/countOneBits/af90e2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/countOneBits/af90e2.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn countOneBits_af90e2() { var res : vec2 = countOneBits(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_af90e2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_af90e2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_af90e2(); } diff --git a/test/tint/builtins/gen/literal/countOneBits/fd88b2.wgsl b/test/tint/builtins/gen/literal/countOneBits/fd88b2.wgsl index 7f1ec3c3d7..ea4c2a0608 100644 --- a/test/tint/builtins/gen/literal/countOneBits/fd88b2.wgsl +++ b/test/tint/builtins/gen/literal/countOneBits/fd88b2.wgsl @@ -28,18 +28,18 @@ fn countOneBits_fd88b2() { var res: i32 = countOneBits(1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_fd88b2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_fd88b2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_fd88b2(); } diff --git a/test/tint/builtins/gen/literal/countOneBits/fd88b2.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/countOneBits/fd88b2.wgsl.expected.wgsl index c9e437bcf3..9f8ef5f33d 100644 --- a/test/tint/builtins/gen/literal/countOneBits/fd88b2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/countOneBits/fd88b2.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn countOneBits_fd88b2() { var res : i32 = countOneBits(1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_fd88b2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_fd88b2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_fd88b2(); } diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/1ad138.wgsl b/test/tint/builtins/gen/literal/countTrailingZeros/1ad138.wgsl index ead70fac48..94c3464d03 100644 --- a/test/tint/builtins/gen/literal/countTrailingZeros/1ad138.wgsl +++ b/test/tint/builtins/gen/literal/countTrailingZeros/1ad138.wgsl @@ -28,18 +28,18 @@ fn countTrailingZeros_1ad138() { var res: vec2 = countTrailingZeros(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_1ad138(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_1ad138(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_1ad138(); } diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/1ad138.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/countTrailingZeros/1ad138.wgsl.expected.wgsl index 049f99f72c..a6642f4f19 100644 --- a/test/tint/builtins/gen/literal/countTrailingZeros/1ad138.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/countTrailingZeros/1ad138.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn countTrailingZeros_1ad138() { var res : vec2 = countTrailingZeros(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_1ad138(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_1ad138(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_1ad138(); } diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/1dc84a.wgsl b/test/tint/builtins/gen/literal/countTrailingZeros/1dc84a.wgsl index 0a6e556b27..44fdeab283 100644 --- a/test/tint/builtins/gen/literal/countTrailingZeros/1dc84a.wgsl +++ b/test/tint/builtins/gen/literal/countTrailingZeros/1dc84a.wgsl @@ -28,18 +28,18 @@ fn countTrailingZeros_1dc84a() { var res: vec4 = countTrailingZeros(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_1dc84a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_1dc84a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_1dc84a(); } diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/1dc84a.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/countTrailingZeros/1dc84a.wgsl.expected.wgsl index de89ed5a51..30c67410ce 100644 --- a/test/tint/builtins/gen/literal/countTrailingZeros/1dc84a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/countTrailingZeros/1dc84a.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn countTrailingZeros_1dc84a() { var res : vec4 = countTrailingZeros(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_1dc84a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_1dc84a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_1dc84a(); } diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/21e394.wgsl b/test/tint/builtins/gen/literal/countTrailingZeros/21e394.wgsl index 114ae5752f..a8eb991faf 100644 --- a/test/tint/builtins/gen/literal/countTrailingZeros/21e394.wgsl +++ b/test/tint/builtins/gen/literal/countTrailingZeros/21e394.wgsl @@ -28,18 +28,18 @@ fn countTrailingZeros_21e394() { var res: u32 = countTrailingZeros(1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_21e394(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_21e394(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_21e394(); } diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/21e394.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/countTrailingZeros/21e394.wgsl.expected.wgsl index a11d84963b..c04b853957 100644 --- a/test/tint/builtins/gen/literal/countTrailingZeros/21e394.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/countTrailingZeros/21e394.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn countTrailingZeros_21e394() { var res : u32 = countTrailingZeros(1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_21e394(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_21e394(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_21e394(); } diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/327c37.wgsl b/test/tint/builtins/gen/literal/countTrailingZeros/327c37.wgsl index 36f93b1a54..4c0db1c52a 100644 --- a/test/tint/builtins/gen/literal/countTrailingZeros/327c37.wgsl +++ b/test/tint/builtins/gen/literal/countTrailingZeros/327c37.wgsl @@ -28,18 +28,18 @@ fn countTrailingZeros_327c37() { var res: vec2 = countTrailingZeros(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_327c37(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_327c37(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_327c37(); } diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/327c37.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/countTrailingZeros/327c37.wgsl.expected.wgsl index b48dedfff8..852e01c23c 100644 --- a/test/tint/builtins/gen/literal/countTrailingZeros/327c37.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/countTrailingZeros/327c37.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn countTrailingZeros_327c37() { var res : vec2 = countTrailingZeros(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_327c37(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_327c37(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_327c37(); } diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/42fed6.wgsl b/test/tint/builtins/gen/literal/countTrailingZeros/42fed6.wgsl index 178f96e678..33db383f2d 100644 --- a/test/tint/builtins/gen/literal/countTrailingZeros/42fed6.wgsl +++ b/test/tint/builtins/gen/literal/countTrailingZeros/42fed6.wgsl @@ -28,18 +28,18 @@ fn countTrailingZeros_42fed6() { var res: i32 = countTrailingZeros(1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_42fed6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_42fed6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_42fed6(); } diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/42fed6.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/countTrailingZeros/42fed6.wgsl.expected.wgsl index 6a560f3823..e277113671 100644 --- a/test/tint/builtins/gen/literal/countTrailingZeros/42fed6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/countTrailingZeros/42fed6.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn countTrailingZeros_42fed6() { var res : i32 = countTrailingZeros(1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_42fed6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_42fed6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_42fed6(); } diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/8ed26f.wgsl b/test/tint/builtins/gen/literal/countTrailingZeros/8ed26f.wgsl index 5e515f9fe3..5076bef6ed 100644 --- a/test/tint/builtins/gen/literal/countTrailingZeros/8ed26f.wgsl +++ b/test/tint/builtins/gen/literal/countTrailingZeros/8ed26f.wgsl @@ -28,18 +28,18 @@ fn countTrailingZeros_8ed26f() { var res: vec3 = countTrailingZeros(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_8ed26f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_8ed26f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_8ed26f(); } diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/8ed26f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/countTrailingZeros/8ed26f.wgsl.expected.wgsl index 655674537c..a308abf326 100644 --- a/test/tint/builtins/gen/literal/countTrailingZeros/8ed26f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/countTrailingZeros/8ed26f.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn countTrailingZeros_8ed26f() { var res : vec3 = countTrailingZeros(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_8ed26f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_8ed26f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_8ed26f(); } diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/acfacb.wgsl b/test/tint/builtins/gen/literal/countTrailingZeros/acfacb.wgsl index 59019eb38a..78706ca2e7 100644 --- a/test/tint/builtins/gen/literal/countTrailingZeros/acfacb.wgsl +++ b/test/tint/builtins/gen/literal/countTrailingZeros/acfacb.wgsl @@ -28,18 +28,18 @@ fn countTrailingZeros_acfacb() { var res: vec3 = countTrailingZeros(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_acfacb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_acfacb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_acfacb(); } diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/acfacb.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/countTrailingZeros/acfacb.wgsl.expected.wgsl index e375186519..d7c6363827 100644 --- a/test/tint/builtins/gen/literal/countTrailingZeros/acfacb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/countTrailingZeros/acfacb.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn countTrailingZeros_acfacb() { var res : vec3 = countTrailingZeros(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_acfacb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_acfacb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_acfacb(); } diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/d2b4a0.wgsl b/test/tint/builtins/gen/literal/countTrailingZeros/d2b4a0.wgsl index 4ce8b4deb4..1c576e1341 100644 --- a/test/tint/builtins/gen/literal/countTrailingZeros/d2b4a0.wgsl +++ b/test/tint/builtins/gen/literal/countTrailingZeros/d2b4a0.wgsl @@ -28,18 +28,18 @@ fn countTrailingZeros_d2b4a0() { var res: vec4 = countTrailingZeros(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_d2b4a0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_d2b4a0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_d2b4a0(); } diff --git a/test/tint/builtins/gen/literal/countTrailingZeros/d2b4a0.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/countTrailingZeros/d2b4a0.wgsl.expected.wgsl index d37e2a16c5..d49ffcb82b 100644 --- a/test/tint/builtins/gen/literal/countTrailingZeros/d2b4a0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/countTrailingZeros/d2b4a0.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn countTrailingZeros_d2b4a0() { var res : vec4 = countTrailingZeros(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_d2b4a0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_d2b4a0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_d2b4a0(); } diff --git a/test/tint/builtins/gen/literal/cross/041cb0.wgsl b/test/tint/builtins/gen/literal/cross/041cb0.wgsl index 1d68e7c721..5d10c7b68e 100644 --- a/test/tint/builtins/gen/literal/cross/041cb0.wgsl +++ b/test/tint/builtins/gen/literal/cross/041cb0.wgsl @@ -28,18 +28,18 @@ fn cross_041cb0() { var res: vec3 = cross(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cross_041cb0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cross_041cb0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cross_041cb0(); } diff --git a/test/tint/builtins/gen/literal/cross/041cb0.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/cross/041cb0.wgsl.expected.wgsl index c3548ce7e4..b4f3b74361 100644 --- a/test/tint/builtins/gen/literal/cross/041cb0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/cross/041cb0.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn cross_041cb0() { var res : vec3 = cross(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cross_041cb0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cross_041cb0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cross_041cb0(); } diff --git a/test/tint/builtins/gen/literal/degrees/0d170c.wgsl b/test/tint/builtins/gen/literal/degrees/0d170c.wgsl index eb220638fd..586a019ed2 100644 --- a/test/tint/builtins/gen/literal/degrees/0d170c.wgsl +++ b/test/tint/builtins/gen/literal/degrees/0d170c.wgsl @@ -28,18 +28,18 @@ fn degrees_0d170c() { var res: vec4 = degrees(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { degrees_0d170c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { degrees_0d170c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { degrees_0d170c(); } diff --git a/test/tint/builtins/gen/literal/degrees/0d170c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/degrees/0d170c.wgsl.expected.wgsl index 6c62108eb1..0a9cf40d0b 100644 --- a/test/tint/builtins/gen/literal/degrees/0d170c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/degrees/0d170c.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn degrees_0d170c() { var res : vec4 = degrees(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { degrees_0d170c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { degrees_0d170c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { degrees_0d170c(); } diff --git a/test/tint/builtins/gen/literal/degrees/1ad5df.wgsl b/test/tint/builtins/gen/literal/degrees/1ad5df.wgsl index a0dac14b9c..69bba35bbb 100644 --- a/test/tint/builtins/gen/literal/degrees/1ad5df.wgsl +++ b/test/tint/builtins/gen/literal/degrees/1ad5df.wgsl @@ -28,18 +28,18 @@ fn degrees_1ad5df() { var res: vec2 = degrees(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { degrees_1ad5df(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { degrees_1ad5df(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { degrees_1ad5df(); } diff --git a/test/tint/builtins/gen/literal/degrees/1ad5df.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/degrees/1ad5df.wgsl.expected.wgsl index db91a6528c..6a028eb242 100644 --- a/test/tint/builtins/gen/literal/degrees/1ad5df.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/degrees/1ad5df.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn degrees_1ad5df() { var res : vec2 = degrees(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { degrees_1ad5df(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { degrees_1ad5df(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { degrees_1ad5df(); } diff --git a/test/tint/builtins/gen/literal/degrees/2af623.wgsl b/test/tint/builtins/gen/literal/degrees/2af623.wgsl index b01e1a6981..ab5ff4fe4a 100644 --- a/test/tint/builtins/gen/literal/degrees/2af623.wgsl +++ b/test/tint/builtins/gen/literal/degrees/2af623.wgsl @@ -28,18 +28,18 @@ fn degrees_2af623() { var res: vec3 = degrees(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { degrees_2af623(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { degrees_2af623(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { degrees_2af623(); } diff --git a/test/tint/builtins/gen/literal/degrees/2af623.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/degrees/2af623.wgsl.expected.wgsl index d3af418c96..8044f002d6 100644 --- a/test/tint/builtins/gen/literal/degrees/2af623.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/degrees/2af623.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn degrees_2af623() { var res : vec3 = degrees(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { degrees_2af623(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { degrees_2af623(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { degrees_2af623(); } diff --git a/test/tint/builtins/gen/literal/degrees/51f705.wgsl b/test/tint/builtins/gen/literal/degrees/51f705.wgsl index 3ff7ecec84..dc1bf3b406 100644 --- a/test/tint/builtins/gen/literal/degrees/51f705.wgsl +++ b/test/tint/builtins/gen/literal/degrees/51f705.wgsl @@ -28,18 +28,18 @@ fn degrees_51f705() { var res: f32 = degrees(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { degrees_51f705(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { degrees_51f705(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { degrees_51f705(); } diff --git a/test/tint/builtins/gen/literal/degrees/51f705.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/degrees/51f705.wgsl.expected.wgsl index 5ec8b91386..af56927c08 100644 --- a/test/tint/builtins/gen/literal/degrees/51f705.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/degrees/51f705.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn degrees_51f705() { var res : f32 = degrees(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { degrees_51f705(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { degrees_51f705(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { degrees_51f705(); } diff --git a/test/tint/builtins/gen/literal/determinant/2b62ba.wgsl b/test/tint/builtins/gen/literal/determinant/2b62ba.wgsl index 8c5b626471..f3c7931752 100644 --- a/test/tint/builtins/gen/literal/determinant/2b62ba.wgsl +++ b/test/tint/builtins/gen/literal/determinant/2b62ba.wgsl @@ -28,18 +28,18 @@ fn determinant_2b62ba() { var res: f32 = determinant(mat3x3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { determinant_2b62ba(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { determinant_2b62ba(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { determinant_2b62ba(); } diff --git a/test/tint/builtins/gen/literal/determinant/2b62ba.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/determinant/2b62ba.wgsl.expected.wgsl index b9c8bcd9c8..f18858fc08 100644 --- a/test/tint/builtins/gen/literal/determinant/2b62ba.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/determinant/2b62ba.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn determinant_2b62ba() { var res : f32 = determinant(mat3x3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { determinant_2b62ba(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { determinant_2b62ba(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { determinant_2b62ba(); } diff --git a/test/tint/builtins/gen/literal/determinant/a0a87c.wgsl b/test/tint/builtins/gen/literal/determinant/a0a87c.wgsl index 541f546e27..0f65ef3fe1 100644 --- a/test/tint/builtins/gen/literal/determinant/a0a87c.wgsl +++ b/test/tint/builtins/gen/literal/determinant/a0a87c.wgsl @@ -28,18 +28,18 @@ fn determinant_a0a87c() { var res: f32 = determinant(mat4x4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { determinant_a0a87c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { determinant_a0a87c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { determinant_a0a87c(); } diff --git a/test/tint/builtins/gen/literal/determinant/a0a87c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/determinant/a0a87c.wgsl.expected.wgsl index 1352bafde8..ed1f785810 100644 --- a/test/tint/builtins/gen/literal/determinant/a0a87c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/determinant/a0a87c.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn determinant_a0a87c() { var res : f32 = determinant(mat4x4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { determinant_a0a87c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { determinant_a0a87c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { determinant_a0a87c(); } diff --git a/test/tint/builtins/gen/literal/determinant/e19305.wgsl b/test/tint/builtins/gen/literal/determinant/e19305.wgsl index 18cc6b2374..99c571c757 100644 --- a/test/tint/builtins/gen/literal/determinant/e19305.wgsl +++ b/test/tint/builtins/gen/literal/determinant/e19305.wgsl @@ -28,18 +28,18 @@ fn determinant_e19305() { var res: f32 = determinant(mat2x2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { determinant_e19305(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { determinant_e19305(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { determinant_e19305(); } diff --git a/test/tint/builtins/gen/literal/determinant/e19305.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/determinant/e19305.wgsl.expected.wgsl index 67724c6e24..23c1aa0874 100644 --- a/test/tint/builtins/gen/literal/determinant/e19305.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/determinant/e19305.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn determinant_e19305() { var res : f32 = determinant(mat2x2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { determinant_e19305(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { determinant_e19305(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { determinant_e19305(); } diff --git a/test/tint/builtins/gen/literal/distance/0657d4.wgsl b/test/tint/builtins/gen/literal/distance/0657d4.wgsl index a0b3af80d3..aae2064272 100644 --- a/test/tint/builtins/gen/literal/distance/0657d4.wgsl +++ b/test/tint/builtins/gen/literal/distance/0657d4.wgsl @@ -28,18 +28,18 @@ fn distance_0657d4() { var res: f32 = distance(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { distance_0657d4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { distance_0657d4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { distance_0657d4(); } diff --git a/test/tint/builtins/gen/literal/distance/0657d4.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/distance/0657d4.wgsl.expected.wgsl index 1945bbb160..ca065c7d1f 100644 --- a/test/tint/builtins/gen/literal/distance/0657d4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/distance/0657d4.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn distance_0657d4() { var res : f32 = distance(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { distance_0657d4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { distance_0657d4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { distance_0657d4(); } diff --git a/test/tint/builtins/gen/literal/distance/9646ea.wgsl b/test/tint/builtins/gen/literal/distance/9646ea.wgsl index 3b8aa55099..3770c60e85 100644 --- a/test/tint/builtins/gen/literal/distance/9646ea.wgsl +++ b/test/tint/builtins/gen/literal/distance/9646ea.wgsl @@ -28,18 +28,18 @@ fn distance_9646ea() { var res: f32 = distance(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { distance_9646ea(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { distance_9646ea(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { distance_9646ea(); } diff --git a/test/tint/builtins/gen/literal/distance/9646ea.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/distance/9646ea.wgsl.expected.wgsl index 0e02dff448..db90e03081 100644 --- a/test/tint/builtins/gen/literal/distance/9646ea.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/distance/9646ea.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn distance_9646ea() { var res : f32 = distance(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { distance_9646ea(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { distance_9646ea(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { distance_9646ea(); } diff --git a/test/tint/builtins/gen/literal/distance/aa4055.wgsl b/test/tint/builtins/gen/literal/distance/aa4055.wgsl index 71334d58de..ead354446c 100644 --- a/test/tint/builtins/gen/literal/distance/aa4055.wgsl +++ b/test/tint/builtins/gen/literal/distance/aa4055.wgsl @@ -28,18 +28,18 @@ fn distance_aa4055() { var res: f32 = distance(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { distance_aa4055(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { distance_aa4055(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { distance_aa4055(); } diff --git a/test/tint/builtins/gen/literal/distance/aa4055.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/distance/aa4055.wgsl.expected.wgsl index 307399d742..79c35899d5 100644 --- a/test/tint/builtins/gen/literal/distance/aa4055.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/distance/aa4055.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn distance_aa4055() { var res : f32 = distance(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { distance_aa4055(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { distance_aa4055(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { distance_aa4055(); } diff --git a/test/tint/builtins/gen/literal/distance/cfed73.wgsl b/test/tint/builtins/gen/literal/distance/cfed73.wgsl index c7fe4c53d7..5a13c21502 100644 --- a/test/tint/builtins/gen/literal/distance/cfed73.wgsl +++ b/test/tint/builtins/gen/literal/distance/cfed73.wgsl @@ -28,18 +28,18 @@ fn distance_cfed73() { var res: f32 = distance(1.0, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { distance_cfed73(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { distance_cfed73(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { distance_cfed73(); } diff --git a/test/tint/builtins/gen/literal/distance/cfed73.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/distance/cfed73.wgsl.expected.wgsl index db5bc7d901..482fc28db9 100644 --- a/test/tint/builtins/gen/literal/distance/cfed73.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/distance/cfed73.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn distance_cfed73() { var res : f32 = distance(1.0, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { distance_cfed73(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { distance_cfed73(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { distance_cfed73(); } diff --git a/test/tint/builtins/gen/literal/dot/0c577b.wgsl b/test/tint/builtins/gen/literal/dot/0c577b.wgsl index e48b6697fa..a735d41819 100644 --- a/test/tint/builtins/gen/literal/dot/0c577b.wgsl +++ b/test/tint/builtins/gen/literal/dot/0c577b.wgsl @@ -28,18 +28,18 @@ fn dot_0c577b() { var res: f32 = dot(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_0c577b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_0c577b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_0c577b(); } diff --git a/test/tint/builtins/gen/literal/dot/0c577b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dot/0c577b.wgsl.expected.wgsl index 22411b9b57..ab76066305 100644 --- a/test/tint/builtins/gen/literal/dot/0c577b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dot/0c577b.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn dot_0c577b() { var res : f32 = dot(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_0c577b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_0c577b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_0c577b(); } diff --git a/test/tint/builtins/gen/literal/dot/7548a0.wgsl b/test/tint/builtins/gen/literal/dot/7548a0.wgsl index 567e340004..ffa3fdf96c 100644 --- a/test/tint/builtins/gen/literal/dot/7548a0.wgsl +++ b/test/tint/builtins/gen/literal/dot/7548a0.wgsl @@ -28,18 +28,18 @@ fn dot_7548a0() { var res: u32 = dot(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_7548a0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_7548a0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_7548a0(); } diff --git a/test/tint/builtins/gen/literal/dot/7548a0.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dot/7548a0.wgsl.expected.wgsl index c8b90177c6..9e56b7b949 100644 --- a/test/tint/builtins/gen/literal/dot/7548a0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dot/7548a0.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn dot_7548a0() { var res : u32 = dot(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_7548a0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_7548a0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_7548a0(); } diff --git a/test/tint/builtins/gen/literal/dot/883f0e.wgsl b/test/tint/builtins/gen/literal/dot/883f0e.wgsl index fbf13b5b06..c15829e53c 100644 --- a/test/tint/builtins/gen/literal/dot/883f0e.wgsl +++ b/test/tint/builtins/gen/literal/dot/883f0e.wgsl @@ -28,18 +28,18 @@ fn dot_883f0e() { var res: f32 = dot(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_883f0e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_883f0e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_883f0e(); } diff --git a/test/tint/builtins/gen/literal/dot/883f0e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dot/883f0e.wgsl.expected.wgsl index 4be39c5e21..b1b745cd78 100644 --- a/test/tint/builtins/gen/literal/dot/883f0e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dot/883f0e.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn dot_883f0e() { var res : f32 = dot(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_883f0e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_883f0e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_883f0e(); } diff --git a/test/tint/builtins/gen/literal/dot/97c7ee.wgsl b/test/tint/builtins/gen/literal/dot/97c7ee.wgsl index f802cca771..8d7999b0f5 100644 --- a/test/tint/builtins/gen/literal/dot/97c7ee.wgsl +++ b/test/tint/builtins/gen/literal/dot/97c7ee.wgsl @@ -28,18 +28,18 @@ fn dot_97c7ee() { var res: u32 = dot(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_97c7ee(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_97c7ee(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_97c7ee(); } diff --git a/test/tint/builtins/gen/literal/dot/97c7ee.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dot/97c7ee.wgsl.expected.wgsl index 488052d546..73607bdb11 100644 --- a/test/tint/builtins/gen/literal/dot/97c7ee.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dot/97c7ee.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn dot_97c7ee() { var res : u32 = dot(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_97c7ee(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_97c7ee(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_97c7ee(); } diff --git a/test/tint/builtins/gen/literal/dot/ba4246.wgsl b/test/tint/builtins/gen/literal/dot/ba4246.wgsl index ed2c792159..9a99619ce4 100644 --- a/test/tint/builtins/gen/literal/dot/ba4246.wgsl +++ b/test/tint/builtins/gen/literal/dot/ba4246.wgsl @@ -28,18 +28,18 @@ fn dot_ba4246() { var res: f32 = dot(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_ba4246(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_ba4246(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_ba4246(); } diff --git a/test/tint/builtins/gen/literal/dot/ba4246.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dot/ba4246.wgsl.expected.wgsl index 7ddc8d16b1..a0d779cb1b 100644 --- a/test/tint/builtins/gen/literal/dot/ba4246.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dot/ba4246.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn dot_ba4246() { var res : f32 = dot(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_ba4246(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_ba4246(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_ba4246(); } diff --git a/test/tint/builtins/gen/literal/dot/e994c7.wgsl b/test/tint/builtins/gen/literal/dot/e994c7.wgsl index bbcfafb9e0..72196eee9c 100644 --- a/test/tint/builtins/gen/literal/dot/e994c7.wgsl +++ b/test/tint/builtins/gen/literal/dot/e994c7.wgsl @@ -28,18 +28,18 @@ fn dot_e994c7() { var res: u32 = dot(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_e994c7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_e994c7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_e994c7(); } diff --git a/test/tint/builtins/gen/literal/dot/e994c7.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dot/e994c7.wgsl.expected.wgsl index 2b549594de..fd7c439834 100644 --- a/test/tint/builtins/gen/literal/dot/e994c7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dot/e994c7.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn dot_e994c7() { var res : u32 = dot(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_e994c7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_e994c7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_e994c7(); } diff --git a/test/tint/builtins/gen/literal/dot/ef6b1d.wgsl b/test/tint/builtins/gen/literal/dot/ef6b1d.wgsl index 2c73a7a7d3..16a4704b67 100644 --- a/test/tint/builtins/gen/literal/dot/ef6b1d.wgsl +++ b/test/tint/builtins/gen/literal/dot/ef6b1d.wgsl @@ -28,18 +28,18 @@ fn dot_ef6b1d() { var res: i32 = dot(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_ef6b1d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_ef6b1d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_ef6b1d(); } diff --git a/test/tint/builtins/gen/literal/dot/ef6b1d.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dot/ef6b1d.wgsl.expected.wgsl index 075cfcd34b..c1dda84cf4 100644 --- a/test/tint/builtins/gen/literal/dot/ef6b1d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dot/ef6b1d.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn dot_ef6b1d() { var res : i32 = dot(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_ef6b1d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_ef6b1d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_ef6b1d(); } diff --git a/test/tint/builtins/gen/literal/dot/f1312c.wgsl b/test/tint/builtins/gen/literal/dot/f1312c.wgsl index 7966682d7a..49e5c62771 100644 --- a/test/tint/builtins/gen/literal/dot/f1312c.wgsl +++ b/test/tint/builtins/gen/literal/dot/f1312c.wgsl @@ -28,18 +28,18 @@ fn dot_f1312c() { var res: i32 = dot(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_f1312c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_f1312c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_f1312c(); } diff --git a/test/tint/builtins/gen/literal/dot/f1312c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dot/f1312c.wgsl.expected.wgsl index 7440cf96b9..7d9778eb0f 100644 --- a/test/tint/builtins/gen/literal/dot/f1312c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dot/f1312c.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn dot_f1312c() { var res : i32 = dot(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_f1312c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_f1312c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_f1312c(); } diff --git a/test/tint/builtins/gen/literal/dot/fc5f7c.wgsl b/test/tint/builtins/gen/literal/dot/fc5f7c.wgsl index a7d1354c47..8a256abd33 100644 --- a/test/tint/builtins/gen/literal/dot/fc5f7c.wgsl +++ b/test/tint/builtins/gen/literal/dot/fc5f7c.wgsl @@ -28,18 +28,18 @@ fn dot_fc5f7c() { var res: i32 = dot(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_fc5f7c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_fc5f7c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_fc5f7c(); } diff --git a/test/tint/builtins/gen/literal/dot/fc5f7c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dot/fc5f7c.wgsl.expected.wgsl index 6d30122343..472b368d60 100644 --- a/test/tint/builtins/gen/literal/dot/fc5f7c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dot/fc5f7c.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn dot_fc5f7c() { var res : i32 = dot(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_fc5f7c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_fc5f7c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_fc5f7c(); } diff --git a/test/tint/builtins/gen/literal/dpdx/0763f7.wgsl b/test/tint/builtins/gen/literal/dpdx/0763f7.wgsl index 0c0cfadf8a..faf72f48a0 100644 --- a/test/tint/builtins/gen/literal/dpdx/0763f7.wgsl +++ b/test/tint/builtins/gen/literal/dpdx/0763f7.wgsl @@ -28,7 +28,7 @@ fn dpdx_0763f7() { var res: vec3 = dpdx(vec3()); } -@stage(fragment) +@fragment fn fragment_main() { dpdx_0763f7(); } diff --git a/test/tint/builtins/gen/literal/dpdx/0763f7.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dpdx/0763f7.wgsl.expected.wgsl index 15235d627f..8e119a58f6 100644 --- a/test/tint/builtins/gen/literal/dpdx/0763f7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dpdx/0763f7.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn dpdx_0763f7() { var res : vec3 = dpdx(vec3()); } -@stage(fragment) +@fragment fn fragment_main() { dpdx_0763f7(); } diff --git a/test/tint/builtins/gen/literal/dpdx/99edb1.wgsl b/test/tint/builtins/gen/literal/dpdx/99edb1.wgsl index 45393f10d7..86324e0768 100644 --- a/test/tint/builtins/gen/literal/dpdx/99edb1.wgsl +++ b/test/tint/builtins/gen/literal/dpdx/99edb1.wgsl @@ -28,7 +28,7 @@ fn dpdx_99edb1() { var res: vec2 = dpdx(vec2()); } -@stage(fragment) +@fragment fn fragment_main() { dpdx_99edb1(); } diff --git a/test/tint/builtins/gen/literal/dpdx/99edb1.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dpdx/99edb1.wgsl.expected.wgsl index 7405f0fe79..b10e05e9d9 100644 --- a/test/tint/builtins/gen/literal/dpdx/99edb1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dpdx/99edb1.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn dpdx_99edb1() { var res : vec2 = dpdx(vec2()); } -@stage(fragment) +@fragment fn fragment_main() { dpdx_99edb1(); } diff --git a/test/tint/builtins/gen/literal/dpdx/c487fa.wgsl b/test/tint/builtins/gen/literal/dpdx/c487fa.wgsl index c05487c268..c55be8a470 100644 --- a/test/tint/builtins/gen/literal/dpdx/c487fa.wgsl +++ b/test/tint/builtins/gen/literal/dpdx/c487fa.wgsl @@ -28,7 +28,7 @@ fn dpdx_c487fa() { var res: vec4 = dpdx(vec4()); } -@stage(fragment) +@fragment fn fragment_main() { dpdx_c487fa(); } diff --git a/test/tint/builtins/gen/literal/dpdx/c487fa.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dpdx/c487fa.wgsl.expected.wgsl index f2ebe8e25a..a289889c5c 100644 --- a/test/tint/builtins/gen/literal/dpdx/c487fa.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dpdx/c487fa.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn dpdx_c487fa() { var res : vec4 = dpdx(vec4()); } -@stage(fragment) +@fragment fn fragment_main() { dpdx_c487fa(); } diff --git a/test/tint/builtins/gen/literal/dpdx/e263de.wgsl b/test/tint/builtins/gen/literal/dpdx/e263de.wgsl index f367bd52a9..815eadc1b2 100644 --- a/test/tint/builtins/gen/literal/dpdx/e263de.wgsl +++ b/test/tint/builtins/gen/literal/dpdx/e263de.wgsl @@ -28,7 +28,7 @@ fn dpdx_e263de() { var res: f32 = dpdx(1.0); } -@stage(fragment) +@fragment fn fragment_main() { dpdx_e263de(); } diff --git a/test/tint/builtins/gen/literal/dpdx/e263de.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dpdx/e263de.wgsl.expected.wgsl index ac653d8cba..55b3525a7f 100644 --- a/test/tint/builtins/gen/literal/dpdx/e263de.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dpdx/e263de.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn dpdx_e263de() { var res : f32 = dpdx(1.0); } -@stage(fragment) +@fragment fn fragment_main() { dpdx_e263de(); } diff --git a/test/tint/builtins/gen/literal/dpdxCoarse/029152.wgsl b/test/tint/builtins/gen/literal/dpdxCoarse/029152.wgsl index c490c29c20..d27e0bc11b 100644 --- a/test/tint/builtins/gen/literal/dpdxCoarse/029152.wgsl +++ b/test/tint/builtins/gen/literal/dpdxCoarse/029152.wgsl @@ -28,7 +28,7 @@ fn dpdxCoarse_029152() { var res: f32 = dpdxCoarse(1.0); } -@stage(fragment) +@fragment fn fragment_main() { dpdxCoarse_029152(); } diff --git a/test/tint/builtins/gen/literal/dpdxCoarse/029152.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dpdxCoarse/029152.wgsl.expected.wgsl index 38fe60cef1..5a98eb8860 100644 --- a/test/tint/builtins/gen/literal/dpdxCoarse/029152.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dpdxCoarse/029152.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn dpdxCoarse_029152() { var res : f32 = dpdxCoarse(1.0); } -@stage(fragment) +@fragment fn fragment_main() { dpdxCoarse_029152(); } diff --git a/test/tint/builtins/gen/literal/dpdxCoarse/9581cf.wgsl b/test/tint/builtins/gen/literal/dpdxCoarse/9581cf.wgsl index 864f0a1460..5bc2899b39 100644 --- a/test/tint/builtins/gen/literal/dpdxCoarse/9581cf.wgsl +++ b/test/tint/builtins/gen/literal/dpdxCoarse/9581cf.wgsl @@ -28,7 +28,7 @@ fn dpdxCoarse_9581cf() { var res: vec2 = dpdxCoarse(vec2()); } -@stage(fragment) +@fragment fn fragment_main() { dpdxCoarse_9581cf(); } diff --git a/test/tint/builtins/gen/literal/dpdxCoarse/9581cf.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dpdxCoarse/9581cf.wgsl.expected.wgsl index 51ac0a5a82..068a7ba370 100644 --- a/test/tint/builtins/gen/literal/dpdxCoarse/9581cf.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dpdxCoarse/9581cf.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn dpdxCoarse_9581cf() { var res : vec2 = dpdxCoarse(vec2()); } -@stage(fragment) +@fragment fn fragment_main() { dpdxCoarse_9581cf(); } diff --git a/test/tint/builtins/gen/literal/dpdxCoarse/c28641.wgsl b/test/tint/builtins/gen/literal/dpdxCoarse/c28641.wgsl index 98b2ca8943..032b5fd147 100644 --- a/test/tint/builtins/gen/literal/dpdxCoarse/c28641.wgsl +++ b/test/tint/builtins/gen/literal/dpdxCoarse/c28641.wgsl @@ -28,7 +28,7 @@ fn dpdxCoarse_c28641() { var res: vec4 = dpdxCoarse(vec4()); } -@stage(fragment) +@fragment fn fragment_main() { dpdxCoarse_c28641(); } diff --git a/test/tint/builtins/gen/literal/dpdxCoarse/c28641.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dpdxCoarse/c28641.wgsl.expected.wgsl index 51fa7dc0e0..b2aa9ae5bb 100644 --- a/test/tint/builtins/gen/literal/dpdxCoarse/c28641.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dpdxCoarse/c28641.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn dpdxCoarse_c28641() { var res : vec4 = dpdxCoarse(vec4()); } -@stage(fragment) +@fragment fn fragment_main() { dpdxCoarse_c28641(); } diff --git a/test/tint/builtins/gen/literal/dpdxCoarse/f64d7b.wgsl b/test/tint/builtins/gen/literal/dpdxCoarse/f64d7b.wgsl index b9e6721fb2..f792bea604 100644 --- a/test/tint/builtins/gen/literal/dpdxCoarse/f64d7b.wgsl +++ b/test/tint/builtins/gen/literal/dpdxCoarse/f64d7b.wgsl @@ -28,7 +28,7 @@ fn dpdxCoarse_f64d7b() { var res: vec3 = dpdxCoarse(vec3()); } -@stage(fragment) +@fragment fn fragment_main() { dpdxCoarse_f64d7b(); } diff --git a/test/tint/builtins/gen/literal/dpdxCoarse/f64d7b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dpdxCoarse/f64d7b.wgsl.expected.wgsl index f5a9d29ab0..ae0ecba12c 100644 --- a/test/tint/builtins/gen/literal/dpdxCoarse/f64d7b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dpdxCoarse/f64d7b.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn dpdxCoarse_f64d7b() { var res : vec3 = dpdxCoarse(vec3()); } -@stage(fragment) +@fragment fn fragment_main() { dpdxCoarse_f64d7b(); } diff --git a/test/tint/builtins/gen/literal/dpdxFine/8c5069.wgsl b/test/tint/builtins/gen/literal/dpdxFine/8c5069.wgsl index 55e5fdd02f..5d406de9b7 100644 --- a/test/tint/builtins/gen/literal/dpdxFine/8c5069.wgsl +++ b/test/tint/builtins/gen/literal/dpdxFine/8c5069.wgsl @@ -28,7 +28,7 @@ fn dpdxFine_8c5069() { var res: vec4 = dpdxFine(vec4()); } -@stage(fragment) +@fragment fn fragment_main() { dpdxFine_8c5069(); } diff --git a/test/tint/builtins/gen/literal/dpdxFine/8c5069.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dpdxFine/8c5069.wgsl.expected.wgsl index 6de1a1c995..926635d70f 100644 --- a/test/tint/builtins/gen/literal/dpdxFine/8c5069.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dpdxFine/8c5069.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn dpdxFine_8c5069() { var res : vec4 = dpdxFine(vec4()); } -@stage(fragment) +@fragment fn fragment_main() { dpdxFine_8c5069(); } diff --git a/test/tint/builtins/gen/literal/dpdxFine/9631de.wgsl b/test/tint/builtins/gen/literal/dpdxFine/9631de.wgsl index 96f4ef3852..b7212d9d6a 100644 --- a/test/tint/builtins/gen/literal/dpdxFine/9631de.wgsl +++ b/test/tint/builtins/gen/literal/dpdxFine/9631de.wgsl @@ -28,7 +28,7 @@ fn dpdxFine_9631de() { var res: vec2 = dpdxFine(vec2()); } -@stage(fragment) +@fragment fn fragment_main() { dpdxFine_9631de(); } diff --git a/test/tint/builtins/gen/literal/dpdxFine/9631de.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dpdxFine/9631de.wgsl.expected.wgsl index a56d3c4767..d358417e12 100644 --- a/test/tint/builtins/gen/literal/dpdxFine/9631de.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dpdxFine/9631de.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn dpdxFine_9631de() { var res : vec2 = dpdxFine(vec2()); } -@stage(fragment) +@fragment fn fragment_main() { dpdxFine_9631de(); } diff --git a/test/tint/builtins/gen/literal/dpdxFine/f401a2.wgsl b/test/tint/builtins/gen/literal/dpdxFine/f401a2.wgsl index 0c287599ab..36381e46e4 100644 --- a/test/tint/builtins/gen/literal/dpdxFine/f401a2.wgsl +++ b/test/tint/builtins/gen/literal/dpdxFine/f401a2.wgsl @@ -28,7 +28,7 @@ fn dpdxFine_f401a2() { var res: f32 = dpdxFine(1.0); } -@stage(fragment) +@fragment fn fragment_main() { dpdxFine_f401a2(); } diff --git a/test/tint/builtins/gen/literal/dpdxFine/f401a2.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dpdxFine/f401a2.wgsl.expected.wgsl index 3f5c8360a3..5a3cd8ac06 100644 --- a/test/tint/builtins/gen/literal/dpdxFine/f401a2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dpdxFine/f401a2.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn dpdxFine_f401a2() { var res : f32 = dpdxFine(1.0); } -@stage(fragment) +@fragment fn fragment_main() { dpdxFine_f401a2(); } diff --git a/test/tint/builtins/gen/literal/dpdxFine/f92fb6.wgsl b/test/tint/builtins/gen/literal/dpdxFine/f92fb6.wgsl index c387414a17..4dc23ecd3e 100644 --- a/test/tint/builtins/gen/literal/dpdxFine/f92fb6.wgsl +++ b/test/tint/builtins/gen/literal/dpdxFine/f92fb6.wgsl @@ -28,7 +28,7 @@ fn dpdxFine_f92fb6() { var res: vec3 = dpdxFine(vec3()); } -@stage(fragment) +@fragment fn fragment_main() { dpdxFine_f92fb6(); } diff --git a/test/tint/builtins/gen/literal/dpdxFine/f92fb6.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dpdxFine/f92fb6.wgsl.expected.wgsl index 5189c7ff54..f2391e8dbe 100644 --- a/test/tint/builtins/gen/literal/dpdxFine/f92fb6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dpdxFine/f92fb6.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn dpdxFine_f92fb6() { var res : vec3 = dpdxFine(vec3()); } -@stage(fragment) +@fragment fn fragment_main() { dpdxFine_f92fb6(); } diff --git a/test/tint/builtins/gen/literal/dpdy/699a05.wgsl b/test/tint/builtins/gen/literal/dpdy/699a05.wgsl index 14025bc84d..d5202943bd 100644 --- a/test/tint/builtins/gen/literal/dpdy/699a05.wgsl +++ b/test/tint/builtins/gen/literal/dpdy/699a05.wgsl @@ -28,7 +28,7 @@ fn dpdy_699a05() { var res: vec4 = dpdy(vec4()); } -@stage(fragment) +@fragment fn fragment_main() { dpdy_699a05(); } diff --git a/test/tint/builtins/gen/literal/dpdy/699a05.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dpdy/699a05.wgsl.expected.wgsl index 9aa244c286..a300cd9c1a 100644 --- a/test/tint/builtins/gen/literal/dpdy/699a05.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dpdy/699a05.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn dpdy_699a05() { var res : vec4 = dpdy(vec4()); } -@stage(fragment) +@fragment fn fragment_main() { dpdy_699a05(); } diff --git a/test/tint/builtins/gen/literal/dpdy/7f8d84.wgsl b/test/tint/builtins/gen/literal/dpdy/7f8d84.wgsl index 4d2fb93ac1..85d7b6efa0 100644 --- a/test/tint/builtins/gen/literal/dpdy/7f8d84.wgsl +++ b/test/tint/builtins/gen/literal/dpdy/7f8d84.wgsl @@ -28,7 +28,7 @@ fn dpdy_7f8d84() { var res: f32 = dpdy(1.0); } -@stage(fragment) +@fragment fn fragment_main() { dpdy_7f8d84(); } diff --git a/test/tint/builtins/gen/literal/dpdy/7f8d84.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dpdy/7f8d84.wgsl.expected.wgsl index 732458e2a1..edd98aaf09 100644 --- a/test/tint/builtins/gen/literal/dpdy/7f8d84.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dpdy/7f8d84.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn dpdy_7f8d84() { var res : f32 = dpdy(1.0); } -@stage(fragment) +@fragment fn fragment_main() { dpdy_7f8d84(); } diff --git a/test/tint/builtins/gen/literal/dpdy/a8b56e.wgsl b/test/tint/builtins/gen/literal/dpdy/a8b56e.wgsl index f7a51b3d3b..5dab467783 100644 --- a/test/tint/builtins/gen/literal/dpdy/a8b56e.wgsl +++ b/test/tint/builtins/gen/literal/dpdy/a8b56e.wgsl @@ -28,7 +28,7 @@ fn dpdy_a8b56e() { var res: vec2 = dpdy(vec2()); } -@stage(fragment) +@fragment fn fragment_main() { dpdy_a8b56e(); } diff --git a/test/tint/builtins/gen/literal/dpdy/a8b56e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dpdy/a8b56e.wgsl.expected.wgsl index 3493de8b8e..0286f63125 100644 --- a/test/tint/builtins/gen/literal/dpdy/a8b56e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dpdy/a8b56e.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn dpdy_a8b56e() { var res : vec2 = dpdy(vec2()); } -@stage(fragment) +@fragment fn fragment_main() { dpdy_a8b56e(); } diff --git a/test/tint/builtins/gen/literal/dpdy/feb40f.wgsl b/test/tint/builtins/gen/literal/dpdy/feb40f.wgsl index ac9641c8c8..d722df2421 100644 --- a/test/tint/builtins/gen/literal/dpdy/feb40f.wgsl +++ b/test/tint/builtins/gen/literal/dpdy/feb40f.wgsl @@ -28,7 +28,7 @@ fn dpdy_feb40f() { var res: vec3 = dpdy(vec3()); } -@stage(fragment) +@fragment fn fragment_main() { dpdy_feb40f(); } diff --git a/test/tint/builtins/gen/literal/dpdy/feb40f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dpdy/feb40f.wgsl.expected.wgsl index bdcb51d6ee..9be2e1ec28 100644 --- a/test/tint/builtins/gen/literal/dpdy/feb40f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dpdy/feb40f.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn dpdy_feb40f() { var res : vec3 = dpdy(vec3()); } -@stage(fragment) +@fragment fn fragment_main() { dpdy_feb40f(); } diff --git a/test/tint/builtins/gen/literal/dpdyCoarse/3e1ab4.wgsl b/test/tint/builtins/gen/literal/dpdyCoarse/3e1ab4.wgsl index 7e36fd049f..75db504f43 100644 --- a/test/tint/builtins/gen/literal/dpdyCoarse/3e1ab4.wgsl +++ b/test/tint/builtins/gen/literal/dpdyCoarse/3e1ab4.wgsl @@ -28,7 +28,7 @@ fn dpdyCoarse_3e1ab4() { var res: vec2 = dpdyCoarse(vec2()); } -@stage(fragment) +@fragment fn fragment_main() { dpdyCoarse_3e1ab4(); } diff --git a/test/tint/builtins/gen/literal/dpdyCoarse/3e1ab4.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dpdyCoarse/3e1ab4.wgsl.expected.wgsl index 347ad7363e..8ce4a08900 100644 --- a/test/tint/builtins/gen/literal/dpdyCoarse/3e1ab4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dpdyCoarse/3e1ab4.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn dpdyCoarse_3e1ab4() { var res : vec2 = dpdyCoarse(vec2()); } -@stage(fragment) +@fragment fn fragment_main() { dpdyCoarse_3e1ab4(); } diff --git a/test/tint/builtins/gen/literal/dpdyCoarse/445d24.wgsl b/test/tint/builtins/gen/literal/dpdyCoarse/445d24.wgsl index 99ef18d45a..ce185c1cf9 100644 --- a/test/tint/builtins/gen/literal/dpdyCoarse/445d24.wgsl +++ b/test/tint/builtins/gen/literal/dpdyCoarse/445d24.wgsl @@ -28,7 +28,7 @@ fn dpdyCoarse_445d24() { var res: vec4 = dpdyCoarse(vec4()); } -@stage(fragment) +@fragment fn fragment_main() { dpdyCoarse_445d24(); } diff --git a/test/tint/builtins/gen/literal/dpdyCoarse/445d24.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dpdyCoarse/445d24.wgsl.expected.wgsl index db347c46d7..05ff718094 100644 --- a/test/tint/builtins/gen/literal/dpdyCoarse/445d24.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dpdyCoarse/445d24.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn dpdyCoarse_445d24() { var res : vec4 = dpdyCoarse(vec4()); } -@stage(fragment) +@fragment fn fragment_main() { dpdyCoarse_445d24(); } diff --git a/test/tint/builtins/gen/literal/dpdyCoarse/870a7e.wgsl b/test/tint/builtins/gen/literal/dpdyCoarse/870a7e.wgsl index f7cff8de7e..ade83d5791 100644 --- a/test/tint/builtins/gen/literal/dpdyCoarse/870a7e.wgsl +++ b/test/tint/builtins/gen/literal/dpdyCoarse/870a7e.wgsl @@ -28,7 +28,7 @@ fn dpdyCoarse_870a7e() { var res: f32 = dpdyCoarse(1.0); } -@stage(fragment) +@fragment fn fragment_main() { dpdyCoarse_870a7e(); } diff --git a/test/tint/builtins/gen/literal/dpdyCoarse/870a7e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dpdyCoarse/870a7e.wgsl.expected.wgsl index b3d75866db..23e06ae01e 100644 --- a/test/tint/builtins/gen/literal/dpdyCoarse/870a7e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dpdyCoarse/870a7e.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn dpdyCoarse_870a7e() { var res : f32 = dpdyCoarse(1.0); } -@stage(fragment) +@fragment fn fragment_main() { dpdyCoarse_870a7e(); } diff --git a/test/tint/builtins/gen/literal/dpdyCoarse/ae1873.wgsl b/test/tint/builtins/gen/literal/dpdyCoarse/ae1873.wgsl index f5d5fdb2ad..a6ea5681ed 100644 --- a/test/tint/builtins/gen/literal/dpdyCoarse/ae1873.wgsl +++ b/test/tint/builtins/gen/literal/dpdyCoarse/ae1873.wgsl @@ -28,7 +28,7 @@ fn dpdyCoarse_ae1873() { var res: vec3 = dpdyCoarse(vec3()); } -@stage(fragment) +@fragment fn fragment_main() { dpdyCoarse_ae1873(); } diff --git a/test/tint/builtins/gen/literal/dpdyCoarse/ae1873.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dpdyCoarse/ae1873.wgsl.expected.wgsl index c116a9e18d..d2e5abefe9 100644 --- a/test/tint/builtins/gen/literal/dpdyCoarse/ae1873.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dpdyCoarse/ae1873.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn dpdyCoarse_ae1873() { var res : vec3 = dpdyCoarse(vec3()); } -@stage(fragment) +@fragment fn fragment_main() { dpdyCoarse_ae1873(); } diff --git a/test/tint/builtins/gen/literal/dpdyFine/1fb7ab.wgsl b/test/tint/builtins/gen/literal/dpdyFine/1fb7ab.wgsl index ff40e48c32..1ee89284e8 100644 --- a/test/tint/builtins/gen/literal/dpdyFine/1fb7ab.wgsl +++ b/test/tint/builtins/gen/literal/dpdyFine/1fb7ab.wgsl @@ -28,7 +28,7 @@ fn dpdyFine_1fb7ab() { var res: vec3 = dpdyFine(vec3()); } -@stage(fragment) +@fragment fn fragment_main() { dpdyFine_1fb7ab(); } diff --git a/test/tint/builtins/gen/literal/dpdyFine/1fb7ab.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dpdyFine/1fb7ab.wgsl.expected.wgsl index 96fd518203..c7ea17a73e 100644 --- a/test/tint/builtins/gen/literal/dpdyFine/1fb7ab.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dpdyFine/1fb7ab.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn dpdyFine_1fb7ab() { var res : vec3 = dpdyFine(vec3()); } -@stage(fragment) +@fragment fn fragment_main() { dpdyFine_1fb7ab(); } diff --git a/test/tint/builtins/gen/literal/dpdyFine/6eb673.wgsl b/test/tint/builtins/gen/literal/dpdyFine/6eb673.wgsl index 67acf71c31..3517daad6d 100644 --- a/test/tint/builtins/gen/literal/dpdyFine/6eb673.wgsl +++ b/test/tint/builtins/gen/literal/dpdyFine/6eb673.wgsl @@ -28,7 +28,7 @@ fn dpdyFine_6eb673() { var res: f32 = dpdyFine(1.0); } -@stage(fragment) +@fragment fn fragment_main() { dpdyFine_6eb673(); } diff --git a/test/tint/builtins/gen/literal/dpdyFine/6eb673.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dpdyFine/6eb673.wgsl.expected.wgsl index 8fbc820a39..7857cc1476 100644 --- a/test/tint/builtins/gen/literal/dpdyFine/6eb673.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dpdyFine/6eb673.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn dpdyFine_6eb673() { var res : f32 = dpdyFine(1.0); } -@stage(fragment) +@fragment fn fragment_main() { dpdyFine_6eb673(); } diff --git a/test/tint/builtins/gen/literal/dpdyFine/d0a648.wgsl b/test/tint/builtins/gen/literal/dpdyFine/d0a648.wgsl index 9b0a079a01..004ce70079 100644 --- a/test/tint/builtins/gen/literal/dpdyFine/d0a648.wgsl +++ b/test/tint/builtins/gen/literal/dpdyFine/d0a648.wgsl @@ -28,7 +28,7 @@ fn dpdyFine_d0a648() { var res: vec4 = dpdyFine(vec4()); } -@stage(fragment) +@fragment fn fragment_main() { dpdyFine_d0a648(); } diff --git a/test/tint/builtins/gen/literal/dpdyFine/d0a648.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dpdyFine/d0a648.wgsl.expected.wgsl index 5d4fc7da4a..f9d2a43866 100644 --- a/test/tint/builtins/gen/literal/dpdyFine/d0a648.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dpdyFine/d0a648.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn dpdyFine_d0a648() { var res : vec4 = dpdyFine(vec4()); } -@stage(fragment) +@fragment fn fragment_main() { dpdyFine_d0a648(); } diff --git a/test/tint/builtins/gen/literal/dpdyFine/df33aa.wgsl b/test/tint/builtins/gen/literal/dpdyFine/df33aa.wgsl index 1686e0d066..dcadf60067 100644 --- a/test/tint/builtins/gen/literal/dpdyFine/df33aa.wgsl +++ b/test/tint/builtins/gen/literal/dpdyFine/df33aa.wgsl @@ -28,7 +28,7 @@ fn dpdyFine_df33aa() { var res: vec2 = dpdyFine(vec2()); } -@stage(fragment) +@fragment fn fragment_main() { dpdyFine_df33aa(); } diff --git a/test/tint/builtins/gen/literal/dpdyFine/df33aa.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/dpdyFine/df33aa.wgsl.expected.wgsl index 876948a28b..21937517e4 100644 --- a/test/tint/builtins/gen/literal/dpdyFine/df33aa.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/dpdyFine/df33aa.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn dpdyFine_df33aa() { var res : vec2 = dpdyFine(vec2()); } -@stage(fragment) +@fragment fn fragment_main() { dpdyFine_df33aa(); } diff --git a/test/tint/builtins/gen/literal/exp/0f70eb.wgsl b/test/tint/builtins/gen/literal/exp/0f70eb.wgsl index 7778d3fa82..9c82f47df1 100644 --- a/test/tint/builtins/gen/literal/exp/0f70eb.wgsl +++ b/test/tint/builtins/gen/literal/exp/0f70eb.wgsl @@ -28,18 +28,18 @@ fn exp_0f70eb() { var res: vec4 = exp(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp_0f70eb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp_0f70eb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp_0f70eb(); } diff --git a/test/tint/builtins/gen/literal/exp/0f70eb.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/exp/0f70eb.wgsl.expected.wgsl index bdcd32be2b..5bc410e3b4 100644 --- a/test/tint/builtins/gen/literal/exp/0f70eb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/exp/0f70eb.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn exp_0f70eb() { var res : vec4 = exp(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp_0f70eb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp_0f70eb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp_0f70eb(); } diff --git a/test/tint/builtins/gen/literal/exp/1951e7.wgsl b/test/tint/builtins/gen/literal/exp/1951e7.wgsl index 3f525c0451..00f36ed1e5 100644 --- a/test/tint/builtins/gen/literal/exp/1951e7.wgsl +++ b/test/tint/builtins/gen/literal/exp/1951e7.wgsl @@ -28,18 +28,18 @@ fn exp_1951e7() { var res: vec2 = exp(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp_1951e7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp_1951e7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp_1951e7(); } diff --git a/test/tint/builtins/gen/literal/exp/1951e7.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/exp/1951e7.wgsl.expected.wgsl index f3dd502f6a..6fedb81372 100644 --- a/test/tint/builtins/gen/literal/exp/1951e7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/exp/1951e7.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn exp_1951e7() { var res : vec2 = exp(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp_1951e7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp_1951e7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp_1951e7(); } diff --git a/test/tint/builtins/gen/literal/exp/771fd2.wgsl b/test/tint/builtins/gen/literal/exp/771fd2.wgsl index f5cb80262f..2a12ef67c1 100644 --- a/test/tint/builtins/gen/literal/exp/771fd2.wgsl +++ b/test/tint/builtins/gen/literal/exp/771fd2.wgsl @@ -28,18 +28,18 @@ fn exp_771fd2() { var res: f32 = exp(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp_771fd2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp_771fd2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp_771fd2(); } diff --git a/test/tint/builtins/gen/literal/exp/771fd2.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/exp/771fd2.wgsl.expected.wgsl index 31bfd18e2a..3c86827f8e 100644 --- a/test/tint/builtins/gen/literal/exp/771fd2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/exp/771fd2.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn exp_771fd2() { var res : f32 = exp(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp_771fd2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp_771fd2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp_771fd2(); } diff --git a/test/tint/builtins/gen/literal/exp/d98450.wgsl b/test/tint/builtins/gen/literal/exp/d98450.wgsl index de9f54514f..7e10b9257e 100644 --- a/test/tint/builtins/gen/literal/exp/d98450.wgsl +++ b/test/tint/builtins/gen/literal/exp/d98450.wgsl @@ -28,18 +28,18 @@ fn exp_d98450() { var res: vec3 = exp(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp_d98450(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp_d98450(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp_d98450(); } diff --git a/test/tint/builtins/gen/literal/exp/d98450.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/exp/d98450.wgsl.expected.wgsl index 168c3c2805..294c744d6d 100644 --- a/test/tint/builtins/gen/literal/exp/d98450.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/exp/d98450.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn exp_d98450() { var res : vec3 = exp(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp_d98450(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp_d98450(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp_d98450(); } diff --git a/test/tint/builtins/gen/literal/exp2/1f8680.wgsl b/test/tint/builtins/gen/literal/exp2/1f8680.wgsl index bd6cf52dc4..d2205be7c5 100644 --- a/test/tint/builtins/gen/literal/exp2/1f8680.wgsl +++ b/test/tint/builtins/gen/literal/exp2/1f8680.wgsl @@ -28,18 +28,18 @@ fn exp2_1f8680() { var res: vec3 = exp2(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp2_1f8680(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp2_1f8680(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp2_1f8680(); } diff --git a/test/tint/builtins/gen/literal/exp2/1f8680.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/exp2/1f8680.wgsl.expected.wgsl index a4cba82f82..a9c57178ef 100644 --- a/test/tint/builtins/gen/literal/exp2/1f8680.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/exp2/1f8680.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn exp2_1f8680() { var res : vec3 = exp2(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp2_1f8680(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp2_1f8680(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp2_1f8680(); } diff --git a/test/tint/builtins/gen/literal/exp2/a9d0a7.wgsl b/test/tint/builtins/gen/literal/exp2/a9d0a7.wgsl index 6afd6dff42..0bc44370c1 100644 --- a/test/tint/builtins/gen/literal/exp2/a9d0a7.wgsl +++ b/test/tint/builtins/gen/literal/exp2/a9d0a7.wgsl @@ -28,18 +28,18 @@ fn exp2_a9d0a7() { var res: vec4 = exp2(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp2_a9d0a7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp2_a9d0a7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp2_a9d0a7(); } diff --git a/test/tint/builtins/gen/literal/exp2/a9d0a7.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/exp2/a9d0a7.wgsl.expected.wgsl index 6a9160b5d0..6b5cf9271e 100644 --- a/test/tint/builtins/gen/literal/exp2/a9d0a7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/exp2/a9d0a7.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn exp2_a9d0a7() { var res : vec4 = exp2(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp2_a9d0a7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp2_a9d0a7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp2_a9d0a7(); } diff --git a/test/tint/builtins/gen/literal/exp2/d6777c.wgsl b/test/tint/builtins/gen/literal/exp2/d6777c.wgsl index f11932f756..cf59359764 100644 --- a/test/tint/builtins/gen/literal/exp2/d6777c.wgsl +++ b/test/tint/builtins/gen/literal/exp2/d6777c.wgsl @@ -28,18 +28,18 @@ fn exp2_d6777c() { var res: vec2 = exp2(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp2_d6777c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp2_d6777c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp2_d6777c(); } diff --git a/test/tint/builtins/gen/literal/exp2/d6777c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/exp2/d6777c.wgsl.expected.wgsl index 7c84e158e8..03641946c3 100644 --- a/test/tint/builtins/gen/literal/exp2/d6777c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/exp2/d6777c.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn exp2_d6777c() { var res : vec2 = exp2(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp2_d6777c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp2_d6777c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp2_d6777c(); } diff --git a/test/tint/builtins/gen/literal/exp2/dea523.wgsl b/test/tint/builtins/gen/literal/exp2/dea523.wgsl index 2930f5026e..ee1112cee9 100644 --- a/test/tint/builtins/gen/literal/exp2/dea523.wgsl +++ b/test/tint/builtins/gen/literal/exp2/dea523.wgsl @@ -28,18 +28,18 @@ fn exp2_dea523() { var res: f32 = exp2(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp2_dea523(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp2_dea523(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp2_dea523(); } diff --git a/test/tint/builtins/gen/literal/exp2/dea523.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/exp2/dea523.wgsl.expected.wgsl index 92ea06dc38..205a4b513f 100644 --- a/test/tint/builtins/gen/literal/exp2/dea523.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/exp2/dea523.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn exp2_dea523() { var res : f32 = exp2(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp2_dea523(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp2_dea523(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp2_dea523(); } diff --git a/test/tint/builtins/gen/literal/extractBits/12b197.wgsl b/test/tint/builtins/gen/literal/extractBits/12b197.wgsl index d67e896071..3a8f4025a6 100644 --- a/test/tint/builtins/gen/literal/extractBits/12b197.wgsl +++ b/test/tint/builtins/gen/literal/extractBits/12b197.wgsl @@ -28,18 +28,18 @@ fn extractBits_12b197() { var res: vec3 = extractBits(vec3(), 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_12b197(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_12b197(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_12b197(); } diff --git a/test/tint/builtins/gen/literal/extractBits/12b197.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/extractBits/12b197.wgsl.expected.wgsl index 26d197692e..af852d47dc 100644 --- a/test/tint/builtins/gen/literal/extractBits/12b197.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/extractBits/12b197.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn extractBits_12b197() { var res : vec3 = extractBits(vec3(), 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_12b197(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_12b197(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_12b197(); } diff --git a/test/tint/builtins/gen/literal/extractBits/249874.wgsl b/test/tint/builtins/gen/literal/extractBits/249874.wgsl index dc06fb70db..785e0b84ea 100644 --- a/test/tint/builtins/gen/literal/extractBits/249874.wgsl +++ b/test/tint/builtins/gen/literal/extractBits/249874.wgsl @@ -28,18 +28,18 @@ fn extractBits_249874() { var res: i32 = extractBits(1, 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_249874(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_249874(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_249874(); } diff --git a/test/tint/builtins/gen/literal/extractBits/249874.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/extractBits/249874.wgsl.expected.wgsl index 6c805149b3..7abbd3635a 100644 --- a/test/tint/builtins/gen/literal/extractBits/249874.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/extractBits/249874.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn extractBits_249874() { var res : i32 = extractBits(1, 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_249874(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_249874(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_249874(); } diff --git a/test/tint/builtins/gen/literal/extractBits/631377.wgsl b/test/tint/builtins/gen/literal/extractBits/631377.wgsl index ca0f97f413..155472eaa7 100644 --- a/test/tint/builtins/gen/literal/extractBits/631377.wgsl +++ b/test/tint/builtins/gen/literal/extractBits/631377.wgsl @@ -28,18 +28,18 @@ fn extractBits_631377() { var res: vec4 = extractBits(vec4(), 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_631377(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_631377(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_631377(); } diff --git a/test/tint/builtins/gen/literal/extractBits/631377.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/extractBits/631377.wgsl.expected.wgsl index dca168242c..1d78b802bd 100644 --- a/test/tint/builtins/gen/literal/extractBits/631377.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/extractBits/631377.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn extractBits_631377() { var res : vec4 = extractBits(vec4(), 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_631377(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_631377(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_631377(); } diff --git a/test/tint/builtins/gen/literal/extractBits/a99a8d.wgsl b/test/tint/builtins/gen/literal/extractBits/a99a8d.wgsl index 2e8fb05556..3f9055cd8f 100644 --- a/test/tint/builtins/gen/literal/extractBits/a99a8d.wgsl +++ b/test/tint/builtins/gen/literal/extractBits/a99a8d.wgsl @@ -28,18 +28,18 @@ fn extractBits_a99a8d() { var res: vec2 = extractBits(vec2(), 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_a99a8d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_a99a8d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_a99a8d(); } diff --git a/test/tint/builtins/gen/literal/extractBits/a99a8d.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/extractBits/a99a8d.wgsl.expected.wgsl index 4f6879db08..e73e25b907 100644 --- a/test/tint/builtins/gen/literal/extractBits/a99a8d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/extractBits/a99a8d.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn extractBits_a99a8d() { var res : vec2 = extractBits(vec2(), 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_a99a8d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_a99a8d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_a99a8d(); } diff --git a/test/tint/builtins/gen/literal/extractBits/ce81f8.wgsl b/test/tint/builtins/gen/literal/extractBits/ce81f8.wgsl index c99a7c5421..89e07c95a2 100644 --- a/test/tint/builtins/gen/literal/extractBits/ce81f8.wgsl +++ b/test/tint/builtins/gen/literal/extractBits/ce81f8.wgsl @@ -28,18 +28,18 @@ fn extractBits_ce81f8() { var res: u32 = extractBits(1u, 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_ce81f8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_ce81f8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_ce81f8(); } diff --git a/test/tint/builtins/gen/literal/extractBits/ce81f8.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/extractBits/ce81f8.wgsl.expected.wgsl index 646fa964fc..69137f286a 100644 --- a/test/tint/builtins/gen/literal/extractBits/ce81f8.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/extractBits/ce81f8.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn extractBits_ce81f8() { var res : u32 = extractBits(1u, 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_ce81f8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_ce81f8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_ce81f8(); } diff --git a/test/tint/builtins/gen/literal/extractBits/e04f5d.wgsl b/test/tint/builtins/gen/literal/extractBits/e04f5d.wgsl index 858610192d..3ce524e966 100644 --- a/test/tint/builtins/gen/literal/extractBits/e04f5d.wgsl +++ b/test/tint/builtins/gen/literal/extractBits/e04f5d.wgsl @@ -28,18 +28,18 @@ fn extractBits_e04f5d() { var res: vec3 = extractBits(vec3(), 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_e04f5d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_e04f5d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_e04f5d(); } diff --git a/test/tint/builtins/gen/literal/extractBits/e04f5d.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/extractBits/e04f5d.wgsl.expected.wgsl index 49ebb9c89f..1441d070df 100644 --- a/test/tint/builtins/gen/literal/extractBits/e04f5d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/extractBits/e04f5d.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn extractBits_e04f5d() { var res : vec3 = extractBits(vec3(), 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_e04f5d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_e04f5d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_e04f5d(); } diff --git a/test/tint/builtins/gen/literal/extractBits/f28f69.wgsl b/test/tint/builtins/gen/literal/extractBits/f28f69.wgsl index 9a358de48b..a77cf8830c 100644 --- a/test/tint/builtins/gen/literal/extractBits/f28f69.wgsl +++ b/test/tint/builtins/gen/literal/extractBits/f28f69.wgsl @@ -28,18 +28,18 @@ fn extractBits_f28f69() { var res: vec2 = extractBits(vec2(), 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_f28f69(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_f28f69(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_f28f69(); } diff --git a/test/tint/builtins/gen/literal/extractBits/f28f69.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/extractBits/f28f69.wgsl.expected.wgsl index ad883f5417..534ff14578 100644 --- a/test/tint/builtins/gen/literal/extractBits/f28f69.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/extractBits/f28f69.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn extractBits_f28f69() { var res : vec2 = extractBits(vec2(), 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_f28f69(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_f28f69(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_f28f69(); } diff --git a/test/tint/builtins/gen/literal/extractBits/fb850f.wgsl b/test/tint/builtins/gen/literal/extractBits/fb850f.wgsl index aeb2fd7a23..99b1702614 100644 --- a/test/tint/builtins/gen/literal/extractBits/fb850f.wgsl +++ b/test/tint/builtins/gen/literal/extractBits/fb850f.wgsl @@ -28,18 +28,18 @@ fn extractBits_fb850f() { var res: vec4 = extractBits(vec4(), 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_fb850f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_fb850f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_fb850f(); } diff --git a/test/tint/builtins/gen/literal/extractBits/fb850f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/extractBits/fb850f.wgsl.expected.wgsl index 2e3e8d125d..200817caa9 100644 --- a/test/tint/builtins/gen/literal/extractBits/fb850f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/extractBits/fb850f.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn extractBits_fb850f() { var res : vec4 = extractBits(vec4(), 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_fb850f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_fb850f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_fb850f(); } diff --git a/test/tint/builtins/gen/literal/faceForward/5afbd5.wgsl b/test/tint/builtins/gen/literal/faceForward/5afbd5.wgsl index 99f293a004..d69f29e1bf 100644 --- a/test/tint/builtins/gen/literal/faceForward/5afbd5.wgsl +++ b/test/tint/builtins/gen/literal/faceForward/5afbd5.wgsl @@ -28,18 +28,18 @@ fn faceForward_5afbd5() { var res: vec3 = faceForward(vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { faceForward_5afbd5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { faceForward_5afbd5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { faceForward_5afbd5(); } diff --git a/test/tint/builtins/gen/literal/faceForward/5afbd5.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/faceForward/5afbd5.wgsl.expected.wgsl index 65e8800732..735e6b94e9 100644 --- a/test/tint/builtins/gen/literal/faceForward/5afbd5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/faceForward/5afbd5.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn faceForward_5afbd5() { var res : vec3 = faceForward(vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { faceForward_5afbd5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { faceForward_5afbd5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { faceForward_5afbd5(); } diff --git a/test/tint/builtins/gen/literal/faceForward/b316e5.wgsl b/test/tint/builtins/gen/literal/faceForward/b316e5.wgsl index 4782cf646f..6a56e12af8 100644 --- a/test/tint/builtins/gen/literal/faceForward/b316e5.wgsl +++ b/test/tint/builtins/gen/literal/faceForward/b316e5.wgsl @@ -28,18 +28,18 @@ fn faceForward_b316e5() { var res: vec4 = faceForward(vec4(), vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { faceForward_b316e5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { faceForward_b316e5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { faceForward_b316e5(); } diff --git a/test/tint/builtins/gen/literal/faceForward/b316e5.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/faceForward/b316e5.wgsl.expected.wgsl index e3cc002507..3288e97977 100644 --- a/test/tint/builtins/gen/literal/faceForward/b316e5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/faceForward/b316e5.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn faceForward_b316e5() { var res : vec4 = faceForward(vec4(), vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { faceForward_b316e5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { faceForward_b316e5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { faceForward_b316e5(); } diff --git a/test/tint/builtins/gen/literal/faceForward/e6908b.wgsl b/test/tint/builtins/gen/literal/faceForward/e6908b.wgsl index ee829ed1ef..8052997971 100644 --- a/test/tint/builtins/gen/literal/faceForward/e6908b.wgsl +++ b/test/tint/builtins/gen/literal/faceForward/e6908b.wgsl @@ -28,18 +28,18 @@ fn faceForward_e6908b() { var res: vec2 = faceForward(vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { faceForward_e6908b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { faceForward_e6908b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { faceForward_e6908b(); } diff --git a/test/tint/builtins/gen/literal/faceForward/e6908b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/faceForward/e6908b.wgsl.expected.wgsl index 96c2c876de..0fb58779c1 100644 --- a/test/tint/builtins/gen/literal/faceForward/e6908b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/faceForward/e6908b.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn faceForward_e6908b() { var res : vec2 = faceForward(vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { faceForward_e6908b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { faceForward_e6908b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { faceForward_e6908b(); } diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/000ff3.wgsl b/test/tint/builtins/gen/literal/firstLeadingBit/000ff3.wgsl index faa49e4556..5d12d31bec 100644 --- a/test/tint/builtins/gen/literal/firstLeadingBit/000ff3.wgsl +++ b/test/tint/builtins/gen/literal/firstLeadingBit/000ff3.wgsl @@ -28,18 +28,18 @@ fn firstLeadingBit_000ff3() { var res: vec4 = firstLeadingBit(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_000ff3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_000ff3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_000ff3(); } diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/000ff3.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/firstLeadingBit/000ff3.wgsl.expected.wgsl index bf0529c5d0..4a71621f6c 100644 --- a/test/tint/builtins/gen/literal/firstLeadingBit/000ff3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/firstLeadingBit/000ff3.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn firstLeadingBit_000ff3() { var res : vec4 = firstLeadingBit(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_000ff3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_000ff3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_000ff3(); } diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/35053e.wgsl b/test/tint/builtins/gen/literal/firstLeadingBit/35053e.wgsl index 5922e0d56b..83aff3fdc8 100644 --- a/test/tint/builtins/gen/literal/firstLeadingBit/35053e.wgsl +++ b/test/tint/builtins/gen/literal/firstLeadingBit/35053e.wgsl @@ -28,18 +28,18 @@ fn firstLeadingBit_35053e() { var res: vec3 = firstLeadingBit(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_35053e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_35053e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_35053e(); } diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/35053e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/firstLeadingBit/35053e.wgsl.expected.wgsl index cbf0a6b542..3656dfeabe 100644 --- a/test/tint/builtins/gen/literal/firstLeadingBit/35053e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/firstLeadingBit/35053e.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn firstLeadingBit_35053e() { var res : vec3 = firstLeadingBit(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_35053e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_35053e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_35053e(); } diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/3fd7d0.wgsl b/test/tint/builtins/gen/literal/firstLeadingBit/3fd7d0.wgsl index e799c27371..48687ed788 100644 --- a/test/tint/builtins/gen/literal/firstLeadingBit/3fd7d0.wgsl +++ b/test/tint/builtins/gen/literal/firstLeadingBit/3fd7d0.wgsl @@ -28,18 +28,18 @@ fn firstLeadingBit_3fd7d0() { var res: vec3 = firstLeadingBit(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_3fd7d0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_3fd7d0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_3fd7d0(); } diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/3fd7d0.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/firstLeadingBit/3fd7d0.wgsl.expected.wgsl index 4537a4a008..b7e79857cf 100644 --- a/test/tint/builtins/gen/literal/firstLeadingBit/3fd7d0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/firstLeadingBit/3fd7d0.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn firstLeadingBit_3fd7d0() { var res : vec3 = firstLeadingBit(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_3fd7d0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_3fd7d0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_3fd7d0(); } diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/57a1a3.wgsl b/test/tint/builtins/gen/literal/firstLeadingBit/57a1a3.wgsl index c79d1dd874..c44d2faef0 100644 --- a/test/tint/builtins/gen/literal/firstLeadingBit/57a1a3.wgsl +++ b/test/tint/builtins/gen/literal/firstLeadingBit/57a1a3.wgsl @@ -28,18 +28,18 @@ fn firstLeadingBit_57a1a3() { var res: i32 = firstLeadingBit(1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_57a1a3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_57a1a3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_57a1a3(); } diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/57a1a3.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/firstLeadingBit/57a1a3.wgsl.expected.wgsl index ff32238d1b..e26678f779 100644 --- a/test/tint/builtins/gen/literal/firstLeadingBit/57a1a3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/firstLeadingBit/57a1a3.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn firstLeadingBit_57a1a3() { var res : i32 = firstLeadingBit(1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_57a1a3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_57a1a3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_57a1a3(); } diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/6fe804.wgsl b/test/tint/builtins/gen/literal/firstLeadingBit/6fe804.wgsl index 87838a75de..e5ffa789c1 100644 --- a/test/tint/builtins/gen/literal/firstLeadingBit/6fe804.wgsl +++ b/test/tint/builtins/gen/literal/firstLeadingBit/6fe804.wgsl @@ -28,18 +28,18 @@ fn firstLeadingBit_6fe804() { var res: vec2 = firstLeadingBit(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_6fe804(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_6fe804(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_6fe804(); } diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/6fe804.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/firstLeadingBit/6fe804.wgsl.expected.wgsl index 8eefa88ebc..9a507e8825 100644 --- a/test/tint/builtins/gen/literal/firstLeadingBit/6fe804.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/firstLeadingBit/6fe804.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn firstLeadingBit_6fe804() { var res : vec2 = firstLeadingBit(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_6fe804(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_6fe804(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_6fe804(); } diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/a622c2.wgsl b/test/tint/builtins/gen/literal/firstLeadingBit/a622c2.wgsl index 64b2c7b247..cd7ea4de82 100644 --- a/test/tint/builtins/gen/literal/firstLeadingBit/a622c2.wgsl +++ b/test/tint/builtins/gen/literal/firstLeadingBit/a622c2.wgsl @@ -28,18 +28,18 @@ fn firstLeadingBit_a622c2() { var res: vec2 = firstLeadingBit(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_a622c2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_a622c2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_a622c2(); } diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/a622c2.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/firstLeadingBit/a622c2.wgsl.expected.wgsl index e7fb9d12b4..510239e664 100644 --- a/test/tint/builtins/gen/literal/firstLeadingBit/a622c2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/firstLeadingBit/a622c2.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn firstLeadingBit_a622c2() { var res : vec2 = firstLeadingBit(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_a622c2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_a622c2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_a622c2(); } diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/c1f940.wgsl b/test/tint/builtins/gen/literal/firstLeadingBit/c1f940.wgsl index f09a593d1b..aecb9dfa1e 100644 --- a/test/tint/builtins/gen/literal/firstLeadingBit/c1f940.wgsl +++ b/test/tint/builtins/gen/literal/firstLeadingBit/c1f940.wgsl @@ -28,18 +28,18 @@ fn firstLeadingBit_c1f940() { var res: vec4 = firstLeadingBit(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_c1f940(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_c1f940(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_c1f940(); } diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/c1f940.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/firstLeadingBit/c1f940.wgsl.expected.wgsl index b79dbd7973..d9bc46cef7 100644 --- a/test/tint/builtins/gen/literal/firstLeadingBit/c1f940.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/firstLeadingBit/c1f940.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn firstLeadingBit_c1f940() { var res : vec4 = firstLeadingBit(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_c1f940(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_c1f940(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_c1f940(); } diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/f0779d.wgsl b/test/tint/builtins/gen/literal/firstLeadingBit/f0779d.wgsl index a1a5a3df41..ff5105169f 100644 --- a/test/tint/builtins/gen/literal/firstLeadingBit/f0779d.wgsl +++ b/test/tint/builtins/gen/literal/firstLeadingBit/f0779d.wgsl @@ -28,18 +28,18 @@ fn firstLeadingBit_f0779d() { var res: u32 = firstLeadingBit(1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_f0779d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_f0779d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_f0779d(); } diff --git a/test/tint/builtins/gen/literal/firstLeadingBit/f0779d.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/firstLeadingBit/f0779d.wgsl.expected.wgsl index 8f6430c3cb..5a3d1054f6 100644 --- a/test/tint/builtins/gen/literal/firstLeadingBit/f0779d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/firstLeadingBit/f0779d.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn firstLeadingBit_f0779d() { var res : u32 = firstLeadingBit(1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_f0779d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_f0779d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_f0779d(); } diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/110f2c.wgsl b/test/tint/builtins/gen/literal/firstTrailingBit/110f2c.wgsl index 818e922f94..e241c813b2 100644 --- a/test/tint/builtins/gen/literal/firstTrailingBit/110f2c.wgsl +++ b/test/tint/builtins/gen/literal/firstTrailingBit/110f2c.wgsl @@ -28,18 +28,18 @@ fn firstTrailingBit_110f2c() { var res: vec4 = firstTrailingBit(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_110f2c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_110f2c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_110f2c(); } diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/110f2c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/firstTrailingBit/110f2c.wgsl.expected.wgsl index d1387793d6..1ae02d1d01 100644 --- a/test/tint/builtins/gen/literal/firstTrailingBit/110f2c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/firstTrailingBit/110f2c.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn firstTrailingBit_110f2c() { var res : vec4 = firstTrailingBit(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_110f2c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_110f2c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_110f2c(); } diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/3a2acc.wgsl b/test/tint/builtins/gen/literal/firstTrailingBit/3a2acc.wgsl index 3842f4fe2c..a4356e2edb 100644 --- a/test/tint/builtins/gen/literal/firstTrailingBit/3a2acc.wgsl +++ b/test/tint/builtins/gen/literal/firstTrailingBit/3a2acc.wgsl @@ -28,18 +28,18 @@ fn firstTrailingBit_3a2acc() { var res: i32 = firstTrailingBit(1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_3a2acc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_3a2acc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_3a2acc(); } diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/3a2acc.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/firstTrailingBit/3a2acc.wgsl.expected.wgsl index 7d59d68246..e6b7e95dd7 100644 --- a/test/tint/builtins/gen/literal/firstTrailingBit/3a2acc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/firstTrailingBit/3a2acc.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn firstTrailingBit_3a2acc() { var res : i32 = firstTrailingBit(1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_3a2acc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_3a2acc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_3a2acc(); } diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/45eb10.wgsl b/test/tint/builtins/gen/literal/firstTrailingBit/45eb10.wgsl index 396593e151..a20ce53886 100644 --- a/test/tint/builtins/gen/literal/firstTrailingBit/45eb10.wgsl +++ b/test/tint/builtins/gen/literal/firstTrailingBit/45eb10.wgsl @@ -28,18 +28,18 @@ fn firstTrailingBit_45eb10() { var res: vec2 = firstTrailingBit(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_45eb10(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_45eb10(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_45eb10(); } diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/45eb10.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/firstTrailingBit/45eb10.wgsl.expected.wgsl index fc7dd14cfb..cbe3457835 100644 --- a/test/tint/builtins/gen/literal/firstTrailingBit/45eb10.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/firstTrailingBit/45eb10.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn firstTrailingBit_45eb10() { var res : vec2 = firstTrailingBit(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_45eb10(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_45eb10(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_45eb10(); } diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/47d475.wgsl b/test/tint/builtins/gen/literal/firstTrailingBit/47d475.wgsl index d0268afb5a..b9bb17b54f 100644 --- a/test/tint/builtins/gen/literal/firstTrailingBit/47d475.wgsl +++ b/test/tint/builtins/gen/literal/firstTrailingBit/47d475.wgsl @@ -28,18 +28,18 @@ fn firstTrailingBit_47d475() { var res: u32 = firstTrailingBit(1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_47d475(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_47d475(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_47d475(); } diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/47d475.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/firstTrailingBit/47d475.wgsl.expected.wgsl index 8373e036fd..1673bcd114 100644 --- a/test/tint/builtins/gen/literal/firstTrailingBit/47d475.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/firstTrailingBit/47d475.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn firstTrailingBit_47d475() { var res : u32 = firstTrailingBit(1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_47d475(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_47d475(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_47d475(); } diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/50c072.wgsl b/test/tint/builtins/gen/literal/firstTrailingBit/50c072.wgsl index fa986e0326..6004640798 100644 --- a/test/tint/builtins/gen/literal/firstTrailingBit/50c072.wgsl +++ b/test/tint/builtins/gen/literal/firstTrailingBit/50c072.wgsl @@ -28,18 +28,18 @@ fn firstTrailingBit_50c072() { var res: vec2 = firstTrailingBit(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_50c072(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_50c072(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_50c072(); } diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/50c072.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/firstTrailingBit/50c072.wgsl.expected.wgsl index 550bd94501..747c95c4c4 100644 --- a/test/tint/builtins/gen/literal/firstTrailingBit/50c072.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/firstTrailingBit/50c072.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn firstTrailingBit_50c072() { var res : vec2 = firstTrailingBit(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_50c072(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_50c072(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_50c072(); } diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/7496d6.wgsl b/test/tint/builtins/gen/literal/firstTrailingBit/7496d6.wgsl index c1dff0a563..9d41559d03 100644 --- a/test/tint/builtins/gen/literal/firstTrailingBit/7496d6.wgsl +++ b/test/tint/builtins/gen/literal/firstTrailingBit/7496d6.wgsl @@ -28,18 +28,18 @@ fn firstTrailingBit_7496d6() { var res: vec3 = firstTrailingBit(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_7496d6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_7496d6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_7496d6(); } diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/7496d6.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/firstTrailingBit/7496d6.wgsl.expected.wgsl index 85120e3875..6bd04ddcae 100644 --- a/test/tint/builtins/gen/literal/firstTrailingBit/7496d6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/firstTrailingBit/7496d6.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn firstTrailingBit_7496d6() { var res : vec3 = firstTrailingBit(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_7496d6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_7496d6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_7496d6(); } diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/86551b.wgsl b/test/tint/builtins/gen/literal/firstTrailingBit/86551b.wgsl index 97e389e94b..ddbbf70382 100644 --- a/test/tint/builtins/gen/literal/firstTrailingBit/86551b.wgsl +++ b/test/tint/builtins/gen/literal/firstTrailingBit/86551b.wgsl @@ -28,18 +28,18 @@ fn firstTrailingBit_86551b() { var res: vec4 = firstTrailingBit(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_86551b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_86551b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_86551b(); } diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/86551b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/firstTrailingBit/86551b.wgsl.expected.wgsl index efa728bc97..273c4cdc7d 100644 --- a/test/tint/builtins/gen/literal/firstTrailingBit/86551b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/firstTrailingBit/86551b.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn firstTrailingBit_86551b() { var res : vec4 = firstTrailingBit(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_86551b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_86551b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_86551b(); } diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/cb51ce.wgsl b/test/tint/builtins/gen/literal/firstTrailingBit/cb51ce.wgsl index 895e9bbb7c..a476078479 100644 --- a/test/tint/builtins/gen/literal/firstTrailingBit/cb51ce.wgsl +++ b/test/tint/builtins/gen/literal/firstTrailingBit/cb51ce.wgsl @@ -28,18 +28,18 @@ fn firstTrailingBit_cb51ce() { var res: vec3 = firstTrailingBit(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_cb51ce(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_cb51ce(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_cb51ce(); } diff --git a/test/tint/builtins/gen/literal/firstTrailingBit/cb51ce.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/firstTrailingBit/cb51ce.wgsl.expected.wgsl index cee5c391b7..e8f2f99b4c 100644 --- a/test/tint/builtins/gen/literal/firstTrailingBit/cb51ce.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/firstTrailingBit/cb51ce.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn firstTrailingBit_cb51ce() { var res : vec3 = firstTrailingBit(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_cb51ce(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_cb51ce(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_cb51ce(); } diff --git a/test/tint/builtins/gen/literal/floor/3bccc4.wgsl b/test/tint/builtins/gen/literal/floor/3bccc4.wgsl index 117cb5c3fc..fee3492d2c 100644 --- a/test/tint/builtins/gen/literal/floor/3bccc4.wgsl +++ b/test/tint/builtins/gen/literal/floor/3bccc4.wgsl @@ -28,18 +28,18 @@ fn floor_3bccc4() { var res: vec4 = floor(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { floor_3bccc4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { floor_3bccc4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { floor_3bccc4(); } diff --git a/test/tint/builtins/gen/literal/floor/3bccc4.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/floor/3bccc4.wgsl.expected.wgsl index 878e104f59..9e31c12b29 100644 --- a/test/tint/builtins/gen/literal/floor/3bccc4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/floor/3bccc4.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn floor_3bccc4() { var res : vec4 = floor(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { floor_3bccc4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { floor_3bccc4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { floor_3bccc4(); } diff --git a/test/tint/builtins/gen/literal/floor/5fc9ac.wgsl b/test/tint/builtins/gen/literal/floor/5fc9ac.wgsl index daab1702fb..5e2fa755f0 100644 --- a/test/tint/builtins/gen/literal/floor/5fc9ac.wgsl +++ b/test/tint/builtins/gen/literal/floor/5fc9ac.wgsl @@ -28,18 +28,18 @@ fn floor_5fc9ac() { var res: vec2 = floor(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { floor_5fc9ac(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { floor_5fc9ac(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { floor_5fc9ac(); } diff --git a/test/tint/builtins/gen/literal/floor/5fc9ac.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/floor/5fc9ac.wgsl.expected.wgsl index 1b6fadd5e8..7ddc9238c2 100644 --- a/test/tint/builtins/gen/literal/floor/5fc9ac.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/floor/5fc9ac.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn floor_5fc9ac() { var res : vec2 = floor(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { floor_5fc9ac(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { floor_5fc9ac(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { floor_5fc9ac(); } diff --git a/test/tint/builtins/gen/literal/floor/60d7ea.wgsl b/test/tint/builtins/gen/literal/floor/60d7ea.wgsl index 0cbaf4369a..e44e9467c3 100644 --- a/test/tint/builtins/gen/literal/floor/60d7ea.wgsl +++ b/test/tint/builtins/gen/literal/floor/60d7ea.wgsl @@ -28,18 +28,18 @@ fn floor_60d7ea() { var res: vec3 = floor(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { floor_60d7ea(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { floor_60d7ea(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { floor_60d7ea(); } diff --git a/test/tint/builtins/gen/literal/floor/60d7ea.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/floor/60d7ea.wgsl.expected.wgsl index bfc5a83dba..8b6be7c755 100644 --- a/test/tint/builtins/gen/literal/floor/60d7ea.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/floor/60d7ea.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn floor_60d7ea() { var res : vec3 = floor(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { floor_60d7ea(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { floor_60d7ea(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { floor_60d7ea(); } diff --git a/test/tint/builtins/gen/literal/floor/66f154.wgsl b/test/tint/builtins/gen/literal/floor/66f154.wgsl index ec55b67830..44ed3c6293 100644 --- a/test/tint/builtins/gen/literal/floor/66f154.wgsl +++ b/test/tint/builtins/gen/literal/floor/66f154.wgsl @@ -28,18 +28,18 @@ fn floor_66f154() { var res: f32 = floor(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { floor_66f154(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { floor_66f154(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { floor_66f154(); } diff --git a/test/tint/builtins/gen/literal/floor/66f154.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/floor/66f154.wgsl.expected.wgsl index 11de386ff3..50c9513c2a 100644 --- a/test/tint/builtins/gen/literal/floor/66f154.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/floor/66f154.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn floor_66f154() { var res : f32 = floor(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { floor_66f154(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { floor_66f154(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { floor_66f154(); } diff --git a/test/tint/builtins/gen/literal/fma/26a7a9.wgsl b/test/tint/builtins/gen/literal/fma/26a7a9.wgsl index 834ed38e43..371cf352b3 100644 --- a/test/tint/builtins/gen/literal/fma/26a7a9.wgsl +++ b/test/tint/builtins/gen/literal/fma/26a7a9.wgsl @@ -28,18 +28,18 @@ fn fma_26a7a9() { var res: vec2 = fma(vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fma_26a7a9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fma_26a7a9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fma_26a7a9(); } diff --git a/test/tint/builtins/gen/literal/fma/26a7a9.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/fma/26a7a9.wgsl.expected.wgsl index f1edf4ec43..86ac098ab9 100644 --- a/test/tint/builtins/gen/literal/fma/26a7a9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/fma/26a7a9.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn fma_26a7a9() { var res : vec2 = fma(vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fma_26a7a9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fma_26a7a9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fma_26a7a9(); } diff --git a/test/tint/builtins/gen/literal/fma/6a3283.wgsl b/test/tint/builtins/gen/literal/fma/6a3283.wgsl index d5cf90fab4..7e9d4713f1 100644 --- a/test/tint/builtins/gen/literal/fma/6a3283.wgsl +++ b/test/tint/builtins/gen/literal/fma/6a3283.wgsl @@ -28,18 +28,18 @@ fn fma_6a3283() { var res: vec4 = fma(vec4(), vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fma_6a3283(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fma_6a3283(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fma_6a3283(); } diff --git a/test/tint/builtins/gen/literal/fma/6a3283.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/fma/6a3283.wgsl.expected.wgsl index 267c2b107e..97053b7c8e 100644 --- a/test/tint/builtins/gen/literal/fma/6a3283.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/fma/6a3283.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn fma_6a3283() { var res : vec4 = fma(vec4(), vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fma_6a3283(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fma_6a3283(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fma_6a3283(); } diff --git a/test/tint/builtins/gen/literal/fma/c10ba3.wgsl b/test/tint/builtins/gen/literal/fma/c10ba3.wgsl index d26b50466c..fa1eb72399 100644 --- a/test/tint/builtins/gen/literal/fma/c10ba3.wgsl +++ b/test/tint/builtins/gen/literal/fma/c10ba3.wgsl @@ -28,18 +28,18 @@ fn fma_c10ba3() { var res: f32 = fma(1.0, 1.0, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fma_c10ba3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fma_c10ba3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fma_c10ba3(); } diff --git a/test/tint/builtins/gen/literal/fma/c10ba3.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/fma/c10ba3.wgsl.expected.wgsl index baec69d68c..47d583d45e 100644 --- a/test/tint/builtins/gen/literal/fma/c10ba3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/fma/c10ba3.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn fma_c10ba3() { var res : f32 = fma(1.0, 1.0, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fma_c10ba3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fma_c10ba3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fma_c10ba3(); } diff --git a/test/tint/builtins/gen/literal/fma/e17c5c.wgsl b/test/tint/builtins/gen/literal/fma/e17c5c.wgsl index afba1f1da6..efd17154da 100644 --- a/test/tint/builtins/gen/literal/fma/e17c5c.wgsl +++ b/test/tint/builtins/gen/literal/fma/e17c5c.wgsl @@ -28,18 +28,18 @@ fn fma_e17c5c() { var res: vec3 = fma(vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fma_e17c5c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fma_e17c5c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fma_e17c5c(); } diff --git a/test/tint/builtins/gen/literal/fma/e17c5c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/fma/e17c5c.wgsl.expected.wgsl index adc6a88802..7fcedaaee0 100644 --- a/test/tint/builtins/gen/literal/fma/e17c5c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/fma/e17c5c.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn fma_e17c5c() { var res : vec3 = fma(vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fma_e17c5c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fma_e17c5c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fma_e17c5c(); } diff --git a/test/tint/builtins/gen/literal/fract/8bc1e9.wgsl b/test/tint/builtins/gen/literal/fract/8bc1e9.wgsl index c816bce065..d68b871d67 100644 --- a/test/tint/builtins/gen/literal/fract/8bc1e9.wgsl +++ b/test/tint/builtins/gen/literal/fract/8bc1e9.wgsl @@ -28,18 +28,18 @@ fn fract_8bc1e9() { var res: vec4 = fract(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fract_8bc1e9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fract_8bc1e9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fract_8bc1e9(); } diff --git a/test/tint/builtins/gen/literal/fract/8bc1e9.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/fract/8bc1e9.wgsl.expected.wgsl index 6476408983..627af4a8dc 100644 --- a/test/tint/builtins/gen/literal/fract/8bc1e9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/fract/8bc1e9.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn fract_8bc1e9() { var res : vec4 = fract(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fract_8bc1e9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fract_8bc1e9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fract_8bc1e9(); } diff --git a/test/tint/builtins/gen/literal/fract/943cb1.wgsl b/test/tint/builtins/gen/literal/fract/943cb1.wgsl index a940bab7be..1efe2a0684 100644 --- a/test/tint/builtins/gen/literal/fract/943cb1.wgsl +++ b/test/tint/builtins/gen/literal/fract/943cb1.wgsl @@ -28,18 +28,18 @@ fn fract_943cb1() { var res: vec2 = fract(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fract_943cb1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fract_943cb1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fract_943cb1(); } diff --git a/test/tint/builtins/gen/literal/fract/943cb1.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/fract/943cb1.wgsl.expected.wgsl index 977e3f95a6..457b9cb503 100644 --- a/test/tint/builtins/gen/literal/fract/943cb1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/fract/943cb1.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn fract_943cb1() { var res : vec2 = fract(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fract_943cb1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fract_943cb1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fract_943cb1(); } diff --git a/test/tint/builtins/gen/literal/fract/a49758.wgsl b/test/tint/builtins/gen/literal/fract/a49758.wgsl index 693a6e95bf..5d67222b0a 100644 --- a/test/tint/builtins/gen/literal/fract/a49758.wgsl +++ b/test/tint/builtins/gen/literal/fract/a49758.wgsl @@ -28,18 +28,18 @@ fn fract_a49758() { var res: vec3 = fract(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fract_a49758(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fract_a49758(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fract_a49758(); } diff --git a/test/tint/builtins/gen/literal/fract/a49758.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/fract/a49758.wgsl.expected.wgsl index 7ab47df0dc..b973bddcba 100644 --- a/test/tint/builtins/gen/literal/fract/a49758.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/fract/a49758.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn fract_a49758() { var res : vec3 = fract(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fract_a49758(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fract_a49758(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fract_a49758(); } diff --git a/test/tint/builtins/gen/literal/fract/fa5c71.wgsl b/test/tint/builtins/gen/literal/fract/fa5c71.wgsl index c2e96d29d7..352b67d4bf 100644 --- a/test/tint/builtins/gen/literal/fract/fa5c71.wgsl +++ b/test/tint/builtins/gen/literal/fract/fa5c71.wgsl @@ -28,18 +28,18 @@ fn fract_fa5c71() { var res: f32 = fract(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fract_fa5c71(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fract_fa5c71(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fract_fa5c71(); } diff --git a/test/tint/builtins/gen/literal/fract/fa5c71.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/fract/fa5c71.wgsl.expected.wgsl index 3599c793b1..eedc8aee92 100644 --- a/test/tint/builtins/gen/literal/fract/fa5c71.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/fract/fa5c71.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn fract_fa5c71() { var res : f32 = fract(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fract_fa5c71(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fract_fa5c71(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fract_fa5c71(); } diff --git a/test/tint/builtins/gen/literal/frexp/368997.wgsl b/test/tint/builtins/gen/literal/frexp/368997.wgsl index 42095a87e1..8db1238c70 100644 --- a/test/tint/builtins/gen/literal/frexp/368997.wgsl +++ b/test/tint/builtins/gen/literal/frexp/368997.wgsl @@ -28,18 +28,18 @@ fn frexp_368997() { var res = frexp(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { frexp_368997(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { frexp_368997(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { frexp_368997(); } diff --git a/test/tint/builtins/gen/literal/frexp/368997.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/frexp/368997.wgsl.expected.wgsl index 914f1d5e48..19b9f7d3c9 100644 --- a/test/tint/builtins/gen/literal/frexp/368997.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/frexp/368997.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn frexp_368997() { var res = frexp(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { frexp_368997(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { frexp_368997(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { frexp_368997(); } diff --git a/test/tint/builtins/gen/literal/frexp/3c4f48.wgsl b/test/tint/builtins/gen/literal/frexp/3c4f48.wgsl index 13c6c1e62d..38375e3465 100644 --- a/test/tint/builtins/gen/literal/frexp/3c4f48.wgsl +++ b/test/tint/builtins/gen/literal/frexp/3c4f48.wgsl @@ -28,18 +28,18 @@ fn frexp_3c4f48() { var res = frexp(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { frexp_3c4f48(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { frexp_3c4f48(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { frexp_3c4f48(); } diff --git a/test/tint/builtins/gen/literal/frexp/3c4f48.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/frexp/3c4f48.wgsl.expected.wgsl index 2129fb60e0..2876d96692 100644 --- a/test/tint/builtins/gen/literal/frexp/3c4f48.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/frexp/3c4f48.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn frexp_3c4f48() { var res = frexp(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { frexp_3c4f48(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { frexp_3c4f48(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { frexp_3c4f48(); } diff --git a/test/tint/builtins/gen/literal/frexp/4bdfc7.wgsl b/test/tint/builtins/gen/literal/frexp/4bdfc7.wgsl index 78428e3f2b..fa8647a5d4 100644 --- a/test/tint/builtins/gen/literal/frexp/4bdfc7.wgsl +++ b/test/tint/builtins/gen/literal/frexp/4bdfc7.wgsl @@ -28,18 +28,18 @@ fn frexp_4bdfc7() { var res = frexp(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { frexp_4bdfc7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { frexp_4bdfc7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { frexp_4bdfc7(); } diff --git a/test/tint/builtins/gen/literal/frexp/4bdfc7.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/frexp/4bdfc7.wgsl.expected.wgsl index 8dfe70c32e..b4933f853b 100644 --- a/test/tint/builtins/gen/literal/frexp/4bdfc7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/frexp/4bdfc7.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn frexp_4bdfc7() { var res = frexp(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { frexp_4bdfc7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { frexp_4bdfc7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { frexp_4bdfc7(); } diff --git a/test/tint/builtins/gen/literal/frexp/eabd40.wgsl b/test/tint/builtins/gen/literal/frexp/eabd40.wgsl index a2feb4e016..12bb0c31c4 100644 --- a/test/tint/builtins/gen/literal/frexp/eabd40.wgsl +++ b/test/tint/builtins/gen/literal/frexp/eabd40.wgsl @@ -28,18 +28,18 @@ fn frexp_eabd40() { var res = frexp(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { frexp_eabd40(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { frexp_eabd40(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { frexp_eabd40(); } diff --git a/test/tint/builtins/gen/literal/frexp/eabd40.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/frexp/eabd40.wgsl.expected.wgsl index 3bcd2b665b..a6793c5e0f 100644 --- a/test/tint/builtins/gen/literal/frexp/eabd40.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/frexp/eabd40.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn frexp_eabd40() { var res = frexp(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { frexp_eabd40(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { frexp_eabd40(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { frexp_eabd40(); } diff --git a/test/tint/builtins/gen/literal/fwidth/5d1b39.wgsl b/test/tint/builtins/gen/literal/fwidth/5d1b39.wgsl index 08e2628221..fae0efbfd4 100644 --- a/test/tint/builtins/gen/literal/fwidth/5d1b39.wgsl +++ b/test/tint/builtins/gen/literal/fwidth/5d1b39.wgsl @@ -28,7 +28,7 @@ fn fwidth_5d1b39() { var res: vec3 = fwidth(vec3()); } -@stage(fragment) +@fragment fn fragment_main() { fwidth_5d1b39(); } diff --git a/test/tint/builtins/gen/literal/fwidth/5d1b39.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/fwidth/5d1b39.wgsl.expected.wgsl index f3c53fa70e..2ccfef31c0 100644 --- a/test/tint/builtins/gen/literal/fwidth/5d1b39.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/fwidth/5d1b39.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn fwidth_5d1b39() { var res : vec3 = fwidth(vec3()); } -@stage(fragment) +@fragment fn fragment_main() { fwidth_5d1b39(); } diff --git a/test/tint/builtins/gen/literal/fwidth/b83ebb.wgsl b/test/tint/builtins/gen/literal/fwidth/b83ebb.wgsl index a63be9c3bd..541367b612 100644 --- a/test/tint/builtins/gen/literal/fwidth/b83ebb.wgsl +++ b/test/tint/builtins/gen/literal/fwidth/b83ebb.wgsl @@ -28,7 +28,7 @@ fn fwidth_b83ebb() { var res: vec2 = fwidth(vec2()); } -@stage(fragment) +@fragment fn fragment_main() { fwidth_b83ebb(); } diff --git a/test/tint/builtins/gen/literal/fwidth/b83ebb.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/fwidth/b83ebb.wgsl.expected.wgsl index aa9e984c55..19e433057c 100644 --- a/test/tint/builtins/gen/literal/fwidth/b83ebb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/fwidth/b83ebb.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn fwidth_b83ebb() { var res : vec2 = fwidth(vec2()); } -@stage(fragment) +@fragment fn fragment_main() { fwidth_b83ebb(); } diff --git a/test/tint/builtins/gen/literal/fwidth/d2ab9a.wgsl b/test/tint/builtins/gen/literal/fwidth/d2ab9a.wgsl index 01a99c6826..cb0806b6dc 100644 --- a/test/tint/builtins/gen/literal/fwidth/d2ab9a.wgsl +++ b/test/tint/builtins/gen/literal/fwidth/d2ab9a.wgsl @@ -28,7 +28,7 @@ fn fwidth_d2ab9a() { var res: vec4 = fwidth(vec4()); } -@stage(fragment) +@fragment fn fragment_main() { fwidth_d2ab9a(); } diff --git a/test/tint/builtins/gen/literal/fwidth/d2ab9a.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/fwidth/d2ab9a.wgsl.expected.wgsl index d5ba206bd5..c3c4ff45a5 100644 --- a/test/tint/builtins/gen/literal/fwidth/d2ab9a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/fwidth/d2ab9a.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn fwidth_d2ab9a() { var res : vec4 = fwidth(vec4()); } -@stage(fragment) +@fragment fn fragment_main() { fwidth_d2ab9a(); } diff --git a/test/tint/builtins/gen/literal/fwidth/df38ef.wgsl b/test/tint/builtins/gen/literal/fwidth/df38ef.wgsl index 573352214e..ae108cc7d9 100644 --- a/test/tint/builtins/gen/literal/fwidth/df38ef.wgsl +++ b/test/tint/builtins/gen/literal/fwidth/df38ef.wgsl @@ -28,7 +28,7 @@ fn fwidth_df38ef() { var res: f32 = fwidth(1.0); } -@stage(fragment) +@fragment fn fragment_main() { fwidth_df38ef(); } diff --git a/test/tint/builtins/gen/literal/fwidth/df38ef.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/fwidth/df38ef.wgsl.expected.wgsl index b98137eccf..cf508ec975 100644 --- a/test/tint/builtins/gen/literal/fwidth/df38ef.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/fwidth/df38ef.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn fwidth_df38ef() { var res : f32 = fwidth(1.0); } -@stage(fragment) +@fragment fn fragment_main() { fwidth_df38ef(); } diff --git a/test/tint/builtins/gen/literal/fwidthCoarse/159c8a.wgsl b/test/tint/builtins/gen/literal/fwidthCoarse/159c8a.wgsl index 6c82cb2a41..496a405abf 100644 --- a/test/tint/builtins/gen/literal/fwidthCoarse/159c8a.wgsl +++ b/test/tint/builtins/gen/literal/fwidthCoarse/159c8a.wgsl @@ -28,7 +28,7 @@ fn fwidthCoarse_159c8a() { var res: f32 = fwidthCoarse(1.0); } -@stage(fragment) +@fragment fn fragment_main() { fwidthCoarse_159c8a(); } diff --git a/test/tint/builtins/gen/literal/fwidthCoarse/159c8a.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/fwidthCoarse/159c8a.wgsl.expected.wgsl index 1e592efacf..dda103bec2 100644 --- a/test/tint/builtins/gen/literal/fwidthCoarse/159c8a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/fwidthCoarse/159c8a.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn fwidthCoarse_159c8a() { var res : f32 = fwidthCoarse(1.0); } -@stage(fragment) +@fragment fn fragment_main() { fwidthCoarse_159c8a(); } diff --git a/test/tint/builtins/gen/literal/fwidthCoarse/1e59d9.wgsl b/test/tint/builtins/gen/literal/fwidthCoarse/1e59d9.wgsl index 1973cd7f65..432dcadb6f 100644 --- a/test/tint/builtins/gen/literal/fwidthCoarse/1e59d9.wgsl +++ b/test/tint/builtins/gen/literal/fwidthCoarse/1e59d9.wgsl @@ -28,7 +28,7 @@ fn fwidthCoarse_1e59d9() { var res: vec3 = fwidthCoarse(vec3()); } -@stage(fragment) +@fragment fn fragment_main() { fwidthCoarse_1e59d9(); } diff --git a/test/tint/builtins/gen/literal/fwidthCoarse/1e59d9.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/fwidthCoarse/1e59d9.wgsl.expected.wgsl index 1352bf609d..8a1e6b0eaa 100644 --- a/test/tint/builtins/gen/literal/fwidthCoarse/1e59d9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/fwidthCoarse/1e59d9.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn fwidthCoarse_1e59d9() { var res : vec3 = fwidthCoarse(vec3()); } -@stage(fragment) +@fragment fn fragment_main() { fwidthCoarse_1e59d9(); } diff --git a/test/tint/builtins/gen/literal/fwidthCoarse/4e4fc4.wgsl b/test/tint/builtins/gen/literal/fwidthCoarse/4e4fc4.wgsl index 56243c3d4f..a64acf793c 100644 --- a/test/tint/builtins/gen/literal/fwidthCoarse/4e4fc4.wgsl +++ b/test/tint/builtins/gen/literal/fwidthCoarse/4e4fc4.wgsl @@ -28,7 +28,7 @@ fn fwidthCoarse_4e4fc4() { var res: vec4 = fwidthCoarse(vec4()); } -@stage(fragment) +@fragment fn fragment_main() { fwidthCoarse_4e4fc4(); } diff --git a/test/tint/builtins/gen/literal/fwidthCoarse/4e4fc4.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/fwidthCoarse/4e4fc4.wgsl.expected.wgsl index 3fea38af1a..06b78e85fd 100644 --- a/test/tint/builtins/gen/literal/fwidthCoarse/4e4fc4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/fwidthCoarse/4e4fc4.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn fwidthCoarse_4e4fc4() { var res : vec4 = fwidthCoarse(vec4()); } -@stage(fragment) +@fragment fn fragment_main() { fwidthCoarse_4e4fc4(); } diff --git a/test/tint/builtins/gen/literal/fwidthCoarse/e653f7.wgsl b/test/tint/builtins/gen/literal/fwidthCoarse/e653f7.wgsl index 389e52d9c4..dc216bf8c8 100644 --- a/test/tint/builtins/gen/literal/fwidthCoarse/e653f7.wgsl +++ b/test/tint/builtins/gen/literal/fwidthCoarse/e653f7.wgsl @@ -28,7 +28,7 @@ fn fwidthCoarse_e653f7() { var res: vec2 = fwidthCoarse(vec2()); } -@stage(fragment) +@fragment fn fragment_main() { fwidthCoarse_e653f7(); } diff --git a/test/tint/builtins/gen/literal/fwidthCoarse/e653f7.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/fwidthCoarse/e653f7.wgsl.expected.wgsl index 9e5a1dae57..5ed3f4b361 100644 --- a/test/tint/builtins/gen/literal/fwidthCoarse/e653f7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/fwidthCoarse/e653f7.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn fwidthCoarse_e653f7() { var res : vec2 = fwidthCoarse(vec2()); } -@stage(fragment) +@fragment fn fragment_main() { fwidthCoarse_e653f7(); } diff --git a/test/tint/builtins/gen/literal/fwidthFine/523fdc.wgsl b/test/tint/builtins/gen/literal/fwidthFine/523fdc.wgsl index 93bc4403a3..a445464a20 100644 --- a/test/tint/builtins/gen/literal/fwidthFine/523fdc.wgsl +++ b/test/tint/builtins/gen/literal/fwidthFine/523fdc.wgsl @@ -28,7 +28,7 @@ fn fwidthFine_523fdc() { var res: vec3 = fwidthFine(vec3()); } -@stage(fragment) +@fragment fn fragment_main() { fwidthFine_523fdc(); } diff --git a/test/tint/builtins/gen/literal/fwidthFine/523fdc.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/fwidthFine/523fdc.wgsl.expected.wgsl index 41cb66cfa6..b3eb93b077 100644 --- a/test/tint/builtins/gen/literal/fwidthFine/523fdc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/fwidthFine/523fdc.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn fwidthFine_523fdc() { var res : vec3 = fwidthFine(vec3()); } -@stage(fragment) +@fragment fn fragment_main() { fwidthFine_523fdc(); } diff --git a/test/tint/builtins/gen/literal/fwidthFine/68f4ef.wgsl b/test/tint/builtins/gen/literal/fwidthFine/68f4ef.wgsl index 80005f1812..55e8dbd385 100644 --- a/test/tint/builtins/gen/literal/fwidthFine/68f4ef.wgsl +++ b/test/tint/builtins/gen/literal/fwidthFine/68f4ef.wgsl @@ -28,7 +28,7 @@ fn fwidthFine_68f4ef() { var res: vec4 = fwidthFine(vec4()); } -@stage(fragment) +@fragment fn fragment_main() { fwidthFine_68f4ef(); } diff --git a/test/tint/builtins/gen/literal/fwidthFine/68f4ef.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/fwidthFine/68f4ef.wgsl.expected.wgsl index 97f10330e9..01d3ea89a3 100644 --- a/test/tint/builtins/gen/literal/fwidthFine/68f4ef.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/fwidthFine/68f4ef.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn fwidthFine_68f4ef() { var res : vec4 = fwidthFine(vec4()); } -@stage(fragment) +@fragment fn fragment_main() { fwidthFine_68f4ef(); } diff --git a/test/tint/builtins/gen/literal/fwidthFine/f1742d.wgsl b/test/tint/builtins/gen/literal/fwidthFine/f1742d.wgsl index 4310d22416..fca4bd14a6 100644 --- a/test/tint/builtins/gen/literal/fwidthFine/f1742d.wgsl +++ b/test/tint/builtins/gen/literal/fwidthFine/f1742d.wgsl @@ -28,7 +28,7 @@ fn fwidthFine_f1742d() { var res: f32 = fwidthFine(1.0); } -@stage(fragment) +@fragment fn fragment_main() { fwidthFine_f1742d(); } diff --git a/test/tint/builtins/gen/literal/fwidthFine/f1742d.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/fwidthFine/f1742d.wgsl.expected.wgsl index 4a764a517f..13437b4ec6 100644 --- a/test/tint/builtins/gen/literal/fwidthFine/f1742d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/fwidthFine/f1742d.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn fwidthFine_f1742d() { var res : f32 = fwidthFine(1.0); } -@stage(fragment) +@fragment fn fragment_main() { fwidthFine_f1742d(); } diff --git a/test/tint/builtins/gen/literal/fwidthFine/ff6aa0.wgsl b/test/tint/builtins/gen/literal/fwidthFine/ff6aa0.wgsl index e8e4c08c19..fe1fbb55d6 100644 --- a/test/tint/builtins/gen/literal/fwidthFine/ff6aa0.wgsl +++ b/test/tint/builtins/gen/literal/fwidthFine/ff6aa0.wgsl @@ -28,7 +28,7 @@ fn fwidthFine_ff6aa0() { var res: vec2 = fwidthFine(vec2()); } -@stage(fragment) +@fragment fn fragment_main() { fwidthFine_ff6aa0(); } diff --git a/test/tint/builtins/gen/literal/fwidthFine/ff6aa0.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/fwidthFine/ff6aa0.wgsl.expected.wgsl index 7ca7637da9..ad816e4921 100644 --- a/test/tint/builtins/gen/literal/fwidthFine/ff6aa0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/fwidthFine/ff6aa0.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn fwidthFine_ff6aa0() { var res : vec2 = fwidthFine(vec2()); } -@stage(fragment) +@fragment fn fragment_main() { fwidthFine_ff6aa0(); } diff --git a/test/tint/builtins/gen/literal/insertBits/3c7ba5.wgsl b/test/tint/builtins/gen/literal/insertBits/3c7ba5.wgsl index f5879a69ae..cdf4c75879 100644 --- a/test/tint/builtins/gen/literal/insertBits/3c7ba5.wgsl +++ b/test/tint/builtins/gen/literal/insertBits/3c7ba5.wgsl @@ -28,18 +28,18 @@ fn insertBits_3c7ba5() { var res: vec2 = insertBits(vec2(), vec2(), 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_3c7ba5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_3c7ba5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_3c7ba5(); } diff --git a/test/tint/builtins/gen/literal/insertBits/3c7ba5.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/insertBits/3c7ba5.wgsl.expected.wgsl index eee06b5622..37e6e6750a 100644 --- a/test/tint/builtins/gen/literal/insertBits/3c7ba5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/insertBits/3c7ba5.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn insertBits_3c7ba5() { var res : vec2 = insertBits(vec2(), vec2(), 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_3c7ba5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_3c7ba5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_3c7ba5(); } diff --git a/test/tint/builtins/gen/literal/insertBits/428b0b.wgsl b/test/tint/builtins/gen/literal/insertBits/428b0b.wgsl index 1dd773e588..04e4af4a0a 100644 --- a/test/tint/builtins/gen/literal/insertBits/428b0b.wgsl +++ b/test/tint/builtins/gen/literal/insertBits/428b0b.wgsl @@ -28,18 +28,18 @@ fn insertBits_428b0b() { var res: vec3 = insertBits(vec3(), vec3(), 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_428b0b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_428b0b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_428b0b(); } diff --git a/test/tint/builtins/gen/literal/insertBits/428b0b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/insertBits/428b0b.wgsl.expected.wgsl index 58e0a5ac2f..a91e908506 100644 --- a/test/tint/builtins/gen/literal/insertBits/428b0b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/insertBits/428b0b.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn insertBits_428b0b() { var res : vec3 = insertBits(vec3(), vec3(), 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_428b0b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_428b0b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_428b0b(); } diff --git a/test/tint/builtins/gen/literal/insertBits/51ede1.wgsl b/test/tint/builtins/gen/literal/insertBits/51ede1.wgsl index 0ba617a867..23bdfa01d7 100644 --- a/test/tint/builtins/gen/literal/insertBits/51ede1.wgsl +++ b/test/tint/builtins/gen/literal/insertBits/51ede1.wgsl @@ -28,18 +28,18 @@ fn insertBits_51ede1() { var res: vec4 = insertBits(vec4(), vec4(), 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_51ede1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_51ede1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_51ede1(); } diff --git a/test/tint/builtins/gen/literal/insertBits/51ede1.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/insertBits/51ede1.wgsl.expected.wgsl index 0b7461b842..678c6b25a2 100644 --- a/test/tint/builtins/gen/literal/insertBits/51ede1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/insertBits/51ede1.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn insertBits_51ede1() { var res : vec4 = insertBits(vec4(), vec4(), 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_51ede1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_51ede1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_51ede1(); } diff --git a/test/tint/builtins/gen/literal/insertBits/65468b.wgsl b/test/tint/builtins/gen/literal/insertBits/65468b.wgsl index b426cf5372..a24fcbe24f 100644 --- a/test/tint/builtins/gen/literal/insertBits/65468b.wgsl +++ b/test/tint/builtins/gen/literal/insertBits/65468b.wgsl @@ -28,18 +28,18 @@ fn insertBits_65468b() { var res: i32 = insertBits(1, 1, 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_65468b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_65468b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_65468b(); } diff --git a/test/tint/builtins/gen/literal/insertBits/65468b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/insertBits/65468b.wgsl.expected.wgsl index 18c5ff8c7b..ef26bedf8b 100644 --- a/test/tint/builtins/gen/literal/insertBits/65468b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/insertBits/65468b.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn insertBits_65468b() { var res : i32 = insertBits(1, 1, 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_65468b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_65468b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_65468b(); } diff --git a/test/tint/builtins/gen/literal/insertBits/87826b.wgsl b/test/tint/builtins/gen/literal/insertBits/87826b.wgsl index 6ca4dd0aa8..d9fba647af 100644 --- a/test/tint/builtins/gen/literal/insertBits/87826b.wgsl +++ b/test/tint/builtins/gen/literal/insertBits/87826b.wgsl @@ -28,18 +28,18 @@ fn insertBits_87826b() { var res: vec3 = insertBits(vec3(), vec3(), 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_87826b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_87826b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_87826b(); } diff --git a/test/tint/builtins/gen/literal/insertBits/87826b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/insertBits/87826b.wgsl.expected.wgsl index e71306f5ab..242fe60695 100644 --- a/test/tint/builtins/gen/literal/insertBits/87826b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/insertBits/87826b.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn insertBits_87826b() { var res : vec3 = insertBits(vec3(), vec3(), 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_87826b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_87826b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_87826b(); } diff --git a/test/tint/builtins/gen/literal/insertBits/d86978.wgsl b/test/tint/builtins/gen/literal/insertBits/d86978.wgsl index 421a87559e..11dd5181ef 100644 --- a/test/tint/builtins/gen/literal/insertBits/d86978.wgsl +++ b/test/tint/builtins/gen/literal/insertBits/d86978.wgsl @@ -28,18 +28,18 @@ fn insertBits_d86978() { var res: vec4 = insertBits(vec4(), vec4(), 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_d86978(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_d86978(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_d86978(); } diff --git a/test/tint/builtins/gen/literal/insertBits/d86978.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/insertBits/d86978.wgsl.expected.wgsl index 531dc5ff58..77bbeecea1 100644 --- a/test/tint/builtins/gen/literal/insertBits/d86978.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/insertBits/d86978.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn insertBits_d86978() { var res : vec4 = insertBits(vec4(), vec4(), 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_d86978(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_d86978(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_d86978(); } diff --git a/test/tint/builtins/gen/literal/insertBits/e3e3a2.wgsl b/test/tint/builtins/gen/literal/insertBits/e3e3a2.wgsl index 7e12f244e6..5bbe856719 100644 --- a/test/tint/builtins/gen/literal/insertBits/e3e3a2.wgsl +++ b/test/tint/builtins/gen/literal/insertBits/e3e3a2.wgsl @@ -28,18 +28,18 @@ fn insertBits_e3e3a2() { var res: u32 = insertBits(1u, 1u, 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_e3e3a2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_e3e3a2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_e3e3a2(); } diff --git a/test/tint/builtins/gen/literal/insertBits/e3e3a2.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/insertBits/e3e3a2.wgsl.expected.wgsl index b6abcbcf30..8ea1692879 100644 --- a/test/tint/builtins/gen/literal/insertBits/e3e3a2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/insertBits/e3e3a2.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn insertBits_e3e3a2() { var res : u32 = insertBits(1u, 1u, 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_e3e3a2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_e3e3a2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_e3e3a2(); } diff --git a/test/tint/builtins/gen/literal/insertBits/fe6ba6.wgsl b/test/tint/builtins/gen/literal/insertBits/fe6ba6.wgsl index 56c4b03d39..23866aaa1f 100644 --- a/test/tint/builtins/gen/literal/insertBits/fe6ba6.wgsl +++ b/test/tint/builtins/gen/literal/insertBits/fe6ba6.wgsl @@ -28,18 +28,18 @@ fn insertBits_fe6ba6() { var res: vec2 = insertBits(vec2(), vec2(), 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_fe6ba6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_fe6ba6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_fe6ba6(); } diff --git a/test/tint/builtins/gen/literal/insertBits/fe6ba6.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/insertBits/fe6ba6.wgsl.expected.wgsl index 3e8848626f..aabea77955 100644 --- a/test/tint/builtins/gen/literal/insertBits/fe6ba6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/insertBits/fe6ba6.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn insertBits_fe6ba6() { var res : vec2 = insertBits(vec2(), vec2(), 1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_fe6ba6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_fe6ba6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_fe6ba6(); } diff --git a/test/tint/builtins/gen/literal/inverseSqrt/84407e.wgsl b/test/tint/builtins/gen/literal/inverseSqrt/84407e.wgsl index 3d97d0fbc1..8dd98cc65f 100644 --- a/test/tint/builtins/gen/literal/inverseSqrt/84407e.wgsl +++ b/test/tint/builtins/gen/literal/inverseSqrt/84407e.wgsl @@ -28,18 +28,18 @@ fn inverseSqrt_84407e() { var res: f32 = inverseSqrt(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { inverseSqrt_84407e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { inverseSqrt_84407e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { inverseSqrt_84407e(); } diff --git a/test/tint/builtins/gen/literal/inverseSqrt/84407e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/inverseSqrt/84407e.wgsl.expected.wgsl index 707e3174cc..9c74b78834 100644 --- a/test/tint/builtins/gen/literal/inverseSqrt/84407e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/inverseSqrt/84407e.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn inverseSqrt_84407e() { var res : f32 = inverseSqrt(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { inverseSqrt_84407e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { inverseSqrt_84407e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { inverseSqrt_84407e(); } diff --git a/test/tint/builtins/gen/literal/inverseSqrt/8f2bd2.wgsl b/test/tint/builtins/gen/literal/inverseSqrt/8f2bd2.wgsl index d64ff26ab8..b1774a9661 100644 --- a/test/tint/builtins/gen/literal/inverseSqrt/8f2bd2.wgsl +++ b/test/tint/builtins/gen/literal/inverseSqrt/8f2bd2.wgsl @@ -28,18 +28,18 @@ fn inverseSqrt_8f2bd2() { var res: vec2 = inverseSqrt(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { inverseSqrt_8f2bd2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { inverseSqrt_8f2bd2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { inverseSqrt_8f2bd2(); } diff --git a/test/tint/builtins/gen/literal/inverseSqrt/8f2bd2.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/inverseSqrt/8f2bd2.wgsl.expected.wgsl index 55540308f7..05e3d1cd8e 100644 --- a/test/tint/builtins/gen/literal/inverseSqrt/8f2bd2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/inverseSqrt/8f2bd2.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn inverseSqrt_8f2bd2() { var res : vec2 = inverseSqrt(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { inverseSqrt_8f2bd2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { inverseSqrt_8f2bd2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { inverseSqrt_8f2bd2(); } diff --git a/test/tint/builtins/gen/literal/inverseSqrt/b197b1.wgsl b/test/tint/builtins/gen/literal/inverseSqrt/b197b1.wgsl index 1fe63f979d..d4bbc281b0 100644 --- a/test/tint/builtins/gen/literal/inverseSqrt/b197b1.wgsl +++ b/test/tint/builtins/gen/literal/inverseSqrt/b197b1.wgsl @@ -28,18 +28,18 @@ fn inverseSqrt_b197b1() { var res: vec3 = inverseSqrt(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { inverseSqrt_b197b1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { inverseSqrt_b197b1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { inverseSqrt_b197b1(); } diff --git a/test/tint/builtins/gen/literal/inverseSqrt/b197b1.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/inverseSqrt/b197b1.wgsl.expected.wgsl index dd8bd7161f..11777c2ecd 100644 --- a/test/tint/builtins/gen/literal/inverseSqrt/b197b1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/inverseSqrt/b197b1.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn inverseSqrt_b197b1() { var res : vec3 = inverseSqrt(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { inverseSqrt_b197b1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { inverseSqrt_b197b1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { inverseSqrt_b197b1(); } diff --git a/test/tint/builtins/gen/literal/inverseSqrt/c22347.wgsl b/test/tint/builtins/gen/literal/inverseSqrt/c22347.wgsl index 4536cb7a80..7b5baf6b66 100644 --- a/test/tint/builtins/gen/literal/inverseSqrt/c22347.wgsl +++ b/test/tint/builtins/gen/literal/inverseSqrt/c22347.wgsl @@ -28,18 +28,18 @@ fn inverseSqrt_c22347() { var res: vec4 = inverseSqrt(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { inverseSqrt_c22347(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { inverseSqrt_c22347(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { inverseSqrt_c22347(); } diff --git a/test/tint/builtins/gen/literal/inverseSqrt/c22347.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/inverseSqrt/c22347.wgsl.expected.wgsl index cc9c1a9fb2..7d5465dd76 100644 --- a/test/tint/builtins/gen/literal/inverseSqrt/c22347.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/inverseSqrt/c22347.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn inverseSqrt_c22347() { var res : vec4 = inverseSqrt(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { inverseSqrt_c22347(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { inverseSqrt_c22347(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { inverseSqrt_c22347(); } diff --git a/test/tint/builtins/gen/literal/ldexp/a31cdc.wgsl b/test/tint/builtins/gen/literal/ldexp/a31cdc.wgsl index daede0ba40..1cdaca3be6 100644 --- a/test/tint/builtins/gen/literal/ldexp/a31cdc.wgsl +++ b/test/tint/builtins/gen/literal/ldexp/a31cdc.wgsl @@ -28,18 +28,18 @@ fn ldexp_a31cdc() { var res: vec3 = ldexp(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ldexp_a31cdc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ldexp_a31cdc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ldexp_a31cdc(); } diff --git a/test/tint/builtins/gen/literal/ldexp/a31cdc.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/ldexp/a31cdc.wgsl.expected.wgsl index 357faa1b9a..232e2a9fae 100644 --- a/test/tint/builtins/gen/literal/ldexp/a31cdc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/ldexp/a31cdc.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn ldexp_a31cdc() { var res : vec3 = ldexp(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ldexp_a31cdc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ldexp_a31cdc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ldexp_a31cdc(); } diff --git a/test/tint/builtins/gen/literal/ldexp/abd718.wgsl b/test/tint/builtins/gen/literal/ldexp/abd718.wgsl index fb5d9b523d..8e41255b7f 100644 --- a/test/tint/builtins/gen/literal/ldexp/abd718.wgsl +++ b/test/tint/builtins/gen/literal/ldexp/abd718.wgsl @@ -28,18 +28,18 @@ fn ldexp_abd718() { var res: vec2 = ldexp(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ldexp_abd718(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ldexp_abd718(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ldexp_abd718(); } diff --git a/test/tint/builtins/gen/literal/ldexp/abd718.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/ldexp/abd718.wgsl.expected.wgsl index 87314bfa6e..8c33747f8f 100644 --- a/test/tint/builtins/gen/literal/ldexp/abd718.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/ldexp/abd718.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn ldexp_abd718() { var res : vec2 = ldexp(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ldexp_abd718(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ldexp_abd718(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ldexp_abd718(); } diff --git a/test/tint/builtins/gen/literal/ldexp/cc9cde.wgsl b/test/tint/builtins/gen/literal/ldexp/cc9cde.wgsl index 6b1452982a..622c5b4a2a 100644 --- a/test/tint/builtins/gen/literal/ldexp/cc9cde.wgsl +++ b/test/tint/builtins/gen/literal/ldexp/cc9cde.wgsl @@ -28,18 +28,18 @@ fn ldexp_cc9cde() { var res: vec4 = ldexp(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ldexp_cc9cde(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ldexp_cc9cde(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ldexp_cc9cde(); } diff --git a/test/tint/builtins/gen/literal/ldexp/cc9cde.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/ldexp/cc9cde.wgsl.expected.wgsl index c2fc1ae7f9..913094d025 100644 --- a/test/tint/builtins/gen/literal/ldexp/cc9cde.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/ldexp/cc9cde.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn ldexp_cc9cde() { var res : vec4 = ldexp(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ldexp_cc9cde(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ldexp_cc9cde(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ldexp_cc9cde(); } diff --git a/test/tint/builtins/gen/literal/ldexp/db8b49.wgsl b/test/tint/builtins/gen/literal/ldexp/db8b49.wgsl index 7ed2b37aaf..beb3c1dc90 100644 --- a/test/tint/builtins/gen/literal/ldexp/db8b49.wgsl +++ b/test/tint/builtins/gen/literal/ldexp/db8b49.wgsl @@ -28,18 +28,18 @@ fn ldexp_db8b49() { var res: f32 = ldexp(1.0, 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ldexp_db8b49(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ldexp_db8b49(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ldexp_db8b49(); } diff --git a/test/tint/builtins/gen/literal/ldexp/db8b49.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/ldexp/db8b49.wgsl.expected.wgsl index 41f84f9800..d7c840fc8f 100644 --- a/test/tint/builtins/gen/literal/ldexp/db8b49.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/ldexp/db8b49.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn ldexp_db8b49() { var res : f32 = ldexp(1.0, 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ldexp_db8b49(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ldexp_db8b49(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ldexp_db8b49(); } diff --git a/test/tint/builtins/gen/literal/length/056071.wgsl b/test/tint/builtins/gen/literal/length/056071.wgsl index 159a0c184a..25f90cea50 100644 --- a/test/tint/builtins/gen/literal/length/056071.wgsl +++ b/test/tint/builtins/gen/literal/length/056071.wgsl @@ -28,18 +28,18 @@ fn length_056071() { var res: f32 = length(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { length_056071(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { length_056071(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { length_056071(); } diff --git a/test/tint/builtins/gen/literal/length/056071.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/length/056071.wgsl.expected.wgsl index a7dddf99b0..4060039bc5 100644 --- a/test/tint/builtins/gen/literal/length/056071.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/length/056071.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn length_056071() { var res : f32 = length(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { length_056071(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { length_056071(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { length_056071(); } diff --git a/test/tint/builtins/gen/literal/length/602a17.wgsl b/test/tint/builtins/gen/literal/length/602a17.wgsl index 4ad050ba78..50a668a218 100644 --- a/test/tint/builtins/gen/literal/length/602a17.wgsl +++ b/test/tint/builtins/gen/literal/length/602a17.wgsl @@ -28,18 +28,18 @@ fn length_602a17() { var res: f32 = length(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { length_602a17(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { length_602a17(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { length_602a17(); } diff --git a/test/tint/builtins/gen/literal/length/602a17.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/length/602a17.wgsl.expected.wgsl index dbf073b7ea..accc2eaf47 100644 --- a/test/tint/builtins/gen/literal/length/602a17.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/length/602a17.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn length_602a17() { var res : f32 = length(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { length_602a17(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { length_602a17(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { length_602a17(); } diff --git a/test/tint/builtins/gen/literal/length/afde8b.wgsl b/test/tint/builtins/gen/literal/length/afde8b.wgsl index b936e5e78d..a5cbe4f333 100644 --- a/test/tint/builtins/gen/literal/length/afde8b.wgsl +++ b/test/tint/builtins/gen/literal/length/afde8b.wgsl @@ -28,18 +28,18 @@ fn length_afde8b() { var res: f32 = length(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { length_afde8b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { length_afde8b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { length_afde8b(); } diff --git a/test/tint/builtins/gen/literal/length/afde8b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/length/afde8b.wgsl.expected.wgsl index 04d7497f02..4c02a779eb 100644 --- a/test/tint/builtins/gen/literal/length/afde8b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/length/afde8b.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn length_afde8b() { var res : f32 = length(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { length_afde8b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { length_afde8b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { length_afde8b(); } diff --git a/test/tint/builtins/gen/literal/length/becebf.wgsl b/test/tint/builtins/gen/literal/length/becebf.wgsl index 6a3481e3bb..6e117471ab 100644 --- a/test/tint/builtins/gen/literal/length/becebf.wgsl +++ b/test/tint/builtins/gen/literal/length/becebf.wgsl @@ -28,18 +28,18 @@ fn length_becebf() { var res: f32 = length(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { length_becebf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { length_becebf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { length_becebf(); } diff --git a/test/tint/builtins/gen/literal/length/becebf.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/length/becebf.wgsl.expected.wgsl index 2a90f076c0..77f0909a0f 100644 --- a/test/tint/builtins/gen/literal/length/becebf.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/length/becebf.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn length_becebf() { var res : f32 = length(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { length_becebf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { length_becebf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { length_becebf(); } diff --git a/test/tint/builtins/gen/literal/log/3da25a.wgsl b/test/tint/builtins/gen/literal/log/3da25a.wgsl index b10d7ce268..593535c4e9 100644 --- a/test/tint/builtins/gen/literal/log/3da25a.wgsl +++ b/test/tint/builtins/gen/literal/log/3da25a.wgsl @@ -28,18 +28,18 @@ fn log_3da25a() { var res: vec4 = log(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log_3da25a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log_3da25a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log_3da25a(); } diff --git a/test/tint/builtins/gen/literal/log/3da25a.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/log/3da25a.wgsl.expected.wgsl index 2265445957..a772327763 100644 --- a/test/tint/builtins/gen/literal/log/3da25a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/log/3da25a.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn log_3da25a() { var res : vec4 = log(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log_3da25a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log_3da25a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log_3da25a(); } diff --git a/test/tint/builtins/gen/literal/log/7114a6.wgsl b/test/tint/builtins/gen/literal/log/7114a6.wgsl index 3bce023dd2..9267ece291 100644 --- a/test/tint/builtins/gen/literal/log/7114a6.wgsl +++ b/test/tint/builtins/gen/literal/log/7114a6.wgsl @@ -28,18 +28,18 @@ fn log_7114a6() { var res: f32 = log(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log_7114a6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log_7114a6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log_7114a6(); } diff --git a/test/tint/builtins/gen/literal/log/7114a6.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/log/7114a6.wgsl.expected.wgsl index 6a688f0dcd..040bf35206 100644 --- a/test/tint/builtins/gen/literal/log/7114a6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/log/7114a6.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn log_7114a6() { var res : f32 = log(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log_7114a6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log_7114a6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log_7114a6(); } diff --git a/test/tint/builtins/gen/literal/log/b2ce28.wgsl b/test/tint/builtins/gen/literal/log/b2ce28.wgsl index 842afe4022..1854ce540e 100644 --- a/test/tint/builtins/gen/literal/log/b2ce28.wgsl +++ b/test/tint/builtins/gen/literal/log/b2ce28.wgsl @@ -28,18 +28,18 @@ fn log_b2ce28() { var res: vec2 = log(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log_b2ce28(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log_b2ce28(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log_b2ce28(); } diff --git a/test/tint/builtins/gen/literal/log/b2ce28.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/log/b2ce28.wgsl.expected.wgsl index 023eb1b45b..b504d96228 100644 --- a/test/tint/builtins/gen/literal/log/b2ce28.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/log/b2ce28.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn log_b2ce28() { var res : vec2 = log(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log_b2ce28(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log_b2ce28(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log_b2ce28(); } diff --git a/test/tint/builtins/gen/literal/log/f4c570.wgsl b/test/tint/builtins/gen/literal/log/f4c570.wgsl index 544d8802a2..93ae9237f2 100644 --- a/test/tint/builtins/gen/literal/log/f4c570.wgsl +++ b/test/tint/builtins/gen/literal/log/f4c570.wgsl @@ -28,18 +28,18 @@ fn log_f4c570() { var res: vec3 = log(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log_f4c570(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log_f4c570(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log_f4c570(); } diff --git a/test/tint/builtins/gen/literal/log/f4c570.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/log/f4c570.wgsl.expected.wgsl index 9317aad7c3..6bb8358e47 100644 --- a/test/tint/builtins/gen/literal/log/f4c570.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/log/f4c570.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn log_f4c570() { var res : vec3 = log(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log_f4c570(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log_f4c570(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log_f4c570(); } diff --git a/test/tint/builtins/gen/literal/log2/4036ed.wgsl b/test/tint/builtins/gen/literal/log2/4036ed.wgsl index da8ae3ed5a..d7604ea601 100644 --- a/test/tint/builtins/gen/literal/log2/4036ed.wgsl +++ b/test/tint/builtins/gen/literal/log2/4036ed.wgsl @@ -28,18 +28,18 @@ fn log2_4036ed() { var res: f32 = log2(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log2_4036ed(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log2_4036ed(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log2_4036ed(); } diff --git a/test/tint/builtins/gen/literal/log2/4036ed.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/log2/4036ed.wgsl.expected.wgsl index e64775f525..afaf861537 100644 --- a/test/tint/builtins/gen/literal/log2/4036ed.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/log2/4036ed.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn log2_4036ed() { var res : f32 = log2(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log2_4036ed(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log2_4036ed(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log2_4036ed(); } diff --git a/test/tint/builtins/gen/literal/log2/902988.wgsl b/test/tint/builtins/gen/literal/log2/902988.wgsl index c9af8549d5..e8f4b077c6 100644 --- a/test/tint/builtins/gen/literal/log2/902988.wgsl +++ b/test/tint/builtins/gen/literal/log2/902988.wgsl @@ -28,18 +28,18 @@ fn log2_902988() { var res: vec4 = log2(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log2_902988(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log2_902988(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log2_902988(); } diff --git a/test/tint/builtins/gen/literal/log2/902988.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/log2/902988.wgsl.expected.wgsl index 345da9e439..f493458730 100644 --- a/test/tint/builtins/gen/literal/log2/902988.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/log2/902988.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn log2_902988() { var res : vec4 = log2(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log2_902988(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log2_902988(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log2_902988(); } diff --git a/test/tint/builtins/gen/literal/log2/adb233.wgsl b/test/tint/builtins/gen/literal/log2/adb233.wgsl index f4d516f1be..17cbe44ed5 100644 --- a/test/tint/builtins/gen/literal/log2/adb233.wgsl +++ b/test/tint/builtins/gen/literal/log2/adb233.wgsl @@ -28,18 +28,18 @@ fn log2_adb233() { var res: vec3 = log2(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log2_adb233(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log2_adb233(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log2_adb233(); } diff --git a/test/tint/builtins/gen/literal/log2/adb233.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/log2/adb233.wgsl.expected.wgsl index 89634c272c..9a00f7fbec 100644 --- a/test/tint/builtins/gen/literal/log2/adb233.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/log2/adb233.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn log2_adb233() { var res : vec3 = log2(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log2_adb233(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log2_adb233(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log2_adb233(); } diff --git a/test/tint/builtins/gen/literal/log2/aea659.wgsl b/test/tint/builtins/gen/literal/log2/aea659.wgsl index 46e3ef8c49..281ef83875 100644 --- a/test/tint/builtins/gen/literal/log2/aea659.wgsl +++ b/test/tint/builtins/gen/literal/log2/aea659.wgsl @@ -28,18 +28,18 @@ fn log2_aea659() { var res: vec2 = log2(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log2_aea659(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log2_aea659(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log2_aea659(); } diff --git a/test/tint/builtins/gen/literal/log2/aea659.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/log2/aea659.wgsl.expected.wgsl index a77648e8ed..562880d55e 100644 --- a/test/tint/builtins/gen/literal/log2/aea659.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/log2/aea659.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn log2_aea659() { var res : vec2 = log2(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log2_aea659(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log2_aea659(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log2_aea659(); } diff --git a/test/tint/builtins/gen/literal/max/0c0aae.wgsl b/test/tint/builtins/gen/literal/max/0c0aae.wgsl index 31e3b8c7b9..6dcc882311 100644 --- a/test/tint/builtins/gen/literal/max/0c0aae.wgsl +++ b/test/tint/builtins/gen/literal/max/0c0aae.wgsl @@ -28,18 +28,18 @@ fn max_0c0aae() { var res: u32 = max(1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_0c0aae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_0c0aae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_0c0aae(); } diff --git a/test/tint/builtins/gen/literal/max/0c0aae.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/max/0c0aae.wgsl.expected.wgsl index a34b9ff497..33e2de9ae5 100644 --- a/test/tint/builtins/gen/literal/max/0c0aae.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/max/0c0aae.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn max_0c0aae() { var res : u32 = max(1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_0c0aae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_0c0aae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_0c0aae(); } diff --git a/test/tint/builtins/gen/literal/max/25eafe.wgsl b/test/tint/builtins/gen/literal/max/25eafe.wgsl index 717de1972e..38b4c97818 100644 --- a/test/tint/builtins/gen/literal/max/25eafe.wgsl +++ b/test/tint/builtins/gen/literal/max/25eafe.wgsl @@ -28,18 +28,18 @@ fn max_25eafe() { var res: vec3 = max(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_25eafe(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_25eafe(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_25eafe(); } diff --git a/test/tint/builtins/gen/literal/max/25eafe.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/max/25eafe.wgsl.expected.wgsl index 7b9f06a8c2..0c64e2473e 100644 --- a/test/tint/builtins/gen/literal/max/25eafe.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/max/25eafe.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn max_25eafe() { var res : vec3 = max(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_25eafe(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_25eafe(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_25eafe(); } diff --git a/test/tint/builtins/gen/literal/max/320815.wgsl b/test/tint/builtins/gen/literal/max/320815.wgsl index 4c70788c48..ef566a680a 100644 --- a/test/tint/builtins/gen/literal/max/320815.wgsl +++ b/test/tint/builtins/gen/literal/max/320815.wgsl @@ -28,18 +28,18 @@ fn max_320815() { var res: vec2 = max(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_320815(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_320815(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_320815(); } diff --git a/test/tint/builtins/gen/literal/max/320815.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/max/320815.wgsl.expected.wgsl index 04e54a0fa5..d3ac55294f 100644 --- a/test/tint/builtins/gen/literal/max/320815.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/max/320815.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn max_320815() { var res : vec2 = max(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_320815(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_320815(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_320815(); } diff --git a/test/tint/builtins/gen/literal/max/44a39d.wgsl b/test/tint/builtins/gen/literal/max/44a39d.wgsl index 5c38a89749..037045f22b 100644 --- a/test/tint/builtins/gen/literal/max/44a39d.wgsl +++ b/test/tint/builtins/gen/literal/max/44a39d.wgsl @@ -28,18 +28,18 @@ fn max_44a39d() { var res: f32 = max(1.0, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_44a39d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_44a39d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_44a39d(); } diff --git a/test/tint/builtins/gen/literal/max/44a39d.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/max/44a39d.wgsl.expected.wgsl index 1913b8fd03..44ddd84f24 100644 --- a/test/tint/builtins/gen/literal/max/44a39d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/max/44a39d.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn max_44a39d() { var res : f32 = max(1.0, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_44a39d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_44a39d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_44a39d(); } diff --git a/test/tint/builtins/gen/literal/max/453e04.wgsl b/test/tint/builtins/gen/literal/max/453e04.wgsl index df4f70beba..f1fc2d0638 100644 --- a/test/tint/builtins/gen/literal/max/453e04.wgsl +++ b/test/tint/builtins/gen/literal/max/453e04.wgsl @@ -28,18 +28,18 @@ fn max_453e04() { var res: vec4 = max(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_453e04(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_453e04(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_453e04(); } diff --git a/test/tint/builtins/gen/literal/max/453e04.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/max/453e04.wgsl.expected.wgsl index 39e7e48679..a5426dda86 100644 --- a/test/tint/builtins/gen/literal/max/453e04.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/max/453e04.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn max_453e04() { var res : vec4 = max(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_453e04(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_453e04(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_453e04(); } diff --git a/test/tint/builtins/gen/literal/max/462050.wgsl b/test/tint/builtins/gen/literal/max/462050.wgsl index 7c37686828..01afaf5ace 100644 --- a/test/tint/builtins/gen/literal/max/462050.wgsl +++ b/test/tint/builtins/gen/literal/max/462050.wgsl @@ -28,18 +28,18 @@ fn max_462050() { var res: vec2 = max(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_462050(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_462050(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_462050(); } diff --git a/test/tint/builtins/gen/literal/max/462050.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/max/462050.wgsl.expected.wgsl index eec4107b03..608a2518da 100644 --- a/test/tint/builtins/gen/literal/max/462050.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/max/462050.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn max_462050() { var res : vec2 = max(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_462050(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_462050(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_462050(); } diff --git a/test/tint/builtins/gen/literal/max/4883ac.wgsl b/test/tint/builtins/gen/literal/max/4883ac.wgsl index f94ba6cd6c..db981e2cd5 100644 --- a/test/tint/builtins/gen/literal/max/4883ac.wgsl +++ b/test/tint/builtins/gen/literal/max/4883ac.wgsl @@ -28,18 +28,18 @@ fn max_4883ac() { var res: vec3 = max(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_4883ac(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_4883ac(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_4883ac(); } diff --git a/test/tint/builtins/gen/literal/max/4883ac.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/max/4883ac.wgsl.expected.wgsl index cc37098330..c546b80a13 100644 --- a/test/tint/builtins/gen/literal/max/4883ac.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/max/4883ac.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn max_4883ac() { var res : vec3 = max(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_4883ac(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_4883ac(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_4883ac(); } diff --git a/test/tint/builtins/gen/literal/max/85e6bc.wgsl b/test/tint/builtins/gen/literal/max/85e6bc.wgsl index e62f000d1d..2c83e893d7 100644 --- a/test/tint/builtins/gen/literal/max/85e6bc.wgsl +++ b/test/tint/builtins/gen/literal/max/85e6bc.wgsl @@ -28,18 +28,18 @@ fn max_85e6bc() { var res: vec4 = max(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_85e6bc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_85e6bc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_85e6bc(); } diff --git a/test/tint/builtins/gen/literal/max/85e6bc.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/max/85e6bc.wgsl.expected.wgsl index 6f6b39f35a..4f221661a4 100644 --- a/test/tint/builtins/gen/literal/max/85e6bc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/max/85e6bc.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn max_85e6bc() { var res : vec4 = max(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_85e6bc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_85e6bc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_85e6bc(); } diff --git a/test/tint/builtins/gen/literal/max/a93419.wgsl b/test/tint/builtins/gen/literal/max/a93419.wgsl index 8105d255eb..6d51baa41b 100644 --- a/test/tint/builtins/gen/literal/max/a93419.wgsl +++ b/test/tint/builtins/gen/literal/max/a93419.wgsl @@ -28,18 +28,18 @@ fn max_a93419() { var res: vec4 = max(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_a93419(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_a93419(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_a93419(); } diff --git a/test/tint/builtins/gen/literal/max/a93419.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/max/a93419.wgsl.expected.wgsl index 8c1c938493..8058515758 100644 --- a/test/tint/builtins/gen/literal/max/a93419.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/max/a93419.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn max_a93419() { var res : vec4 = max(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_a93419(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_a93419(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_a93419(); } diff --git a/test/tint/builtins/gen/literal/max/b1b73a.wgsl b/test/tint/builtins/gen/literal/max/b1b73a.wgsl index ae43e46e50..4903288b85 100644 --- a/test/tint/builtins/gen/literal/max/b1b73a.wgsl +++ b/test/tint/builtins/gen/literal/max/b1b73a.wgsl @@ -28,18 +28,18 @@ fn max_b1b73a() { var res: vec3 = max(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_b1b73a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_b1b73a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_b1b73a(); } diff --git a/test/tint/builtins/gen/literal/max/b1b73a.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/max/b1b73a.wgsl.expected.wgsl index ffe0dc5d69..6a206ee7f0 100644 --- a/test/tint/builtins/gen/literal/max/b1b73a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/max/b1b73a.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn max_b1b73a() { var res : vec3 = max(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_b1b73a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_b1b73a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_b1b73a(); } diff --git a/test/tint/builtins/gen/literal/max/ce7c30.wgsl b/test/tint/builtins/gen/literal/max/ce7c30.wgsl index ce0ecbbcaa..7e0abaf33c 100644 --- a/test/tint/builtins/gen/literal/max/ce7c30.wgsl +++ b/test/tint/builtins/gen/literal/max/ce7c30.wgsl @@ -28,18 +28,18 @@ fn max_ce7c30() { var res: i32 = max(1, 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_ce7c30(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_ce7c30(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_ce7c30(); } diff --git a/test/tint/builtins/gen/literal/max/ce7c30.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/max/ce7c30.wgsl.expected.wgsl index a9c3618a5a..68d5a6ecc1 100644 --- a/test/tint/builtins/gen/literal/max/ce7c30.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/max/ce7c30.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn max_ce7c30() { var res : i32 = max(1, 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_ce7c30(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_ce7c30(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_ce7c30(); } diff --git a/test/tint/builtins/gen/literal/max/e8192f.wgsl b/test/tint/builtins/gen/literal/max/e8192f.wgsl index 61085c4be3..a48d7041d8 100644 --- a/test/tint/builtins/gen/literal/max/e8192f.wgsl +++ b/test/tint/builtins/gen/literal/max/e8192f.wgsl @@ -28,18 +28,18 @@ fn max_e8192f() { var res: vec2 = max(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_e8192f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_e8192f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_e8192f(); } diff --git a/test/tint/builtins/gen/literal/max/e8192f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/max/e8192f.wgsl.expected.wgsl index 08d02f6b9f..cd7cae14d8 100644 --- a/test/tint/builtins/gen/literal/max/e8192f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/max/e8192f.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn max_e8192f() { var res : vec2 = max(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_e8192f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_e8192f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_e8192f(); } diff --git a/test/tint/builtins/gen/literal/min/03c7e3.wgsl b/test/tint/builtins/gen/literal/min/03c7e3.wgsl index 8155b49534..e07f5b1620 100644 --- a/test/tint/builtins/gen/literal/min/03c7e3.wgsl +++ b/test/tint/builtins/gen/literal/min/03c7e3.wgsl @@ -28,18 +28,18 @@ fn min_03c7e3() { var res: vec2 = min(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_03c7e3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_03c7e3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_03c7e3(); } diff --git a/test/tint/builtins/gen/literal/min/03c7e3.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/min/03c7e3.wgsl.expected.wgsl index 8c0cc9355a..9814eb9b94 100644 --- a/test/tint/builtins/gen/literal/min/03c7e3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/min/03c7e3.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn min_03c7e3() { var res : vec2 = min(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_03c7e3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_03c7e3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_03c7e3(); } diff --git a/test/tint/builtins/gen/literal/min/0dc614.wgsl b/test/tint/builtins/gen/literal/min/0dc614.wgsl index 41af73e045..c803614abc 100644 --- a/test/tint/builtins/gen/literal/min/0dc614.wgsl +++ b/test/tint/builtins/gen/literal/min/0dc614.wgsl @@ -28,18 +28,18 @@ fn min_0dc614() { var res: vec4 = min(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_0dc614(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_0dc614(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_0dc614(); } diff --git a/test/tint/builtins/gen/literal/min/0dc614.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/min/0dc614.wgsl.expected.wgsl index 983327093a..aef6335045 100644 --- a/test/tint/builtins/gen/literal/min/0dc614.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/min/0dc614.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn min_0dc614() { var res : vec4 = min(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_0dc614(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_0dc614(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_0dc614(); } diff --git a/test/tint/builtins/gen/literal/min/3941e1.wgsl b/test/tint/builtins/gen/literal/min/3941e1.wgsl index 3ae488ab81..4af9b45cd2 100644 --- a/test/tint/builtins/gen/literal/min/3941e1.wgsl +++ b/test/tint/builtins/gen/literal/min/3941e1.wgsl @@ -28,18 +28,18 @@ fn min_3941e1() { var res: vec4 = min(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_3941e1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_3941e1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_3941e1(); } diff --git a/test/tint/builtins/gen/literal/min/3941e1.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/min/3941e1.wgsl.expected.wgsl index 19dd5ee653..f64d01b027 100644 --- a/test/tint/builtins/gen/literal/min/3941e1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/min/3941e1.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn min_3941e1() { var res : vec4 = min(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_3941e1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_3941e1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_3941e1(); } diff --git a/test/tint/builtins/gen/literal/min/46c5d3.wgsl b/test/tint/builtins/gen/literal/min/46c5d3.wgsl index d81860d278..f93291d638 100644 --- a/test/tint/builtins/gen/literal/min/46c5d3.wgsl +++ b/test/tint/builtins/gen/literal/min/46c5d3.wgsl @@ -28,18 +28,18 @@ fn min_46c5d3() { var res: u32 = min(1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_46c5d3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_46c5d3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_46c5d3(); } diff --git a/test/tint/builtins/gen/literal/min/46c5d3.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/min/46c5d3.wgsl.expected.wgsl index 2beab9a8bf..c4d2300ade 100644 --- a/test/tint/builtins/gen/literal/min/46c5d3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/min/46c5d3.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn min_46c5d3() { var res : u32 = min(1u, 1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_46c5d3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_46c5d3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_46c5d3(); } diff --git a/test/tint/builtins/gen/literal/min/82b28f.wgsl b/test/tint/builtins/gen/literal/min/82b28f.wgsl index 7ddd2ed883..3e152dcd0c 100644 --- a/test/tint/builtins/gen/literal/min/82b28f.wgsl +++ b/test/tint/builtins/gen/literal/min/82b28f.wgsl @@ -28,18 +28,18 @@ fn min_82b28f() { var res: vec2 = min(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_82b28f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_82b28f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_82b28f(); } diff --git a/test/tint/builtins/gen/literal/min/82b28f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/min/82b28f.wgsl.expected.wgsl index a942532bc2..13f7dde566 100644 --- a/test/tint/builtins/gen/literal/min/82b28f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/min/82b28f.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn min_82b28f() { var res : vec2 = min(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_82b28f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_82b28f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_82b28f(); } diff --git a/test/tint/builtins/gen/literal/min/93cfc4.wgsl b/test/tint/builtins/gen/literal/min/93cfc4.wgsl index e550e19d86..84e45b5b0d 100644 --- a/test/tint/builtins/gen/literal/min/93cfc4.wgsl +++ b/test/tint/builtins/gen/literal/min/93cfc4.wgsl @@ -28,18 +28,18 @@ fn min_93cfc4() { var res: vec3 = min(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_93cfc4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_93cfc4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_93cfc4(); } diff --git a/test/tint/builtins/gen/literal/min/93cfc4.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/min/93cfc4.wgsl.expected.wgsl index c66aae09fc..bc1ce596e1 100644 --- a/test/tint/builtins/gen/literal/min/93cfc4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/min/93cfc4.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn min_93cfc4() { var res : vec3 = min(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_93cfc4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_93cfc4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_93cfc4(); } diff --git a/test/tint/builtins/gen/literal/min/a45171.wgsl b/test/tint/builtins/gen/literal/min/a45171.wgsl index 6d0bce1840..ff064e6a16 100644 --- a/test/tint/builtins/gen/literal/min/a45171.wgsl +++ b/test/tint/builtins/gen/literal/min/a45171.wgsl @@ -28,18 +28,18 @@ fn min_a45171() { var res: vec3 = min(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_a45171(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_a45171(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_a45171(); } diff --git a/test/tint/builtins/gen/literal/min/a45171.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/min/a45171.wgsl.expected.wgsl index ade6f575c5..21846d808d 100644 --- a/test/tint/builtins/gen/literal/min/a45171.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/min/a45171.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn min_a45171() { var res : vec3 = min(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_a45171(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_a45171(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_a45171(); } diff --git a/test/tint/builtins/gen/literal/min/aa28ad.wgsl b/test/tint/builtins/gen/literal/min/aa28ad.wgsl index 4c1777f52a..06a34382ba 100644 --- a/test/tint/builtins/gen/literal/min/aa28ad.wgsl +++ b/test/tint/builtins/gen/literal/min/aa28ad.wgsl @@ -28,18 +28,18 @@ fn min_aa28ad() { var res: vec2 = min(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_aa28ad(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_aa28ad(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_aa28ad(); } diff --git a/test/tint/builtins/gen/literal/min/aa28ad.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/min/aa28ad.wgsl.expected.wgsl index 0830734705..d7d651971c 100644 --- a/test/tint/builtins/gen/literal/min/aa28ad.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/min/aa28ad.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn min_aa28ad() { var res : vec2 = min(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_aa28ad(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_aa28ad(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_aa28ad(); } diff --git a/test/tint/builtins/gen/literal/min/af326d.wgsl b/test/tint/builtins/gen/literal/min/af326d.wgsl index d7b275db19..fe607d5f2c 100644 --- a/test/tint/builtins/gen/literal/min/af326d.wgsl +++ b/test/tint/builtins/gen/literal/min/af326d.wgsl @@ -28,18 +28,18 @@ fn min_af326d() { var res: f32 = min(1.0, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_af326d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_af326d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_af326d(); } diff --git a/test/tint/builtins/gen/literal/min/af326d.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/min/af326d.wgsl.expected.wgsl index c0500c38b6..3cf8c8baf1 100644 --- a/test/tint/builtins/gen/literal/min/af326d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/min/af326d.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn min_af326d() { var res : f32 = min(1.0, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_af326d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_af326d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_af326d(); } diff --git a/test/tint/builtins/gen/literal/min/c70bb7.wgsl b/test/tint/builtins/gen/literal/min/c70bb7.wgsl index cc382f72fa..bb2c99fa13 100644 --- a/test/tint/builtins/gen/literal/min/c70bb7.wgsl +++ b/test/tint/builtins/gen/literal/min/c70bb7.wgsl @@ -28,18 +28,18 @@ fn min_c70bb7() { var res: vec3 = min(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_c70bb7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_c70bb7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_c70bb7(); } diff --git a/test/tint/builtins/gen/literal/min/c70bb7.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/min/c70bb7.wgsl.expected.wgsl index d113cdb1d7..f08a503200 100644 --- a/test/tint/builtins/gen/literal/min/c70bb7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/min/c70bb7.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn min_c70bb7() { var res : vec3 = min(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_c70bb7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_c70bb7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_c70bb7(); } diff --git a/test/tint/builtins/gen/literal/min/c73147.wgsl b/test/tint/builtins/gen/literal/min/c73147.wgsl index f7c6d21faf..eff083a055 100644 --- a/test/tint/builtins/gen/literal/min/c73147.wgsl +++ b/test/tint/builtins/gen/literal/min/c73147.wgsl @@ -28,18 +28,18 @@ fn min_c73147() { var res: i32 = min(1, 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_c73147(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_c73147(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_c73147(); } diff --git a/test/tint/builtins/gen/literal/min/c73147.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/min/c73147.wgsl.expected.wgsl index 3221e2ea57..fa6bec9ca0 100644 --- a/test/tint/builtins/gen/literal/min/c73147.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/min/c73147.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn min_c73147() { var res : i32 = min(1, 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_c73147(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_c73147(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_c73147(); } diff --git a/test/tint/builtins/gen/literal/min/c76fa6.wgsl b/test/tint/builtins/gen/literal/min/c76fa6.wgsl index a696f37875..6c5794bc76 100644 --- a/test/tint/builtins/gen/literal/min/c76fa6.wgsl +++ b/test/tint/builtins/gen/literal/min/c76fa6.wgsl @@ -28,18 +28,18 @@ fn min_c76fa6() { var res: vec4 = min(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_c76fa6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_c76fa6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_c76fa6(); } diff --git a/test/tint/builtins/gen/literal/min/c76fa6.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/min/c76fa6.wgsl.expected.wgsl index 3a01a8886a..6b486e3d25 100644 --- a/test/tint/builtins/gen/literal/min/c76fa6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/min/c76fa6.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn min_c76fa6() { var res : vec4 = min(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_c76fa6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_c76fa6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_c76fa6(); } diff --git a/test/tint/builtins/gen/literal/mix/0c8c33.wgsl b/test/tint/builtins/gen/literal/mix/0c8c33.wgsl index b6c3b9077a..7d1a06f4e2 100644 --- a/test/tint/builtins/gen/literal/mix/0c8c33.wgsl +++ b/test/tint/builtins/gen/literal/mix/0c8c33.wgsl @@ -28,18 +28,18 @@ fn mix_0c8c33() { var res: vec3 = mix(vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_0c8c33(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_0c8c33(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_0c8c33(); } diff --git a/test/tint/builtins/gen/literal/mix/0c8c33.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/mix/0c8c33.wgsl.expected.wgsl index d76f3e3d29..4c2b6d111f 100644 --- a/test/tint/builtins/gen/literal/mix/0c8c33.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/mix/0c8c33.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn mix_0c8c33() { var res : vec3 = mix(vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_0c8c33(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_0c8c33(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_0c8c33(); } diff --git a/test/tint/builtins/gen/literal/mix/1faeb1.wgsl b/test/tint/builtins/gen/literal/mix/1faeb1.wgsl index bf90b085ef..a5354fcc7c 100644 --- a/test/tint/builtins/gen/literal/mix/1faeb1.wgsl +++ b/test/tint/builtins/gen/literal/mix/1faeb1.wgsl @@ -28,18 +28,18 @@ fn mix_1faeb1() { var res: vec4 = mix(vec4(), vec4(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_1faeb1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_1faeb1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_1faeb1(); } diff --git a/test/tint/builtins/gen/literal/mix/1faeb1.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/mix/1faeb1.wgsl.expected.wgsl index ffeab6ad15..355a438e87 100644 --- a/test/tint/builtins/gen/literal/mix/1faeb1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/mix/1faeb1.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn mix_1faeb1() { var res : vec4 = mix(vec4(), vec4(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_1faeb1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_1faeb1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_1faeb1(); } diff --git a/test/tint/builtins/gen/literal/mix/2fadab.wgsl b/test/tint/builtins/gen/literal/mix/2fadab.wgsl index 175c4ed52b..ccfeb73ba8 100644 --- a/test/tint/builtins/gen/literal/mix/2fadab.wgsl +++ b/test/tint/builtins/gen/literal/mix/2fadab.wgsl @@ -28,18 +28,18 @@ fn mix_2fadab() { var res: vec2 = mix(vec2(), vec2(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_2fadab(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_2fadab(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_2fadab(); } diff --git a/test/tint/builtins/gen/literal/mix/2fadab.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/mix/2fadab.wgsl.expected.wgsl index d084ab68bf..43188af882 100644 --- a/test/tint/builtins/gen/literal/mix/2fadab.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/mix/2fadab.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn mix_2fadab() { var res : vec2 = mix(vec2(), vec2(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_2fadab(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_2fadab(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_2fadab(); } diff --git a/test/tint/builtins/gen/literal/mix/315264.wgsl b/test/tint/builtins/gen/literal/mix/315264.wgsl index 0e8b9dbdea..f7c7d0caf5 100644 --- a/test/tint/builtins/gen/literal/mix/315264.wgsl +++ b/test/tint/builtins/gen/literal/mix/315264.wgsl @@ -28,18 +28,18 @@ fn mix_315264() { var res: vec3 = mix(vec3(), vec3(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_315264(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_315264(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_315264(); } diff --git a/test/tint/builtins/gen/literal/mix/315264.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/mix/315264.wgsl.expected.wgsl index 40fae02cce..2bed41c2f8 100644 --- a/test/tint/builtins/gen/literal/mix/315264.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/mix/315264.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn mix_315264() { var res : vec3 = mix(vec3(), vec3(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_315264(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_315264(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_315264(); } diff --git a/test/tint/builtins/gen/literal/mix/4f0b5e.wgsl b/test/tint/builtins/gen/literal/mix/4f0b5e.wgsl index f9591310f6..faf842b936 100644 --- a/test/tint/builtins/gen/literal/mix/4f0b5e.wgsl +++ b/test/tint/builtins/gen/literal/mix/4f0b5e.wgsl @@ -28,18 +28,18 @@ fn mix_4f0b5e() { var res: f32 = mix(1.0, 1.0, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_4f0b5e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_4f0b5e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_4f0b5e(); } diff --git a/test/tint/builtins/gen/literal/mix/4f0b5e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/mix/4f0b5e.wgsl.expected.wgsl index 67679c4963..81859ea362 100644 --- a/test/tint/builtins/gen/literal/mix/4f0b5e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/mix/4f0b5e.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn mix_4f0b5e() { var res : f32 = mix(1.0, 1.0, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_4f0b5e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_4f0b5e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_4f0b5e(); } diff --git a/test/tint/builtins/gen/literal/mix/6f8adc.wgsl b/test/tint/builtins/gen/literal/mix/6f8adc.wgsl index d95c6dc81b..1dfe2016f2 100644 --- a/test/tint/builtins/gen/literal/mix/6f8adc.wgsl +++ b/test/tint/builtins/gen/literal/mix/6f8adc.wgsl @@ -28,18 +28,18 @@ fn mix_6f8adc() { var res: vec2 = mix(vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_6f8adc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_6f8adc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_6f8adc(); } diff --git a/test/tint/builtins/gen/literal/mix/6f8adc.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/mix/6f8adc.wgsl.expected.wgsl index 2bd55cc18e..05aa3a2387 100644 --- a/test/tint/builtins/gen/literal/mix/6f8adc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/mix/6f8adc.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn mix_6f8adc() { var res : vec2 = mix(vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_6f8adc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_6f8adc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_6f8adc(); } diff --git a/test/tint/builtins/gen/literal/mix/c37ede.wgsl b/test/tint/builtins/gen/literal/mix/c37ede.wgsl index 4c28c9b3aa..95fd2b10ca 100644 --- a/test/tint/builtins/gen/literal/mix/c37ede.wgsl +++ b/test/tint/builtins/gen/literal/mix/c37ede.wgsl @@ -28,18 +28,18 @@ fn mix_c37ede() { var res: vec4 = mix(vec4(), vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_c37ede(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_c37ede(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_c37ede(); } diff --git a/test/tint/builtins/gen/literal/mix/c37ede.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/mix/c37ede.wgsl.expected.wgsl index 4d3d087cf6..f0a5da8892 100644 --- a/test/tint/builtins/gen/literal/mix/c37ede.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/mix/c37ede.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn mix_c37ede() { var res : vec4 = mix(vec4(), vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_c37ede(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_c37ede(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_c37ede(); } diff --git a/test/tint/builtins/gen/literal/modf/180fed.wgsl b/test/tint/builtins/gen/literal/modf/180fed.wgsl index 64fb940b0f..1084647499 100644 --- a/test/tint/builtins/gen/literal/modf/180fed.wgsl +++ b/test/tint/builtins/gen/literal/modf/180fed.wgsl @@ -28,18 +28,18 @@ fn modf_180fed() { var res = modf(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { modf_180fed(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { modf_180fed(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { modf_180fed(); } diff --git a/test/tint/builtins/gen/literal/modf/180fed.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/modf/180fed.wgsl.expected.wgsl index 3865c224a5..16690e4b9e 100644 --- a/test/tint/builtins/gen/literal/modf/180fed.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/modf/180fed.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn modf_180fed() { var res = modf(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { modf_180fed(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { modf_180fed(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { modf_180fed(); } diff --git a/test/tint/builtins/gen/literal/modf/9b75f7.wgsl b/test/tint/builtins/gen/literal/modf/9b75f7.wgsl index 514c34522c..2821fb2d3f 100644 --- a/test/tint/builtins/gen/literal/modf/9b75f7.wgsl +++ b/test/tint/builtins/gen/literal/modf/9b75f7.wgsl @@ -28,18 +28,18 @@ fn modf_9b75f7() { var res = modf(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { modf_9b75f7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { modf_9b75f7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { modf_9b75f7(); } diff --git a/test/tint/builtins/gen/literal/modf/9b75f7.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/modf/9b75f7.wgsl.expected.wgsl index 90eaf3a104..24727c69de 100644 --- a/test/tint/builtins/gen/literal/modf/9b75f7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/modf/9b75f7.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn modf_9b75f7() { var res = modf(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { modf_9b75f7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { modf_9b75f7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { modf_9b75f7(); } diff --git a/test/tint/builtins/gen/literal/modf/ec2dbc.wgsl b/test/tint/builtins/gen/literal/modf/ec2dbc.wgsl index 175dd84a05..705bf574e1 100644 --- a/test/tint/builtins/gen/literal/modf/ec2dbc.wgsl +++ b/test/tint/builtins/gen/literal/modf/ec2dbc.wgsl @@ -28,18 +28,18 @@ fn modf_ec2dbc() { var res = modf(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { modf_ec2dbc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { modf_ec2dbc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { modf_ec2dbc(); } diff --git a/test/tint/builtins/gen/literal/modf/ec2dbc.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/modf/ec2dbc.wgsl.expected.wgsl index 6c3380d286..29b1da6235 100644 --- a/test/tint/builtins/gen/literal/modf/ec2dbc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/modf/ec2dbc.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn modf_ec2dbc() { var res = modf(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { modf_ec2dbc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { modf_ec2dbc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { modf_ec2dbc(); } diff --git a/test/tint/builtins/gen/literal/modf/f5f20d.wgsl b/test/tint/builtins/gen/literal/modf/f5f20d.wgsl index e3b3becace..b59ff813d8 100644 --- a/test/tint/builtins/gen/literal/modf/f5f20d.wgsl +++ b/test/tint/builtins/gen/literal/modf/f5f20d.wgsl @@ -28,18 +28,18 @@ fn modf_f5f20d() { var res = modf(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { modf_f5f20d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { modf_f5f20d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { modf_f5f20d(); } diff --git a/test/tint/builtins/gen/literal/modf/f5f20d.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/modf/f5f20d.wgsl.expected.wgsl index 8dea55c304..8e78a457c2 100644 --- a/test/tint/builtins/gen/literal/modf/f5f20d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/modf/f5f20d.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn modf_f5f20d() { var res = modf(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { modf_f5f20d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { modf_f5f20d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { modf_f5f20d(); } diff --git a/test/tint/builtins/gen/literal/normalize/64d8c0.wgsl b/test/tint/builtins/gen/literal/normalize/64d8c0.wgsl index 78db9df47c..e640191c78 100644 --- a/test/tint/builtins/gen/literal/normalize/64d8c0.wgsl +++ b/test/tint/builtins/gen/literal/normalize/64d8c0.wgsl @@ -28,18 +28,18 @@ fn normalize_64d8c0() { var res: vec3 = normalize(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { normalize_64d8c0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { normalize_64d8c0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { normalize_64d8c0(); } diff --git a/test/tint/builtins/gen/literal/normalize/64d8c0.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/normalize/64d8c0.wgsl.expected.wgsl index 57444c8fc6..ac57ff174a 100644 --- a/test/tint/builtins/gen/literal/normalize/64d8c0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/normalize/64d8c0.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn normalize_64d8c0() { var res : vec3 = normalize(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { normalize_64d8c0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { normalize_64d8c0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { normalize_64d8c0(); } diff --git a/test/tint/builtins/gen/literal/normalize/9a0aab.wgsl b/test/tint/builtins/gen/literal/normalize/9a0aab.wgsl index 8c041adde5..0f92a9699c 100644 --- a/test/tint/builtins/gen/literal/normalize/9a0aab.wgsl +++ b/test/tint/builtins/gen/literal/normalize/9a0aab.wgsl @@ -28,18 +28,18 @@ fn normalize_9a0aab() { var res: vec4 = normalize(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { normalize_9a0aab(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { normalize_9a0aab(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { normalize_9a0aab(); } diff --git a/test/tint/builtins/gen/literal/normalize/9a0aab.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/normalize/9a0aab.wgsl.expected.wgsl index 1b3e0195dd..44226a52f3 100644 --- a/test/tint/builtins/gen/literal/normalize/9a0aab.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/normalize/9a0aab.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn normalize_9a0aab() { var res : vec4 = normalize(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { normalize_9a0aab(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { normalize_9a0aab(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { normalize_9a0aab(); } diff --git a/test/tint/builtins/gen/literal/normalize/fc2ef1.wgsl b/test/tint/builtins/gen/literal/normalize/fc2ef1.wgsl index 83c160580b..e1b02752ac 100644 --- a/test/tint/builtins/gen/literal/normalize/fc2ef1.wgsl +++ b/test/tint/builtins/gen/literal/normalize/fc2ef1.wgsl @@ -28,18 +28,18 @@ fn normalize_fc2ef1() { var res: vec2 = normalize(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { normalize_fc2ef1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { normalize_fc2ef1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { normalize_fc2ef1(); } diff --git a/test/tint/builtins/gen/literal/normalize/fc2ef1.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/normalize/fc2ef1.wgsl.expected.wgsl index b92ea5f711..e434b5847a 100644 --- a/test/tint/builtins/gen/literal/normalize/fc2ef1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/normalize/fc2ef1.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn normalize_fc2ef1() { var res : vec2 = normalize(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { normalize_fc2ef1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { normalize_fc2ef1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { normalize_fc2ef1(); } diff --git a/test/tint/builtins/gen/literal/pack2x16float/0e97b3.wgsl b/test/tint/builtins/gen/literal/pack2x16float/0e97b3.wgsl index 2f2d664927..41d1812456 100644 --- a/test/tint/builtins/gen/literal/pack2x16float/0e97b3.wgsl +++ b/test/tint/builtins/gen/literal/pack2x16float/0e97b3.wgsl @@ -28,18 +28,18 @@ fn pack2x16float_0e97b3() { var res: u32 = pack2x16float(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pack2x16float_0e97b3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pack2x16float_0e97b3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pack2x16float_0e97b3(); } diff --git a/test/tint/builtins/gen/literal/pack2x16float/0e97b3.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/pack2x16float/0e97b3.wgsl.expected.wgsl index 714304fa1e..fca0987f93 100644 --- a/test/tint/builtins/gen/literal/pack2x16float/0e97b3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/pack2x16float/0e97b3.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn pack2x16float_0e97b3() { var res : u32 = pack2x16float(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pack2x16float_0e97b3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pack2x16float_0e97b3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pack2x16float_0e97b3(); } diff --git a/test/tint/builtins/gen/literal/pack2x16snorm/6c169b.wgsl b/test/tint/builtins/gen/literal/pack2x16snorm/6c169b.wgsl index 980f6f3af8..4016aff2bf 100644 --- a/test/tint/builtins/gen/literal/pack2x16snorm/6c169b.wgsl +++ b/test/tint/builtins/gen/literal/pack2x16snorm/6c169b.wgsl @@ -28,18 +28,18 @@ fn pack2x16snorm_6c169b() { var res: u32 = pack2x16snorm(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pack2x16snorm_6c169b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pack2x16snorm_6c169b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pack2x16snorm_6c169b(); } diff --git a/test/tint/builtins/gen/literal/pack2x16snorm/6c169b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/pack2x16snorm/6c169b.wgsl.expected.wgsl index 9ccbc2f29f..0d9fafc4e4 100644 --- a/test/tint/builtins/gen/literal/pack2x16snorm/6c169b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/pack2x16snorm/6c169b.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn pack2x16snorm_6c169b() { var res : u32 = pack2x16snorm(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pack2x16snorm_6c169b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pack2x16snorm_6c169b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pack2x16snorm_6c169b(); } diff --git a/test/tint/builtins/gen/literal/pack2x16unorm/0f08e4.wgsl b/test/tint/builtins/gen/literal/pack2x16unorm/0f08e4.wgsl index 1e4432323c..9495e7288e 100644 --- a/test/tint/builtins/gen/literal/pack2x16unorm/0f08e4.wgsl +++ b/test/tint/builtins/gen/literal/pack2x16unorm/0f08e4.wgsl @@ -28,18 +28,18 @@ fn pack2x16unorm_0f08e4() { var res: u32 = pack2x16unorm(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pack2x16unorm_0f08e4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pack2x16unorm_0f08e4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pack2x16unorm_0f08e4(); } diff --git a/test/tint/builtins/gen/literal/pack2x16unorm/0f08e4.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/pack2x16unorm/0f08e4.wgsl.expected.wgsl index d523070e3a..0ddd089276 100644 --- a/test/tint/builtins/gen/literal/pack2x16unorm/0f08e4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/pack2x16unorm/0f08e4.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn pack2x16unorm_0f08e4() { var res : u32 = pack2x16unorm(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pack2x16unorm_0f08e4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pack2x16unorm_0f08e4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pack2x16unorm_0f08e4(); } diff --git a/test/tint/builtins/gen/literal/pack4x8snorm/4d22e7.wgsl b/test/tint/builtins/gen/literal/pack4x8snorm/4d22e7.wgsl index 97c44f9882..0fb26a6394 100644 --- a/test/tint/builtins/gen/literal/pack4x8snorm/4d22e7.wgsl +++ b/test/tint/builtins/gen/literal/pack4x8snorm/4d22e7.wgsl @@ -28,18 +28,18 @@ fn pack4x8snorm_4d22e7() { var res: u32 = pack4x8snorm(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pack4x8snorm_4d22e7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pack4x8snorm_4d22e7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pack4x8snorm_4d22e7(); } diff --git a/test/tint/builtins/gen/literal/pack4x8snorm/4d22e7.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/pack4x8snorm/4d22e7.wgsl.expected.wgsl index 53657e09d3..bb4d5a2e8f 100644 --- a/test/tint/builtins/gen/literal/pack4x8snorm/4d22e7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/pack4x8snorm/4d22e7.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn pack4x8snorm_4d22e7() { var res : u32 = pack4x8snorm(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pack4x8snorm_4d22e7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pack4x8snorm_4d22e7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pack4x8snorm_4d22e7(); } diff --git a/test/tint/builtins/gen/literal/pack4x8unorm/95c456.wgsl b/test/tint/builtins/gen/literal/pack4x8unorm/95c456.wgsl index 8f242babf0..9481f50df8 100644 --- a/test/tint/builtins/gen/literal/pack4x8unorm/95c456.wgsl +++ b/test/tint/builtins/gen/literal/pack4x8unorm/95c456.wgsl @@ -28,18 +28,18 @@ fn pack4x8unorm_95c456() { var res: u32 = pack4x8unorm(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pack4x8unorm_95c456(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pack4x8unorm_95c456(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pack4x8unorm_95c456(); } diff --git a/test/tint/builtins/gen/literal/pack4x8unorm/95c456.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/pack4x8unorm/95c456.wgsl.expected.wgsl index 55aedf3f62..1aca6f3027 100644 --- a/test/tint/builtins/gen/literal/pack4x8unorm/95c456.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/pack4x8unorm/95c456.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn pack4x8unorm_95c456() { var res : u32 = pack4x8unorm(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pack4x8unorm_95c456(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pack4x8unorm_95c456(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pack4x8unorm_95c456(); } diff --git a/test/tint/builtins/gen/literal/pow/04a908.wgsl b/test/tint/builtins/gen/literal/pow/04a908.wgsl index 537184752f..52effd61a9 100644 --- a/test/tint/builtins/gen/literal/pow/04a908.wgsl +++ b/test/tint/builtins/gen/literal/pow/04a908.wgsl @@ -28,18 +28,18 @@ fn pow_04a908() { var res: vec4 = pow(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pow_04a908(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pow_04a908(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pow_04a908(); } diff --git a/test/tint/builtins/gen/literal/pow/04a908.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/pow/04a908.wgsl.expected.wgsl index 395fe26772..315a4bc4c4 100644 --- a/test/tint/builtins/gen/literal/pow/04a908.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/pow/04a908.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn pow_04a908() { var res : vec4 = pow(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pow_04a908(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pow_04a908(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pow_04a908(); } diff --git a/test/tint/builtins/gen/literal/pow/46e029.wgsl b/test/tint/builtins/gen/literal/pow/46e029.wgsl index 16241f6ee6..533afb8c47 100644 --- a/test/tint/builtins/gen/literal/pow/46e029.wgsl +++ b/test/tint/builtins/gen/literal/pow/46e029.wgsl @@ -28,18 +28,18 @@ fn pow_46e029() { var res: f32 = pow(1.0, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pow_46e029(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pow_46e029(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pow_46e029(); } diff --git a/test/tint/builtins/gen/literal/pow/46e029.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/pow/46e029.wgsl.expected.wgsl index 167072001a..646aec39a1 100644 --- a/test/tint/builtins/gen/literal/pow/46e029.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/pow/46e029.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn pow_46e029() { var res : f32 = pow(1.0, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pow_46e029(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pow_46e029(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pow_46e029(); } diff --git a/test/tint/builtins/gen/literal/pow/4a46c9.wgsl b/test/tint/builtins/gen/literal/pow/4a46c9.wgsl index 58ceff0906..6c8cccfe33 100644 --- a/test/tint/builtins/gen/literal/pow/4a46c9.wgsl +++ b/test/tint/builtins/gen/literal/pow/4a46c9.wgsl @@ -28,18 +28,18 @@ fn pow_4a46c9() { var res: vec3 = pow(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pow_4a46c9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pow_4a46c9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pow_4a46c9(); } diff --git a/test/tint/builtins/gen/literal/pow/4a46c9.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/pow/4a46c9.wgsl.expected.wgsl index 4a6f3f9e92..1b7cf2d986 100644 --- a/test/tint/builtins/gen/literal/pow/4a46c9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/pow/4a46c9.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn pow_4a46c9() { var res : vec3 = pow(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pow_4a46c9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pow_4a46c9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pow_4a46c9(); } diff --git a/test/tint/builtins/gen/literal/pow/e60ea5.wgsl b/test/tint/builtins/gen/literal/pow/e60ea5.wgsl index 49392326d0..eea84ff930 100644 --- a/test/tint/builtins/gen/literal/pow/e60ea5.wgsl +++ b/test/tint/builtins/gen/literal/pow/e60ea5.wgsl @@ -28,18 +28,18 @@ fn pow_e60ea5() { var res: vec2 = pow(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pow_e60ea5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pow_e60ea5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pow_e60ea5(); } diff --git a/test/tint/builtins/gen/literal/pow/e60ea5.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/pow/e60ea5.wgsl.expected.wgsl index 0c6432ec58..a7d9fcb058 100644 --- a/test/tint/builtins/gen/literal/pow/e60ea5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/pow/e60ea5.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn pow_e60ea5() { var res : vec2 = pow(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pow_e60ea5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pow_e60ea5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pow_e60ea5(); } diff --git a/test/tint/builtins/gen/literal/radians/09b7fc.wgsl b/test/tint/builtins/gen/literal/radians/09b7fc.wgsl index 1bd06058c5..ef30a5274f 100644 --- a/test/tint/builtins/gen/literal/radians/09b7fc.wgsl +++ b/test/tint/builtins/gen/literal/radians/09b7fc.wgsl @@ -28,18 +28,18 @@ fn radians_09b7fc() { var res: vec4 = radians(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { radians_09b7fc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { radians_09b7fc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { radians_09b7fc(); } diff --git a/test/tint/builtins/gen/literal/radians/09b7fc.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/radians/09b7fc.wgsl.expected.wgsl index e8efa0ef7b..6300fd694c 100644 --- a/test/tint/builtins/gen/literal/radians/09b7fc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/radians/09b7fc.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn radians_09b7fc() { var res : vec4 = radians(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { radians_09b7fc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { radians_09b7fc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { radians_09b7fc(); } diff --git a/test/tint/builtins/gen/literal/radians/61687a.wgsl b/test/tint/builtins/gen/literal/radians/61687a.wgsl index 0b281eee81..bd44d9428e 100644 --- a/test/tint/builtins/gen/literal/radians/61687a.wgsl +++ b/test/tint/builtins/gen/literal/radians/61687a.wgsl @@ -28,18 +28,18 @@ fn radians_61687a() { var res: vec2 = radians(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { radians_61687a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { radians_61687a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { radians_61687a(); } diff --git a/test/tint/builtins/gen/literal/radians/61687a.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/radians/61687a.wgsl.expected.wgsl index 310425f1b1..5cef876cca 100644 --- a/test/tint/builtins/gen/literal/radians/61687a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/radians/61687a.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn radians_61687a() { var res : vec2 = radians(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { radians_61687a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { radians_61687a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { radians_61687a(); } diff --git a/test/tint/builtins/gen/literal/radians/6b0ff2.wgsl b/test/tint/builtins/gen/literal/radians/6b0ff2.wgsl index b4f4aa7d0f..aa64cc9632 100644 --- a/test/tint/builtins/gen/literal/radians/6b0ff2.wgsl +++ b/test/tint/builtins/gen/literal/radians/6b0ff2.wgsl @@ -28,18 +28,18 @@ fn radians_6b0ff2() { var res: f32 = radians(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { radians_6b0ff2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { radians_6b0ff2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { radians_6b0ff2(); } diff --git a/test/tint/builtins/gen/literal/radians/6b0ff2.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/radians/6b0ff2.wgsl.expected.wgsl index 05a6fb5bdd..de4a51a547 100644 --- a/test/tint/builtins/gen/literal/radians/6b0ff2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/radians/6b0ff2.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn radians_6b0ff2() { var res : f32 = radians(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { radians_6b0ff2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { radians_6b0ff2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { radians_6b0ff2(); } diff --git a/test/tint/builtins/gen/literal/radians/f96258.wgsl b/test/tint/builtins/gen/literal/radians/f96258.wgsl index e07869556b..05785b0e72 100644 --- a/test/tint/builtins/gen/literal/radians/f96258.wgsl +++ b/test/tint/builtins/gen/literal/radians/f96258.wgsl @@ -28,18 +28,18 @@ fn radians_f96258() { var res: vec3 = radians(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { radians_f96258(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { radians_f96258(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { radians_f96258(); } diff --git a/test/tint/builtins/gen/literal/radians/f96258.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/radians/f96258.wgsl.expected.wgsl index c38fe31106..5e43bb863c 100644 --- a/test/tint/builtins/gen/literal/radians/f96258.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/radians/f96258.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn radians_f96258() { var res : vec3 = radians(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { radians_f96258(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { radians_f96258(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { radians_f96258(); } diff --git a/test/tint/builtins/gen/literal/reflect/05357e.wgsl b/test/tint/builtins/gen/literal/reflect/05357e.wgsl index 7d26fdf938..0fe5cba2a0 100644 --- a/test/tint/builtins/gen/literal/reflect/05357e.wgsl +++ b/test/tint/builtins/gen/literal/reflect/05357e.wgsl @@ -28,18 +28,18 @@ fn reflect_05357e() { var res: vec4 = reflect(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reflect_05357e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reflect_05357e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reflect_05357e(); } diff --git a/test/tint/builtins/gen/literal/reflect/05357e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/reflect/05357e.wgsl.expected.wgsl index ba4f95a1d5..23966df211 100644 --- a/test/tint/builtins/gen/literal/reflect/05357e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/reflect/05357e.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn reflect_05357e() { var res : vec4 = reflect(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reflect_05357e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reflect_05357e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reflect_05357e(); } diff --git a/test/tint/builtins/gen/literal/reflect/b61e10.wgsl b/test/tint/builtins/gen/literal/reflect/b61e10.wgsl index fa6215bd87..aeeaed7028 100644 --- a/test/tint/builtins/gen/literal/reflect/b61e10.wgsl +++ b/test/tint/builtins/gen/literal/reflect/b61e10.wgsl @@ -28,18 +28,18 @@ fn reflect_b61e10() { var res: vec2 = reflect(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reflect_b61e10(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reflect_b61e10(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reflect_b61e10(); } diff --git a/test/tint/builtins/gen/literal/reflect/b61e10.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/reflect/b61e10.wgsl.expected.wgsl index 330eead42a..2ef48b1c39 100644 --- a/test/tint/builtins/gen/literal/reflect/b61e10.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/reflect/b61e10.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn reflect_b61e10() { var res : vec2 = reflect(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reflect_b61e10(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reflect_b61e10(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reflect_b61e10(); } diff --git a/test/tint/builtins/gen/literal/reflect/f47fdb.wgsl b/test/tint/builtins/gen/literal/reflect/f47fdb.wgsl index 7ce4d2ab5a..3abf913fd2 100644 --- a/test/tint/builtins/gen/literal/reflect/f47fdb.wgsl +++ b/test/tint/builtins/gen/literal/reflect/f47fdb.wgsl @@ -28,18 +28,18 @@ fn reflect_f47fdb() { var res: vec3 = reflect(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reflect_f47fdb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reflect_f47fdb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reflect_f47fdb(); } diff --git a/test/tint/builtins/gen/literal/reflect/f47fdb.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/reflect/f47fdb.wgsl.expected.wgsl index d66212f725..7e386779fa 100644 --- a/test/tint/builtins/gen/literal/reflect/f47fdb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/reflect/f47fdb.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn reflect_f47fdb() { var res : vec3 = reflect(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reflect_f47fdb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reflect_f47fdb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reflect_f47fdb(); } diff --git a/test/tint/builtins/gen/literal/refract/7e02e6.wgsl b/test/tint/builtins/gen/literal/refract/7e02e6.wgsl index 24a7718ced..34bd4ee535 100644 --- a/test/tint/builtins/gen/literal/refract/7e02e6.wgsl +++ b/test/tint/builtins/gen/literal/refract/7e02e6.wgsl @@ -28,18 +28,18 @@ fn refract_7e02e6() { var res: vec4 = refract(vec4(), vec4(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { refract_7e02e6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { refract_7e02e6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { refract_7e02e6(); } diff --git a/test/tint/builtins/gen/literal/refract/7e02e6.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/refract/7e02e6.wgsl.expected.wgsl index 3950912616..e1fb4d2a1e 100644 --- a/test/tint/builtins/gen/literal/refract/7e02e6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/refract/7e02e6.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn refract_7e02e6() { var res : vec4 = refract(vec4(), vec4(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { refract_7e02e6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { refract_7e02e6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { refract_7e02e6(); } diff --git a/test/tint/builtins/gen/literal/refract/cbc1d2.wgsl b/test/tint/builtins/gen/literal/refract/cbc1d2.wgsl index d30a12e410..dec991f37d 100644 --- a/test/tint/builtins/gen/literal/refract/cbc1d2.wgsl +++ b/test/tint/builtins/gen/literal/refract/cbc1d2.wgsl @@ -28,18 +28,18 @@ fn refract_cbc1d2() { var res: vec3 = refract(vec3(), vec3(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { refract_cbc1d2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { refract_cbc1d2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { refract_cbc1d2(); } diff --git a/test/tint/builtins/gen/literal/refract/cbc1d2.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/refract/cbc1d2.wgsl.expected.wgsl index 535c2791e5..900bf9825c 100644 --- a/test/tint/builtins/gen/literal/refract/cbc1d2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/refract/cbc1d2.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn refract_cbc1d2() { var res : vec3 = refract(vec3(), vec3(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { refract_cbc1d2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { refract_cbc1d2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { refract_cbc1d2(); } diff --git a/test/tint/builtins/gen/literal/refract/cd905f.wgsl b/test/tint/builtins/gen/literal/refract/cd905f.wgsl index 5d486b2199..4e96eefb05 100644 --- a/test/tint/builtins/gen/literal/refract/cd905f.wgsl +++ b/test/tint/builtins/gen/literal/refract/cd905f.wgsl @@ -28,18 +28,18 @@ fn refract_cd905f() { var res: vec2 = refract(vec2(), vec2(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { refract_cd905f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { refract_cd905f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { refract_cd905f(); } diff --git a/test/tint/builtins/gen/literal/refract/cd905f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/refract/cd905f.wgsl.expected.wgsl index 485ab60302..e91bff9f52 100644 --- a/test/tint/builtins/gen/literal/refract/cd905f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/refract/cd905f.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn refract_cd905f() { var res : vec2 = refract(vec2(), vec2(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { refract_cd905f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { refract_cd905f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { refract_cd905f(); } diff --git a/test/tint/builtins/gen/literal/reverseBits/222177.wgsl b/test/tint/builtins/gen/literal/reverseBits/222177.wgsl index 3fb14c1637..f44b0a4629 100644 --- a/test/tint/builtins/gen/literal/reverseBits/222177.wgsl +++ b/test/tint/builtins/gen/literal/reverseBits/222177.wgsl @@ -28,18 +28,18 @@ fn reverseBits_222177() { var res: vec2 = reverseBits(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_222177(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_222177(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_222177(); } diff --git a/test/tint/builtins/gen/literal/reverseBits/222177.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/reverseBits/222177.wgsl.expected.wgsl index cd377693db..13c75dd17e 100644 --- a/test/tint/builtins/gen/literal/reverseBits/222177.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/reverseBits/222177.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn reverseBits_222177() { var res : vec2 = reverseBits(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_222177(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_222177(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_222177(); } diff --git a/test/tint/builtins/gen/literal/reverseBits/35fea9.wgsl b/test/tint/builtins/gen/literal/reverseBits/35fea9.wgsl index 952fc114bf..4249225d23 100644 --- a/test/tint/builtins/gen/literal/reverseBits/35fea9.wgsl +++ b/test/tint/builtins/gen/literal/reverseBits/35fea9.wgsl @@ -28,18 +28,18 @@ fn reverseBits_35fea9() { var res: vec4 = reverseBits(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_35fea9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_35fea9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_35fea9(); } diff --git a/test/tint/builtins/gen/literal/reverseBits/35fea9.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/reverseBits/35fea9.wgsl.expected.wgsl index 6fea80dd69..8244ce3508 100644 --- a/test/tint/builtins/gen/literal/reverseBits/35fea9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/reverseBits/35fea9.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn reverseBits_35fea9() { var res : vec4 = reverseBits(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_35fea9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_35fea9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_35fea9(); } diff --git a/test/tint/builtins/gen/literal/reverseBits/4dbd6f.wgsl b/test/tint/builtins/gen/literal/reverseBits/4dbd6f.wgsl index 9aa9ef0a7e..f04f8d9669 100644 --- a/test/tint/builtins/gen/literal/reverseBits/4dbd6f.wgsl +++ b/test/tint/builtins/gen/literal/reverseBits/4dbd6f.wgsl @@ -28,18 +28,18 @@ fn reverseBits_4dbd6f() { var res: vec4 = reverseBits(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_4dbd6f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_4dbd6f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_4dbd6f(); } diff --git a/test/tint/builtins/gen/literal/reverseBits/4dbd6f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/reverseBits/4dbd6f.wgsl.expected.wgsl index 2e6d0b2b3a..fee38298f7 100644 --- a/test/tint/builtins/gen/literal/reverseBits/4dbd6f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/reverseBits/4dbd6f.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn reverseBits_4dbd6f() { var res : vec4 = reverseBits(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_4dbd6f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_4dbd6f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_4dbd6f(); } diff --git a/test/tint/builtins/gen/literal/reverseBits/7c4269.wgsl b/test/tint/builtins/gen/literal/reverseBits/7c4269.wgsl index 0f2b62fc0c..aaeb64687b 100644 --- a/test/tint/builtins/gen/literal/reverseBits/7c4269.wgsl +++ b/test/tint/builtins/gen/literal/reverseBits/7c4269.wgsl @@ -28,18 +28,18 @@ fn reverseBits_7c4269() { var res: i32 = reverseBits(1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_7c4269(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_7c4269(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_7c4269(); } diff --git a/test/tint/builtins/gen/literal/reverseBits/7c4269.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/reverseBits/7c4269.wgsl.expected.wgsl index 17f99508d8..1ce5525aa9 100644 --- a/test/tint/builtins/gen/literal/reverseBits/7c4269.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/reverseBits/7c4269.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn reverseBits_7c4269() { var res : i32 = reverseBits(1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_7c4269(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_7c4269(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_7c4269(); } diff --git a/test/tint/builtins/gen/literal/reverseBits/a6ccd4.wgsl b/test/tint/builtins/gen/literal/reverseBits/a6ccd4.wgsl index 9a312da843..61a0605017 100644 --- a/test/tint/builtins/gen/literal/reverseBits/a6ccd4.wgsl +++ b/test/tint/builtins/gen/literal/reverseBits/a6ccd4.wgsl @@ -28,18 +28,18 @@ fn reverseBits_a6ccd4() { var res: vec3 = reverseBits(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_a6ccd4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_a6ccd4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_a6ccd4(); } diff --git a/test/tint/builtins/gen/literal/reverseBits/a6ccd4.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/reverseBits/a6ccd4.wgsl.expected.wgsl index 713d9c764d..8ac960aa93 100644 --- a/test/tint/builtins/gen/literal/reverseBits/a6ccd4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/reverseBits/a6ccd4.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn reverseBits_a6ccd4() { var res : vec3 = reverseBits(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_a6ccd4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_a6ccd4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_a6ccd4(); } diff --git a/test/tint/builtins/gen/literal/reverseBits/c21bc1.wgsl b/test/tint/builtins/gen/literal/reverseBits/c21bc1.wgsl index 53ec0daf44..79a1015478 100644 --- a/test/tint/builtins/gen/literal/reverseBits/c21bc1.wgsl +++ b/test/tint/builtins/gen/literal/reverseBits/c21bc1.wgsl @@ -28,18 +28,18 @@ fn reverseBits_c21bc1() { var res: vec3 = reverseBits(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_c21bc1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_c21bc1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_c21bc1(); } diff --git a/test/tint/builtins/gen/literal/reverseBits/c21bc1.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/reverseBits/c21bc1.wgsl.expected.wgsl index 6ad70ae5ea..6c20e727c8 100644 --- a/test/tint/builtins/gen/literal/reverseBits/c21bc1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/reverseBits/c21bc1.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn reverseBits_c21bc1() { var res : vec3 = reverseBits(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_c21bc1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_c21bc1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_c21bc1(); } diff --git a/test/tint/builtins/gen/literal/reverseBits/e1f4c1.wgsl b/test/tint/builtins/gen/literal/reverseBits/e1f4c1.wgsl index d53c491982..c51a94e98f 100644 --- a/test/tint/builtins/gen/literal/reverseBits/e1f4c1.wgsl +++ b/test/tint/builtins/gen/literal/reverseBits/e1f4c1.wgsl @@ -28,18 +28,18 @@ fn reverseBits_e1f4c1() { var res: vec2 = reverseBits(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_e1f4c1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_e1f4c1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_e1f4c1(); } diff --git a/test/tint/builtins/gen/literal/reverseBits/e1f4c1.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/reverseBits/e1f4c1.wgsl.expected.wgsl index dc01269bec..d7ffaa9d41 100644 --- a/test/tint/builtins/gen/literal/reverseBits/e1f4c1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/reverseBits/e1f4c1.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn reverseBits_e1f4c1() { var res : vec2 = reverseBits(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_e1f4c1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_e1f4c1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_e1f4c1(); } diff --git a/test/tint/builtins/gen/literal/reverseBits/e31adf.wgsl b/test/tint/builtins/gen/literal/reverseBits/e31adf.wgsl index 3f4635ec0f..b18d253324 100644 --- a/test/tint/builtins/gen/literal/reverseBits/e31adf.wgsl +++ b/test/tint/builtins/gen/literal/reverseBits/e31adf.wgsl @@ -28,18 +28,18 @@ fn reverseBits_e31adf() { var res: u32 = reverseBits(1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_e31adf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_e31adf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_e31adf(); } diff --git a/test/tint/builtins/gen/literal/reverseBits/e31adf.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/reverseBits/e31adf.wgsl.expected.wgsl index d99e7a57cf..fe271eb381 100644 --- a/test/tint/builtins/gen/literal/reverseBits/e31adf.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/reverseBits/e31adf.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn reverseBits_e31adf() { var res : u32 = reverseBits(1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_e31adf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_e31adf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_e31adf(); } diff --git a/test/tint/builtins/gen/literal/round/106c0b.wgsl b/test/tint/builtins/gen/literal/round/106c0b.wgsl index 2bb4ab2519..8523bd10fb 100644 --- a/test/tint/builtins/gen/literal/round/106c0b.wgsl +++ b/test/tint/builtins/gen/literal/round/106c0b.wgsl @@ -28,18 +28,18 @@ fn round_106c0b() { var res: vec4 = round(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { round_106c0b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { round_106c0b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { round_106c0b(); } diff --git a/test/tint/builtins/gen/literal/round/106c0b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/round/106c0b.wgsl.expected.wgsl index 338cddf2d9..c846a03b75 100644 --- a/test/tint/builtins/gen/literal/round/106c0b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/round/106c0b.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn round_106c0b() { var res : vec4 = round(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { round_106c0b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { round_106c0b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { round_106c0b(); } diff --git a/test/tint/builtins/gen/literal/round/1c7897.wgsl b/test/tint/builtins/gen/literal/round/1c7897.wgsl index 14c38cac4f..4403ce74ff 100644 --- a/test/tint/builtins/gen/literal/round/1c7897.wgsl +++ b/test/tint/builtins/gen/literal/round/1c7897.wgsl @@ -28,18 +28,18 @@ fn round_1c7897() { var res: vec3 = round(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { round_1c7897(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { round_1c7897(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { round_1c7897(); } diff --git a/test/tint/builtins/gen/literal/round/1c7897.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/round/1c7897.wgsl.expected.wgsl index ac2350eb42..e55a2eec36 100644 --- a/test/tint/builtins/gen/literal/round/1c7897.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/round/1c7897.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn round_1c7897() { var res : vec3 = round(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { round_1c7897(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { round_1c7897(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { round_1c7897(); } diff --git a/test/tint/builtins/gen/literal/round/52c84d.wgsl b/test/tint/builtins/gen/literal/round/52c84d.wgsl index e7780281f0..9a454ad39a 100644 --- a/test/tint/builtins/gen/literal/round/52c84d.wgsl +++ b/test/tint/builtins/gen/literal/round/52c84d.wgsl @@ -28,18 +28,18 @@ fn round_52c84d() { var res: vec2 = round(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { round_52c84d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { round_52c84d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { round_52c84d(); } diff --git a/test/tint/builtins/gen/literal/round/52c84d.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/round/52c84d.wgsl.expected.wgsl index 9877c2dc65..040946b5a7 100644 --- a/test/tint/builtins/gen/literal/round/52c84d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/round/52c84d.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn round_52c84d() { var res : vec2 = round(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { round_52c84d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { round_52c84d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { round_52c84d(); } diff --git a/test/tint/builtins/gen/literal/round/9edc38.wgsl b/test/tint/builtins/gen/literal/round/9edc38.wgsl index 85f6a27d61..b4f482ad79 100644 --- a/test/tint/builtins/gen/literal/round/9edc38.wgsl +++ b/test/tint/builtins/gen/literal/round/9edc38.wgsl @@ -28,18 +28,18 @@ fn round_9edc38() { var res: f32 = round(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { round_9edc38(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { round_9edc38(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { round_9edc38(); } diff --git a/test/tint/builtins/gen/literal/round/9edc38.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/round/9edc38.wgsl.expected.wgsl index 9753e04491..dbe7d730a7 100644 --- a/test/tint/builtins/gen/literal/round/9edc38.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/round/9edc38.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn round_9edc38() { var res : f32 = round(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { round_9edc38(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { round_9edc38(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { round_9edc38(); } diff --git a/test/tint/builtins/gen/literal/select/00b848.wgsl b/test/tint/builtins/gen/literal/select/00b848.wgsl index a22201b8f2..7808557e1b 100644 --- a/test/tint/builtins/gen/literal/select/00b848.wgsl +++ b/test/tint/builtins/gen/literal/select/00b848.wgsl @@ -28,18 +28,18 @@ fn select_00b848() { var res: vec2 = select(vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_00b848(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_00b848(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_00b848(); } diff --git a/test/tint/builtins/gen/literal/select/00b848.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/00b848.wgsl.expected.wgsl index bf45b9026d..91bc2abeb2 100644 --- a/test/tint/builtins/gen/literal/select/00b848.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/00b848.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_00b848() { var res : vec2 = select(vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_00b848(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_00b848(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_00b848(); } diff --git a/test/tint/builtins/gen/literal/select/01e2cd.wgsl b/test/tint/builtins/gen/literal/select/01e2cd.wgsl index 6fba1df4ee..dca4e962f8 100644 --- a/test/tint/builtins/gen/literal/select/01e2cd.wgsl +++ b/test/tint/builtins/gen/literal/select/01e2cd.wgsl @@ -28,18 +28,18 @@ fn select_01e2cd() { var res: vec3 = select(vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_01e2cd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_01e2cd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_01e2cd(); } diff --git a/test/tint/builtins/gen/literal/select/01e2cd.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/01e2cd.wgsl.expected.wgsl index 7e9d06fa39..0abdc607ca 100644 --- a/test/tint/builtins/gen/literal/select/01e2cd.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/01e2cd.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_01e2cd() { var res : vec3 = select(vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_01e2cd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_01e2cd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_01e2cd(); } diff --git a/test/tint/builtins/gen/literal/select/087ea4.wgsl b/test/tint/builtins/gen/literal/select/087ea4.wgsl index 2bc9d0aef5..74ea93dd5f 100644 --- a/test/tint/builtins/gen/literal/select/087ea4.wgsl +++ b/test/tint/builtins/gen/literal/select/087ea4.wgsl @@ -28,18 +28,18 @@ fn select_087ea4() { var res: vec4 = select(vec4(), vec4(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_087ea4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_087ea4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_087ea4(); } diff --git a/test/tint/builtins/gen/literal/select/087ea4.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/087ea4.wgsl.expected.wgsl index 6258a15d0b..2d02c09b76 100644 --- a/test/tint/builtins/gen/literal/select/087ea4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/087ea4.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_087ea4() { var res : vec4 = select(vec4(), vec4(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_087ea4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_087ea4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_087ea4(); } diff --git a/test/tint/builtins/gen/literal/select/1e960b.wgsl b/test/tint/builtins/gen/literal/select/1e960b.wgsl index 650b9e4da2..d98f9b73a7 100644 --- a/test/tint/builtins/gen/literal/select/1e960b.wgsl +++ b/test/tint/builtins/gen/literal/select/1e960b.wgsl @@ -28,18 +28,18 @@ fn select_1e960b() { var res: vec2 = select(vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_1e960b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_1e960b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_1e960b(); } diff --git a/test/tint/builtins/gen/literal/select/1e960b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/1e960b.wgsl.expected.wgsl index 4f78e59e25..fbc5ff3d86 100644 --- a/test/tint/builtins/gen/literal/select/1e960b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/1e960b.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_1e960b() { var res : vec2 = select(vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_1e960b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_1e960b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_1e960b(); } diff --git a/test/tint/builtins/gen/literal/select/266aff.wgsl b/test/tint/builtins/gen/literal/select/266aff.wgsl index 80d50b0865..1c4c258264 100644 --- a/test/tint/builtins/gen/literal/select/266aff.wgsl +++ b/test/tint/builtins/gen/literal/select/266aff.wgsl @@ -28,18 +28,18 @@ fn select_266aff() { var res: vec2 = select(vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_266aff(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_266aff(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_266aff(); } diff --git a/test/tint/builtins/gen/literal/select/266aff.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/266aff.wgsl.expected.wgsl index 522a10f656..1390d5dd51 100644 --- a/test/tint/builtins/gen/literal/select/266aff.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/266aff.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_266aff() { var res : vec2 = select(vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_266aff(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_266aff(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_266aff(); } diff --git a/test/tint/builtins/gen/literal/select/28a27e.wgsl b/test/tint/builtins/gen/literal/select/28a27e.wgsl index 0837ea7d60..611a0b2867 100644 --- a/test/tint/builtins/gen/literal/select/28a27e.wgsl +++ b/test/tint/builtins/gen/literal/select/28a27e.wgsl @@ -28,18 +28,18 @@ fn select_28a27e() { var res: vec3 = select(vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_28a27e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_28a27e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_28a27e(); } diff --git a/test/tint/builtins/gen/literal/select/28a27e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/28a27e.wgsl.expected.wgsl index cbc4bcfa1f..47aa39f92f 100644 --- a/test/tint/builtins/gen/literal/select/28a27e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/28a27e.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_28a27e() { var res : vec3 = select(vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_28a27e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_28a27e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_28a27e(); } diff --git a/test/tint/builtins/gen/literal/select/3c25ce.wgsl b/test/tint/builtins/gen/literal/select/3c25ce.wgsl index e76b138e48..12a37437ef 100644 --- a/test/tint/builtins/gen/literal/select/3c25ce.wgsl +++ b/test/tint/builtins/gen/literal/select/3c25ce.wgsl @@ -28,18 +28,18 @@ fn select_3c25ce() { var res: vec3 = select(vec3(), vec3(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_3c25ce(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_3c25ce(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_3c25ce(); } diff --git a/test/tint/builtins/gen/literal/select/3c25ce.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/3c25ce.wgsl.expected.wgsl index 48963b4c96..c73fe5558f 100644 --- a/test/tint/builtins/gen/literal/select/3c25ce.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/3c25ce.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_3c25ce() { var res : vec3 = select(vec3(), vec3(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_3c25ce(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_3c25ce(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_3c25ce(); } diff --git a/test/tint/builtins/gen/literal/select/416e14.wgsl b/test/tint/builtins/gen/literal/select/416e14.wgsl index 32f3026144..d98f5044fa 100644 --- a/test/tint/builtins/gen/literal/select/416e14.wgsl +++ b/test/tint/builtins/gen/literal/select/416e14.wgsl @@ -28,18 +28,18 @@ fn select_416e14() { var res: f32 = select(1.0, 1.0, bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_416e14(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_416e14(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_416e14(); } diff --git a/test/tint/builtins/gen/literal/select/416e14.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/416e14.wgsl.expected.wgsl index bfa5d2e711..06fe6cfc64 100644 --- a/test/tint/builtins/gen/literal/select/416e14.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/416e14.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_416e14() { var res : f32 = select(1.0, 1.0, bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_416e14(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_416e14(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_416e14(); } diff --git a/test/tint/builtins/gen/literal/select/51b047.wgsl b/test/tint/builtins/gen/literal/select/51b047.wgsl index c30d299863..eddc40e154 100644 --- a/test/tint/builtins/gen/literal/select/51b047.wgsl +++ b/test/tint/builtins/gen/literal/select/51b047.wgsl @@ -28,18 +28,18 @@ fn select_51b047() { var res: vec2 = select(vec2(), vec2(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_51b047(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_51b047(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_51b047(); } diff --git a/test/tint/builtins/gen/literal/select/51b047.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/51b047.wgsl.expected.wgsl index 93097d9a78..aa9e7d2a64 100644 --- a/test/tint/builtins/gen/literal/select/51b047.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/51b047.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_51b047() { var res : vec2 = select(vec2(), vec2(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_51b047(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_51b047(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_51b047(); } diff --git a/test/tint/builtins/gen/literal/select/713567.wgsl b/test/tint/builtins/gen/literal/select/713567.wgsl index 633b85b15f..1915518d1e 100644 --- a/test/tint/builtins/gen/literal/select/713567.wgsl +++ b/test/tint/builtins/gen/literal/select/713567.wgsl @@ -28,18 +28,18 @@ fn select_713567() { var res: vec4 = select(vec4(), vec4(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_713567(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_713567(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_713567(); } diff --git a/test/tint/builtins/gen/literal/select/713567.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/713567.wgsl.expected.wgsl index d885a74d64..74ce8af537 100644 --- a/test/tint/builtins/gen/literal/select/713567.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/713567.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_713567() { var res : vec4 = select(vec4(), vec4(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_713567(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_713567(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_713567(); } diff --git a/test/tint/builtins/gen/literal/select/78be5f.wgsl b/test/tint/builtins/gen/literal/select/78be5f.wgsl index 08ffe222f2..3385a460c2 100644 --- a/test/tint/builtins/gen/literal/select/78be5f.wgsl +++ b/test/tint/builtins/gen/literal/select/78be5f.wgsl @@ -28,18 +28,18 @@ fn select_78be5f() { var res: vec3 = select(vec3(), vec3(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_78be5f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_78be5f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_78be5f(); } diff --git a/test/tint/builtins/gen/literal/select/78be5f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/78be5f.wgsl.expected.wgsl index 7c77d66daf..8a6dd23ad9 100644 --- a/test/tint/builtins/gen/literal/select/78be5f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/78be5f.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_78be5f() { var res : vec3 = select(vec3(), vec3(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_78be5f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_78be5f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_78be5f(); } diff --git a/test/tint/builtins/gen/literal/select/80a9a9.wgsl b/test/tint/builtins/gen/literal/select/80a9a9.wgsl index ce846af9c5..d29e19f808 100644 --- a/test/tint/builtins/gen/literal/select/80a9a9.wgsl +++ b/test/tint/builtins/gen/literal/select/80a9a9.wgsl @@ -28,18 +28,18 @@ fn select_80a9a9() { var res: vec3 = select(vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_80a9a9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_80a9a9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_80a9a9(); } diff --git a/test/tint/builtins/gen/literal/select/80a9a9.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/80a9a9.wgsl.expected.wgsl index 1f2b1fd8db..57b9aa88c9 100644 --- a/test/tint/builtins/gen/literal/select/80a9a9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/80a9a9.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_80a9a9() { var res : vec3 = select(vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_80a9a9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_80a9a9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_80a9a9(); } diff --git a/test/tint/builtins/gen/literal/select/8fa62c.wgsl b/test/tint/builtins/gen/literal/select/8fa62c.wgsl index 2033877f9c..7d16232f59 100644 --- a/test/tint/builtins/gen/literal/select/8fa62c.wgsl +++ b/test/tint/builtins/gen/literal/select/8fa62c.wgsl @@ -28,18 +28,18 @@ fn select_8fa62c() { var res: vec3 = select(vec3(), vec3(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_8fa62c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_8fa62c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_8fa62c(); } diff --git a/test/tint/builtins/gen/literal/select/8fa62c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/8fa62c.wgsl.expected.wgsl index 431824e250..b369a29bec 100644 --- a/test/tint/builtins/gen/literal/select/8fa62c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/8fa62c.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_8fa62c() { var res : vec3 = select(vec3(), vec3(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_8fa62c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_8fa62c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_8fa62c(); } diff --git a/test/tint/builtins/gen/literal/select/99f883.wgsl b/test/tint/builtins/gen/literal/select/99f883.wgsl index c501388f1c..4cb49acdeb 100644 --- a/test/tint/builtins/gen/literal/select/99f883.wgsl +++ b/test/tint/builtins/gen/literal/select/99f883.wgsl @@ -28,18 +28,18 @@ fn select_99f883() { var res: u32 = select(1u, 1u, bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_99f883(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_99f883(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_99f883(); } diff --git a/test/tint/builtins/gen/literal/select/99f883.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/99f883.wgsl.expected.wgsl index 0ceacc22c1..391c89b080 100644 --- a/test/tint/builtins/gen/literal/select/99f883.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/99f883.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_99f883() { var res : u32 = select(1u, 1u, bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_99f883(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_99f883(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_99f883(); } diff --git a/test/tint/builtins/gen/literal/select/a2860e.wgsl b/test/tint/builtins/gen/literal/select/a2860e.wgsl index 7d284e8262..8dd8c6e5c8 100644 --- a/test/tint/builtins/gen/literal/select/a2860e.wgsl +++ b/test/tint/builtins/gen/literal/select/a2860e.wgsl @@ -28,18 +28,18 @@ fn select_a2860e() { var res: vec4 = select(vec4(), vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_a2860e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_a2860e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_a2860e(); } diff --git a/test/tint/builtins/gen/literal/select/a2860e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/a2860e.wgsl.expected.wgsl index 0fd2eb4582..bb3a6b3ea4 100644 --- a/test/tint/builtins/gen/literal/select/a2860e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/a2860e.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_a2860e() { var res : vec4 = select(vec4(), vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_a2860e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_a2860e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_a2860e(); } diff --git a/test/tint/builtins/gen/literal/select/ab069f.wgsl b/test/tint/builtins/gen/literal/select/ab069f.wgsl index b806234593..014c1b89f7 100644 --- a/test/tint/builtins/gen/literal/select/ab069f.wgsl +++ b/test/tint/builtins/gen/literal/select/ab069f.wgsl @@ -28,18 +28,18 @@ fn select_ab069f() { var res: vec4 = select(vec4(), vec4(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_ab069f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_ab069f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_ab069f(); } diff --git a/test/tint/builtins/gen/literal/select/ab069f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/ab069f.wgsl.expected.wgsl index ea18846058..0749b91d7c 100644 --- a/test/tint/builtins/gen/literal/select/ab069f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/ab069f.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_ab069f() { var res : vec4 = select(vec4(), vec4(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_ab069f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_ab069f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_ab069f(); } diff --git a/test/tint/builtins/gen/literal/select/b04721.wgsl b/test/tint/builtins/gen/literal/select/b04721.wgsl index d0b5455168..78da8d12e4 100644 --- a/test/tint/builtins/gen/literal/select/b04721.wgsl +++ b/test/tint/builtins/gen/literal/select/b04721.wgsl @@ -28,18 +28,18 @@ fn select_b04721() { var res: vec3 = select(vec3(), vec3(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_b04721(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_b04721(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_b04721(); } diff --git a/test/tint/builtins/gen/literal/select/b04721.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/b04721.wgsl.expected.wgsl index 86befd9f05..6dcdc87684 100644 --- a/test/tint/builtins/gen/literal/select/b04721.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/b04721.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_b04721() { var res : vec3 = select(vec3(), vec3(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_b04721(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_b04721(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_b04721(); } diff --git a/test/tint/builtins/gen/literal/select/bb447f.wgsl b/test/tint/builtins/gen/literal/select/bb447f.wgsl index efaac74bc1..1a98f64c0a 100644 --- a/test/tint/builtins/gen/literal/select/bb447f.wgsl +++ b/test/tint/builtins/gen/literal/select/bb447f.wgsl @@ -28,18 +28,18 @@ fn select_bb447f() { var res: vec2 = select(vec2(), vec2(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_bb447f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_bb447f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_bb447f(); } diff --git a/test/tint/builtins/gen/literal/select/bb447f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/bb447f.wgsl.expected.wgsl index 2ea72e7132..ad447ce260 100644 --- a/test/tint/builtins/gen/literal/select/bb447f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/bb447f.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_bb447f() { var res : vec2 = select(vec2(), vec2(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_bb447f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_bb447f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_bb447f(); } diff --git a/test/tint/builtins/gen/literal/select/bb8aae.wgsl b/test/tint/builtins/gen/literal/select/bb8aae.wgsl index f7283700eb..412ee947e6 100644 --- a/test/tint/builtins/gen/literal/select/bb8aae.wgsl +++ b/test/tint/builtins/gen/literal/select/bb8aae.wgsl @@ -28,18 +28,18 @@ fn select_bb8aae() { var res: vec4 = select(vec4(), vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_bb8aae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_bb8aae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_bb8aae(); } diff --git a/test/tint/builtins/gen/literal/select/bb8aae.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/bb8aae.wgsl.expected.wgsl index f64a61b7dc..862c7699c0 100644 --- a/test/tint/builtins/gen/literal/select/bb8aae.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/bb8aae.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_bb8aae() { var res : vec4 = select(vec4(), vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_bb8aae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_bb8aae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_bb8aae(); } diff --git a/test/tint/builtins/gen/literal/select/bf3d29.wgsl b/test/tint/builtins/gen/literal/select/bf3d29.wgsl index e841aa4abb..a1b233f778 100644 --- a/test/tint/builtins/gen/literal/select/bf3d29.wgsl +++ b/test/tint/builtins/gen/literal/select/bf3d29.wgsl @@ -28,18 +28,18 @@ fn select_bf3d29() { var res: vec2 = select(vec2(), vec2(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_bf3d29(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_bf3d29(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_bf3d29(); } diff --git a/test/tint/builtins/gen/literal/select/bf3d29.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/bf3d29.wgsl.expected.wgsl index 87b2f80aab..7210a86465 100644 --- a/test/tint/builtins/gen/literal/select/bf3d29.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/bf3d29.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_bf3d29() { var res : vec2 = select(vec2(), vec2(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_bf3d29(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_bf3d29(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_bf3d29(); } diff --git a/test/tint/builtins/gen/literal/select/c31f9e.wgsl b/test/tint/builtins/gen/literal/select/c31f9e.wgsl index a4b50a22bc..6d2ece4538 100644 --- a/test/tint/builtins/gen/literal/select/c31f9e.wgsl +++ b/test/tint/builtins/gen/literal/select/c31f9e.wgsl @@ -28,18 +28,18 @@ fn select_c31f9e() { var res: bool = select(bool(), bool(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_c31f9e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_c31f9e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_c31f9e(); } diff --git a/test/tint/builtins/gen/literal/select/c31f9e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/c31f9e.wgsl.expected.wgsl index 21acae64ef..c2f9e89260 100644 --- a/test/tint/builtins/gen/literal/select/c31f9e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/c31f9e.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_c31f9e() { var res : bool = select(bool(), bool(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_c31f9e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_c31f9e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_c31f9e(); } diff --git a/test/tint/builtins/gen/literal/select/c41bd1.wgsl b/test/tint/builtins/gen/literal/select/c41bd1.wgsl index 259ac4e854..484aecd609 100644 --- a/test/tint/builtins/gen/literal/select/c41bd1.wgsl +++ b/test/tint/builtins/gen/literal/select/c41bd1.wgsl @@ -28,18 +28,18 @@ fn select_c41bd1() { var res: vec4 = select(vec4(), vec4(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_c41bd1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_c41bd1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_c41bd1(); } diff --git a/test/tint/builtins/gen/literal/select/c41bd1.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/c41bd1.wgsl.expected.wgsl index a314f0c2b4..0527d9f311 100644 --- a/test/tint/builtins/gen/literal/select/c41bd1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/c41bd1.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_c41bd1() { var res : vec4 = select(vec4(), vec4(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_c41bd1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_c41bd1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_c41bd1(); } diff --git a/test/tint/builtins/gen/literal/select/c4a4ef.wgsl b/test/tint/builtins/gen/literal/select/c4a4ef.wgsl index 09e1e82561..8592125100 100644 --- a/test/tint/builtins/gen/literal/select/c4a4ef.wgsl +++ b/test/tint/builtins/gen/literal/select/c4a4ef.wgsl @@ -28,18 +28,18 @@ fn select_c4a4ef() { var res: vec4 = select(vec4(), vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_c4a4ef(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_c4a4ef(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_c4a4ef(); } diff --git a/test/tint/builtins/gen/literal/select/c4a4ef.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/c4a4ef.wgsl.expected.wgsl index adbcc5ddff..d02111fed7 100644 --- a/test/tint/builtins/gen/literal/select/c4a4ef.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/c4a4ef.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_c4a4ef() { var res : vec4 = select(vec4(), vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_c4a4ef(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_c4a4ef(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_c4a4ef(); } diff --git a/test/tint/builtins/gen/literal/select/cb9301.wgsl b/test/tint/builtins/gen/literal/select/cb9301.wgsl index 6a18667471..0c26752bd6 100644 --- a/test/tint/builtins/gen/literal/select/cb9301.wgsl +++ b/test/tint/builtins/gen/literal/select/cb9301.wgsl @@ -28,18 +28,18 @@ fn select_cb9301() { var res: vec2 = select(vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_cb9301(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_cb9301(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_cb9301(); } diff --git a/test/tint/builtins/gen/literal/select/cb9301.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/cb9301.wgsl.expected.wgsl index 7c85dad3e3..b925f9c52b 100644 --- a/test/tint/builtins/gen/literal/select/cb9301.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/cb9301.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_cb9301() { var res : vec2 = select(vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_cb9301(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_cb9301(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_cb9301(); } diff --git a/test/tint/builtins/gen/literal/select/e3e028.wgsl b/test/tint/builtins/gen/literal/select/e3e028.wgsl index 60b9de69f7..7051ad5698 100644 --- a/test/tint/builtins/gen/literal/select/e3e028.wgsl +++ b/test/tint/builtins/gen/literal/select/e3e028.wgsl @@ -28,18 +28,18 @@ fn select_e3e028() { var res: vec4 = select(vec4(), vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_e3e028(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_e3e028(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_e3e028(); } diff --git a/test/tint/builtins/gen/literal/select/e3e028.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/e3e028.wgsl.expected.wgsl index 2794266003..60bb7ed4f7 100644 --- a/test/tint/builtins/gen/literal/select/e3e028.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/e3e028.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_e3e028() { var res : vec4 = select(vec4(), vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_e3e028(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_e3e028(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_e3e028(); } diff --git a/test/tint/builtins/gen/literal/select/ebfea2.wgsl b/test/tint/builtins/gen/literal/select/ebfea2.wgsl index f67652ed64..804af398a5 100644 --- a/test/tint/builtins/gen/literal/select/ebfea2.wgsl +++ b/test/tint/builtins/gen/literal/select/ebfea2.wgsl @@ -28,18 +28,18 @@ fn select_ebfea2() { var res: vec3 = select(vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_ebfea2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_ebfea2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_ebfea2(); } diff --git a/test/tint/builtins/gen/literal/select/ebfea2.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/ebfea2.wgsl.expected.wgsl index c1815851cb..fd0315ce87 100644 --- a/test/tint/builtins/gen/literal/select/ebfea2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/ebfea2.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_ebfea2() { var res : vec3 = select(vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_ebfea2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_ebfea2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_ebfea2(); } diff --git a/test/tint/builtins/gen/literal/select/ed8a15.wgsl b/test/tint/builtins/gen/literal/select/ed8a15.wgsl index f51a5f5864..6a33b8a3d4 100644 --- a/test/tint/builtins/gen/literal/select/ed8a15.wgsl +++ b/test/tint/builtins/gen/literal/select/ed8a15.wgsl @@ -28,18 +28,18 @@ fn select_ed8a15() { var res: i32 = select(1, 1, bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_ed8a15(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_ed8a15(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_ed8a15(); } diff --git a/test/tint/builtins/gen/literal/select/ed8a15.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/ed8a15.wgsl.expected.wgsl index ca4b96e16f..a097c1fd11 100644 --- a/test/tint/builtins/gen/literal/select/ed8a15.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/ed8a15.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_ed8a15() { var res : i32 = select(1, 1, bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_ed8a15(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_ed8a15(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_ed8a15(); } diff --git a/test/tint/builtins/gen/literal/select/fb7e53.wgsl b/test/tint/builtins/gen/literal/select/fb7e53.wgsl index a0bffa8aca..18fcedcadf 100644 --- a/test/tint/builtins/gen/literal/select/fb7e53.wgsl +++ b/test/tint/builtins/gen/literal/select/fb7e53.wgsl @@ -28,18 +28,18 @@ fn select_fb7e53() { var res: vec2 = select(vec2(), vec2(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_fb7e53(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_fb7e53(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_fb7e53(); } diff --git a/test/tint/builtins/gen/literal/select/fb7e53.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/select/fb7e53.wgsl.expected.wgsl index 6c6a2873f0..f39bf368d6 100644 --- a/test/tint/builtins/gen/literal/select/fb7e53.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/select/fb7e53.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn select_fb7e53() { var res : vec2 = select(vec2(), vec2(), bool()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_fb7e53(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_fb7e53(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_fb7e53(); } diff --git a/test/tint/builtins/gen/literal/sign/159665.wgsl b/test/tint/builtins/gen/literal/sign/159665.wgsl index 2c3bd1bf77..4fb808ae1d 100644 --- a/test/tint/builtins/gen/literal/sign/159665.wgsl +++ b/test/tint/builtins/gen/literal/sign/159665.wgsl @@ -28,18 +28,18 @@ fn sign_159665() { var res: vec3 = sign(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sign_159665(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sign_159665(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sign_159665(); } diff --git a/test/tint/builtins/gen/literal/sign/159665.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/sign/159665.wgsl.expected.wgsl index b66072bece..4f99fa9e97 100644 --- a/test/tint/builtins/gen/literal/sign/159665.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/sign/159665.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn sign_159665() { var res : vec3 = sign(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sign_159665(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sign_159665(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sign_159665(); } diff --git a/test/tint/builtins/gen/literal/sign/b8f634.wgsl b/test/tint/builtins/gen/literal/sign/b8f634.wgsl index ae50e74280..7a75abc701 100644 --- a/test/tint/builtins/gen/literal/sign/b8f634.wgsl +++ b/test/tint/builtins/gen/literal/sign/b8f634.wgsl @@ -28,18 +28,18 @@ fn sign_b8f634() { var res: vec4 = sign(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sign_b8f634(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sign_b8f634(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sign_b8f634(); } diff --git a/test/tint/builtins/gen/literal/sign/b8f634.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/sign/b8f634.wgsl.expected.wgsl index c9238d2587..690f072c46 100644 --- a/test/tint/builtins/gen/literal/sign/b8f634.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/sign/b8f634.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn sign_b8f634() { var res : vec4 = sign(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sign_b8f634(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sign_b8f634(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sign_b8f634(); } diff --git a/test/tint/builtins/gen/literal/sign/d065d8.wgsl b/test/tint/builtins/gen/literal/sign/d065d8.wgsl index 954aa60641..ed052e5fae 100644 --- a/test/tint/builtins/gen/literal/sign/d065d8.wgsl +++ b/test/tint/builtins/gen/literal/sign/d065d8.wgsl @@ -28,18 +28,18 @@ fn sign_d065d8() { var res: vec2 = sign(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sign_d065d8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sign_d065d8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sign_d065d8(); } diff --git a/test/tint/builtins/gen/literal/sign/d065d8.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/sign/d065d8.wgsl.expected.wgsl index 870041f3db..a7d4c6d370 100644 --- a/test/tint/builtins/gen/literal/sign/d065d8.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/sign/d065d8.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn sign_d065d8() { var res : vec2 = sign(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sign_d065d8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sign_d065d8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sign_d065d8(); } diff --git a/test/tint/builtins/gen/literal/sign/dd790e.wgsl b/test/tint/builtins/gen/literal/sign/dd790e.wgsl index 06c50c9f1a..4b967a95d2 100644 --- a/test/tint/builtins/gen/literal/sign/dd790e.wgsl +++ b/test/tint/builtins/gen/literal/sign/dd790e.wgsl @@ -28,18 +28,18 @@ fn sign_dd790e() { var res: f32 = sign(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sign_dd790e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sign_dd790e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sign_dd790e(); } diff --git a/test/tint/builtins/gen/literal/sign/dd790e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/sign/dd790e.wgsl.expected.wgsl index d987517179..8733a598c3 100644 --- a/test/tint/builtins/gen/literal/sign/dd790e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/sign/dd790e.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn sign_dd790e() { var res : f32 = sign(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sign_dd790e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sign_dd790e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sign_dd790e(); } diff --git a/test/tint/builtins/gen/literal/sin/01f241.wgsl b/test/tint/builtins/gen/literal/sin/01f241.wgsl index 967e7c0663..17b5798c13 100644 --- a/test/tint/builtins/gen/literal/sin/01f241.wgsl +++ b/test/tint/builtins/gen/literal/sin/01f241.wgsl @@ -28,18 +28,18 @@ fn sin_01f241() { var res: vec3 = sin(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sin_01f241(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sin_01f241(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sin_01f241(); } diff --git a/test/tint/builtins/gen/literal/sin/01f241.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/sin/01f241.wgsl.expected.wgsl index 8188006663..4acc145926 100644 --- a/test/tint/builtins/gen/literal/sin/01f241.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/sin/01f241.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn sin_01f241() { var res : vec3 = sin(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sin_01f241(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sin_01f241(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sin_01f241(); } diff --git a/test/tint/builtins/gen/literal/sin/4e3979.wgsl b/test/tint/builtins/gen/literal/sin/4e3979.wgsl index cde754f6a7..25ad471302 100644 --- a/test/tint/builtins/gen/literal/sin/4e3979.wgsl +++ b/test/tint/builtins/gen/literal/sin/4e3979.wgsl @@ -28,18 +28,18 @@ fn sin_4e3979() { var res: vec4 = sin(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sin_4e3979(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sin_4e3979(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sin_4e3979(); } diff --git a/test/tint/builtins/gen/literal/sin/4e3979.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/sin/4e3979.wgsl.expected.wgsl index 6d037783ed..a576da3197 100644 --- a/test/tint/builtins/gen/literal/sin/4e3979.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/sin/4e3979.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn sin_4e3979() { var res : vec4 = sin(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sin_4e3979(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sin_4e3979(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sin_4e3979(); } diff --git a/test/tint/builtins/gen/literal/sin/b78c91.wgsl b/test/tint/builtins/gen/literal/sin/b78c91.wgsl index 7a2120ae4b..50406eadef 100644 --- a/test/tint/builtins/gen/literal/sin/b78c91.wgsl +++ b/test/tint/builtins/gen/literal/sin/b78c91.wgsl @@ -28,18 +28,18 @@ fn sin_b78c91() { var res: f32 = sin(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sin_b78c91(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sin_b78c91(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sin_b78c91(); } diff --git a/test/tint/builtins/gen/literal/sin/b78c91.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/sin/b78c91.wgsl.expected.wgsl index e4a2d42162..da7ee81947 100644 --- a/test/tint/builtins/gen/literal/sin/b78c91.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/sin/b78c91.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn sin_b78c91() { var res : f32 = sin(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sin_b78c91(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sin_b78c91(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sin_b78c91(); } diff --git a/test/tint/builtins/gen/literal/sin/fc8bc4.wgsl b/test/tint/builtins/gen/literal/sin/fc8bc4.wgsl index 0888f2e23b..1793e70582 100644 --- a/test/tint/builtins/gen/literal/sin/fc8bc4.wgsl +++ b/test/tint/builtins/gen/literal/sin/fc8bc4.wgsl @@ -28,18 +28,18 @@ fn sin_fc8bc4() { var res: vec2 = sin(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sin_fc8bc4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sin_fc8bc4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sin_fc8bc4(); } diff --git a/test/tint/builtins/gen/literal/sin/fc8bc4.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/sin/fc8bc4.wgsl.expected.wgsl index 30e0918779..fb6ec7205d 100644 --- a/test/tint/builtins/gen/literal/sin/fc8bc4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/sin/fc8bc4.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn sin_fc8bc4() { var res : vec2 = sin(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sin_fc8bc4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sin_fc8bc4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sin_fc8bc4(); } diff --git a/test/tint/builtins/gen/literal/sinh/445e33.wgsl b/test/tint/builtins/gen/literal/sinh/445e33.wgsl index 6ddbf4fc16..43e57dee6b 100644 --- a/test/tint/builtins/gen/literal/sinh/445e33.wgsl +++ b/test/tint/builtins/gen/literal/sinh/445e33.wgsl @@ -28,18 +28,18 @@ fn sinh_445e33() { var res: vec4 = sinh(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sinh_445e33(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sinh_445e33(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sinh_445e33(); } diff --git a/test/tint/builtins/gen/literal/sinh/445e33.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/sinh/445e33.wgsl.expected.wgsl index 4eac92e7cf..f5ef008bf9 100644 --- a/test/tint/builtins/gen/literal/sinh/445e33.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/sinh/445e33.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn sinh_445e33() { var res : vec4 = sinh(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sinh_445e33(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sinh_445e33(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sinh_445e33(); } diff --git a/test/tint/builtins/gen/literal/sinh/7bb598.wgsl b/test/tint/builtins/gen/literal/sinh/7bb598.wgsl index e45c7f02bf..05c502ddc3 100644 --- a/test/tint/builtins/gen/literal/sinh/7bb598.wgsl +++ b/test/tint/builtins/gen/literal/sinh/7bb598.wgsl @@ -28,18 +28,18 @@ fn sinh_7bb598() { var res: f32 = sinh(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sinh_7bb598(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sinh_7bb598(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sinh_7bb598(); } diff --git a/test/tint/builtins/gen/literal/sinh/7bb598.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/sinh/7bb598.wgsl.expected.wgsl index 8df3fa0831..67cc8fd2cc 100644 --- a/test/tint/builtins/gen/literal/sinh/7bb598.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/sinh/7bb598.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn sinh_7bb598() { var res : f32 = sinh(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sinh_7bb598(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sinh_7bb598(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sinh_7bb598(); } diff --git a/test/tint/builtins/gen/literal/sinh/b9860e.wgsl b/test/tint/builtins/gen/literal/sinh/b9860e.wgsl index e913cb912d..21026cd0df 100644 --- a/test/tint/builtins/gen/literal/sinh/b9860e.wgsl +++ b/test/tint/builtins/gen/literal/sinh/b9860e.wgsl @@ -28,18 +28,18 @@ fn sinh_b9860e() { var res: vec2 = sinh(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sinh_b9860e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sinh_b9860e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sinh_b9860e(); } diff --git a/test/tint/builtins/gen/literal/sinh/b9860e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/sinh/b9860e.wgsl.expected.wgsl index b0698d04f3..014cca3274 100644 --- a/test/tint/builtins/gen/literal/sinh/b9860e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/sinh/b9860e.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn sinh_b9860e() { var res : vec2 = sinh(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sinh_b9860e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sinh_b9860e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sinh_b9860e(); } diff --git a/test/tint/builtins/gen/literal/sinh/c9a5eb.wgsl b/test/tint/builtins/gen/literal/sinh/c9a5eb.wgsl index 1ec2a5bcd3..8935110b4e 100644 --- a/test/tint/builtins/gen/literal/sinh/c9a5eb.wgsl +++ b/test/tint/builtins/gen/literal/sinh/c9a5eb.wgsl @@ -28,18 +28,18 @@ fn sinh_c9a5eb() { var res: vec3 = sinh(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sinh_c9a5eb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sinh_c9a5eb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sinh_c9a5eb(); } diff --git a/test/tint/builtins/gen/literal/sinh/c9a5eb.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/sinh/c9a5eb.wgsl.expected.wgsl index 642d72c8c4..c3e1955e90 100644 --- a/test/tint/builtins/gen/literal/sinh/c9a5eb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/sinh/c9a5eb.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn sinh_c9a5eb() { var res : vec3 = sinh(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sinh_c9a5eb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sinh_c9a5eb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sinh_c9a5eb(); } diff --git a/test/tint/builtins/gen/literal/smoothstep/392c19.wgsl b/test/tint/builtins/gen/literal/smoothstep/392c19.wgsl index 9df76b3764..e06dff7922 100644 --- a/test/tint/builtins/gen/literal/smoothstep/392c19.wgsl +++ b/test/tint/builtins/gen/literal/smoothstep/392c19.wgsl @@ -28,18 +28,18 @@ fn smoothstep_392c19() { var res: vec2 = smoothstep(vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { smoothstep_392c19(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { smoothstep_392c19(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { smoothstep_392c19(); } diff --git a/test/tint/builtins/gen/literal/smoothstep/392c19.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/smoothstep/392c19.wgsl.expected.wgsl index 7d1d3ffc21..f941e24442 100644 --- a/test/tint/builtins/gen/literal/smoothstep/392c19.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/smoothstep/392c19.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn smoothstep_392c19() { var res : vec2 = smoothstep(vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { smoothstep_392c19(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { smoothstep_392c19(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { smoothstep_392c19(); } diff --git a/test/tint/builtins/gen/literal/smoothstep/40864c.wgsl b/test/tint/builtins/gen/literal/smoothstep/40864c.wgsl index 2989f50d50..b080c200f1 100644 --- a/test/tint/builtins/gen/literal/smoothstep/40864c.wgsl +++ b/test/tint/builtins/gen/literal/smoothstep/40864c.wgsl @@ -28,18 +28,18 @@ fn smoothstep_40864c() { var res: vec4 = smoothstep(vec4(), vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { smoothstep_40864c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { smoothstep_40864c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { smoothstep_40864c(); } diff --git a/test/tint/builtins/gen/literal/smoothstep/40864c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/smoothstep/40864c.wgsl.expected.wgsl index 0d4cd269b2..ddfe5c9d81 100644 --- a/test/tint/builtins/gen/literal/smoothstep/40864c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/smoothstep/40864c.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn smoothstep_40864c() { var res : vec4 = smoothstep(vec4(), vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { smoothstep_40864c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { smoothstep_40864c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { smoothstep_40864c(); } diff --git a/test/tint/builtins/gen/literal/smoothstep/5f615b.wgsl b/test/tint/builtins/gen/literal/smoothstep/5f615b.wgsl index 565e625229..1460c317c9 100644 --- a/test/tint/builtins/gen/literal/smoothstep/5f615b.wgsl +++ b/test/tint/builtins/gen/literal/smoothstep/5f615b.wgsl @@ -28,18 +28,18 @@ fn smoothStep_5f615b() { var res: vec4 = smoothStep(vec4(), vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { smoothStep_5f615b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { smoothStep_5f615b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { smoothStep_5f615b(); } diff --git a/test/tint/builtins/gen/literal/smoothstep/5f615b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/smoothstep/5f615b.wgsl.expected.wgsl index f87d953096..a0aff9c25f 100644 --- a/test/tint/builtins/gen/literal/smoothstep/5f615b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/smoothstep/5f615b.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn smoothStep_5f615b() { var res : vec4 = smoothStep(vec4(), vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { smoothStep_5f615b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { smoothStep_5f615b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { smoothStep_5f615b(); } diff --git a/test/tint/builtins/gen/literal/smoothstep/658be3.wgsl b/test/tint/builtins/gen/literal/smoothstep/658be3.wgsl index bd29528240..bda858cf8c 100644 --- a/test/tint/builtins/gen/literal/smoothstep/658be3.wgsl +++ b/test/tint/builtins/gen/literal/smoothstep/658be3.wgsl @@ -28,18 +28,18 @@ fn smoothStep_658be3() { var res: vec3 = smoothStep(vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { smoothStep_658be3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { smoothStep_658be3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { smoothStep_658be3(); } diff --git a/test/tint/builtins/gen/literal/smoothstep/658be3.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/smoothstep/658be3.wgsl.expected.wgsl index 62eb3cb966..3f4c3cc07b 100644 --- a/test/tint/builtins/gen/literal/smoothstep/658be3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/smoothstep/658be3.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn smoothStep_658be3() { var res : vec3 = smoothStep(vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { smoothStep_658be3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { smoothStep_658be3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { smoothStep_658be3(); } diff --git a/test/tint/builtins/gen/literal/smoothstep/6c4975.wgsl b/test/tint/builtins/gen/literal/smoothstep/6c4975.wgsl index 83ae2973ff..d1743e0d76 100644 --- a/test/tint/builtins/gen/literal/smoothstep/6c4975.wgsl +++ b/test/tint/builtins/gen/literal/smoothstep/6c4975.wgsl @@ -28,18 +28,18 @@ fn smoothstep_6c4975() { var res: f32 = smoothstep(1.0, 1.0, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { smoothstep_6c4975(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { smoothstep_6c4975(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { smoothstep_6c4975(); } diff --git a/test/tint/builtins/gen/literal/smoothstep/6c4975.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/smoothstep/6c4975.wgsl.expected.wgsl index 30982a379e..dc4c629ffa 100644 --- a/test/tint/builtins/gen/literal/smoothstep/6c4975.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/smoothstep/6c4975.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn smoothstep_6c4975() { var res : f32 = smoothstep(1.0, 1.0, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { smoothstep_6c4975(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { smoothstep_6c4975(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { smoothstep_6c4975(); } diff --git a/test/tint/builtins/gen/literal/smoothstep/aad1db.wgsl b/test/tint/builtins/gen/literal/smoothstep/aad1db.wgsl index 8be3f55705..379eb1471e 100644 --- a/test/tint/builtins/gen/literal/smoothstep/aad1db.wgsl +++ b/test/tint/builtins/gen/literal/smoothstep/aad1db.wgsl @@ -28,18 +28,18 @@ fn smoothstep_aad1db() { var res: vec3 = smoothstep(vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { smoothstep_aad1db(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { smoothstep_aad1db(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { smoothstep_aad1db(); } diff --git a/test/tint/builtins/gen/literal/smoothstep/aad1db.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/smoothstep/aad1db.wgsl.expected.wgsl index 0c834395e9..5ea76a82b7 100644 --- a/test/tint/builtins/gen/literal/smoothstep/aad1db.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/smoothstep/aad1db.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn smoothstep_aad1db() { var res : vec3 = smoothstep(vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { smoothstep_aad1db(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { smoothstep_aad1db(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { smoothstep_aad1db(); } diff --git a/test/tint/builtins/gen/literal/smoothstep/c11eef.wgsl b/test/tint/builtins/gen/literal/smoothstep/c11eef.wgsl index 518847a454..08b4b69539 100644 --- a/test/tint/builtins/gen/literal/smoothstep/c11eef.wgsl +++ b/test/tint/builtins/gen/literal/smoothstep/c11eef.wgsl @@ -28,18 +28,18 @@ fn smoothStep_c11eef() { var res: vec2 = smoothStep(vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { smoothStep_c11eef(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { smoothStep_c11eef(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { smoothStep_c11eef(); } diff --git a/test/tint/builtins/gen/literal/smoothstep/c11eef.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/smoothstep/c11eef.wgsl.expected.wgsl index 00193102be..2910009812 100644 --- a/test/tint/builtins/gen/literal/smoothstep/c11eef.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/smoothstep/c11eef.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn smoothStep_c11eef() { var res : vec2 = smoothStep(vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { smoothStep_c11eef(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { smoothStep_c11eef(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { smoothStep_c11eef(); } diff --git a/test/tint/builtins/gen/literal/smoothstep/cb0bfb.wgsl b/test/tint/builtins/gen/literal/smoothstep/cb0bfb.wgsl index a30a3048d9..73e9c7437e 100644 --- a/test/tint/builtins/gen/literal/smoothstep/cb0bfb.wgsl +++ b/test/tint/builtins/gen/literal/smoothstep/cb0bfb.wgsl @@ -28,18 +28,18 @@ fn smoothStep_cb0bfb() { var res: f32 = smoothStep(1.0, 1.0, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { smoothStep_cb0bfb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { smoothStep_cb0bfb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { smoothStep_cb0bfb(); } diff --git a/test/tint/builtins/gen/literal/smoothstep/cb0bfb.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/smoothstep/cb0bfb.wgsl.expected.wgsl index cfa44d362b..fa8636aae9 100644 --- a/test/tint/builtins/gen/literal/smoothstep/cb0bfb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/smoothstep/cb0bfb.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn smoothStep_cb0bfb() { var res : f32 = smoothStep(1.0, 1.0, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { smoothStep_cb0bfb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { smoothStep_cb0bfb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { smoothStep_cb0bfb(); } diff --git a/test/tint/builtins/gen/literal/sqrt/20c74e.wgsl b/test/tint/builtins/gen/literal/sqrt/20c74e.wgsl index b99db85248..780618a7da 100644 --- a/test/tint/builtins/gen/literal/sqrt/20c74e.wgsl +++ b/test/tint/builtins/gen/literal/sqrt/20c74e.wgsl @@ -28,18 +28,18 @@ fn sqrt_20c74e() { var res: f32 = sqrt(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sqrt_20c74e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sqrt_20c74e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sqrt_20c74e(); } diff --git a/test/tint/builtins/gen/literal/sqrt/20c74e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/sqrt/20c74e.wgsl.expected.wgsl index 3b9fe0a266..9edd8a9348 100644 --- a/test/tint/builtins/gen/literal/sqrt/20c74e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/sqrt/20c74e.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn sqrt_20c74e() { var res : f32 = sqrt(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sqrt_20c74e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sqrt_20c74e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sqrt_20c74e(); } diff --git a/test/tint/builtins/gen/literal/sqrt/8c7024.wgsl b/test/tint/builtins/gen/literal/sqrt/8c7024.wgsl index 006206931b..b89aefc3db 100644 --- a/test/tint/builtins/gen/literal/sqrt/8c7024.wgsl +++ b/test/tint/builtins/gen/literal/sqrt/8c7024.wgsl @@ -28,18 +28,18 @@ fn sqrt_8c7024() { var res: vec2 = sqrt(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sqrt_8c7024(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sqrt_8c7024(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sqrt_8c7024(); } diff --git a/test/tint/builtins/gen/literal/sqrt/8c7024.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/sqrt/8c7024.wgsl.expected.wgsl index 36b4a8b6cc..626d52ec7d 100644 --- a/test/tint/builtins/gen/literal/sqrt/8c7024.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/sqrt/8c7024.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn sqrt_8c7024() { var res : vec2 = sqrt(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sqrt_8c7024(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sqrt_8c7024(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sqrt_8c7024(); } diff --git a/test/tint/builtins/gen/literal/sqrt/aa0d7a.wgsl b/test/tint/builtins/gen/literal/sqrt/aa0d7a.wgsl index d28e561d4d..62dc712d4d 100644 --- a/test/tint/builtins/gen/literal/sqrt/aa0d7a.wgsl +++ b/test/tint/builtins/gen/literal/sqrt/aa0d7a.wgsl @@ -28,18 +28,18 @@ fn sqrt_aa0d7a() { var res: vec4 = sqrt(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sqrt_aa0d7a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sqrt_aa0d7a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sqrt_aa0d7a(); } diff --git a/test/tint/builtins/gen/literal/sqrt/aa0d7a.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/sqrt/aa0d7a.wgsl.expected.wgsl index 47ab81a39d..dfc5c27e1d 100644 --- a/test/tint/builtins/gen/literal/sqrt/aa0d7a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/sqrt/aa0d7a.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn sqrt_aa0d7a() { var res : vec4 = sqrt(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sqrt_aa0d7a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sqrt_aa0d7a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sqrt_aa0d7a(); } diff --git a/test/tint/builtins/gen/literal/sqrt/f8c59a.wgsl b/test/tint/builtins/gen/literal/sqrt/f8c59a.wgsl index 11ea95ce92..d702a025fc 100644 --- a/test/tint/builtins/gen/literal/sqrt/f8c59a.wgsl +++ b/test/tint/builtins/gen/literal/sqrt/f8c59a.wgsl @@ -28,18 +28,18 @@ fn sqrt_f8c59a() { var res: vec3 = sqrt(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sqrt_f8c59a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sqrt_f8c59a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sqrt_f8c59a(); } diff --git a/test/tint/builtins/gen/literal/sqrt/f8c59a.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/sqrt/f8c59a.wgsl.expected.wgsl index e12b65861c..9986b387b6 100644 --- a/test/tint/builtins/gen/literal/sqrt/f8c59a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/sqrt/f8c59a.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn sqrt_f8c59a() { var res : vec3 = sqrt(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sqrt_f8c59a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sqrt_f8c59a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sqrt_f8c59a(); } diff --git a/test/tint/builtins/gen/literal/step/0b073b.wgsl b/test/tint/builtins/gen/literal/step/0b073b.wgsl index c143dd8bac..e7c3bc2492 100644 --- a/test/tint/builtins/gen/literal/step/0b073b.wgsl +++ b/test/tint/builtins/gen/literal/step/0b073b.wgsl @@ -28,18 +28,18 @@ fn step_0b073b() { var res: f32 = step(1.0, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { step_0b073b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { step_0b073b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { step_0b073b(); } diff --git a/test/tint/builtins/gen/literal/step/0b073b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/step/0b073b.wgsl.expected.wgsl index 36e47ddeaa..bd78183ba0 100644 --- a/test/tint/builtins/gen/literal/step/0b073b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/step/0b073b.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn step_0b073b() { var res : f32 = step(1.0, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { step_0b073b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { step_0b073b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { step_0b073b(); } diff --git a/test/tint/builtins/gen/literal/step/19accd.wgsl b/test/tint/builtins/gen/literal/step/19accd.wgsl index 10741be58f..c3d2d7bfa0 100644 --- a/test/tint/builtins/gen/literal/step/19accd.wgsl +++ b/test/tint/builtins/gen/literal/step/19accd.wgsl @@ -28,18 +28,18 @@ fn step_19accd() { var res: vec2 = step(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { step_19accd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { step_19accd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { step_19accd(); } diff --git a/test/tint/builtins/gen/literal/step/19accd.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/step/19accd.wgsl.expected.wgsl index ce2b50bada..5c188e2127 100644 --- a/test/tint/builtins/gen/literal/step/19accd.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/step/19accd.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn step_19accd() { var res : vec2 = step(vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { step_19accd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { step_19accd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { step_19accd(); } diff --git a/test/tint/builtins/gen/literal/step/334303.wgsl b/test/tint/builtins/gen/literal/step/334303.wgsl index 4643f33c7b..dfa502766f 100644 --- a/test/tint/builtins/gen/literal/step/334303.wgsl +++ b/test/tint/builtins/gen/literal/step/334303.wgsl @@ -28,18 +28,18 @@ fn step_334303() { var res: vec3 = step(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { step_334303(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { step_334303(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { step_334303(); } diff --git a/test/tint/builtins/gen/literal/step/334303.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/step/334303.wgsl.expected.wgsl index e1cb6317b3..75aff10758 100644 --- a/test/tint/builtins/gen/literal/step/334303.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/step/334303.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn step_334303() { var res : vec3 = step(vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { step_334303(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { step_334303(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { step_334303(); } diff --git a/test/tint/builtins/gen/literal/step/e2b337.wgsl b/test/tint/builtins/gen/literal/step/e2b337.wgsl index 41cff04e25..5b0f2abbef 100644 --- a/test/tint/builtins/gen/literal/step/e2b337.wgsl +++ b/test/tint/builtins/gen/literal/step/e2b337.wgsl @@ -28,18 +28,18 @@ fn step_e2b337() { var res: vec4 = step(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { step_e2b337(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { step_e2b337(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { step_e2b337(); } diff --git a/test/tint/builtins/gen/literal/step/e2b337.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/step/e2b337.wgsl.expected.wgsl index a6efd8626f..bbc67efca9 100644 --- a/test/tint/builtins/gen/literal/step/e2b337.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/step/e2b337.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn step_e2b337() { var res : vec4 = step(vec4(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { step_e2b337(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { step_e2b337(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { step_e2b337(); } diff --git a/test/tint/builtins/gen/literal/storageBarrier/d87211.wgsl b/test/tint/builtins/gen/literal/storageBarrier/d87211.wgsl index 5306f6c3bc..875d13fa6d 100644 --- a/test/tint/builtins/gen/literal/storageBarrier/d87211.wgsl +++ b/test/tint/builtins/gen/literal/storageBarrier/d87211.wgsl @@ -28,7 +28,7 @@ fn storageBarrier_d87211() { storageBarrier(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { storageBarrier_d87211(); } diff --git a/test/tint/builtins/gen/literal/storageBarrier/d87211.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/storageBarrier/d87211.wgsl.expected.wgsl index 4c87708134..b92968109a 100644 --- a/test/tint/builtins/gen/literal/storageBarrier/d87211.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/storageBarrier/d87211.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn storageBarrier_d87211() { storageBarrier(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { storageBarrier_d87211(); } diff --git a/test/tint/builtins/gen/literal/tan/244e2a.wgsl b/test/tint/builtins/gen/literal/tan/244e2a.wgsl index f9920e7a73..cd9ae1142f 100644 --- a/test/tint/builtins/gen/literal/tan/244e2a.wgsl +++ b/test/tint/builtins/gen/literal/tan/244e2a.wgsl @@ -28,18 +28,18 @@ fn tan_244e2a() { var res: vec4 = tan(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tan_244e2a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tan_244e2a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tan_244e2a(); } diff --git a/test/tint/builtins/gen/literal/tan/244e2a.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/tan/244e2a.wgsl.expected.wgsl index 77ac6d8afb..b8dae2888b 100644 --- a/test/tint/builtins/gen/literal/tan/244e2a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/tan/244e2a.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn tan_244e2a() { var res : vec4 = tan(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tan_244e2a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tan_244e2a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tan_244e2a(); } diff --git a/test/tint/builtins/gen/literal/tan/2f030e.wgsl b/test/tint/builtins/gen/literal/tan/2f030e.wgsl index 39c06f5ae5..f910b855b6 100644 --- a/test/tint/builtins/gen/literal/tan/2f030e.wgsl +++ b/test/tint/builtins/gen/literal/tan/2f030e.wgsl @@ -28,18 +28,18 @@ fn tan_2f030e() { var res: f32 = tan(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tan_2f030e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tan_2f030e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tan_2f030e(); } diff --git a/test/tint/builtins/gen/literal/tan/2f030e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/tan/2f030e.wgsl.expected.wgsl index 3c12969c53..cbca43bee1 100644 --- a/test/tint/builtins/gen/literal/tan/2f030e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/tan/2f030e.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn tan_2f030e() { var res : f32 = tan(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tan_2f030e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tan_2f030e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tan_2f030e(); } diff --git a/test/tint/builtins/gen/literal/tan/7ea104.wgsl b/test/tint/builtins/gen/literal/tan/7ea104.wgsl index 4ed0b9be95..9a6f1ccb18 100644 --- a/test/tint/builtins/gen/literal/tan/7ea104.wgsl +++ b/test/tint/builtins/gen/literal/tan/7ea104.wgsl @@ -28,18 +28,18 @@ fn tan_7ea104() { var res: vec3 = tan(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tan_7ea104(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tan_7ea104(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tan_7ea104(); } diff --git a/test/tint/builtins/gen/literal/tan/7ea104.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/tan/7ea104.wgsl.expected.wgsl index f859e5063e..a4d7e753ab 100644 --- a/test/tint/builtins/gen/literal/tan/7ea104.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/tan/7ea104.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn tan_7ea104() { var res : vec3 = tan(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tan_7ea104(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tan_7ea104(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tan_7ea104(); } diff --git a/test/tint/builtins/gen/literal/tan/8ce3e9.wgsl b/test/tint/builtins/gen/literal/tan/8ce3e9.wgsl index 3c587aa834..80f7f58fd7 100644 --- a/test/tint/builtins/gen/literal/tan/8ce3e9.wgsl +++ b/test/tint/builtins/gen/literal/tan/8ce3e9.wgsl @@ -28,18 +28,18 @@ fn tan_8ce3e9() { var res: vec2 = tan(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tan_8ce3e9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tan_8ce3e9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tan_8ce3e9(); } diff --git a/test/tint/builtins/gen/literal/tan/8ce3e9.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/tan/8ce3e9.wgsl.expected.wgsl index a43d8095c5..879d09bf50 100644 --- a/test/tint/builtins/gen/literal/tan/8ce3e9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/tan/8ce3e9.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn tan_8ce3e9() { var res : vec2 = tan(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tan_8ce3e9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tan_8ce3e9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tan_8ce3e9(); } diff --git a/test/tint/builtins/gen/literal/tanh/5663c5.wgsl b/test/tint/builtins/gen/literal/tanh/5663c5.wgsl index 3f88d44780..3c18367de9 100644 --- a/test/tint/builtins/gen/literal/tanh/5663c5.wgsl +++ b/test/tint/builtins/gen/literal/tanh/5663c5.wgsl @@ -28,18 +28,18 @@ fn tanh_5663c5() { var res: vec4 = tanh(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tanh_5663c5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tanh_5663c5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tanh_5663c5(); } diff --git a/test/tint/builtins/gen/literal/tanh/5663c5.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/tanh/5663c5.wgsl.expected.wgsl index 717091bf70..006b94b596 100644 --- a/test/tint/builtins/gen/literal/tanh/5663c5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/tanh/5663c5.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn tanh_5663c5() { var res : vec4 = tanh(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tanh_5663c5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tanh_5663c5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tanh_5663c5(); } diff --git a/test/tint/builtins/gen/literal/tanh/5724b3.wgsl b/test/tint/builtins/gen/literal/tanh/5724b3.wgsl index 8715b26e04..1c6f966372 100644 --- a/test/tint/builtins/gen/literal/tanh/5724b3.wgsl +++ b/test/tint/builtins/gen/literal/tanh/5724b3.wgsl @@ -28,18 +28,18 @@ fn tanh_5724b3() { var res: vec2 = tanh(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tanh_5724b3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tanh_5724b3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tanh_5724b3(); } diff --git a/test/tint/builtins/gen/literal/tanh/5724b3.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/tanh/5724b3.wgsl.expected.wgsl index 7fbd481e1b..bb8a266fbe 100644 --- a/test/tint/builtins/gen/literal/tanh/5724b3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/tanh/5724b3.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn tanh_5724b3() { var res : vec2 = tanh(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tanh_5724b3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tanh_5724b3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tanh_5724b3(); } diff --git a/test/tint/builtins/gen/literal/tanh/9f9fb9.wgsl b/test/tint/builtins/gen/literal/tanh/9f9fb9.wgsl index 7602a18694..824046455e 100644 --- a/test/tint/builtins/gen/literal/tanh/9f9fb9.wgsl +++ b/test/tint/builtins/gen/literal/tanh/9f9fb9.wgsl @@ -28,18 +28,18 @@ fn tanh_9f9fb9() { var res: vec3 = tanh(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tanh_9f9fb9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tanh_9f9fb9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tanh_9f9fb9(); } diff --git a/test/tint/builtins/gen/literal/tanh/9f9fb9.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/tanh/9f9fb9.wgsl.expected.wgsl index 20184fd0f8..24738078ce 100644 --- a/test/tint/builtins/gen/literal/tanh/9f9fb9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/tanh/9f9fb9.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn tanh_9f9fb9() { var res : vec3 = tanh(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tanh_9f9fb9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tanh_9f9fb9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tanh_9f9fb9(); } diff --git a/test/tint/builtins/gen/literal/tanh/c15fdb.wgsl b/test/tint/builtins/gen/literal/tanh/c15fdb.wgsl index f83b8419d8..32f4fa366d 100644 --- a/test/tint/builtins/gen/literal/tanh/c15fdb.wgsl +++ b/test/tint/builtins/gen/literal/tanh/c15fdb.wgsl @@ -28,18 +28,18 @@ fn tanh_c15fdb() { var res: f32 = tanh(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tanh_c15fdb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tanh_c15fdb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tanh_c15fdb(); } diff --git a/test/tint/builtins/gen/literal/tanh/c15fdb.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/tanh/c15fdb.wgsl.expected.wgsl index fb6e8e7cf4..f6e9df7390 100644 --- a/test/tint/builtins/gen/literal/tanh/c15fdb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/tanh/c15fdb.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn tanh_c15fdb() { var res : f32 = tanh(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tanh_c15fdb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tanh_c15fdb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tanh_c15fdb(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/002b2a.wgsl b/test/tint/builtins/gen/literal/textureDimensions/002b2a.wgsl index b93721f74c..7d535e36bf 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/002b2a.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/002b2a.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_002b2a() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_002b2a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_002b2a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_002b2a(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/002b2a.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/002b2a.wgsl.expected.wgsl index a21a8c0b16..5f09068124 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/002b2a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/002b2a.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_002b2a() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_002b2a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_002b2a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_002b2a(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/012b82.wgsl b/test/tint/builtins/gen/literal/textureDimensions/012b82.wgsl index d011596a67..4ce156e879 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/012b82.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/012b82.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_012b82() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_012b82(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_012b82(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_012b82(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/012b82.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/012b82.wgsl.expected.wgsl index 7ebcab6b4e..216df4f29f 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/012b82.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/012b82.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_012b82() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_012b82(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_012b82(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_012b82(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/08753d.wgsl b/test/tint/builtins/gen/literal/textureDimensions/08753d.wgsl index 4e071a0b4f..c60871d014 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/08753d.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/08753d.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_08753d() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_08753d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_08753d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_08753d(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/08753d.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/08753d.wgsl.expected.wgsl index 45dce4b559..443a678ed3 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/08753d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/08753d.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_08753d() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_08753d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_08753d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_08753d(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/0c4772.wgsl b/test/tint/builtins/gen/literal/textureDimensions/0c4772.wgsl index 3acce510b9..c23ca841e2 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/0c4772.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/0c4772.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_0c4772() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_0c4772(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_0c4772(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_0c4772(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/0c4772.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/0c4772.wgsl.expected.wgsl index dc5fc35cb9..fc2907df4a 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/0c4772.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/0c4772.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_0c4772() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_0c4772(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_0c4772(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_0c4772(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/0cce40.wgsl b/test/tint/builtins/gen/literal/textureDimensions/0cce40.wgsl index 410f924b2b..3c1678bfc1 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/0cce40.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/0cce40.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_0cce40() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_0cce40(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_0cce40(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_0cce40(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/0cce40.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/0cce40.wgsl.expected.wgsl index 04b0e24fd1..5193665715 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/0cce40.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/0cce40.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_0cce40() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_0cce40(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_0cce40(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_0cce40(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/0cf2ff.wgsl b/test/tint/builtins/gen/literal/textureDimensions/0cf2ff.wgsl index 4ca09283fc..b19e1ddd51 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/0cf2ff.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/0cf2ff.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_0cf2ff() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_0cf2ff(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_0cf2ff(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_0cf2ff(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/0cf2ff.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/0cf2ff.wgsl.expected.wgsl index 36e3e6109f..a13b916c8a 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/0cf2ff.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/0cf2ff.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_0cf2ff() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_0cf2ff(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_0cf2ff(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_0cf2ff(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/0d8b7e.wgsl b/test/tint/builtins/gen/literal/textureDimensions/0d8b7e.wgsl index 69277768d9..d522067512 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/0d8b7e.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/0d8b7e.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_0d8b7e() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_0d8b7e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_0d8b7e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_0d8b7e(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/0d8b7e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/0d8b7e.wgsl.expected.wgsl index b4a1350a3b..2ce14eadae 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/0d8b7e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/0d8b7e.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_0d8b7e() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_0d8b7e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_0d8b7e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_0d8b7e(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/0e32ee.wgsl b/test/tint/builtins/gen/literal/textureDimensions/0e32ee.wgsl index 60d2aa3469..f4e9278032 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/0e32ee.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/0e32ee.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_0e32ee() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_0e32ee(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_0e32ee(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_0e32ee(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/0e32ee.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/0e32ee.wgsl.expected.wgsl index 9f0e1d1347..c037616b43 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/0e32ee.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/0e32ee.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_0e32ee() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_0e32ee(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_0e32ee(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_0e32ee(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/0f3c50.wgsl b/test/tint/builtins/gen/literal/textureDimensions/0f3c50.wgsl index c8010cbe59..55b704e743 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/0f3c50.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/0f3c50.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_0f3c50() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_0f3c50(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_0f3c50(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_0f3c50(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/0f3c50.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/0f3c50.wgsl.expected.wgsl index 553f57ea88..45eee36977 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/0f3c50.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/0f3c50.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_0f3c50() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_0f3c50(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_0f3c50(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_0f3c50(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/1191a5.wgsl b/test/tint/builtins/gen/literal/textureDimensions/1191a5.wgsl index 172d0496ae..b9175156e2 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/1191a5.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/1191a5.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_1191a5() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_1191a5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_1191a5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_1191a5(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/1191a5.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/1191a5.wgsl.expected.wgsl index 2131304dac..c0e1745f76 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/1191a5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/1191a5.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_1191a5() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_1191a5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_1191a5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_1191a5(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/12c9bb.wgsl b/test/tint/builtins/gen/literal/textureDimensions/12c9bb.wgsl index 582382ea2d..deca082610 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/12c9bb.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/12c9bb.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_12c9bb() { var res: vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_12c9bb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_12c9bb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_12c9bb(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/12c9bb.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/12c9bb.wgsl.expected.wgsl index 14d7f89b88..857ce06480 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/12c9bb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/12c9bb.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_12c9bb() { var res : vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_12c9bb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_12c9bb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_12c9bb(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/147998.wgsl b/test/tint/builtins/gen/literal/textureDimensions/147998.wgsl index 17e2e21255..1917a883fc 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/147998.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/147998.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_147998() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_147998(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_147998(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_147998(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/147998.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/147998.wgsl.expected.wgsl index 3cd6855640..8379507811 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/147998.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/147998.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_147998() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_147998(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_147998(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_147998(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/16036c.wgsl b/test/tint/builtins/gen/literal/textureDimensions/16036c.wgsl index 84ce99813b..2107c74afd 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/16036c.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/16036c.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_16036c() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_16036c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_16036c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_16036c(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/16036c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/16036c.wgsl.expected.wgsl index 072b71e684..5a9c5f30b6 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/16036c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/16036c.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_16036c() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_16036c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_16036c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_16036c(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/1b71f0.wgsl b/test/tint/builtins/gen/literal/textureDimensions/1b71f0.wgsl index 77f345dd70..4435f685b1 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/1b71f0.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/1b71f0.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_1b71f0() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_1b71f0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_1b71f0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_1b71f0(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/1b71f0.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/1b71f0.wgsl.expected.wgsl index 8fedb781ff..ee928e222f 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/1b71f0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/1b71f0.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_1b71f0() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_1b71f0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_1b71f0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_1b71f0(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/1d6c26.wgsl b/test/tint/builtins/gen/literal/textureDimensions/1d6c26.wgsl index 0b5857db45..6b576ba999 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/1d6c26.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/1d6c26.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_1d6c26() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_1d6c26(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_1d6c26(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_1d6c26(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/1d6c26.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/1d6c26.wgsl.expected.wgsl index 1ca754c28d..8bb5c22cd9 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/1d6c26.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/1d6c26.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_1d6c26() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_1d6c26(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_1d6c26(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_1d6c26(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/1e9e39.wgsl b/test/tint/builtins/gen/literal/textureDimensions/1e9e39.wgsl index c40f9c0e1c..afd80e382f 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/1e9e39.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/1e9e39.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_1e9e39() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_1e9e39(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_1e9e39(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_1e9e39(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/1e9e39.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/1e9e39.wgsl.expected.wgsl index 938b1048a4..efd42acd26 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/1e9e39.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/1e9e39.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_1e9e39() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_1e9e39(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_1e9e39(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_1e9e39(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/1f20c5.wgsl b/test/tint/builtins/gen/literal/textureDimensions/1f20c5.wgsl index 8301b57d00..e509ecbac6 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/1f20c5.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/1f20c5.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_1f20c5() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_1f20c5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_1f20c5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_1f20c5(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/1f20c5.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/1f20c5.wgsl.expected.wgsl index 2cbde3e854..4800bad9b3 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/1f20c5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/1f20c5.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_1f20c5() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_1f20c5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_1f20c5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_1f20c5(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/214dd4.wgsl b/test/tint/builtins/gen/literal/textureDimensions/214dd4.wgsl index e3ac96cdb7..edb3961f93 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/214dd4.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/214dd4.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_214dd4() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_214dd4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_214dd4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_214dd4(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/214dd4.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/214dd4.wgsl.expected.wgsl index a6e1919e1b..8fdb8a387e 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/214dd4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/214dd4.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_214dd4() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_214dd4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_214dd4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_214dd4(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/221f22.wgsl b/test/tint/builtins/gen/literal/textureDimensions/221f22.wgsl index b2c83dcb89..b4be0740d2 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/221f22.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/221f22.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_221f22() { var res: vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_221f22(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_221f22(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_221f22(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/221f22.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/221f22.wgsl.expected.wgsl index e05c6f5a2e..6956187ea6 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/221f22.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/221f22.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_221f22() { var res : vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_221f22(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_221f22(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_221f22(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/267788.wgsl b/test/tint/builtins/gen/literal/textureDimensions/267788.wgsl index 47d79853f4..7fa7a50837 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/267788.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/267788.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_267788() { var res: vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_267788(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_267788(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_267788(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/267788.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/267788.wgsl.expected.wgsl index 99d3c54fe9..c52fe144ab 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/267788.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/267788.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_267788() { var res : vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_267788(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_267788(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_267788(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/26bdfa.wgsl b/test/tint/builtins/gen/literal/textureDimensions/26bdfa.wgsl index fa5800947a..3f04cd8049 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/26bdfa.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/26bdfa.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_26bdfa() { var res: vec3 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_26bdfa(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_26bdfa(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_26bdfa(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/26bdfa.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/26bdfa.wgsl.expected.wgsl index 5f9267e000..29982f72ba 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/26bdfa.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/26bdfa.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_26bdfa() { var res : vec3 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_26bdfa(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_26bdfa(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_26bdfa(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/26ef6c.wgsl b/test/tint/builtins/gen/literal/textureDimensions/26ef6c.wgsl index ccf3250e86..cc993960d8 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/26ef6c.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/26ef6c.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_26ef6c() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_26ef6c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_26ef6c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_26ef6c(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/26ef6c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/26ef6c.wgsl.expected.wgsl index 960c66d5b8..c0b495c846 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/26ef6c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/26ef6c.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_26ef6c() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_26ef6c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_26ef6c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_26ef6c(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/2ad087.wgsl b/test/tint/builtins/gen/literal/textureDimensions/2ad087.wgsl index 25a8b28efd..62d94f536c 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/2ad087.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/2ad087.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_2ad087() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_2ad087(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_2ad087(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_2ad087(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/2ad087.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/2ad087.wgsl.expected.wgsl index c2b8327fa5..e965a18e09 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/2ad087.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/2ad087.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_2ad087() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_2ad087(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_2ad087(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_2ad087(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/2efa05.wgsl b/test/tint/builtins/gen/literal/textureDimensions/2efa05.wgsl index 313b799fe1..fdc02c4534 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/2efa05.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/2efa05.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_2efa05() { var res: vec3 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_2efa05(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_2efa05(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_2efa05(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/2efa05.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/2efa05.wgsl.expected.wgsl index 0b9afd8376..f68fe06566 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/2efa05.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/2efa05.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_2efa05() { var res : vec3 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_2efa05(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_2efa05(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_2efa05(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/2f289f.wgsl b/test/tint/builtins/gen/literal/textureDimensions/2f289f.wgsl index 63835a1d8c..5fdde6f668 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/2f289f.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/2f289f.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_2f289f() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_2f289f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_2f289f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_2f289f(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/2f289f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/2f289f.wgsl.expected.wgsl index 7ffc030342..6895807816 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/2f289f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/2f289f.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_2f289f() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_2f289f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_2f289f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_2f289f(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/2fe1cc.wgsl b/test/tint/builtins/gen/literal/textureDimensions/2fe1cc.wgsl index 3ac48327ef..ab17f7f083 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/2fe1cc.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/2fe1cc.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_2fe1cc() { var res: vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_2fe1cc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_2fe1cc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_2fe1cc(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/2fe1cc.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/2fe1cc.wgsl.expected.wgsl index 4b03276e15..acc6e45796 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/2fe1cc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/2fe1cc.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_2fe1cc() { var res : vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_2fe1cc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_2fe1cc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_2fe1cc(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/318ecc.wgsl b/test/tint/builtins/gen/literal/textureDimensions/318ecc.wgsl index 4563fc8955..52ead3c447 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/318ecc.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/318ecc.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_318ecc() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_318ecc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_318ecc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_318ecc(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/318ecc.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/318ecc.wgsl.expected.wgsl index d1c53d49be..9a7028c4a8 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/318ecc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/318ecc.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_318ecc() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_318ecc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_318ecc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_318ecc(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/340d06.wgsl b/test/tint/builtins/gen/literal/textureDimensions/340d06.wgsl index 801a81e511..afb2e3d961 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/340d06.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/340d06.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_340d06() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_340d06(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_340d06(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_340d06(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/340d06.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/340d06.wgsl.expected.wgsl index 7ae21b4ce9..99bca2d762 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/340d06.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/340d06.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_340d06() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_340d06(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_340d06(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_340d06(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/398e30.wgsl b/test/tint/builtins/gen/literal/textureDimensions/398e30.wgsl index d8a22e3716..d5f67d6a81 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/398e30.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/398e30.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_398e30() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_398e30(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_398e30(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_398e30(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/398e30.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/398e30.wgsl.expected.wgsl index 457ff70cff..5deab7d0d3 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/398e30.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/398e30.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_398e30() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_398e30(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_398e30(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_398e30(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/3a94ea.wgsl b/test/tint/builtins/gen/literal/textureDimensions/3a94ea.wgsl index d00adb2a00..9573c5c8a4 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/3a94ea.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/3a94ea.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_3a94ea() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_3a94ea(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_3a94ea(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_3a94ea(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/3a94ea.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/3a94ea.wgsl.expected.wgsl index 29d95790f2..c1cebafe60 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/3a94ea.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/3a94ea.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_3a94ea() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_3a94ea(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_3a94ea(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_3a94ea(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/3aca08.wgsl b/test/tint/builtins/gen/literal/textureDimensions/3aca08.wgsl index 01a56a9e53..cca374af54 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/3aca08.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/3aca08.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_3aca08() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_3aca08(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_3aca08(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_3aca08(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/3aca08.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/3aca08.wgsl.expected.wgsl index ba8e34f7ca..1a72665839 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/3aca08.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/3aca08.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_3aca08() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_3aca08(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_3aca08(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_3aca08(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/3c5ad8.wgsl b/test/tint/builtins/gen/literal/textureDimensions/3c5ad8.wgsl index 9d72673e4d..a135b33d02 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/3c5ad8.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/3c5ad8.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_3c5ad8() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_3c5ad8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_3c5ad8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_3c5ad8(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/3c5ad8.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/3c5ad8.wgsl.expected.wgsl index dc42b19d97..a73139d844 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/3c5ad8.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/3c5ad8.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_3c5ad8() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_3c5ad8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_3c5ad8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_3c5ad8(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/4152a6.wgsl b/test/tint/builtins/gen/literal/textureDimensions/4152a6.wgsl index 52a3a0760a..19e2dee05e 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/4152a6.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/4152a6.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_4152a6() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_4152a6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_4152a6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_4152a6(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/4152a6.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/4152a6.wgsl.expected.wgsl index f9ec8d52a2..67521abbcd 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/4152a6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/4152a6.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_4152a6() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_4152a6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_4152a6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_4152a6(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/423f99.wgsl b/test/tint/builtins/gen/literal/textureDimensions/423f99.wgsl index 3fd9d7b0a8..8183ccf212 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/423f99.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/423f99.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_423f99() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_423f99(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_423f99(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_423f99(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/423f99.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/423f99.wgsl.expected.wgsl index b84b03300c..0ef4f77e1a 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/423f99.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/423f99.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_423f99() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_423f99(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_423f99(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_423f99(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/4267ee.wgsl b/test/tint/builtins/gen/literal/textureDimensions/4267ee.wgsl index 1c849b8130..1e230b6b86 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/4267ee.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/4267ee.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_4267ee() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_4267ee(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_4267ee(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_4267ee(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/4267ee.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/4267ee.wgsl.expected.wgsl index 909269f2bc..a63426875e 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/4267ee.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/4267ee.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_4267ee() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_4267ee(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_4267ee(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_4267ee(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/42d4e6.wgsl b/test/tint/builtins/gen/literal/textureDimensions/42d4e6.wgsl index ac087c5e62..7c00b9e1f6 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/42d4e6.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/42d4e6.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_42d4e6() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_42d4e6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_42d4e6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_42d4e6(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/42d4e6.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/42d4e6.wgsl.expected.wgsl index bc98490a9e..ab0376bd4b 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/42d4e6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/42d4e6.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_42d4e6() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_42d4e6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_42d4e6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_42d4e6(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/48cb89.wgsl b/test/tint/builtins/gen/literal/textureDimensions/48cb89.wgsl index c278ed8e5b..5ec1e8c0ee 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/48cb89.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/48cb89.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_48cb89() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_48cb89(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_48cb89(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_48cb89(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/48cb89.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/48cb89.wgsl.expected.wgsl index cdc0578bd2..2e4ee35c96 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/48cb89.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/48cb89.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_48cb89() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_48cb89(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_48cb89(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_48cb89(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/49d274.wgsl b/test/tint/builtins/gen/literal/textureDimensions/49d274.wgsl index dd8592605d..e93d693944 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/49d274.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/49d274.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_49d274() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_49d274(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_49d274(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_49d274(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/49d274.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/49d274.wgsl.expected.wgsl index 00ebf3628e..060af23164 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/49d274.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/49d274.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_49d274() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_49d274(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_49d274(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_49d274(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/4df9a8.wgsl b/test/tint/builtins/gen/literal/textureDimensions/4df9a8.wgsl index c95dd96fa5..59e46379fc 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/4df9a8.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/4df9a8.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_4df9a8() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_4df9a8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_4df9a8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_4df9a8(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/4df9a8.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/4df9a8.wgsl.expected.wgsl index 4078aa2b55..b771310fa5 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/4df9a8.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/4df9a8.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_4df9a8() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_4df9a8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_4df9a8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_4df9a8(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/50a9ee.wgsl b/test/tint/builtins/gen/literal/textureDimensions/50a9ee.wgsl index 92c35abd6b..339a943eca 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/50a9ee.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/50a9ee.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_50a9ee() { var res: vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_50a9ee(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_50a9ee(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_50a9ee(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/50a9ee.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/50a9ee.wgsl.expected.wgsl index f6e1440830..271c37829e 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/50a9ee.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/50a9ee.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_50a9ee() { var res : vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_50a9ee(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_50a9ee(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_50a9ee(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/52045c.wgsl b/test/tint/builtins/gen/literal/textureDimensions/52045c.wgsl index 5a7c5ff21d..7d087c412f 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/52045c.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/52045c.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_52045c() { var res: i32 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_52045c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_52045c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_52045c(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/52045c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/52045c.wgsl.expected.wgsl index 9df7fc20d2..9966536310 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/52045c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/52045c.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_52045c() { var res : i32 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_52045c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_52045c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_52045c(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/55b23e.wgsl b/test/tint/builtins/gen/literal/textureDimensions/55b23e.wgsl index 06255e84f4..886c1e9cd6 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/55b23e.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/55b23e.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_55b23e() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_55b23e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_55b23e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_55b23e(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/55b23e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/55b23e.wgsl.expected.wgsl index 32b929ccf5..430da3cdaf 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/55b23e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/55b23e.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_55b23e() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_55b23e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_55b23e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_55b23e(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/579629.wgsl b/test/tint/builtins/gen/literal/textureDimensions/579629.wgsl index 963d480a3d..af4fd858d9 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/579629.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/579629.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_579629() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_579629(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_579629(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_579629(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/579629.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/579629.wgsl.expected.wgsl index e157439e3d..1e1d6d7a44 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/579629.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/579629.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_579629() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_579629(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_579629(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_579629(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/57da0b.wgsl b/test/tint/builtins/gen/literal/textureDimensions/57da0b.wgsl index 5b7a1689fb..fe79b2a916 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/57da0b.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/57da0b.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_57da0b() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_57da0b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_57da0b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_57da0b(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/57da0b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/57da0b.wgsl.expected.wgsl index f05ee1cf65..b599184810 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/57da0b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/57da0b.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_57da0b() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_57da0b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_57da0b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_57da0b(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/57e28f.wgsl b/test/tint/builtins/gen/literal/textureDimensions/57e28f.wgsl index 0b9d680776..fc88a27e2a 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/57e28f.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/57e28f.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_57e28f() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_57e28f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_57e28f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_57e28f(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/57e28f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/57e28f.wgsl.expected.wgsl index 3d257471e3..e0b854e393 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/57e28f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/57e28f.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_57e28f() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_57e28f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_57e28f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_57e28f(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/58a515.wgsl b/test/tint/builtins/gen/literal/textureDimensions/58a515.wgsl index df0e9cd509..979cefbe81 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/58a515.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/58a515.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_58a515() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_58a515(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_58a515(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_58a515(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/58a515.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/58a515.wgsl.expected.wgsl index c395b923f7..21bad72927 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/58a515.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/58a515.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_58a515() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_58a515(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_58a515(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_58a515(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/5985f3.wgsl b/test/tint/builtins/gen/literal/textureDimensions/5985f3.wgsl index dffa849250..77a07071a1 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/5985f3.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/5985f3.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_5985f3() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_5985f3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_5985f3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_5985f3(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/5985f3.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/5985f3.wgsl.expected.wgsl index cc73d08dc7..84495171ac 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/5985f3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/5985f3.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_5985f3() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_5985f3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_5985f3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_5985f3(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/5caa5e.wgsl b/test/tint/builtins/gen/literal/textureDimensions/5caa5e.wgsl index 5582c6e7ab..abe7868ce0 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/5caa5e.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/5caa5e.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_5caa5e() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_5caa5e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_5caa5e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_5caa5e(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/5caa5e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/5caa5e.wgsl.expected.wgsl index 3f834431a1..ac87720adb 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/5caa5e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/5caa5e.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_5caa5e() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_5caa5e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_5caa5e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_5caa5e(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/5e295d.wgsl b/test/tint/builtins/gen/literal/textureDimensions/5e295d.wgsl index b855d3c2d2..83970062eb 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/5e295d.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/5e295d.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_5e295d() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_5e295d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_5e295d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_5e295d(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/5e295d.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/5e295d.wgsl.expected.wgsl index d8bceb6fec..ae8f76333d 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/5e295d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/5e295d.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_5e295d() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_5e295d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_5e295d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_5e295d(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/60bf54.wgsl b/test/tint/builtins/gen/literal/textureDimensions/60bf54.wgsl index df274c5399..9c5ff1641b 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/60bf54.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/60bf54.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_60bf54() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_60bf54(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_60bf54(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_60bf54(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/60bf54.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/60bf54.wgsl.expected.wgsl index f9347deb41..fbc7cd74a7 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/60bf54.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/60bf54.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_60bf54() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_60bf54(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_60bf54(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_60bf54(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/63f3cf.wgsl b/test/tint/builtins/gen/literal/textureDimensions/63f3cf.wgsl index ae013ed060..77eff3f39a 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/63f3cf.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/63f3cf.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_63f3cf() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_63f3cf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_63f3cf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_63f3cf(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/63f3cf.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/63f3cf.wgsl.expected.wgsl index 43e5f1573d..3e0ebfd2bf 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/63f3cf.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/63f3cf.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_63f3cf() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_63f3cf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_63f3cf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_63f3cf(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/68105c.wgsl b/test/tint/builtins/gen/literal/textureDimensions/68105c.wgsl index ddac6b66ab..2c5f5dcd05 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/68105c.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/68105c.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_68105c() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_68105c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_68105c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_68105c(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/68105c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/68105c.wgsl.expected.wgsl index 853c631dc4..19c49290b7 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/68105c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/68105c.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_68105c() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_68105c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_68105c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_68105c(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/686ef2.wgsl b/test/tint/builtins/gen/literal/textureDimensions/686ef2.wgsl index c85334c907..29e8d5822e 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/686ef2.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/686ef2.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_686ef2() { var res: vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_686ef2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_686ef2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_686ef2(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/686ef2.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/686ef2.wgsl.expected.wgsl index ba69786d40..0ae50651fb 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/686ef2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/686ef2.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_686ef2() { var res : vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_686ef2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_686ef2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_686ef2(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/6adac6.wgsl b/test/tint/builtins/gen/literal/textureDimensions/6adac6.wgsl index d079cf96b7..c63ff5fdb1 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/6adac6.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/6adac6.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_6adac6() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_6adac6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_6adac6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_6adac6(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/6adac6.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/6adac6.wgsl.expected.wgsl index c48c479c52..8ab67f07a3 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/6adac6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/6adac6.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_6adac6() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_6adac6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_6adac6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_6adac6(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/6ec1b4.wgsl b/test/tint/builtins/gen/literal/textureDimensions/6ec1b4.wgsl index eaab1916bb..5038764430 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/6ec1b4.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/6ec1b4.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_6ec1b4() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_6ec1b4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_6ec1b4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_6ec1b4(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/6ec1b4.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/6ec1b4.wgsl.expected.wgsl index 6cc7cc1946..7573c55260 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/6ec1b4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/6ec1b4.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_6ec1b4() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_6ec1b4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_6ec1b4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_6ec1b4(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/6f0d79.wgsl b/test/tint/builtins/gen/literal/textureDimensions/6f0d79.wgsl index 05ff7506bd..4b03051226 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/6f0d79.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/6f0d79.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_6f0d79() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_6f0d79(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_6f0d79(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_6f0d79(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/6f0d79.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/6f0d79.wgsl.expected.wgsl index 7b1f32c816..b055eea1db 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/6f0d79.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/6f0d79.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_6f0d79() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_6f0d79(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_6f0d79(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_6f0d79(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/702c53.wgsl b/test/tint/builtins/gen/literal/textureDimensions/702c53.wgsl index 0673cb460d..b4459502b5 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/702c53.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/702c53.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_702c53() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_702c53(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_702c53(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_702c53(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/702c53.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/702c53.wgsl.expected.wgsl index 27d3074777..093625d570 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/702c53.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/702c53.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_702c53() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_702c53(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_702c53(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_702c53(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/72e5d6.wgsl b/test/tint/builtins/gen/literal/textureDimensions/72e5d6.wgsl index 997406c8cc..e5e7bf4579 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/72e5d6.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/72e5d6.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_72e5d6() { var res: vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_72e5d6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_72e5d6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_72e5d6(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/72e5d6.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/72e5d6.wgsl.expected.wgsl index b00bd04ce6..fd4b217221 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/72e5d6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/72e5d6.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_72e5d6() { var res : vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_72e5d6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_72e5d6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_72e5d6(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/79df87.wgsl b/test/tint/builtins/gen/literal/textureDimensions/79df87.wgsl index 1b70f6aa6a..8da7f10b4d 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/79df87.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/79df87.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_79df87() { var res: i32 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_79df87(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_79df87(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_79df87(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/79df87.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/79df87.wgsl.expected.wgsl index 63b16bfca0..e45225d7ba 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/79df87.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/79df87.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_79df87() { var res : i32 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_79df87(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_79df87(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_79df87(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/7bf826.wgsl b/test/tint/builtins/gen/literal/textureDimensions/7bf826.wgsl index 6297e5a335..172a553bd4 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/7bf826.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/7bf826.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_7bf826() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_7bf826(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_7bf826(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_7bf826(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/7bf826.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/7bf826.wgsl.expected.wgsl index 50ddae7146..4953ba3b69 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/7bf826.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/7bf826.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_7bf826() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_7bf826(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_7bf826(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_7bf826(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/7f5c2e.wgsl b/test/tint/builtins/gen/literal/textureDimensions/7f5c2e.wgsl index 97ce4ddafd..d754ab79b8 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/7f5c2e.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/7f5c2e.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_7f5c2e() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_7f5c2e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_7f5c2e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_7f5c2e(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/7f5c2e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/7f5c2e.wgsl.expected.wgsl index 0eecf68fd2..85bbc4b745 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/7f5c2e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/7f5c2e.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_7f5c2e() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_7f5c2e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_7f5c2e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_7f5c2e(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/8028f3.wgsl b/test/tint/builtins/gen/literal/textureDimensions/8028f3.wgsl index b478fa2d96..1e26bccfe4 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/8028f3.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/8028f3.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_8028f3() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_8028f3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_8028f3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_8028f3(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/8028f3.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/8028f3.wgsl.expected.wgsl index 7ad57279ae..fbc19794de 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/8028f3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/8028f3.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_8028f3() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_8028f3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_8028f3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_8028f3(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/811679.wgsl b/test/tint/builtins/gen/literal/textureDimensions/811679.wgsl index 7d7722d4f0..da8d8cb27d 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/811679.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/811679.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_811679() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_811679(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_811679(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_811679(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/811679.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/811679.wgsl.expected.wgsl index 154cddebb4..494c1da936 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/811679.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/811679.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_811679() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_811679(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_811679(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_811679(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/820596.wgsl b/test/tint/builtins/gen/literal/textureDimensions/820596.wgsl index 8ec3269dce..c4803cf0b2 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/820596.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/820596.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_820596() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_820596(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_820596(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_820596(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/820596.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/820596.wgsl.expected.wgsl index 93106d5a90..dc1379f8f4 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/820596.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/820596.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_820596() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_820596(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_820596(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_820596(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/83ee5a.wgsl b/test/tint/builtins/gen/literal/textureDimensions/83ee5a.wgsl index bdd0b53c32..162289b0db 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/83ee5a.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/83ee5a.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_83ee5a() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_83ee5a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_83ee5a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_83ee5a(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/83ee5a.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/83ee5a.wgsl.expected.wgsl index 3481e3c102..0d0d5ea87c 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/83ee5a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/83ee5a.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_83ee5a() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_83ee5a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_83ee5a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_83ee5a(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/85d556.wgsl b/test/tint/builtins/gen/literal/textureDimensions/85d556.wgsl index 18cf513ca1..0266b915c8 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/85d556.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/85d556.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_85d556() { var res: vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_85d556(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_85d556(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_85d556(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/85d556.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/85d556.wgsl.expected.wgsl index 504544199b..63647723db 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/85d556.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/85d556.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_85d556() { var res : vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_85d556(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_85d556(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_85d556(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/88ad17.wgsl b/test/tint/builtins/gen/literal/textureDimensions/88ad17.wgsl index 88f43f8945..d359da5dc3 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/88ad17.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/88ad17.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_88ad17() { var res: vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_88ad17(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_88ad17(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_88ad17(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/88ad17.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/88ad17.wgsl.expected.wgsl index 85f6381583..d2873d730c 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/88ad17.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/88ad17.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_88ad17() { var res : vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_88ad17(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_88ad17(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_88ad17(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/8aa4c4.wgsl b/test/tint/builtins/gen/literal/textureDimensions/8aa4c4.wgsl index 4468f2676d..fde91a0a8c 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/8aa4c4.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/8aa4c4.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_8aa4c4() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_8aa4c4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_8aa4c4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_8aa4c4(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/8aa4c4.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/8aa4c4.wgsl.expected.wgsl index 3a59eb68df..840105bae9 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/8aa4c4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/8aa4c4.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_8aa4c4() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_8aa4c4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_8aa4c4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_8aa4c4(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/8deb5e.wgsl b/test/tint/builtins/gen/literal/textureDimensions/8deb5e.wgsl index de87126016..a31d313752 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/8deb5e.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/8deb5e.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_8deb5e() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_8deb5e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_8deb5e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_8deb5e(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/8deb5e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/8deb5e.wgsl.expected.wgsl index 1f088c3858..c3e10c786b 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/8deb5e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/8deb5e.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_8deb5e() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_8deb5e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_8deb5e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_8deb5e(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/8f20bf.wgsl b/test/tint/builtins/gen/literal/textureDimensions/8f20bf.wgsl index ba505967cf..d4b63472de 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/8f20bf.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/8f20bf.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_8f20bf() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_8f20bf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_8f20bf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_8f20bf(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/8f20bf.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/8f20bf.wgsl.expected.wgsl index e299daf159..2d3dcb0619 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/8f20bf.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/8f20bf.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_8f20bf() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_8f20bf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_8f20bf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_8f20bf(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/8fca0f.wgsl b/test/tint/builtins/gen/literal/textureDimensions/8fca0f.wgsl index ca949de724..feea2a471d 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/8fca0f.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/8fca0f.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_8fca0f() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_8fca0f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_8fca0f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_8fca0f(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/8fca0f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/8fca0f.wgsl.expected.wgsl index 4599b2e29a..6ef7d1ba5c 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/8fca0f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/8fca0f.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_8fca0f() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_8fca0f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_8fca0f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_8fca0f(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/90340b.wgsl b/test/tint/builtins/gen/literal/textureDimensions/90340b.wgsl index 4acb1f6412..d169f40c08 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/90340b.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/90340b.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_90340b() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_90340b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_90340b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_90340b(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/90340b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/90340b.wgsl.expected.wgsl index 2addbf1322..c70e0d392e 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/90340b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/90340b.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_90340b() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_90340b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_90340b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_90340b(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/9042ab.wgsl b/test/tint/builtins/gen/literal/textureDimensions/9042ab.wgsl index 6365cba61e..c148d8888d 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/9042ab.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/9042ab.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_9042ab() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9042ab(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9042ab(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9042ab(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/9042ab.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/9042ab.wgsl.expected.wgsl index a2d866661b..1602fd8232 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/9042ab.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/9042ab.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_9042ab() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9042ab(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9042ab(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9042ab(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/9393b0.wgsl b/test/tint/builtins/gen/literal/textureDimensions/9393b0.wgsl index 3247df59a4..0cb51cdd34 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/9393b0.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/9393b0.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_9393b0() { var res: vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9393b0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9393b0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9393b0(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/9393b0.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/9393b0.wgsl.expected.wgsl index caacfdc0e9..fd3f78e61a 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/9393b0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/9393b0.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_9393b0() { var res : vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9393b0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9393b0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9393b0(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/939fdb.wgsl b/test/tint/builtins/gen/literal/textureDimensions/939fdb.wgsl index 9852d37cf8..eb7dc6a049 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/939fdb.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/939fdb.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_939fdb() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_939fdb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_939fdb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_939fdb(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/939fdb.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/939fdb.wgsl.expected.wgsl index 12cc53592c..eda2bcb884 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/939fdb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/939fdb.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_939fdb() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_939fdb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_939fdb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_939fdb(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/962dcd.wgsl b/test/tint/builtins/gen/literal/textureDimensions/962dcd.wgsl index fddb8289a4..14738c7451 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/962dcd.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/962dcd.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_962dcd() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_962dcd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_962dcd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_962dcd(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/962dcd.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/962dcd.wgsl.expected.wgsl index 8c1d2563a5..bd3ca7aa54 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/962dcd.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/962dcd.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_962dcd() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_962dcd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_962dcd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_962dcd(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/9abfe5.wgsl b/test/tint/builtins/gen/literal/textureDimensions/9abfe5.wgsl index 4fea70cd28..20c87c3b16 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/9abfe5.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/9abfe5.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_9abfe5() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9abfe5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9abfe5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9abfe5(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/9abfe5.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/9abfe5.wgsl.expected.wgsl index fd979941fa..5845daaf79 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/9abfe5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/9abfe5.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_9abfe5() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9abfe5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9abfe5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9abfe5(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/9c9c57.wgsl b/test/tint/builtins/gen/literal/textureDimensions/9c9c57.wgsl index 93cee591bf..4e3f36c043 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/9c9c57.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/9c9c57.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_9c9c57() { var res: vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9c9c57(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9c9c57(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9c9c57(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/9c9c57.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/9c9c57.wgsl.expected.wgsl index ff8d3211e8..89d6463ea5 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/9c9c57.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/9c9c57.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_9c9c57() { var res : vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9c9c57(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9c9c57(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9c9c57(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/9da9e2.wgsl b/test/tint/builtins/gen/literal/textureDimensions/9da9e2.wgsl index 05e9f02a72..66a2234f60 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/9da9e2.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/9da9e2.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_9da9e2() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9da9e2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9da9e2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9da9e2(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/9da9e2.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/9da9e2.wgsl.expected.wgsl index 3e1f941fcb..73cfaf1b3d 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/9da9e2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/9da9e2.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_9da9e2() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9da9e2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9da9e2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9da9e2(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/9eb8d8.wgsl b/test/tint/builtins/gen/literal/textureDimensions/9eb8d8.wgsl index 8a3f461c91..8ab88402bb 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/9eb8d8.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/9eb8d8.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_9eb8d8() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9eb8d8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9eb8d8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9eb8d8(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/9eb8d8.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/9eb8d8.wgsl.expected.wgsl index 58bc54ffae..fc40eab388 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/9eb8d8.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/9eb8d8.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_9eb8d8() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9eb8d8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9eb8d8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9eb8d8(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/9f8e46.wgsl b/test/tint/builtins/gen/literal/textureDimensions/9f8e46.wgsl index c2caccf29d..4de2592f88 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/9f8e46.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/9f8e46.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_9f8e46() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9f8e46(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9f8e46(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9f8e46(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/9f8e46.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/9f8e46.wgsl.expected.wgsl index df7b1a7e59..3d3ef8378f 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/9f8e46.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/9f8e46.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_9f8e46() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9f8e46(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9f8e46(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9f8e46(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/a01845.wgsl b/test/tint/builtins/gen/literal/textureDimensions/a01845.wgsl index 96e2e3e082..c4f8bfe01e 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/a01845.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/a01845.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_a01845() { var res: vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_a01845(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_a01845(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_a01845(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/a01845.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/a01845.wgsl.expected.wgsl index 9f7a0da832..bf501d9257 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/a01845.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/a01845.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_a01845() { var res : vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_a01845(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_a01845(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_a01845(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/a7d565.wgsl b/test/tint/builtins/gen/literal/textureDimensions/a7d565.wgsl index 2559f773d8..4629e87244 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/a7d565.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/a7d565.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_a7d565() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_a7d565(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_a7d565(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_a7d565(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/a7d565.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/a7d565.wgsl.expected.wgsl index 4cd2c97081..76183ec117 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/a7d565.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/a7d565.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_a7d565() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_a7d565(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_a7d565(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_a7d565(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/a863f2.wgsl b/test/tint/builtins/gen/literal/textureDimensions/a863f2.wgsl index d88716e58e..7d1329fff8 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/a863f2.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/a863f2.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_a863f2() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_a863f2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_a863f2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_a863f2(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/a863f2.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/a863f2.wgsl.expected.wgsl index 257be4e0f7..d3e7e38700 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/a863f2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/a863f2.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_a863f2() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_a863f2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_a863f2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_a863f2(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/a9c9c1.wgsl b/test/tint/builtins/gen/literal/textureDimensions/a9c9c1.wgsl index dfc597876b..a709d07b52 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/a9c9c1.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/a9c9c1.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_a9c9c1() { var res: vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_a9c9c1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_a9c9c1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_a9c9c1(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/a9c9c1.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/a9c9c1.wgsl.expected.wgsl index e4125c9e17..376cdbd51d 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/a9c9c1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/a9c9c1.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_a9c9c1() { var res : vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_a9c9c1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_a9c9c1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_a9c9c1(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/b0e16d.wgsl b/test/tint/builtins/gen/literal/textureDimensions/b0e16d.wgsl index 98b443a887..e8fd837545 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/b0e16d.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/b0e16d.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_b0e16d() { var res: vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_b0e16d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_b0e16d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_b0e16d(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/b0e16d.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/b0e16d.wgsl.expected.wgsl index 1bd9327c65..5808c31942 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/b0e16d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/b0e16d.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_b0e16d() { var res : vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_b0e16d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_b0e16d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_b0e16d(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/b3c954.wgsl b/test/tint/builtins/gen/literal/textureDimensions/b3c954.wgsl index 2fb0e3d12c..5486e5a799 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/b3c954.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/b3c954.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_b3c954() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_b3c954(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_b3c954(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_b3c954(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/b3c954.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/b3c954.wgsl.expected.wgsl index de3b872866..8c364077df 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/b3c954.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/b3c954.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_b3c954() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_b3c954(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_b3c954(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_b3c954(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/b3e407.wgsl b/test/tint/builtins/gen/literal/textureDimensions/b3e407.wgsl index 47ae776c13..c74572b032 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/b3e407.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/b3e407.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_b3e407() { var res: i32 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_b3e407(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_b3e407(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_b3e407(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/b3e407.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/b3e407.wgsl.expected.wgsl index 8ebb58e84a..19da4477f0 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/b3e407.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/b3e407.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_b3e407() { var res : i32 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_b3e407(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_b3e407(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_b3e407(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/b91240.wgsl b/test/tint/builtins/gen/literal/textureDimensions/b91240.wgsl index df6cccbef5..984437e508 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/b91240.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/b91240.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_b91240() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_b91240(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_b91240(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_b91240(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/b91240.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/b91240.wgsl.expected.wgsl index 105338f1c8..7c88173764 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/b91240.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/b91240.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_b91240() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_b91240(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_b91240(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_b91240(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/ba1481.wgsl b/test/tint/builtins/gen/literal/textureDimensions/ba1481.wgsl index 1cb0abe122..0469176b59 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/ba1481.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/ba1481.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_ba1481() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_ba1481(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_ba1481(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_ba1481(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/ba1481.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/ba1481.wgsl.expected.wgsl index 0bcf4af3de..cbc883776d 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/ba1481.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/ba1481.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_ba1481() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_ba1481(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_ba1481(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_ba1481(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/bb3dde.wgsl b/test/tint/builtins/gen/literal/textureDimensions/bb3dde.wgsl index fec2488e79..0e971f89c3 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/bb3dde.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/bb3dde.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_bb3dde() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_bb3dde(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_bb3dde(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_bb3dde(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/bb3dde.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/bb3dde.wgsl.expected.wgsl index 005cae6f32..bd224fb852 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/bb3dde.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/bb3dde.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_bb3dde() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_bb3dde(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_bb3dde(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_bb3dde(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/c30e75.wgsl b/test/tint/builtins/gen/literal/textureDimensions/c30e75.wgsl index c5afaf371b..582a4053b6 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/c30e75.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/c30e75.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_c30e75() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_c30e75(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_c30e75(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_c30e75(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/c30e75.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/c30e75.wgsl.expected.wgsl index ecf60b5c6b..121b2c32dd 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/c30e75.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/c30e75.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_c30e75() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_c30e75(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_c30e75(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_c30e75(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/c7943d.wgsl b/test/tint/builtins/gen/literal/textureDimensions/c7943d.wgsl index 892ea87552..240e244904 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/c7943d.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/c7943d.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_c7943d() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_c7943d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_c7943d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_c7943d(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/c7943d.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/c7943d.wgsl.expected.wgsl index d664f33756..0d589b588d 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/c7943d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/c7943d.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_c7943d() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_c7943d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_c7943d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_c7943d(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/cc968c.wgsl b/test/tint/builtins/gen/literal/textureDimensions/cc968c.wgsl index 42f777f254..7745787d78 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/cc968c.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/cc968c.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_cc968c() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_cc968c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_cc968c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_cc968c(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/cc968c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/cc968c.wgsl.expected.wgsl index 8198585683..8caceedc84 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/cc968c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/cc968c.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_cc968c() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_cc968c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_cc968c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_cc968c(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/cccc8f.wgsl b/test/tint/builtins/gen/literal/textureDimensions/cccc8f.wgsl index b320e91e14..5b21d75e39 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/cccc8f.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/cccc8f.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_cccc8f() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_cccc8f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_cccc8f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_cccc8f(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/cccc8f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/cccc8f.wgsl.expected.wgsl index a4d44f0df9..19570add23 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/cccc8f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/cccc8f.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_cccc8f() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_cccc8f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_cccc8f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_cccc8f(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/cd76a7.wgsl b/test/tint/builtins/gen/literal/textureDimensions/cd76a7.wgsl index 8959a179d7..3044d70792 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/cd76a7.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/cd76a7.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_cd76a7() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_cd76a7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_cd76a7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_cd76a7(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/cd76a7.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/cd76a7.wgsl.expected.wgsl index 139070fb82..fa3b1a9c68 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/cd76a7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/cd76a7.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_cd76a7() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_cd76a7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_cd76a7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_cd76a7(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/cdf473.wgsl b/test/tint/builtins/gen/literal/textureDimensions/cdf473.wgsl index 3eb0f09d1d..f7f54855dd 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/cdf473.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/cdf473.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_cdf473() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_cdf473(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_cdf473(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_cdf473(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/cdf473.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/cdf473.wgsl.expected.wgsl index 31373c0050..a675dad97e 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/cdf473.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/cdf473.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_cdf473() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_cdf473(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_cdf473(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_cdf473(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/cec841.wgsl b/test/tint/builtins/gen/literal/textureDimensions/cec841.wgsl index abd76b16c5..471ec9ca20 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/cec841.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/cec841.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_cec841() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_cec841(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_cec841(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_cec841(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/cec841.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/cec841.wgsl.expected.wgsl index d1667a0f6d..7a92b371d0 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/cec841.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/cec841.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_cec841() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_cec841(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_cec841(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_cec841(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/cf7e43.wgsl b/test/tint/builtins/gen/literal/textureDimensions/cf7e43.wgsl index 8faa148e88..31ebad20b8 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/cf7e43.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/cf7e43.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_cf7e43() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_cf7e43(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_cf7e43(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_cf7e43(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/cf7e43.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/cf7e43.wgsl.expected.wgsl index fd5550b6bb..38c9845f8b 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/cf7e43.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/cf7e43.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_cf7e43() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_cf7e43(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_cf7e43(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_cf7e43(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/d125bc.wgsl b/test/tint/builtins/gen/literal/textureDimensions/d125bc.wgsl index 62a607fe01..38cc6f9795 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/d125bc.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/d125bc.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_d125bc() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_d125bc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_d125bc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_d125bc(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/d125bc.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/d125bc.wgsl.expected.wgsl index e8b2c56e33..21f8b055f3 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/d125bc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/d125bc.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_d125bc() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_d125bc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_d125bc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_d125bc(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/d83c45.wgsl b/test/tint/builtins/gen/literal/textureDimensions/d83c45.wgsl index e9bf089141..10aa43df61 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/d83c45.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/d83c45.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_d83c45() { var res: vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_d83c45(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_d83c45(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_d83c45(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/d83c45.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/d83c45.wgsl.expected.wgsl index 4134f65c33..2de7e46247 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/d83c45.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/d83c45.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_d83c45() { var res : vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_d83c45(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_d83c45(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_d83c45(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/daf7c0.wgsl b/test/tint/builtins/gen/literal/textureDimensions/daf7c0.wgsl index 9d66ada51a..c1f3feb9ea 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/daf7c0.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/daf7c0.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_daf7c0() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_daf7c0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_daf7c0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_daf7c0(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/daf7c0.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/daf7c0.wgsl.expected.wgsl index 6d2fbebf54..cf8158373d 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/daf7c0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/daf7c0.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_daf7c0() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_daf7c0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_daf7c0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_daf7c0(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/dc2dd0.wgsl b/test/tint/builtins/gen/literal/textureDimensions/dc2dd0.wgsl index dd28eb479d..f560a93161 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/dc2dd0.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/dc2dd0.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_dc2dd0() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_dc2dd0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_dc2dd0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_dc2dd0(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/dc2dd0.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/dc2dd0.wgsl.expected.wgsl index 5151ae90a7..53eaf8fad7 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/dc2dd0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/dc2dd0.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_dc2dd0() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_dc2dd0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_dc2dd0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_dc2dd0(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/e927be.wgsl b/test/tint/builtins/gen/literal/textureDimensions/e927be.wgsl index e711cdd7da..532ab9bb2d 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/e927be.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/e927be.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_e927be() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_e927be(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_e927be(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_e927be(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/e927be.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/e927be.wgsl.expected.wgsl index 637bad6a3b..1c420a19d6 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/e927be.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/e927be.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_e927be() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_e927be(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_e927be(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_e927be(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/e9e96c.wgsl b/test/tint/builtins/gen/literal/textureDimensions/e9e96c.wgsl index 41b9f1e4ac..27ba50a5b2 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/e9e96c.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/e9e96c.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_e9e96c() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_e9e96c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_e9e96c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_e9e96c(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/e9e96c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/e9e96c.wgsl.expected.wgsl index 0f84facc76..4c37479f96 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/e9e96c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/e9e96c.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_e9e96c() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_e9e96c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_e9e96c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_e9e96c(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/ef5b89.wgsl b/test/tint/builtins/gen/literal/textureDimensions/ef5b89.wgsl index b533d388c6..f7625ec6f9 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/ef5b89.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/ef5b89.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_ef5b89() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_ef5b89(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_ef5b89(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_ef5b89(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/ef5b89.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/ef5b89.wgsl.expected.wgsl index f7589624bb..32a0325cfd 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/ef5b89.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/ef5b89.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_ef5b89() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_ef5b89(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_ef5b89(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_ef5b89(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/efc8a4.wgsl b/test/tint/builtins/gen/literal/textureDimensions/efc8a4.wgsl index f93caa2277..9590107039 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/efc8a4.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/efc8a4.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_efc8a4() { var res: vec3 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_efc8a4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_efc8a4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_efc8a4(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/efc8a4.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/efc8a4.wgsl.expected.wgsl index ba6f1dbf9d..c19268b49b 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/efc8a4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/efc8a4.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_efc8a4() { var res : vec3 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_efc8a4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_efc8a4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_efc8a4(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/f60bdb.wgsl b/test/tint/builtins/gen/literal/textureDimensions/f60bdb.wgsl index 167f39a254..21d5f904fa 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/f60bdb.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/f60bdb.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_f60bdb() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_f60bdb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_f60bdb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_f60bdb(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/f60bdb.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/f60bdb.wgsl.expected.wgsl index 04d24555c7..f22008da03 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/f60bdb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/f60bdb.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_f60bdb() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_f60bdb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_f60bdb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_f60bdb(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/f7145b.wgsl b/test/tint/builtins/gen/literal/textureDimensions/f7145b.wgsl index 55ed1c7f2f..5c06059d16 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/f7145b.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/f7145b.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_f7145b() { var res: vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_f7145b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_f7145b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_f7145b(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/f7145b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/f7145b.wgsl.expected.wgsl index dd3335d8b2..8066448c30 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/f7145b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/f7145b.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_f7145b() { var res : vec2 = textureDimensions(arg_0, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_f7145b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_f7145b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_f7145b(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/f931c7.wgsl b/test/tint/builtins/gen/literal/textureDimensions/f931c7.wgsl index 85c0fab066..a10010eeed 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/f931c7.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/f931c7.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_f931c7() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_f931c7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_f931c7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_f931c7(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/f931c7.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/f931c7.wgsl.expected.wgsl index 14de15ab0c..041ed4c1b9 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/f931c7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/f931c7.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_f931c7() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_f931c7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_f931c7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_f931c7(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/fa9859.wgsl b/test/tint/builtins/gen/literal/textureDimensions/fa9859.wgsl index 206c54ecf8..2992b658a5 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/fa9859.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/fa9859.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_fa9859() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_fa9859(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_fa9859(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_fa9859(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/fa9859.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/fa9859.wgsl.expected.wgsl index 58b2bd0e55..3acbf7dd2f 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/fa9859.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/fa9859.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_fa9859() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_fa9859(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_fa9859(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_fa9859(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/fb5670.wgsl b/test/tint/builtins/gen/literal/textureDimensions/fb5670.wgsl index fcfb9cf8c8..fd06d1efe5 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/fb5670.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/fb5670.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_fb5670() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_fb5670(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_fb5670(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_fb5670(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/fb5670.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/fb5670.wgsl.expected.wgsl index 79fcdb8375..199f3559ca 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/fb5670.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/fb5670.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_fb5670() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_fb5670(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_fb5670(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_fb5670(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/fcac78.wgsl b/test/tint/builtins/gen/literal/textureDimensions/fcac78.wgsl index 7e7c4d874f..e7b1dbbbcb 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/fcac78.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/fcac78.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_fcac78() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_fcac78(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_fcac78(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_fcac78(); } diff --git a/test/tint/builtins/gen/literal/textureDimensions/fcac78.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureDimensions/fcac78.wgsl.expected.wgsl index bd243ab9de..3e13671d20 100644 --- a/test/tint/builtins/gen/literal/textureDimensions/fcac78.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureDimensions/fcac78.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_fcac78() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_fcac78(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_fcac78(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_fcac78(); } diff --git a/test/tint/builtins/gen/literal/textureGather/10c554.wgsl b/test/tint/builtins/gen/literal/textureGather/10c554.wgsl index 4f5250997f..44209ec0f1 100644 --- a/test/tint/builtins/gen/literal/textureGather/10c554.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/10c554.wgsl @@ -30,18 +30,18 @@ fn textureGather_10c554() { var res: vec4 = textureGather(arg_0, arg_1, vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_10c554(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_10c554(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_10c554(); } diff --git a/test/tint/builtins/gen/literal/textureGather/10c554.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGather/10c554.wgsl.expected.wgsl index 71d449e971..a4a17cb0fd 100644 --- a/test/tint/builtins/gen/literal/textureGather/10c554.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/10c554.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGather_10c554() { var res : vec4 = textureGather(arg_0, arg_1, vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_10c554(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_10c554(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_10c554(); } diff --git a/test/tint/builtins/gen/literal/textureGather/1f7f6b.wgsl b/test/tint/builtins/gen/literal/textureGather/1f7f6b.wgsl index fe626347de..d8f9429464 100644 --- a/test/tint/builtins/gen/literal/textureGather/1f7f6b.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/1f7f6b.wgsl @@ -30,18 +30,18 @@ fn textureGather_1f7f6b() { var res: vec4 = textureGather(arg_0, arg_1, vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_1f7f6b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_1f7f6b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_1f7f6b(); } diff --git a/test/tint/builtins/gen/literal/textureGather/1f7f6b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGather/1f7f6b.wgsl.expected.wgsl index 23089f4094..0c466e9c20 100644 --- a/test/tint/builtins/gen/literal/textureGather/1f7f6b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/1f7f6b.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGather_1f7f6b() { var res : vec4 = textureGather(arg_0, arg_1, vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_1f7f6b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_1f7f6b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_1f7f6b(); } diff --git a/test/tint/builtins/gen/literal/textureGather/22e930.wgsl b/test/tint/builtins/gen/literal/textureGather/22e930.wgsl index 55b623fb0e..f6f0e5ca71 100644 --- a/test/tint/builtins/gen/literal/textureGather/22e930.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/22e930.wgsl @@ -30,18 +30,18 @@ fn textureGather_22e930() { var res: vec4 = textureGather(1, arg_1, arg_2, vec2(), 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_22e930(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_22e930(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_22e930(); } diff --git a/test/tint/builtins/gen/literal/textureGather/22e930.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGather/22e930.wgsl.expected.wgsl index 59aa3dd96e..c06ac6121e 100644 --- a/test/tint/builtins/gen/literal/textureGather/22e930.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/22e930.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGather_22e930() { var res : vec4 = textureGather(1, arg_1, arg_2, vec2(), 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_22e930(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_22e930(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_22e930(); } diff --git a/test/tint/builtins/gen/literal/textureGather/2cc066.wgsl b/test/tint/builtins/gen/literal/textureGather/2cc066.wgsl index 0e87293bc4..2d30eb0ec8 100644 --- a/test/tint/builtins/gen/literal/textureGather/2cc066.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/2cc066.wgsl @@ -30,18 +30,18 @@ fn textureGather_2cc066() { var res: vec4 = textureGather(1, arg_1, arg_2, vec2(), 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_2cc066(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_2cc066(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_2cc066(); } diff --git a/test/tint/builtins/gen/literal/textureGather/2cc066.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGather/2cc066.wgsl.expected.wgsl index 777505a610..277e487e2e 100644 --- a/test/tint/builtins/gen/literal/textureGather/2cc066.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/2cc066.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGather_2cc066() { var res : vec4 = textureGather(1, arg_1, arg_2, vec2(), 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_2cc066(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_2cc066(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_2cc066(); } diff --git a/test/tint/builtins/gen/literal/textureGather/2e0ed5.wgsl b/test/tint/builtins/gen/literal/textureGather/2e0ed5.wgsl index 93786c439e..42c28f2275 100644 --- a/test/tint/builtins/gen/literal/textureGather/2e0ed5.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/2e0ed5.wgsl @@ -30,18 +30,18 @@ fn textureGather_2e0ed5() { var res: vec4 = textureGather(arg_0, arg_1, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_2e0ed5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_2e0ed5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_2e0ed5(); } diff --git a/test/tint/builtins/gen/literal/textureGather/2e0ed5.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGather/2e0ed5.wgsl.expected.wgsl index f3b60b86e5..4b2a82c681 100644 --- a/test/tint/builtins/gen/literal/textureGather/2e0ed5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/2e0ed5.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGather_2e0ed5() { var res : vec4 = textureGather(arg_0, arg_1, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_2e0ed5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_2e0ed5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_2e0ed5(); } diff --git a/test/tint/builtins/gen/literal/textureGather/32c4e8.wgsl b/test/tint/builtins/gen/literal/textureGather/32c4e8.wgsl index 8abb587c47..e3117ee951 100644 --- a/test/tint/builtins/gen/literal/textureGather/32c4e8.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/32c4e8.wgsl @@ -30,18 +30,18 @@ fn textureGather_32c4e8() { var res: vec4 = textureGather(1, arg_1, arg_2, vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_32c4e8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_32c4e8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_32c4e8(); } diff --git a/test/tint/builtins/gen/literal/textureGather/32c4e8.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGather/32c4e8.wgsl.expected.wgsl index 8c6ed677c5..5ad9ed8398 100644 --- a/test/tint/builtins/gen/literal/textureGather/32c4e8.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/32c4e8.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGather_32c4e8() { var res : vec4 = textureGather(1, arg_1, arg_2, vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_32c4e8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_32c4e8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_32c4e8(); } diff --git a/test/tint/builtins/gen/literal/textureGather/3b32cc.wgsl b/test/tint/builtins/gen/literal/textureGather/3b32cc.wgsl index 34d7c302f3..d840ac0690 100644 --- a/test/tint/builtins/gen/literal/textureGather/3b32cc.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/3b32cc.wgsl @@ -30,18 +30,18 @@ fn textureGather_3b32cc() { var res: vec4 = textureGather(1, arg_1, arg_2, vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_3b32cc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_3b32cc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_3b32cc(); } diff --git a/test/tint/builtins/gen/literal/textureGather/3b32cc.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGather/3b32cc.wgsl.expected.wgsl index f10092ee02..fd49b2b9bd 100644 --- a/test/tint/builtins/gen/literal/textureGather/3b32cc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/3b32cc.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGather_3b32cc() { var res : vec4 = textureGather(1, arg_1, arg_2, vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_3b32cc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_3b32cc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_3b32cc(); } diff --git a/test/tint/builtins/gen/literal/textureGather/43025d.wgsl b/test/tint/builtins/gen/literal/textureGather/43025d.wgsl index ec5a0b0725..dbf29c0b17 100644 --- a/test/tint/builtins/gen/literal/textureGather/43025d.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/43025d.wgsl @@ -30,18 +30,18 @@ fn textureGather_43025d() { var res: vec4 = textureGather(arg_0, arg_1, vec3(), 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_43025d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_43025d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_43025d(); } diff --git a/test/tint/builtins/gen/literal/textureGather/43025d.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGather/43025d.wgsl.expected.wgsl index f94fa457a6..d5ef2d4118 100644 --- a/test/tint/builtins/gen/literal/textureGather/43025d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/43025d.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGather_43025d() { var res : vec4 = textureGather(arg_0, arg_1, vec3(), 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_43025d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_43025d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_43025d(); } diff --git a/test/tint/builtins/gen/literal/textureGather/49b07f.wgsl b/test/tint/builtins/gen/literal/textureGather/49b07f.wgsl index c2232949eb..53b2c9edb7 100644 --- a/test/tint/builtins/gen/literal/textureGather/49b07f.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/49b07f.wgsl @@ -30,18 +30,18 @@ fn textureGather_49b07f() { var res: vec4 = textureGather(1, arg_1, arg_2, vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_49b07f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_49b07f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_49b07f(); } diff --git a/test/tint/builtins/gen/literal/textureGather/49b07f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGather/49b07f.wgsl.expected.wgsl index c6cb144fea..5d5523fc07 100644 --- a/test/tint/builtins/gen/literal/textureGather/49b07f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/49b07f.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGather_49b07f() { var res : vec4 = textureGather(1, arg_1, arg_2, vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_49b07f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_49b07f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_49b07f(); } diff --git a/test/tint/builtins/gen/literal/textureGather/4b8103.wgsl b/test/tint/builtins/gen/literal/textureGather/4b8103.wgsl index 055e1967dd..2586ffa1ba 100644 --- a/test/tint/builtins/gen/literal/textureGather/4b8103.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/4b8103.wgsl @@ -30,18 +30,18 @@ fn textureGather_4b8103() { var res: vec4 = textureGather(1, arg_1, arg_2, vec2(), 1, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_4b8103(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_4b8103(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_4b8103(); } diff --git a/test/tint/builtins/gen/literal/textureGather/4b8103.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGather/4b8103.wgsl.expected.wgsl index 94d2c7e4b7..40817019c4 100644 --- a/test/tint/builtins/gen/literal/textureGather/4b8103.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/4b8103.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGather_4b8103() { var res : vec4 = textureGather(1, arg_1, arg_2, vec2(), 1, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_4b8103(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_4b8103(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_4b8103(); } diff --git a/test/tint/builtins/gen/literal/textureGather/5266da.wgsl b/test/tint/builtins/gen/literal/textureGather/5266da.wgsl index e05113fd52..2b2f398805 100644 --- a/test/tint/builtins/gen/literal/textureGather/5266da.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/5266da.wgsl @@ -30,18 +30,18 @@ fn textureGather_5266da() { var res: vec4 = textureGather(1, arg_1, arg_2, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_5266da(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_5266da(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_5266da(); } diff --git a/test/tint/builtins/gen/literal/textureGather/5266da.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGather/5266da.wgsl.expected.wgsl index 246b0474e7..d0657360eb 100644 --- a/test/tint/builtins/gen/literal/textureGather/5266da.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/5266da.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGather_5266da() { var res : vec4 = textureGather(1, arg_1, arg_2, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_5266da(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_5266da(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_5266da(); } diff --git a/test/tint/builtins/gen/literal/textureGather/5ba85f.wgsl b/test/tint/builtins/gen/literal/textureGather/5ba85f.wgsl index 8ee08a1d22..7c78dab07d 100644 --- a/test/tint/builtins/gen/literal/textureGather/5ba85f.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/5ba85f.wgsl @@ -30,18 +30,18 @@ fn textureGather_5ba85f() { var res: vec4 = textureGather(1, arg_1, arg_2, vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_5ba85f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_5ba85f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_5ba85f(); } diff --git a/test/tint/builtins/gen/literal/textureGather/5ba85f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGather/5ba85f.wgsl.expected.wgsl index 02ad6aa667..97174e674a 100644 --- a/test/tint/builtins/gen/literal/textureGather/5ba85f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/5ba85f.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGather_5ba85f() { var res : vec4 = textureGather(1, arg_1, arg_2, vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_5ba85f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_5ba85f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_5ba85f(); } diff --git a/test/tint/builtins/gen/literal/textureGather/5bd491.wgsl b/test/tint/builtins/gen/literal/textureGather/5bd491.wgsl index 10038d6c4d..7ee9eaf787 100644 --- a/test/tint/builtins/gen/literal/textureGather/5bd491.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/5bd491.wgsl @@ -30,18 +30,18 @@ fn textureGather_5bd491() { var res: vec4 = textureGather(1, arg_1, arg_2, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_5bd491(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_5bd491(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_5bd491(); } diff --git a/test/tint/builtins/gen/literal/textureGather/5bd491.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGather/5bd491.wgsl.expected.wgsl index a9cc8846f1..b1c71cd8fe 100644 --- a/test/tint/builtins/gen/literal/textureGather/5bd491.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/5bd491.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGather_5bd491() { var res : vec4 = textureGather(1, arg_1, arg_2, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_5bd491(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_5bd491(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_5bd491(); } diff --git a/test/tint/builtins/gen/literal/textureGather/751f8a.wgsl b/test/tint/builtins/gen/literal/textureGather/751f8a.wgsl index 5ebea8869a..da37f5e243 100644 --- a/test/tint/builtins/gen/literal/textureGather/751f8a.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/751f8a.wgsl @@ -30,18 +30,18 @@ fn textureGather_751f8a() { var res: vec4 = textureGather(1, arg_1, arg_2, vec3(), 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_751f8a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_751f8a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_751f8a(); } diff --git a/test/tint/builtins/gen/literal/textureGather/751f8a.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGather/751f8a.wgsl.expected.wgsl index f59c76c6c6..cd5081f31d 100644 --- a/test/tint/builtins/gen/literal/textureGather/751f8a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/751f8a.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGather_751f8a() { var res : vec4 = textureGather(1, arg_1, arg_2, vec3(), 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_751f8a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_751f8a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_751f8a(); } diff --git a/test/tint/builtins/gen/literal/textureGather/7c3828.wgsl b/test/tint/builtins/gen/literal/textureGather/7c3828.wgsl index 0eb843a4ac..4793ded400 100644 --- a/test/tint/builtins/gen/literal/textureGather/7c3828.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/7c3828.wgsl @@ -30,18 +30,18 @@ fn textureGather_7c3828() { var res: vec4 = textureGather(1, arg_1, arg_2, vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_7c3828(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_7c3828(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_7c3828(); } diff --git a/test/tint/builtins/gen/literal/textureGather/7c3828.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGather/7c3828.wgsl.expected.wgsl index 14e3334ff8..2d624d2627 100644 --- a/test/tint/builtins/gen/literal/textureGather/7c3828.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/7c3828.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGather_7c3828() { var res : vec4 = textureGather(1, arg_1, arg_2, vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_7c3828(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_7c3828(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_7c3828(); } diff --git a/test/tint/builtins/gen/literal/textureGather/8b754c.wgsl b/test/tint/builtins/gen/literal/textureGather/8b754c.wgsl index 6a6f2d67a3..6351c95c1d 100644 --- a/test/tint/builtins/gen/literal/textureGather/8b754c.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/8b754c.wgsl @@ -30,18 +30,18 @@ fn textureGather_8b754c() { var res: vec4 = textureGather(1, arg_1, arg_2, vec2(), 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_8b754c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_8b754c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_8b754c(); } diff --git a/test/tint/builtins/gen/literal/textureGather/8b754c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGather/8b754c.wgsl.expected.wgsl index 4b10cfbb2e..a2e4ee383c 100644 --- a/test/tint/builtins/gen/literal/textureGather/8b754c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/8b754c.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGather_8b754c() { var res : vec4 = textureGather(1, arg_1, arg_2, vec2(), 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_8b754c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_8b754c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_8b754c(); } diff --git a/test/tint/builtins/gen/literal/textureGather/9a6358.wgsl b/test/tint/builtins/gen/literal/textureGather/9a6358.wgsl index d8d2bc5e6e..f3285cf09e 100644 --- a/test/tint/builtins/gen/literal/textureGather/9a6358.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/9a6358.wgsl @@ -30,18 +30,18 @@ fn textureGather_9a6358() { var res: vec4 = textureGather(arg_0, arg_1, vec2(), 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_9a6358(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_9a6358(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_9a6358(); } diff --git a/test/tint/builtins/gen/literal/textureGather/9a6358.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGather/9a6358.wgsl.expected.wgsl index 984ff98743..415aa2c524 100644 --- a/test/tint/builtins/gen/literal/textureGather/9a6358.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/9a6358.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGather_9a6358() { var res : vec4 = textureGather(arg_0, arg_1, vec2(), 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_9a6358(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_9a6358(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_9a6358(); } diff --git a/test/tint/builtins/gen/literal/textureGather/af55b3.wgsl b/test/tint/builtins/gen/literal/textureGather/af55b3.wgsl index 6d8f00725e..efd1e9dbe0 100644 --- a/test/tint/builtins/gen/literal/textureGather/af55b3.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/af55b3.wgsl @@ -30,18 +30,18 @@ fn textureGather_af55b3() { var res: vec4 = textureGather(1, arg_1, arg_2, vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_af55b3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_af55b3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_af55b3(); } diff --git a/test/tint/builtins/gen/literal/textureGather/af55b3.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGather/af55b3.wgsl.expected.wgsl index fb4d43f084..c45f294bc7 100644 --- a/test/tint/builtins/gen/literal/textureGather/af55b3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/af55b3.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGather_af55b3() { var res : vec4 = textureGather(1, arg_1, arg_2, vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_af55b3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_af55b3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_af55b3(); } diff --git a/test/tint/builtins/gen/literal/textureGather/bb3ac5.wgsl b/test/tint/builtins/gen/literal/textureGather/bb3ac5.wgsl index 0217549cb8..22e61f4555 100644 --- a/test/tint/builtins/gen/literal/textureGather/bb3ac5.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/bb3ac5.wgsl @@ -30,18 +30,18 @@ fn textureGather_bb3ac5() { var res: vec4 = textureGather(1, arg_1, arg_2, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_bb3ac5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_bb3ac5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_bb3ac5(); } diff --git a/test/tint/builtins/gen/literal/textureGather/bb3ac5.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGather/bb3ac5.wgsl.expected.wgsl index b7b8732809..d0ad8437dc 100644 --- a/test/tint/builtins/gen/literal/textureGather/bb3ac5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/bb3ac5.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGather_bb3ac5() { var res : vec4 = textureGather(1, arg_1, arg_2, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_bb3ac5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_bb3ac5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_bb3ac5(); } diff --git a/test/tint/builtins/gen/literal/textureGather/c0640c.wgsl b/test/tint/builtins/gen/literal/textureGather/c0640c.wgsl index 6908c00836..d8124ace1c 100644 --- a/test/tint/builtins/gen/literal/textureGather/c0640c.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/c0640c.wgsl @@ -30,18 +30,18 @@ fn textureGather_c0640c() { var res: vec4 = textureGather(1, arg_1, arg_2, vec3(), 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_c0640c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_c0640c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_c0640c(); } diff --git a/test/tint/builtins/gen/literal/textureGather/c0640c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGather/c0640c.wgsl.expected.wgsl index 7ec8f4ec14..df93f13f61 100644 --- a/test/tint/builtins/gen/literal/textureGather/c0640c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/c0640c.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGather_c0640c() { var res : vec4 = textureGather(1, arg_1, arg_2, vec3(), 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_c0640c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_c0640c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_c0640c(); } diff --git a/test/tint/builtins/gen/literal/textureGather/d1f187.wgsl b/test/tint/builtins/gen/literal/textureGather/d1f187.wgsl index eb50d20952..f3de993617 100644 --- a/test/tint/builtins/gen/literal/textureGather/d1f187.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/d1f187.wgsl @@ -30,18 +30,18 @@ fn textureGather_d1f187() { var res: vec4 = textureGather(1, arg_1, arg_2, vec2(), 1, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_d1f187(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_d1f187(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_d1f187(); } diff --git a/test/tint/builtins/gen/literal/textureGather/d1f187.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGather/d1f187.wgsl.expected.wgsl index e7dcb990dc..0c906a65f0 100644 --- a/test/tint/builtins/gen/literal/textureGather/d1f187.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/d1f187.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGather_d1f187() { var res : vec4 = textureGather(1, arg_1, arg_2, vec2(), 1, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_d1f187(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_d1f187(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_d1f187(); } diff --git a/test/tint/builtins/gen/literal/textureGather/d90605.wgsl b/test/tint/builtins/gen/literal/textureGather/d90605.wgsl index 337a626ff9..80c196ce0d 100644 --- a/test/tint/builtins/gen/literal/textureGather/d90605.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/d90605.wgsl @@ -30,18 +30,18 @@ fn textureGather_d90605() { var res: vec4 = textureGather(arg_0, arg_1, vec2(), 1, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_d90605(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_d90605(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_d90605(); } diff --git a/test/tint/builtins/gen/literal/textureGather/d90605.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGather/d90605.wgsl.expected.wgsl index c88f42caf1..f61c0dc0c5 100644 --- a/test/tint/builtins/gen/literal/textureGather/d90605.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/d90605.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGather_d90605() { var res : vec4 = textureGather(arg_0, arg_1, vec2(), 1, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_d90605(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_d90605(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_d90605(); } diff --git a/test/tint/builtins/gen/literal/textureGather/e9d390.wgsl b/test/tint/builtins/gen/literal/textureGather/e9d390.wgsl index d01ae42347..f7333ec8bf 100644 --- a/test/tint/builtins/gen/literal/textureGather/e9d390.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/e9d390.wgsl @@ -30,18 +30,18 @@ fn textureGather_e9d390() { var res: vec4 = textureGather(1, arg_1, arg_2, vec2(), 1, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_e9d390(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_e9d390(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_e9d390(); } diff --git a/test/tint/builtins/gen/literal/textureGather/e9d390.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGather/e9d390.wgsl.expected.wgsl index bbfe7c50a3..72ada2ebaa 100644 --- a/test/tint/builtins/gen/literal/textureGather/e9d390.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/e9d390.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGather_e9d390() { var res : vec4 = textureGather(1, arg_1, arg_2, vec2(), 1, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_e9d390(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_e9d390(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_e9d390(); } diff --git a/test/tint/builtins/gen/literal/textureGather/f2c6e3.wgsl b/test/tint/builtins/gen/literal/textureGather/f2c6e3.wgsl index 170ca5137f..0c60629e5d 100644 --- a/test/tint/builtins/gen/literal/textureGather/f2c6e3.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/f2c6e3.wgsl @@ -30,18 +30,18 @@ fn textureGather_f2c6e3() { var res: vec4 = textureGather(1, arg_1, arg_2, vec3(), 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_f2c6e3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_f2c6e3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_f2c6e3(); } diff --git a/test/tint/builtins/gen/literal/textureGather/f2c6e3.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGather/f2c6e3.wgsl.expected.wgsl index 2f4a223908..5b13511b10 100644 --- a/test/tint/builtins/gen/literal/textureGather/f2c6e3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGather/f2c6e3.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGather_f2c6e3() { var res : vec4 = textureGather(1, arg_1, arg_2, vec3(), 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_f2c6e3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_f2c6e3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_f2c6e3(); } diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/182fd4.wgsl b/test/tint/builtins/gen/literal/textureGatherCompare/182fd4.wgsl index 306361a700..412c0b22ac 100644 --- a/test/tint/builtins/gen/literal/textureGatherCompare/182fd4.wgsl +++ b/test/tint/builtins/gen/literal/textureGatherCompare/182fd4.wgsl @@ -30,18 +30,18 @@ fn textureGatherCompare_182fd4() { var res: vec4 = textureGatherCompare(arg_0, arg_1, vec3(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGatherCompare_182fd4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGatherCompare_182fd4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGatherCompare_182fd4(); } diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/182fd4.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGatherCompare/182fd4.wgsl.expected.wgsl index 3a4d029793..83881269c5 100644 --- a/test/tint/builtins/gen/literal/textureGatherCompare/182fd4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGatherCompare/182fd4.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGatherCompare_182fd4() { var res : vec4 = textureGatherCompare(arg_0, arg_1, vec3(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGatherCompare_182fd4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGatherCompare_182fd4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGatherCompare_182fd4(); } diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/313add.wgsl b/test/tint/builtins/gen/literal/textureGatherCompare/313add.wgsl index bbe27100e2..a322c95ec7 100644 --- a/test/tint/builtins/gen/literal/textureGatherCompare/313add.wgsl +++ b/test/tint/builtins/gen/literal/textureGatherCompare/313add.wgsl @@ -30,18 +30,18 @@ fn textureGatherCompare_313add() { var res: vec4 = textureGatherCompare(arg_0, arg_1, vec2(), 1.0, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGatherCompare_313add(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGatherCompare_313add(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGatherCompare_313add(); } diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/313add.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGatherCompare/313add.wgsl.expected.wgsl index 9260823ada..f3e2ed6d9d 100644 --- a/test/tint/builtins/gen/literal/textureGatherCompare/313add.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGatherCompare/313add.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGatherCompare_313add() { var res : vec4 = textureGatherCompare(arg_0, arg_1, vec2(), 1.0, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGatherCompare_313add(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGatherCompare_313add(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGatherCompare_313add(); } diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/60d2d1.wgsl b/test/tint/builtins/gen/literal/textureGatherCompare/60d2d1.wgsl index 55833fd824..610c16b8bb 100644 --- a/test/tint/builtins/gen/literal/textureGatherCompare/60d2d1.wgsl +++ b/test/tint/builtins/gen/literal/textureGatherCompare/60d2d1.wgsl @@ -30,18 +30,18 @@ fn textureGatherCompare_60d2d1() { var res: vec4 = textureGatherCompare(arg_0, arg_1, vec3(), 1, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGatherCompare_60d2d1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGatherCompare_60d2d1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGatherCompare_60d2d1(); } diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/60d2d1.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGatherCompare/60d2d1.wgsl.expected.wgsl index e22b1fc91a..820c6114b2 100644 --- a/test/tint/builtins/gen/literal/textureGatherCompare/60d2d1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGatherCompare/60d2d1.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGatherCompare_60d2d1() { var res : vec4 = textureGatherCompare(arg_0, arg_1, vec3(), 1, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGatherCompare_60d2d1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGatherCompare_60d2d1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGatherCompare_60d2d1(); } diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/6d9352.wgsl b/test/tint/builtins/gen/literal/textureGatherCompare/6d9352.wgsl index 56b963b878..328834c327 100644 --- a/test/tint/builtins/gen/literal/textureGatherCompare/6d9352.wgsl +++ b/test/tint/builtins/gen/literal/textureGatherCompare/6d9352.wgsl @@ -30,18 +30,18 @@ fn textureGatherCompare_6d9352() { var res: vec4 = textureGatherCompare(arg_0, arg_1, vec2(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGatherCompare_6d9352(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGatherCompare_6d9352(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGatherCompare_6d9352(); } diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/6d9352.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGatherCompare/6d9352.wgsl.expected.wgsl index 6fc40cef35..790e1a82dd 100644 --- a/test/tint/builtins/gen/literal/textureGatherCompare/6d9352.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGatherCompare/6d9352.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGatherCompare_6d9352() { var res : vec4 = textureGatherCompare(arg_0, arg_1, vec2(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGatherCompare_6d9352(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGatherCompare_6d9352(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGatherCompare_6d9352(); } diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/783e65.wgsl b/test/tint/builtins/gen/literal/textureGatherCompare/783e65.wgsl index c78b79486a..0e2dd62d99 100644 --- a/test/tint/builtins/gen/literal/textureGatherCompare/783e65.wgsl +++ b/test/tint/builtins/gen/literal/textureGatherCompare/783e65.wgsl @@ -30,18 +30,18 @@ fn textureGatherCompare_783e65() { var res: vec4 = textureGatherCompare(arg_0, arg_1, vec2(), 1, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGatherCompare_783e65(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGatherCompare_783e65(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGatherCompare_783e65(); } diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/783e65.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGatherCompare/783e65.wgsl.expected.wgsl index 9800261052..bcb1a7f324 100644 --- a/test/tint/builtins/gen/literal/textureGatherCompare/783e65.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGatherCompare/783e65.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGatherCompare_783e65() { var res : vec4 = textureGatherCompare(arg_0, arg_1, vec2(), 1, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGatherCompare_783e65(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGatherCompare_783e65(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGatherCompare_783e65(); } diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/f585cc.wgsl b/test/tint/builtins/gen/literal/textureGatherCompare/f585cc.wgsl index 65b554a92c..137d813624 100644 --- a/test/tint/builtins/gen/literal/textureGatherCompare/f585cc.wgsl +++ b/test/tint/builtins/gen/literal/textureGatherCompare/f585cc.wgsl @@ -30,18 +30,18 @@ fn textureGatherCompare_f585cc() { var res: vec4 = textureGatherCompare(arg_0, arg_1, vec2(), 1, 1.0, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGatherCompare_f585cc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGatherCompare_f585cc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGatherCompare_f585cc(); } diff --git a/test/tint/builtins/gen/literal/textureGatherCompare/f585cc.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureGatherCompare/f585cc.wgsl.expected.wgsl index 699022ac84..44ba827531 100644 --- a/test/tint/builtins/gen/literal/textureGatherCompare/f585cc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureGatherCompare/f585cc.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureGatherCompare_f585cc() { var res : vec4 = textureGatherCompare(arg_0, arg_1, vec2(), 1, 1.0, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGatherCompare_f585cc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGatherCompare_f585cc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGatherCompare_f585cc(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/19cf87.wgsl b/test/tint/builtins/gen/literal/textureLoad/19cf87.wgsl index ed06a2407b..64e0379424 100644 --- a/test/tint/builtins/gen/literal/textureLoad/19cf87.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/19cf87.wgsl @@ -29,18 +29,18 @@ fn textureLoad_19cf87() { var res: f32 = textureLoad(arg_0, vec2(), 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_19cf87(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_19cf87(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_19cf87(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/19cf87.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureLoad/19cf87.wgsl.expected.wgsl index 886136a295..06ee45ec18 100644 --- a/test/tint/builtins/gen/literal/textureLoad/19cf87.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/19cf87.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureLoad_19cf87() { var res : f32 = textureLoad(arg_0, vec2(), 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_19cf87(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_19cf87(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_19cf87(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/1b8588.wgsl b/test/tint/builtins/gen/literal/textureLoad/1b8588.wgsl index 011895991f..5968cab3d0 100644 --- a/test/tint/builtins/gen/literal/textureLoad/1b8588.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/1b8588.wgsl @@ -29,18 +29,18 @@ fn textureLoad_1b8588() { var res: vec4 = textureLoad(arg_0, 1, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_1b8588(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_1b8588(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_1b8588(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/1b8588.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureLoad/1b8588.wgsl.expected.wgsl index 07481f8864..3201267a38 100644 --- a/test/tint/builtins/gen/literal/textureLoad/1b8588.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/1b8588.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureLoad_1b8588() { var res : vec4 = textureLoad(arg_0, 1, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_1b8588(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_1b8588(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_1b8588(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/1f2016.wgsl b/test/tint/builtins/gen/literal/textureLoad/1f2016.wgsl index edf3989d6e..321e5c2953 100644 --- a/test/tint/builtins/gen/literal/textureLoad/1f2016.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/1f2016.wgsl @@ -29,18 +29,18 @@ fn textureLoad_1f2016() { var res: vec4 = textureLoad(arg_0, vec3(), 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_1f2016(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_1f2016(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_1f2016(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/1f2016.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureLoad/1f2016.wgsl.expected.wgsl index 910f641da9..f0f6e74835 100644 --- a/test/tint/builtins/gen/literal/textureLoad/1f2016.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/1f2016.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureLoad_1f2016() { var res : vec4 = textureLoad(arg_0, vec3(), 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_1f2016(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_1f2016(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_1f2016(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/484344.wgsl b/test/tint/builtins/gen/literal/textureLoad/484344.wgsl index 08234e12a9..7a8d3aa451 100644 --- a/test/tint/builtins/gen/literal/textureLoad/484344.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/484344.wgsl @@ -29,18 +29,18 @@ fn textureLoad_484344() { var res: vec4 = textureLoad(arg_0, vec2(), 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_484344(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_484344(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_484344(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/484344.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureLoad/484344.wgsl.expected.wgsl index e87d195f49..af4014192e 100644 --- a/test/tint/builtins/gen/literal/textureLoad/484344.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/484344.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureLoad_484344() { var res : vec4 = textureLoad(arg_0, vec2(), 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_484344(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_484344(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_484344(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/4fd803.wgsl b/test/tint/builtins/gen/literal/textureLoad/4fd803.wgsl index 3aebc0e72e..1b62df9a3d 100644 --- a/test/tint/builtins/gen/literal/textureLoad/4fd803.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/4fd803.wgsl @@ -29,18 +29,18 @@ fn textureLoad_4fd803() { var res: vec4 = textureLoad(arg_0, vec3(), 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_4fd803(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_4fd803(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_4fd803(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/4fd803.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureLoad/4fd803.wgsl.expected.wgsl index c4f10d680a..36d495ac92 100644 --- a/test/tint/builtins/gen/literal/textureLoad/4fd803.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/4fd803.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureLoad_4fd803() { var res : vec4 = textureLoad(arg_0, vec3(), 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_4fd803(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_4fd803(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_4fd803(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/5a2f9d.wgsl b/test/tint/builtins/gen/literal/textureLoad/5a2f9d.wgsl index c30b0673d1..50d0a617f6 100644 --- a/test/tint/builtins/gen/literal/textureLoad/5a2f9d.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/5a2f9d.wgsl @@ -29,18 +29,18 @@ fn textureLoad_5a2f9d() { var res: vec4 = textureLoad(arg_0, 1, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_5a2f9d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_5a2f9d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_5a2f9d(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/5a2f9d.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureLoad/5a2f9d.wgsl.expected.wgsl index 3e020592bf..13f88e8325 100644 --- a/test/tint/builtins/gen/literal/textureLoad/5a2f9d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/5a2f9d.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureLoad_5a2f9d() { var res : vec4 = textureLoad(arg_0, 1, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_5a2f9d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_5a2f9d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_5a2f9d(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/6154d4.wgsl b/test/tint/builtins/gen/literal/textureLoad/6154d4.wgsl index 7a5acec0df..446390c1cd 100644 --- a/test/tint/builtins/gen/literal/textureLoad/6154d4.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/6154d4.wgsl @@ -29,18 +29,18 @@ fn textureLoad_6154d4() { var res: vec4 = textureLoad(arg_0, vec2(), 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_6154d4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_6154d4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_6154d4(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/6154d4.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureLoad/6154d4.wgsl.expected.wgsl index 811bfc69ca..9119dcb4c5 100644 --- a/test/tint/builtins/gen/literal/textureLoad/6154d4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/6154d4.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureLoad_6154d4() { var res : vec4 = textureLoad(arg_0, vec2(), 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_6154d4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_6154d4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_6154d4(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/6273b1.wgsl b/test/tint/builtins/gen/literal/textureLoad/6273b1.wgsl index 28389f1861..6aa657afea 100644 --- a/test/tint/builtins/gen/literal/textureLoad/6273b1.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/6273b1.wgsl @@ -29,18 +29,18 @@ fn textureLoad_6273b1() { var res: f32 = textureLoad(arg_0, vec2(), 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_6273b1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_6273b1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_6273b1(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/6273b1.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureLoad/6273b1.wgsl.expected.wgsl index ec3f25bde9..349248bc9f 100644 --- a/test/tint/builtins/gen/literal/textureLoad/6273b1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/6273b1.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureLoad_6273b1() { var res : f32 = textureLoad(arg_0, vec2(), 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_6273b1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_6273b1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_6273b1(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/79e697.wgsl b/test/tint/builtins/gen/literal/textureLoad/79e697.wgsl index a6340f6d9f..59d7f37604 100644 --- a/test/tint/builtins/gen/literal/textureLoad/79e697.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/79e697.wgsl @@ -29,18 +29,18 @@ fn textureLoad_79e697() { var res: vec4 = textureLoad(arg_0, vec2(), 1, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_79e697(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_79e697(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_79e697(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/79e697.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureLoad/79e697.wgsl.expected.wgsl index 3e269171cd..6274eda85f 100644 --- a/test/tint/builtins/gen/literal/textureLoad/79e697.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/79e697.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureLoad_79e697() { var res : vec4 = textureLoad(arg_0, vec2(), 1, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_79e697(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_79e697(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_79e697(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/7c90e5.wgsl b/test/tint/builtins/gen/literal/textureLoad/7c90e5.wgsl index 5399bc0ee4..beff360144 100644 --- a/test/tint/builtins/gen/literal/textureLoad/7c90e5.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/7c90e5.wgsl @@ -29,18 +29,18 @@ fn textureLoad_7c90e5() { var res: vec4 = textureLoad(arg_0, vec2(), 1, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_7c90e5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_7c90e5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_7c90e5(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/7c90e5.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureLoad/7c90e5.wgsl.expected.wgsl index 3308f0f6c1..e400b6ff27 100644 --- a/test/tint/builtins/gen/literal/textureLoad/7c90e5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/7c90e5.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureLoad_7c90e5() { var res : vec4 = textureLoad(arg_0, vec2(), 1, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_7c90e5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_7c90e5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_7c90e5(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/81c381.wgsl b/test/tint/builtins/gen/literal/textureLoad/81c381.wgsl index 14e9fce449..63a2123ae3 100644 --- a/test/tint/builtins/gen/literal/textureLoad/81c381.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/81c381.wgsl @@ -29,18 +29,18 @@ fn textureLoad_81c381() { var res: vec4 = textureLoad(arg_0, 1, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_81c381(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_81c381(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_81c381(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/81c381.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureLoad/81c381.wgsl.expected.wgsl index 7671a385e0..34d306b88d 100644 --- a/test/tint/builtins/gen/literal/textureLoad/81c381.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/81c381.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureLoad_81c381() { var res : vec4 = textureLoad(arg_0, 1, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_81c381(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_81c381(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_81c381(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/87be85.wgsl b/test/tint/builtins/gen/literal/textureLoad/87be85.wgsl index 576da29120..00558cccee 100644 --- a/test/tint/builtins/gen/literal/textureLoad/87be85.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/87be85.wgsl @@ -29,18 +29,18 @@ fn textureLoad_87be85() { var res: vec4 = textureLoad(arg_0, vec2(), 1, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_87be85(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_87be85(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_87be85(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/87be85.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureLoad/87be85.wgsl.expected.wgsl index febe014343..a5a1096713 100644 --- a/test/tint/builtins/gen/literal/textureLoad/87be85.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/87be85.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureLoad_87be85() { var res : vec4 = textureLoad(arg_0, vec2(), 1, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_87be85(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_87be85(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_87be85(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/8acf41.wgsl b/test/tint/builtins/gen/literal/textureLoad/8acf41.wgsl index f1b9767566..fb29892de0 100644 --- a/test/tint/builtins/gen/literal/textureLoad/8acf41.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/8acf41.wgsl @@ -29,18 +29,18 @@ fn textureLoad_8acf41() { var res: vec4 = textureLoad(arg_0, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_8acf41(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_8acf41(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_8acf41(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/8acf41.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureLoad/8acf41.wgsl.expected.wgsl index a25ef5f1a1..9539b700e5 100644 --- a/test/tint/builtins/gen/literal/textureLoad/8acf41.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/8acf41.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureLoad_8acf41() { var res : vec4 = textureLoad(arg_0, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_8acf41(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_8acf41(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_8acf41(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/9b2667.wgsl b/test/tint/builtins/gen/literal/textureLoad/9b2667.wgsl index decb783776..7e002b8300 100644 --- a/test/tint/builtins/gen/literal/textureLoad/9b2667.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/9b2667.wgsl @@ -29,18 +29,18 @@ fn textureLoad_9b2667() { var res: f32 = textureLoad(arg_0, vec2(), 1, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_9b2667(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_9b2667(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_9b2667(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/9b2667.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureLoad/9b2667.wgsl.expected.wgsl index 5d857d05c0..3cf30ade8f 100644 --- a/test/tint/builtins/gen/literal/textureLoad/9b2667.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/9b2667.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureLoad_9b2667() { var res : f32 = textureLoad(arg_0, vec2(), 1, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_9b2667(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_9b2667(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_9b2667(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/a583c9.wgsl b/test/tint/builtins/gen/literal/textureLoad/a583c9.wgsl index 951d9f31b2..9d1c761ebf 100644 --- a/test/tint/builtins/gen/literal/textureLoad/a583c9.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/a583c9.wgsl @@ -29,18 +29,18 @@ fn textureLoad_a583c9() { var res: vec4 = textureLoad(arg_0, vec2(), 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_a583c9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_a583c9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_a583c9(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/a583c9.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureLoad/a583c9.wgsl.expected.wgsl index 1b4fb0f27b..d0a3f71fa7 100644 --- a/test/tint/builtins/gen/literal/textureLoad/a583c9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/a583c9.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureLoad_a583c9() { var res : vec4 = textureLoad(arg_0, vec2(), 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_a583c9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_a583c9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_a583c9(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/a9a9f5.wgsl b/test/tint/builtins/gen/literal/textureLoad/a9a9f5.wgsl index 5def05cbfc..e2410ea07d 100644 --- a/test/tint/builtins/gen/literal/textureLoad/a9a9f5.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/a9a9f5.wgsl @@ -29,18 +29,18 @@ fn textureLoad_a9a9f5() { var res: vec4 = textureLoad(arg_0, vec3(), 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_a9a9f5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_a9a9f5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_a9a9f5(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/a9a9f5.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureLoad/a9a9f5.wgsl.expected.wgsl index ac36fdc9d3..4fd66d1d1a 100644 --- a/test/tint/builtins/gen/literal/textureLoad/a9a9f5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/a9a9f5.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureLoad_a9a9f5() { var res : vec4 = textureLoad(arg_0, vec3(), 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_a9a9f5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_a9a9f5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_a9a9f5(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/c2a480.wgsl b/test/tint/builtins/gen/literal/textureLoad/c2a480.wgsl index 2155704041..b5ec652ef7 100644 --- a/test/tint/builtins/gen/literal/textureLoad/c2a480.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/c2a480.wgsl @@ -29,18 +29,18 @@ fn textureLoad_c2a480() { var res: vec4 = textureLoad(arg_0, vec2(), 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_c2a480(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_c2a480(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_c2a480(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/c2a480.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureLoad/c2a480.wgsl.expected.wgsl index ce9e2c7c7f..21cd36783a 100644 --- a/test/tint/builtins/gen/literal/textureLoad/c2a480.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/c2a480.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureLoad_c2a480() { var res : vec4 = textureLoad(arg_0, vec2(), 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_c2a480(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_c2a480(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_c2a480(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/c378ee.wgsl b/test/tint/builtins/gen/literal/textureLoad/c378ee.wgsl index 39b5713c2b..565b7cb146 100644 --- a/test/tint/builtins/gen/literal/textureLoad/c378ee.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/c378ee.wgsl @@ -29,18 +29,18 @@ fn textureLoad_c378ee() { var res: vec4 = textureLoad(arg_0, vec2(), 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_c378ee(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_c378ee(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_c378ee(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/c378ee.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureLoad/c378ee.wgsl.expected.wgsl index d47f7562f0..1620def4ae 100644 --- a/test/tint/builtins/gen/literal/textureLoad/c378ee.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/c378ee.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureLoad_c378ee() { var res : vec4 = textureLoad(arg_0, vec2(), 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_c378ee(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_c378ee(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_c378ee(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/e3d2cc.wgsl b/test/tint/builtins/gen/literal/textureLoad/e3d2cc.wgsl index 219a31a76c..4486cf88ba 100644 --- a/test/tint/builtins/gen/literal/textureLoad/e3d2cc.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/e3d2cc.wgsl @@ -29,18 +29,18 @@ fn textureLoad_e3d2cc() { var res: vec4 = textureLoad(arg_0, vec2(), 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_e3d2cc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_e3d2cc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_e3d2cc(); } diff --git a/test/tint/builtins/gen/literal/textureLoad/e3d2cc.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureLoad/e3d2cc.wgsl.expected.wgsl index f8a1af7a91..8355ef2dcb 100644 --- a/test/tint/builtins/gen/literal/textureLoad/e3d2cc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureLoad/e3d2cc.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureLoad_e3d2cc() { var res : vec4 = textureLoad(arg_0, vec2(), 1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_e3d2cc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_e3d2cc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_e3d2cc(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/024820.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/024820.wgsl index ee39dbbd35..e6ab7d4ee0 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/024820.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/024820.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_024820() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_024820(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_024820(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_024820(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/024820.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/024820.wgsl.expected.wgsl index f58c93cef4..eaa9cc7883 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/024820.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/024820.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_024820() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_024820(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_024820(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_024820(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/053df7.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/053df7.wgsl index f906fef223..77d7dbab65 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/053df7.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/053df7.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_053df7() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_053df7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_053df7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_053df7(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/053df7.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/053df7.wgsl.expected.wgsl index fae44b9a2b..06592acc08 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/053df7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/053df7.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_053df7() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_053df7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_053df7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_053df7(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/058cc3.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/058cc3.wgsl index 55e7ee0848..c030a71c69 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/058cc3.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/058cc3.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_058cc3() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_058cc3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_058cc3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_058cc3(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/058cc3.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/058cc3.wgsl.expected.wgsl index ee5d2e0686..a39583bf6a 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/058cc3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/058cc3.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_058cc3() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_058cc3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_058cc3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_058cc3(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/09d05d.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/09d05d.wgsl index baf9538784..ca4cb54961 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/09d05d.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/09d05d.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_09d05d() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_09d05d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_09d05d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_09d05d(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/09d05d.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/09d05d.wgsl.expected.wgsl index 2034fa4019..cede280a55 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/09d05d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/09d05d.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_09d05d() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_09d05d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_09d05d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_09d05d(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/13b4ce.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/13b4ce.wgsl index e21134db8b..c69857afcf 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/13b4ce.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/13b4ce.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_13b4ce() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_13b4ce(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_13b4ce(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_13b4ce(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/13b4ce.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/13b4ce.wgsl.expected.wgsl index 5061e7e950..15c0d550e5 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/13b4ce.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/13b4ce.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_13b4ce() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_13b4ce(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_13b4ce(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_13b4ce(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/22e53b.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/22e53b.wgsl index a74f529565..f67f703b3c 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/22e53b.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/22e53b.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_22e53b() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_22e53b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_22e53b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_22e53b(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/22e53b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/22e53b.wgsl.expected.wgsl index 6d9957b55d..2ac305721e 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/22e53b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/22e53b.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_22e53b() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_22e53b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_22e53b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_22e53b(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/562013.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/562013.wgsl index b6f1c4891b..e7d5963b84 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/562013.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/562013.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_562013() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_562013(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_562013(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_562013(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/562013.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/562013.wgsl.expected.wgsl index 72231707de..c82f593d00 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/562013.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/562013.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_562013() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_562013(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_562013(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_562013(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/5d59cd.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/5d59cd.wgsl index d808df9b03..ab5023721f 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/5d59cd.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/5d59cd.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_5d59cd() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_5d59cd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_5d59cd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_5d59cd(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/5d59cd.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/5d59cd.wgsl.expected.wgsl index 170c76310d..28bcd65030 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/5d59cd.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/5d59cd.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_5d59cd() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_5d59cd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_5d59cd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_5d59cd(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/68a65b.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/68a65b.wgsl index 680221f648..56b97ccda0 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/68a65b.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/68a65b.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_68a65b() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_68a65b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_68a65b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_68a65b(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/68a65b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/68a65b.wgsl.expected.wgsl index f358993084..f7cfa50e58 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/68a65b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/68a65b.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_68a65b() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_68a65b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_68a65b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_68a65b(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/778bd1.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/778bd1.wgsl index 814bad17d6..81ba1493ea 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/778bd1.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/778bd1.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_778bd1() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_778bd1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_778bd1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_778bd1(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/778bd1.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/778bd1.wgsl.expected.wgsl index c13e994169..8274e1e0dc 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/778bd1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/778bd1.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_778bd1() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_778bd1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_778bd1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_778bd1(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/7f1937.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/7f1937.wgsl index 7e843bd811..613436c7b0 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/7f1937.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/7f1937.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_7f1937() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_7f1937(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_7f1937(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_7f1937(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/7f1937.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/7f1937.wgsl.expected.wgsl index 4450cebde7..27ba4129d0 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/7f1937.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/7f1937.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_7f1937() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_7f1937(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_7f1937(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_7f1937(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/85f980.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/85f980.wgsl index dc95da7630..b5ccfa1d4b 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/85f980.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/85f980.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_85f980() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_85f980(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_85f980(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_85f980(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/85f980.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/85f980.wgsl.expected.wgsl index 4dc70c7371..5206f514f2 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/85f980.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/85f980.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_85f980() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_85f980(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_85f980(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_85f980(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/87953e.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/87953e.wgsl index 09bb3e89bd..47a80564f4 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/87953e.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/87953e.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_87953e() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_87953e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_87953e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_87953e(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/87953e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/87953e.wgsl.expected.wgsl index 26f73eaa53..55d0f9de7c 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/87953e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/87953e.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_87953e() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_87953e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_87953e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_87953e(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/893e7c.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/893e7c.wgsl index 343198531f..d0931f8cbe 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/893e7c.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/893e7c.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_893e7c() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_893e7c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_893e7c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_893e7c(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/893e7c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/893e7c.wgsl.expected.wgsl index 3cda54612f..1ef46100e7 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/893e7c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/893e7c.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_893e7c() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_893e7c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_893e7c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_893e7c(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/9700fb.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/9700fb.wgsl index 096b3e85ca..4966eb961b 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/9700fb.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/9700fb.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_9700fb() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_9700fb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_9700fb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_9700fb(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/9700fb.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/9700fb.wgsl.expected.wgsl index ce6acab433..d260e369f8 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/9700fb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/9700fb.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_9700fb() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_9700fb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_9700fb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_9700fb(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/a216d2.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/a216d2.wgsl index 176205aac9..ec1a5b4d7c 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/a216d2.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/a216d2.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_a216d2() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_a216d2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_a216d2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_a216d2(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/a216d2.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/a216d2.wgsl.expected.wgsl index 38fbc8960b..ef09e0ba34 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/a216d2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/a216d2.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_a216d2() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_a216d2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_a216d2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_a216d2(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/cd5dc8.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/cd5dc8.wgsl index f99e1181c3..3b24ead11d 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/cd5dc8.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/cd5dc8.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_cd5dc8() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_cd5dc8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_cd5dc8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_cd5dc8(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/cd5dc8.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/cd5dc8.wgsl.expected.wgsl index 870778b6dd..7fa1228ac1 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/cd5dc8.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/cd5dc8.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_cd5dc8() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_cd5dc8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_cd5dc8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_cd5dc8(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/d5b228.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/d5b228.wgsl index ba8d85eb53..f9b9e4107f 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/d5b228.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/d5b228.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_d5b228() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_d5b228(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_d5b228(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_d5b228(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/d5b228.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/d5b228.wgsl.expected.wgsl index 798b0a815f..9cf3683b7b 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/d5b228.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/d5b228.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_d5b228() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_d5b228(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_d5b228(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_d5b228(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/e31be1.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/e31be1.wgsl index fa0eed7b7f..dffc12ee83 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/e31be1.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/e31be1.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_e31be1() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_e31be1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_e31be1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_e31be1(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/e31be1.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/e31be1.wgsl.expected.wgsl index e47d202e0d..c93038431e 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/e31be1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/e31be1.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_e31be1() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_e31be1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_e31be1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_e31be1(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/e653c0.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/e653c0.wgsl index 4ee178ccf8..83f7e9d548 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/e653c0.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/e653c0.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_e653c0() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_e653c0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_e653c0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_e653c0(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/e653c0.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/e653c0.wgsl.expected.wgsl index 4adddfbea7..601ce1f3f0 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/e653c0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/e653c0.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_e653c0() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_e653c0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_e653c0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_e653c0(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/ee942f.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/ee942f.wgsl index ea1d4a8ac6..fbc2880569 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/ee942f.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/ee942f.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_ee942f() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_ee942f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_ee942f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_ee942f(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/ee942f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/ee942f.wgsl.expected.wgsl index 4d48facccd..c6d26dd47e 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/ee942f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/ee942f.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_ee942f() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_ee942f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_ee942f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_ee942f(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/f33005.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/f33005.wgsl index 6445227a30..7deef09d5d 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/f33005.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/f33005.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_f33005() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_f33005(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_f33005(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_f33005(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/f33005.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/f33005.wgsl.expected.wgsl index 35bd8cab44..8d7eee496d 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/f33005.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/f33005.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_f33005() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_f33005(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_f33005(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_f33005(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/fcec98.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/fcec98.wgsl index 0fef907a40..62b47453fe 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/fcec98.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/fcec98.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_fcec98() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_fcec98(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_fcec98(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_fcec98(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/fcec98.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/fcec98.wgsl.expected.wgsl index 6a1723e7cf..1c1e1794f0 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/fcec98.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/fcec98.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_fcec98() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_fcec98(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_fcec98(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_fcec98(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/ff5e89.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/ff5e89.wgsl index f12ea65d97..7b340b2dc3 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/ff5e89.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/ff5e89.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_ff5e89() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_ff5e89(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_ff5e89(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_ff5e89(); } diff --git a/test/tint/builtins/gen/literal/textureNumLayers/ff5e89.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLayers/ff5e89.wgsl.expected.wgsl index cd8cb2d9c7..e7b51b4b46 100644 --- a/test/tint/builtins/gen/literal/textureNumLayers/ff5e89.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLayers/ff5e89.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_ff5e89() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_ff5e89(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_ff5e89(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_ff5e89(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/076cb5.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/076cb5.wgsl index 96b8e96bc3..ba8ebfbe3d 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/076cb5.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/076cb5.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_076cb5() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_076cb5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_076cb5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_076cb5(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/076cb5.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/076cb5.wgsl.expected.wgsl index c04d6e6144..0470c75a13 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/076cb5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/076cb5.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_076cb5() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_076cb5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_076cb5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_076cb5(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/080d95.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/080d95.wgsl index 172e090d78..4d73c90e18 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/080d95.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/080d95.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_080d95() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_080d95(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_080d95(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_080d95(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/080d95.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/080d95.wgsl.expected.wgsl index 686c90849d..f6f058f938 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/080d95.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/080d95.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_080d95() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_080d95(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_080d95(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_080d95(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/09ddd0.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/09ddd0.wgsl index dea8f54612..c452b951dd 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/09ddd0.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/09ddd0.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_09ddd0() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_09ddd0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_09ddd0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_09ddd0(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/09ddd0.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/09ddd0.wgsl.expected.wgsl index 7a4d344a1a..4cebcabb0a 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/09ddd0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/09ddd0.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_09ddd0() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_09ddd0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_09ddd0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_09ddd0(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/105988.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/105988.wgsl index 67775fb0b3..16c41a5e08 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/105988.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/105988.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_105988() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_105988(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_105988(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_105988(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/105988.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/105988.wgsl.expected.wgsl index 1466976b06..8eb140d658 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/105988.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/105988.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_105988() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_105988(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_105988(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_105988(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/1e6f3b.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/1e6f3b.wgsl index a921b0cd80..59fc1e8d89 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/1e6f3b.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/1e6f3b.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_1e6f3b() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_1e6f3b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_1e6f3b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_1e6f3b(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/1e6f3b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/1e6f3b.wgsl.expected.wgsl index 3643d3efef..58a28d75d5 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/1e6f3b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/1e6f3b.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_1e6f3b() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_1e6f3b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_1e6f3b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_1e6f3b(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/23f750.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/23f750.wgsl index c44baad85a..d66e8ad739 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/23f750.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/23f750.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_23f750() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_23f750(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_23f750(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_23f750(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/23f750.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/23f750.wgsl.expected.wgsl index 86bf58889a..1ce13f7362 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/23f750.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/23f750.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_23f750() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_23f750(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_23f750(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_23f750(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/2c3575.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/2c3575.wgsl index e94cb62362..3a4bea5e20 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/2c3575.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/2c3575.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_2c3575() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_2c3575(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_2c3575(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_2c3575(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/2c3575.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/2c3575.wgsl.expected.wgsl index 6f2f54dcfc..8e019602ec 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/2c3575.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/2c3575.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_2c3575() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_2c3575(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_2c3575(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_2c3575(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/32a0ae.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/32a0ae.wgsl index d7c7297fed..afa2c8463d 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/32a0ae.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/32a0ae.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_32a0ae() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_32a0ae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_32a0ae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_32a0ae(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/32a0ae.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/32a0ae.wgsl.expected.wgsl index e5016ebb3f..13377ce7a3 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/32a0ae.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/32a0ae.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_32a0ae() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_32a0ae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_32a0ae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_32a0ae(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/5101cf.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/5101cf.wgsl index 371315a8e1..8264674c35 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/5101cf.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/5101cf.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_5101cf() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_5101cf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_5101cf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_5101cf(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/5101cf.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/5101cf.wgsl.expected.wgsl index 694397b7ed..3425bb26c2 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/5101cf.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/5101cf.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_5101cf() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_5101cf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_5101cf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_5101cf(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/51b5bb.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/51b5bb.wgsl index de1c30b3c8..2193999097 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/51b5bb.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/51b5bb.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_51b5bb() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_51b5bb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_51b5bb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_51b5bb(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/51b5bb.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/51b5bb.wgsl.expected.wgsl index 2ee7aa9d7d..71883b0571 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/51b5bb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/51b5bb.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_51b5bb() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_51b5bb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_51b5bb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_51b5bb(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/897aaf.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/897aaf.wgsl index b4559d89d2..e81c991f56 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/897aaf.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/897aaf.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_897aaf() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_897aaf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_897aaf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_897aaf(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/897aaf.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/897aaf.wgsl.expected.wgsl index 97e927523f..473da66aa6 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/897aaf.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/897aaf.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_897aaf() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_897aaf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_897aaf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_897aaf(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/9da7a5.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/9da7a5.wgsl index 75623c2e98..e8bad4357a 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/9da7a5.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/9da7a5.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_9da7a5() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_9da7a5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_9da7a5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_9da7a5(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/9da7a5.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/9da7a5.wgsl.expected.wgsl index 5980b48cae..13135d5d47 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/9da7a5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/9da7a5.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_9da7a5() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_9da7a5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_9da7a5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_9da7a5(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/a91c03.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/a91c03.wgsl index 1f9d9aeb88..fad908248c 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/a91c03.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/a91c03.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_a91c03() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_a91c03(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_a91c03(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_a91c03(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/a91c03.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/a91c03.wgsl.expected.wgsl index 72128538a7..69e569b387 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/a91c03.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/a91c03.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_a91c03() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_a91c03(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_a91c03(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_a91c03(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/aee7c8.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/aee7c8.wgsl index f28913a539..c156037bd2 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/aee7c8.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/aee7c8.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_aee7c8() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_aee7c8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_aee7c8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_aee7c8(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/aee7c8.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/aee7c8.wgsl.expected.wgsl index 32c8b5a215..a9336a0aa8 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/aee7c8.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/aee7c8.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_aee7c8() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_aee7c8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_aee7c8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_aee7c8(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/b1b12b.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/b1b12b.wgsl index a03922ce88..591d66b41f 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/b1b12b.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/b1b12b.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_b1b12b() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_b1b12b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_b1b12b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_b1b12b(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/b1b12b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/b1b12b.wgsl.expected.wgsl index 97fd9a280c..cfb7e4b78d 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/b1b12b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/b1b12b.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_b1b12b() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_b1b12b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_b1b12b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_b1b12b(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/b4f5ea.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/b4f5ea.wgsl index 4d81449ae1..fe9bf4ff92 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/b4f5ea.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/b4f5ea.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_b4f5ea() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_b4f5ea(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_b4f5ea(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_b4f5ea(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/b4f5ea.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/b4f5ea.wgsl.expected.wgsl index ff1823d064..d1f829abd8 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/b4f5ea.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/b4f5ea.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_b4f5ea() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_b4f5ea(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_b4f5ea(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_b4f5ea(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/d004a9.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/d004a9.wgsl index e191da8c9b..3a20c841cb 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/d004a9.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/d004a9.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_d004a9() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_d004a9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_d004a9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_d004a9(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/d004a9.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/d004a9.wgsl.expected.wgsl index e6efa4a6b1..ce8d24dc31 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/d004a9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/d004a9.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_d004a9() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_d004a9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_d004a9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_d004a9(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/dca09e.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/dca09e.wgsl index a058700e18..a4af4a8e0a 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/dca09e.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/dca09e.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_dca09e() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_dca09e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_dca09e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_dca09e(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/dca09e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/dca09e.wgsl.expected.wgsl index 81c2ed177f..d5e1e54ad9 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/dca09e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/dca09e.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_dca09e() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_dca09e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_dca09e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_dca09e(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/e67231.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/e67231.wgsl index 782d93a6e0..84299e987a 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/e67231.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/e67231.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_e67231() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_e67231(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_e67231(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_e67231(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/e67231.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/e67231.wgsl.expected.wgsl index b9b5a95d56..a42349da60 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/e67231.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/e67231.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_e67231() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_e67231(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_e67231(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_e67231(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/ed078b.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/ed078b.wgsl index d3620a2b10..de4a0b22af 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/ed078b.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/ed078b.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_ed078b() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_ed078b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_ed078b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_ed078b(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/ed078b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/ed078b.wgsl.expected.wgsl index 1eb3d87ad7..3a951308d5 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/ed078b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/ed078b.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_ed078b() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_ed078b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_ed078b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_ed078b(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/f46ec6.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/f46ec6.wgsl index 665436bef1..be5a946a0d 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/f46ec6.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/f46ec6.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_f46ec6() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_f46ec6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_f46ec6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_f46ec6(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/f46ec6.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/f46ec6.wgsl.expected.wgsl index d380d9b72a..b1621389be 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/f46ec6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/f46ec6.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_f46ec6() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_f46ec6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_f46ec6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_f46ec6(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/f5828d.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/f5828d.wgsl index 0c000af8e8..69e15edb62 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/f5828d.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/f5828d.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_f5828d() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_f5828d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_f5828d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_f5828d(); } diff --git a/test/tint/builtins/gen/literal/textureNumLevels/f5828d.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumLevels/f5828d.wgsl.expected.wgsl index 501fe61734..02fdd80212 100644 --- a/test/tint/builtins/gen/literal/textureNumLevels/f5828d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumLevels/f5828d.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_f5828d() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_f5828d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_f5828d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_f5828d(); } diff --git a/test/tint/builtins/gen/literal/textureNumSamples/2c6f14.wgsl b/test/tint/builtins/gen/literal/textureNumSamples/2c6f14.wgsl index 749d887c52..f99d30f182 100644 --- a/test/tint/builtins/gen/literal/textureNumSamples/2c6f14.wgsl +++ b/test/tint/builtins/gen/literal/textureNumSamples/2c6f14.wgsl @@ -29,18 +29,18 @@ fn textureNumSamples_2c6f14() { var res: i32 = textureNumSamples(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumSamples_2c6f14(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumSamples_2c6f14(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumSamples_2c6f14(); } diff --git a/test/tint/builtins/gen/literal/textureNumSamples/2c6f14.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumSamples/2c6f14.wgsl.expected.wgsl index be4993462f..460b4e22b3 100644 --- a/test/tint/builtins/gen/literal/textureNumSamples/2c6f14.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumSamples/2c6f14.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumSamples_2c6f14() { var res : i32 = textureNumSamples(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumSamples_2c6f14(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumSamples_2c6f14(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumSamples_2c6f14(); } diff --git a/test/tint/builtins/gen/literal/textureNumSamples/42f8bb.wgsl b/test/tint/builtins/gen/literal/textureNumSamples/42f8bb.wgsl index 429e2eb7c2..b78edc4961 100644 --- a/test/tint/builtins/gen/literal/textureNumSamples/42f8bb.wgsl +++ b/test/tint/builtins/gen/literal/textureNumSamples/42f8bb.wgsl @@ -29,18 +29,18 @@ fn textureNumSamples_42f8bb() { var res: i32 = textureNumSamples(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumSamples_42f8bb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumSamples_42f8bb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumSamples_42f8bb(); } diff --git a/test/tint/builtins/gen/literal/textureNumSamples/42f8bb.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumSamples/42f8bb.wgsl.expected.wgsl index ef11b63656..e62f047750 100644 --- a/test/tint/builtins/gen/literal/textureNumSamples/42f8bb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumSamples/42f8bb.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumSamples_42f8bb() { var res : i32 = textureNumSamples(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumSamples_42f8bb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumSamples_42f8bb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumSamples_42f8bb(); } diff --git a/test/tint/builtins/gen/literal/textureNumSamples/449d23.wgsl b/test/tint/builtins/gen/literal/textureNumSamples/449d23.wgsl index e5e5bafc0a..e685ba6969 100644 --- a/test/tint/builtins/gen/literal/textureNumSamples/449d23.wgsl +++ b/test/tint/builtins/gen/literal/textureNumSamples/449d23.wgsl @@ -29,18 +29,18 @@ fn textureNumSamples_449d23() { var res: i32 = textureNumSamples(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumSamples_449d23(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumSamples_449d23(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumSamples_449d23(); } diff --git a/test/tint/builtins/gen/literal/textureNumSamples/449d23.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumSamples/449d23.wgsl.expected.wgsl index 9cab69e2c1..0c9fd1f110 100644 --- a/test/tint/builtins/gen/literal/textureNumSamples/449d23.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumSamples/449d23.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumSamples_449d23() { var res : i32 = textureNumSamples(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumSamples_449d23(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumSamples_449d23(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumSamples_449d23(); } diff --git a/test/tint/builtins/gen/literal/textureNumSamples/a3c8a0.wgsl b/test/tint/builtins/gen/literal/textureNumSamples/a3c8a0.wgsl index 11df4fb6a4..1c4626cbe5 100644 --- a/test/tint/builtins/gen/literal/textureNumSamples/a3c8a0.wgsl +++ b/test/tint/builtins/gen/literal/textureNumSamples/a3c8a0.wgsl @@ -29,18 +29,18 @@ fn textureNumSamples_a3c8a0() { var res: i32 = textureNumSamples(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumSamples_a3c8a0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumSamples_a3c8a0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumSamples_a3c8a0(); } diff --git a/test/tint/builtins/gen/literal/textureNumSamples/a3c8a0.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureNumSamples/a3c8a0.wgsl.expected.wgsl index 29a914ad8b..c78e10135f 100644 --- a/test/tint/builtins/gen/literal/textureNumSamples/a3c8a0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureNumSamples/a3c8a0.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumSamples_a3c8a0() { var res : i32 = textureNumSamples(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumSamples_a3c8a0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumSamples_a3c8a0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumSamples_a3c8a0(); } diff --git a/test/tint/builtins/gen/literal/textureSample/0dff6c.wgsl b/test/tint/builtins/gen/literal/textureSample/0dff6c.wgsl index f074717c04..b64ad27ff4 100644 --- a/test/tint/builtins/gen/literal/textureSample/0dff6c.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/0dff6c.wgsl @@ -30,7 +30,7 @@ fn textureSample_0dff6c() { var res: f32 = textureSample(arg_0, arg_1, vec2(), vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_0dff6c(); } diff --git a/test/tint/builtins/gen/literal/textureSample/0dff6c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSample/0dff6c.wgsl.expected.wgsl index a6ffe5c618..5dff612013 100644 --- a/test/tint/builtins/gen/literal/textureSample/0dff6c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/0dff6c.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSample_0dff6c() { var res : f32 = textureSample(arg_0, arg_1, vec2(), vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_0dff6c(); } diff --git a/test/tint/builtins/gen/literal/textureSample/17e988.wgsl b/test/tint/builtins/gen/literal/textureSample/17e988.wgsl index 8f06bd89c1..64b2da9a0b 100644 --- a/test/tint/builtins/gen/literal/textureSample/17e988.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/17e988.wgsl @@ -30,7 +30,7 @@ fn textureSample_17e988() { var res: vec4 = textureSample(arg_0, arg_1, vec2(), 1, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_17e988(); } diff --git a/test/tint/builtins/gen/literal/textureSample/17e988.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSample/17e988.wgsl.expected.wgsl index abdb55df2a..3bb1fd77fc 100644 --- a/test/tint/builtins/gen/literal/textureSample/17e988.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/17e988.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSample_17e988() { var res : vec4 = textureSample(arg_0, arg_1, vec2(), 1, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_17e988(); } diff --git a/test/tint/builtins/gen/literal/textureSample/2149ec.wgsl b/test/tint/builtins/gen/literal/textureSample/2149ec.wgsl index 82e82e2ae9..58954a8efa 100644 --- a/test/tint/builtins/gen/literal/textureSample/2149ec.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/2149ec.wgsl @@ -30,7 +30,7 @@ fn textureSample_2149ec() { var res: vec4 = textureSample(arg_0, arg_1, vec3(), vec3()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_2149ec(); } diff --git a/test/tint/builtins/gen/literal/textureSample/2149ec.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSample/2149ec.wgsl.expected.wgsl index 27218fc29a..0b47e89f5e 100644 --- a/test/tint/builtins/gen/literal/textureSample/2149ec.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/2149ec.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSample_2149ec() { var res : vec4 = textureSample(arg_0, arg_1, vec3(), vec3()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_2149ec(); } diff --git a/test/tint/builtins/gen/literal/textureSample/38bbb9.wgsl b/test/tint/builtins/gen/literal/textureSample/38bbb9.wgsl index 5c5d84bcb8..f72f0b0b8d 100644 --- a/test/tint/builtins/gen/literal/textureSample/38bbb9.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/38bbb9.wgsl @@ -30,7 +30,7 @@ fn textureSample_38bbb9() { var res: f32 = textureSample(arg_0, arg_1, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_38bbb9(); } diff --git a/test/tint/builtins/gen/literal/textureSample/38bbb9.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSample/38bbb9.wgsl.expected.wgsl index 438d008290..6edb215124 100644 --- a/test/tint/builtins/gen/literal/textureSample/38bbb9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/38bbb9.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSample_38bbb9() { var res : f32 = textureSample(arg_0, arg_1, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_38bbb9(); } diff --git a/test/tint/builtins/gen/literal/textureSample/3b50bd.wgsl b/test/tint/builtins/gen/literal/textureSample/3b50bd.wgsl index 5daa22a2d1..3196088492 100644 --- a/test/tint/builtins/gen/literal/textureSample/3b50bd.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/3b50bd.wgsl @@ -30,7 +30,7 @@ fn textureSample_3b50bd() { var res: vec4 = textureSample(arg_0, arg_1, vec3()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_3b50bd(); } diff --git a/test/tint/builtins/gen/literal/textureSample/3b50bd.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSample/3b50bd.wgsl.expected.wgsl index 03ccde3ebe..43bc582115 100644 --- a/test/tint/builtins/gen/literal/textureSample/3b50bd.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/3b50bd.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSample_3b50bd() { var res : vec4 = textureSample(arg_0, arg_1, vec3()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_3b50bd(); } diff --git a/test/tint/builtins/gen/literal/textureSample/4dd1bf.wgsl b/test/tint/builtins/gen/literal/textureSample/4dd1bf.wgsl index 6cced5c916..704810bbbe 100644 --- a/test/tint/builtins/gen/literal/textureSample/4dd1bf.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/4dd1bf.wgsl @@ -30,7 +30,7 @@ fn textureSample_4dd1bf() { var res: vec4 = textureSample(arg_0, arg_1, vec3(), 1); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_4dd1bf(); } diff --git a/test/tint/builtins/gen/literal/textureSample/4dd1bf.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSample/4dd1bf.wgsl.expected.wgsl index 77ad88a393..5c29b5a578 100644 --- a/test/tint/builtins/gen/literal/textureSample/4dd1bf.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/4dd1bf.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSample_4dd1bf() { var res : vec4 = textureSample(arg_0, arg_1, vec3(), 1); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_4dd1bf(); } diff --git a/test/tint/builtins/gen/literal/textureSample/51b514.wgsl b/test/tint/builtins/gen/literal/textureSample/51b514.wgsl index eb3715e83c..9c87903f7e 100644 --- a/test/tint/builtins/gen/literal/textureSample/51b514.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/51b514.wgsl @@ -30,7 +30,7 @@ fn textureSample_51b514() { var res: vec4 = textureSample(arg_0, arg_1, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_51b514(); } diff --git a/test/tint/builtins/gen/literal/textureSample/51b514.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSample/51b514.wgsl.expected.wgsl index f866a59b78..7a5e264075 100644 --- a/test/tint/builtins/gen/literal/textureSample/51b514.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/51b514.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSample_51b514() { var res : vec4 = textureSample(arg_0, arg_1, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_51b514(); } diff --git a/test/tint/builtins/gen/literal/textureSample/60bf45.wgsl b/test/tint/builtins/gen/literal/textureSample/60bf45.wgsl index 8aec7bf28b..da1831a560 100644 --- a/test/tint/builtins/gen/literal/textureSample/60bf45.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/60bf45.wgsl @@ -30,7 +30,7 @@ fn textureSample_60bf45() { var res: f32 = textureSample(arg_0, arg_1, vec2(), 1, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_60bf45(); } diff --git a/test/tint/builtins/gen/literal/textureSample/60bf45.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSample/60bf45.wgsl.expected.wgsl index 9ed1c97fde..01301b396a 100644 --- a/test/tint/builtins/gen/literal/textureSample/60bf45.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/60bf45.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSample_60bf45() { var res : f32 = textureSample(arg_0, arg_1, vec2(), 1, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_60bf45(); } diff --git a/test/tint/builtins/gen/literal/textureSample/6717ca.wgsl b/test/tint/builtins/gen/literal/textureSample/6717ca.wgsl index 1cd285f9fd..a0569d6258 100644 --- a/test/tint/builtins/gen/literal/textureSample/6717ca.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/6717ca.wgsl @@ -30,7 +30,7 @@ fn textureSample_6717ca() { var res: vec4 = textureSample(arg_0, arg_1, vec2(), 1); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_6717ca(); } diff --git a/test/tint/builtins/gen/literal/textureSample/6717ca.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSample/6717ca.wgsl.expected.wgsl index b767d29334..4f6d04834a 100644 --- a/test/tint/builtins/gen/literal/textureSample/6717ca.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/6717ca.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSample_6717ca() { var res : vec4 = textureSample(arg_0, arg_1, vec2(), 1); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_6717ca(); } diff --git a/test/tint/builtins/gen/literal/textureSample/6e64fb.wgsl b/test/tint/builtins/gen/literal/textureSample/6e64fb.wgsl index 92c97bc036..1820157e14 100644 --- a/test/tint/builtins/gen/literal/textureSample/6e64fb.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/6e64fb.wgsl @@ -30,7 +30,7 @@ fn textureSample_6e64fb() { var res: vec4 = textureSample(arg_0, arg_1, 1.0); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_6e64fb(); } diff --git a/test/tint/builtins/gen/literal/textureSample/6e64fb.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSample/6e64fb.wgsl.expected.wgsl index 4d7b6ce81d..b99b3031e6 100644 --- a/test/tint/builtins/gen/literal/textureSample/6e64fb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/6e64fb.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSample_6e64fb() { var res : vec4 = textureSample(arg_0, arg_1, 1.0); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_6e64fb(); } diff --git a/test/tint/builtins/gen/literal/textureSample/7e9ffd.wgsl b/test/tint/builtins/gen/literal/textureSample/7e9ffd.wgsl index 7864e21d3a..3f72bb98ce 100644 --- a/test/tint/builtins/gen/literal/textureSample/7e9ffd.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/7e9ffd.wgsl @@ -30,7 +30,7 @@ fn textureSample_7e9ffd() { var res: f32 = textureSample(arg_0, arg_1, vec2(), 1); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_7e9ffd(); } diff --git a/test/tint/builtins/gen/literal/textureSample/7e9ffd.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSample/7e9ffd.wgsl.expected.wgsl index ba76347178..0381c1a7e7 100644 --- a/test/tint/builtins/gen/literal/textureSample/7e9ffd.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/7e9ffd.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSample_7e9ffd() { var res : f32 = textureSample(arg_0, arg_1, vec2(), 1); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_7e9ffd(); } diff --git a/test/tint/builtins/gen/literal/textureSample/85c4ba.wgsl b/test/tint/builtins/gen/literal/textureSample/85c4ba.wgsl index 42d5c40636..df51bd8e58 100644 --- a/test/tint/builtins/gen/literal/textureSample/85c4ba.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/85c4ba.wgsl @@ -30,7 +30,7 @@ fn textureSample_85c4ba() { var res: vec4 = textureSample(arg_0, arg_1, vec2(), vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_85c4ba(); } diff --git a/test/tint/builtins/gen/literal/textureSample/85c4ba.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSample/85c4ba.wgsl.expected.wgsl index 976bb581ed..8d23c1512f 100644 --- a/test/tint/builtins/gen/literal/textureSample/85c4ba.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/85c4ba.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSample_85c4ba() { var res : vec4 = textureSample(arg_0, arg_1, vec2(), vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_85c4ba(); } diff --git a/test/tint/builtins/gen/literal/textureSample/c2f4e8.wgsl b/test/tint/builtins/gen/literal/textureSample/c2f4e8.wgsl index cad8d4e586..b369cf9ea2 100644 --- a/test/tint/builtins/gen/literal/textureSample/c2f4e8.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/c2f4e8.wgsl @@ -30,7 +30,7 @@ fn textureSample_c2f4e8() { var res: f32 = textureSample(arg_0, arg_1, vec3(), 1); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_c2f4e8(); } diff --git a/test/tint/builtins/gen/literal/textureSample/c2f4e8.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSample/c2f4e8.wgsl.expected.wgsl index 0a6f332709..5e1f087212 100644 --- a/test/tint/builtins/gen/literal/textureSample/c2f4e8.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/c2f4e8.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSample_c2f4e8() { var res : f32 = textureSample(arg_0, arg_1, vec3(), 1); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_c2f4e8(); } diff --git a/test/tint/builtins/gen/literal/textureSample/e53267.wgsl b/test/tint/builtins/gen/literal/textureSample/e53267.wgsl index cacb3e4ef3..668a5f3441 100644 --- a/test/tint/builtins/gen/literal/textureSample/e53267.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/e53267.wgsl @@ -30,7 +30,7 @@ fn textureSample_e53267() { var res: vec4 = textureSample(arg_0, arg_1, vec3()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_e53267(); } diff --git a/test/tint/builtins/gen/literal/textureSample/e53267.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSample/e53267.wgsl.expected.wgsl index b1d17e78d4..d4d1c1097d 100644 --- a/test/tint/builtins/gen/literal/textureSample/e53267.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/e53267.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSample_e53267() { var res : vec4 = textureSample(arg_0, arg_1, vec3()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_e53267(); } diff --git a/test/tint/builtins/gen/literal/textureSample/ea7030.wgsl b/test/tint/builtins/gen/literal/textureSample/ea7030.wgsl index e57dddeba2..113c753d40 100644 --- a/test/tint/builtins/gen/literal/textureSample/ea7030.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/ea7030.wgsl @@ -30,7 +30,7 @@ fn textureSample_ea7030() { var res: f32 = textureSample(arg_0, arg_1, vec3()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_ea7030(); } diff --git a/test/tint/builtins/gen/literal/textureSample/ea7030.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSample/ea7030.wgsl.expected.wgsl index 4fffe530b2..de2934ba44 100644 --- a/test/tint/builtins/gen/literal/textureSample/ea7030.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSample/ea7030.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSample_ea7030() { var res : f32 = textureSample(arg_0, arg_1, vec3()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_ea7030(); } diff --git a/test/tint/builtins/gen/literal/textureSampleBias/53b9f7.wgsl b/test/tint/builtins/gen/literal/textureSampleBias/53b9f7.wgsl index a3699e60df..2dd96ffa47 100644 --- a/test/tint/builtins/gen/literal/textureSampleBias/53b9f7.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleBias/53b9f7.wgsl @@ -30,7 +30,7 @@ fn textureSampleBias_53b9f7() { var res: vec4 = textureSampleBias(arg_0, arg_1, vec3(), 1.0); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_53b9f7(); } diff --git a/test/tint/builtins/gen/literal/textureSampleBias/53b9f7.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleBias/53b9f7.wgsl.expected.wgsl index 58e2030565..4e65527d6d 100644 --- a/test/tint/builtins/gen/literal/textureSampleBias/53b9f7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleBias/53b9f7.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSampleBias_53b9f7() { var res : vec4 = textureSampleBias(arg_0, arg_1, vec3(), 1.0); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_53b9f7(); } diff --git a/test/tint/builtins/gen/literal/textureSampleBias/594824.wgsl b/test/tint/builtins/gen/literal/textureSampleBias/594824.wgsl index b7d25eb8ee..cf1c80cd7d 100644 --- a/test/tint/builtins/gen/literal/textureSampleBias/594824.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleBias/594824.wgsl @@ -30,7 +30,7 @@ fn textureSampleBias_594824() { var res: vec4 = textureSampleBias(arg_0, arg_1, vec3(), 1.0, vec3()); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_594824(); } diff --git a/test/tint/builtins/gen/literal/textureSampleBias/594824.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleBias/594824.wgsl.expected.wgsl index 491105c20a..9a41e5dbfc 100644 --- a/test/tint/builtins/gen/literal/textureSampleBias/594824.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleBias/594824.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSampleBias_594824() { var res : vec4 = textureSampleBias(arg_0, arg_1, vec3(), 1.0, vec3()); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_594824(); } diff --git a/test/tint/builtins/gen/literal/textureSampleBias/6a9113.wgsl b/test/tint/builtins/gen/literal/textureSampleBias/6a9113.wgsl index 298ece3009..007e578e4d 100644 --- a/test/tint/builtins/gen/literal/textureSampleBias/6a9113.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleBias/6a9113.wgsl @@ -30,7 +30,7 @@ fn textureSampleBias_6a9113() { var res: vec4 = textureSampleBias(arg_0, arg_1, vec2(), 1.0); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_6a9113(); } diff --git a/test/tint/builtins/gen/literal/textureSampleBias/6a9113.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleBias/6a9113.wgsl.expected.wgsl index a5ff76e529..7633115f5a 100644 --- a/test/tint/builtins/gen/literal/textureSampleBias/6a9113.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleBias/6a9113.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSampleBias_6a9113() { var res : vec4 = textureSampleBias(arg_0, arg_1, vec2(), 1.0); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_6a9113(); } diff --git a/test/tint/builtins/gen/literal/textureSampleBias/80e579.wgsl b/test/tint/builtins/gen/literal/textureSampleBias/80e579.wgsl index 4282899c5a..fd264c8b82 100644 --- a/test/tint/builtins/gen/literal/textureSampleBias/80e579.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleBias/80e579.wgsl @@ -30,7 +30,7 @@ fn textureSampleBias_80e579() { var res: vec4 = textureSampleBias(arg_0, arg_1, vec2(), 1, 1.0); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_80e579(); } diff --git a/test/tint/builtins/gen/literal/textureSampleBias/80e579.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleBias/80e579.wgsl.expected.wgsl index 164c81e917..d97ed3308d 100644 --- a/test/tint/builtins/gen/literal/textureSampleBias/80e579.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleBias/80e579.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSampleBias_80e579() { var res : vec4 = textureSampleBias(arg_0, arg_1, vec2(), 1, 1.0); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_80e579(); } diff --git a/test/tint/builtins/gen/literal/textureSampleBias/9dbb51.wgsl b/test/tint/builtins/gen/literal/textureSampleBias/9dbb51.wgsl index 15bc1ca883..37869ce7b0 100644 --- a/test/tint/builtins/gen/literal/textureSampleBias/9dbb51.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleBias/9dbb51.wgsl @@ -30,7 +30,7 @@ fn textureSampleBias_9dbb51() { var res: vec4 = textureSampleBias(arg_0, arg_1, vec2(), 1, 1.0, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_9dbb51(); } diff --git a/test/tint/builtins/gen/literal/textureSampleBias/9dbb51.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleBias/9dbb51.wgsl.expected.wgsl index aa1d40720f..7c1192266d 100644 --- a/test/tint/builtins/gen/literal/textureSampleBias/9dbb51.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleBias/9dbb51.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSampleBias_9dbb51() { var res : vec4 = textureSampleBias(arg_0, arg_1, vec2(), 1, 1.0, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_9dbb51(); } diff --git a/test/tint/builtins/gen/literal/textureSampleBias/a161cf.wgsl b/test/tint/builtins/gen/literal/textureSampleBias/a161cf.wgsl index ae96a5a069..d1fa2e4ea9 100644 --- a/test/tint/builtins/gen/literal/textureSampleBias/a161cf.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleBias/a161cf.wgsl @@ -30,7 +30,7 @@ fn textureSampleBias_a161cf() { var res: vec4 = textureSampleBias(arg_0, arg_1, vec2(), 1.0, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_a161cf(); } diff --git a/test/tint/builtins/gen/literal/textureSampleBias/a161cf.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleBias/a161cf.wgsl.expected.wgsl index 158537ee83..0454162c54 100644 --- a/test/tint/builtins/gen/literal/textureSampleBias/a161cf.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleBias/a161cf.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSampleBias_a161cf() { var res : vec4 = textureSampleBias(arg_0, arg_1, vec2(), 1.0, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_a161cf(); } diff --git a/test/tint/builtins/gen/literal/textureSampleBias/d3fa1b.wgsl b/test/tint/builtins/gen/literal/textureSampleBias/d3fa1b.wgsl index 1b17a6dd0e..2aa132aa9c 100644 --- a/test/tint/builtins/gen/literal/textureSampleBias/d3fa1b.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleBias/d3fa1b.wgsl @@ -30,7 +30,7 @@ fn textureSampleBias_d3fa1b() { var res: vec4 = textureSampleBias(arg_0, arg_1, vec3(), 1.0); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_d3fa1b(); } diff --git a/test/tint/builtins/gen/literal/textureSampleBias/d3fa1b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleBias/d3fa1b.wgsl.expected.wgsl index 7a07c3093d..c29f89ce8d 100644 --- a/test/tint/builtins/gen/literal/textureSampleBias/d3fa1b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleBias/d3fa1b.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSampleBias_d3fa1b() { var res : vec4 = textureSampleBias(arg_0, arg_1, vec3(), 1.0); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_d3fa1b(); } diff --git a/test/tint/builtins/gen/literal/textureSampleBias/eed7c4.wgsl b/test/tint/builtins/gen/literal/textureSampleBias/eed7c4.wgsl index 01eeffae2a..6a9b3562bc 100644 --- a/test/tint/builtins/gen/literal/textureSampleBias/eed7c4.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleBias/eed7c4.wgsl @@ -30,7 +30,7 @@ fn textureSampleBias_eed7c4() { var res: vec4 = textureSampleBias(arg_0, arg_1, vec3(), 1, 1.0); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_eed7c4(); } diff --git a/test/tint/builtins/gen/literal/textureSampleBias/eed7c4.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleBias/eed7c4.wgsl.expected.wgsl index e2c3aa7712..2ec462647e 100644 --- a/test/tint/builtins/gen/literal/textureSampleBias/eed7c4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleBias/eed7c4.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSampleBias_eed7c4() { var res : vec4 = textureSampleBias(arg_0, arg_1, vec3(), 1, 1.0); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_eed7c4(); } diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/3a5923.wgsl b/test/tint/builtins/gen/literal/textureSampleCompare/3a5923.wgsl index 799f5b06f4..d71177cab1 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompare/3a5923.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleCompare/3a5923.wgsl @@ -30,7 +30,7 @@ fn textureSampleCompare_3a5923() { var res: f32 = textureSampleCompare(arg_0, arg_1, vec2(), 1.0); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompare_3a5923(); } diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/3a5923.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleCompare/3a5923.wgsl.expected.wgsl index eb88140083..d323888dc9 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompare/3a5923.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleCompare/3a5923.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSampleCompare_3a5923() { var res : f32 = textureSampleCompare(arg_0, arg_1, vec2(), 1.0); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompare_3a5923(); } diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/63fb83.wgsl b/test/tint/builtins/gen/literal/textureSampleCompare/63fb83.wgsl index dda3efb2b1..6c469b9b25 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompare/63fb83.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleCompare/63fb83.wgsl @@ -30,7 +30,7 @@ fn textureSampleCompare_63fb83() { var res: f32 = textureSampleCompare(arg_0, arg_1, vec3(), 1.0); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompare_63fb83(); } diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/63fb83.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleCompare/63fb83.wgsl.expected.wgsl index 38e555e2e1..d70d066e78 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompare/63fb83.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleCompare/63fb83.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSampleCompare_63fb83() { var res : f32 = textureSampleCompare(arg_0, arg_1, vec3(), 1.0); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompare_63fb83(); } diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/a3ca7e.wgsl b/test/tint/builtins/gen/literal/textureSampleCompare/a3ca7e.wgsl index 1b9c595920..6c5555ba9d 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompare/a3ca7e.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleCompare/a3ca7e.wgsl @@ -30,7 +30,7 @@ fn textureSampleCompare_a3ca7e() { var res: f32 = textureSampleCompare(arg_0, arg_1, vec3(), 1, 1.0); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompare_a3ca7e(); } diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/a3ca7e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleCompare/a3ca7e.wgsl.expected.wgsl index 5dc12e5516..33ea04e81f 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompare/a3ca7e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleCompare/a3ca7e.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSampleCompare_a3ca7e() { var res : f32 = textureSampleCompare(arg_0, arg_1, vec3(), 1, 1.0); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompare_a3ca7e(); } diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/af1051.wgsl b/test/tint/builtins/gen/literal/textureSampleCompare/af1051.wgsl index ef76e35cf4..122c74d6b4 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompare/af1051.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleCompare/af1051.wgsl @@ -30,7 +30,7 @@ fn textureSampleCompare_af1051() { var res: f32 = textureSampleCompare(arg_0, arg_1, vec2(), 1, 1.0, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompare_af1051(); } diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/af1051.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleCompare/af1051.wgsl.expected.wgsl index 3d8740fb19..fe4d2ba7f8 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompare/af1051.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleCompare/af1051.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSampleCompare_af1051() { var res : f32 = textureSampleCompare(arg_0, arg_1, vec2(), 1, 1.0, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompare_af1051(); } diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/dd431d.wgsl b/test/tint/builtins/gen/literal/textureSampleCompare/dd431d.wgsl index 1733917489..4ea72b9111 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompare/dd431d.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleCompare/dd431d.wgsl @@ -30,7 +30,7 @@ fn textureSampleCompare_dd431d() { var res: f32 = textureSampleCompare(arg_0, arg_1, vec2(), 1, 1.0); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompare_dd431d(); } diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/dd431d.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleCompare/dd431d.wgsl.expected.wgsl index f36d443315..2aa2a1a98e 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompare/dd431d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleCompare/dd431d.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSampleCompare_dd431d() { var res : f32 = textureSampleCompare(arg_0, arg_1, vec2(), 1, 1.0); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompare_dd431d(); } diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/dec064.wgsl b/test/tint/builtins/gen/literal/textureSampleCompare/dec064.wgsl index 5a5a9906a9..c5625e9257 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompare/dec064.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleCompare/dec064.wgsl @@ -30,7 +30,7 @@ fn textureSampleCompare_dec064() { var res: f32 = textureSampleCompare(arg_0, arg_1, vec2(), 1.0, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompare_dec064(); } diff --git a/test/tint/builtins/gen/literal/textureSampleCompare/dec064.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleCompare/dec064.wgsl.expected.wgsl index 30f4183d6a..ded6000a85 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompare/dec064.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleCompare/dec064.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn textureSampleCompare_dec064() { var res : f32 = textureSampleCompare(arg_0, arg_1, vec2(), 1.0, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompare_dec064(); } diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/1116ed.wgsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/1116ed.wgsl index 4473d1e3d0..602997dd17 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompareLevel/1116ed.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/1116ed.wgsl @@ -30,18 +30,18 @@ fn textureSampleCompareLevel_1116ed() { var res: f32 = textureSampleCompareLevel(arg_0, arg_1, vec2(), 1, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleCompareLevel_1116ed(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompareLevel_1116ed(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleCompareLevel_1116ed(); } diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/1116ed.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/1116ed.wgsl.expected.wgsl index 97ee86714d..788644a28e 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompareLevel/1116ed.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/1116ed.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleCompareLevel_1116ed() { var res : f32 = textureSampleCompareLevel(arg_0, arg_1, vec2(), 1, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleCompareLevel_1116ed(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompareLevel_1116ed(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleCompareLevel_1116ed(); } diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/1568e3.wgsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/1568e3.wgsl index fe74fc9f79..ce8b2b85cc 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompareLevel/1568e3.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/1568e3.wgsl @@ -30,18 +30,18 @@ fn textureSampleCompareLevel_1568e3() { var res: f32 = textureSampleCompareLevel(arg_0, arg_1, vec3(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleCompareLevel_1568e3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompareLevel_1568e3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleCompareLevel_1568e3(); } diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/1568e3.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/1568e3.wgsl.expected.wgsl index ff5e88df3f..801af47d65 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompareLevel/1568e3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/1568e3.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleCompareLevel_1568e3() { var res : f32 = textureSampleCompareLevel(arg_0, arg_1, vec3(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleCompareLevel_1568e3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompareLevel_1568e3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleCompareLevel_1568e3(); } diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/2ad2b1.wgsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/2ad2b1.wgsl index 24c283c22c..faac094c4f 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompareLevel/2ad2b1.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/2ad2b1.wgsl @@ -30,18 +30,18 @@ fn textureSampleCompareLevel_2ad2b1() { var res: f32 = textureSampleCompareLevel(arg_0, arg_1, vec2(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleCompareLevel_2ad2b1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompareLevel_2ad2b1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleCompareLevel_2ad2b1(); } diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/2ad2b1.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/2ad2b1.wgsl.expected.wgsl index 76fe2cbea8..0a6e58334f 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompareLevel/2ad2b1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/2ad2b1.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleCompareLevel_2ad2b1() { var res : f32 = textureSampleCompareLevel(arg_0, arg_1, vec2(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleCompareLevel_2ad2b1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompareLevel_2ad2b1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleCompareLevel_2ad2b1(); } diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/4cf3a2.wgsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/4cf3a2.wgsl index cb237dcedd..6f9c29ea51 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompareLevel/4cf3a2.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/4cf3a2.wgsl @@ -30,18 +30,18 @@ fn textureSampleCompareLevel_4cf3a2() { var res: f32 = textureSampleCompareLevel(arg_0, arg_1, vec3(), 1, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleCompareLevel_4cf3a2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompareLevel_4cf3a2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleCompareLevel_4cf3a2(); } diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/4cf3a2.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/4cf3a2.wgsl.expected.wgsl index 1fb3470f0e..278793acfd 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompareLevel/4cf3a2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/4cf3a2.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleCompareLevel_4cf3a2() { var res : f32 = textureSampleCompareLevel(arg_0, arg_1, vec3(), 1, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleCompareLevel_4cf3a2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompareLevel_4cf3a2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleCompareLevel_4cf3a2(); } diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/7f2b9a.wgsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/7f2b9a.wgsl index c343fdf107..346810cb18 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompareLevel/7f2b9a.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/7f2b9a.wgsl @@ -30,18 +30,18 @@ fn textureSampleCompareLevel_7f2b9a() { var res: f32 = textureSampleCompareLevel(arg_0, arg_1, vec2(), 1.0, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleCompareLevel_7f2b9a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompareLevel_7f2b9a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleCompareLevel_7f2b9a(); } diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/7f2b9a.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/7f2b9a.wgsl.expected.wgsl index e057037232..7239fc17e3 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompareLevel/7f2b9a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/7f2b9a.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleCompareLevel_7f2b9a() { var res : f32 = textureSampleCompareLevel(arg_0, arg_1, vec2(), 1.0, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleCompareLevel_7f2b9a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompareLevel_7f2b9a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleCompareLevel_7f2b9a(); } diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/b6e47c.wgsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/b6e47c.wgsl index 9a6d3511d0..5eb2d54325 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompareLevel/b6e47c.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/b6e47c.wgsl @@ -30,18 +30,18 @@ fn textureSampleCompareLevel_b6e47c() { var res: f32 = textureSampleCompareLevel(arg_0, arg_1, vec2(), 1, 1.0, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleCompareLevel_b6e47c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompareLevel_b6e47c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleCompareLevel_b6e47c(); } diff --git a/test/tint/builtins/gen/literal/textureSampleCompareLevel/b6e47c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleCompareLevel/b6e47c.wgsl.expected.wgsl index 8819ad2343..3a8365a1f8 100644 --- a/test/tint/builtins/gen/literal/textureSampleCompareLevel/b6e47c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleCompareLevel/b6e47c.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleCompareLevel_b6e47c() { var res : f32 = textureSampleCompareLevel(arg_0, arg_1, vec2(), 1, 1.0, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleCompareLevel_b6e47c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompareLevel_b6e47c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleCompareLevel_b6e47c(); } diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/21402b.wgsl b/test/tint/builtins/gen/literal/textureSampleGrad/21402b.wgsl index 339576d917..b400f5efa7 100644 --- a/test/tint/builtins/gen/literal/textureSampleGrad/21402b.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleGrad/21402b.wgsl @@ -30,18 +30,18 @@ fn textureSampleGrad_21402b() { var res: vec4 = textureSampleGrad(arg_0, arg_1, vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_21402b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_21402b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_21402b(); } diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/21402b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleGrad/21402b.wgsl.expected.wgsl index c5e185ca06..d51d0951b7 100644 --- a/test/tint/builtins/gen/literal/textureSampleGrad/21402b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleGrad/21402b.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleGrad_21402b() { var res : vec4 = textureSampleGrad(arg_0, arg_1, vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_21402b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_21402b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_21402b(); } diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/2ecd8f.wgsl b/test/tint/builtins/gen/literal/textureSampleGrad/2ecd8f.wgsl index d4250b15f2..f7ec46d5d2 100644 --- a/test/tint/builtins/gen/literal/textureSampleGrad/2ecd8f.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleGrad/2ecd8f.wgsl @@ -30,18 +30,18 @@ fn textureSampleGrad_2ecd8f() { var res: vec4 = textureSampleGrad(arg_0, arg_1, vec2(), 1, vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_2ecd8f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_2ecd8f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_2ecd8f(); } diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/2ecd8f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleGrad/2ecd8f.wgsl.expected.wgsl index 233ce18732..1319a44088 100644 --- a/test/tint/builtins/gen/literal/textureSampleGrad/2ecd8f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleGrad/2ecd8f.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleGrad_2ecd8f() { var res : vec4 = textureSampleGrad(arg_0, arg_1, vec2(), 1, vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_2ecd8f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_2ecd8f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_2ecd8f(); } diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/521263.wgsl b/test/tint/builtins/gen/literal/textureSampleGrad/521263.wgsl index 31754e87b0..f7d4f9173c 100644 --- a/test/tint/builtins/gen/literal/textureSampleGrad/521263.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleGrad/521263.wgsl @@ -30,18 +30,18 @@ fn textureSampleGrad_521263() { var res: vec4 = textureSampleGrad(arg_0, arg_1, vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_521263(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_521263(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_521263(); } diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/521263.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleGrad/521263.wgsl.expected.wgsl index f440117500..d8ade17810 100644 --- a/test/tint/builtins/gen/literal/textureSampleGrad/521263.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleGrad/521263.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleGrad_521263() { var res : vec4 = textureSampleGrad(arg_0, arg_1, vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_521263(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_521263(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_521263(); } diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/5312f4.wgsl b/test/tint/builtins/gen/literal/textureSampleGrad/5312f4.wgsl index 91e8a82b48..24599c60e6 100644 --- a/test/tint/builtins/gen/literal/textureSampleGrad/5312f4.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleGrad/5312f4.wgsl @@ -30,18 +30,18 @@ fn textureSampleGrad_5312f4() { var res: vec4 = textureSampleGrad(arg_0, arg_1, vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_5312f4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_5312f4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_5312f4(); } diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/5312f4.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleGrad/5312f4.wgsl.expected.wgsl index 22507b7a62..53ed7ccab8 100644 --- a/test/tint/builtins/gen/literal/textureSampleGrad/5312f4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleGrad/5312f4.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleGrad_5312f4() { var res : vec4 = textureSampleGrad(arg_0, arg_1, vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_5312f4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_5312f4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_5312f4(); } diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/5884dd.wgsl b/test/tint/builtins/gen/literal/textureSampleGrad/5884dd.wgsl index d3565f365f..30d54d1631 100644 --- a/test/tint/builtins/gen/literal/textureSampleGrad/5884dd.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleGrad/5884dd.wgsl @@ -30,18 +30,18 @@ fn textureSampleGrad_5884dd() { var res: vec4 = textureSampleGrad(arg_0, arg_1, vec3(), vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_5884dd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_5884dd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_5884dd(); } diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/5884dd.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleGrad/5884dd.wgsl.expected.wgsl index 3fdb4d589e..88315962b0 100644 --- a/test/tint/builtins/gen/literal/textureSampleGrad/5884dd.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleGrad/5884dd.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleGrad_5884dd() { var res : vec4 = textureSampleGrad(arg_0, arg_1, vec3(), vec3(), vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_5884dd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_5884dd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_5884dd(); } diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/d4e3c5.wgsl b/test/tint/builtins/gen/literal/textureSampleGrad/d4e3c5.wgsl index c82a14ff1f..edf274b46a 100644 --- a/test/tint/builtins/gen/literal/textureSampleGrad/d4e3c5.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleGrad/d4e3c5.wgsl @@ -30,18 +30,18 @@ fn textureSampleGrad_d4e3c5() { var res: vec4 = textureSampleGrad(arg_0, arg_1, vec2(), vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_d4e3c5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_d4e3c5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_d4e3c5(); } diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/d4e3c5.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleGrad/d4e3c5.wgsl.expected.wgsl index d36cb59483..af2f0c48c6 100644 --- a/test/tint/builtins/gen/literal/textureSampleGrad/d4e3c5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleGrad/d4e3c5.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleGrad_d4e3c5() { var res : vec4 = textureSampleGrad(arg_0, arg_1, vec2(), vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_d4e3c5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_d4e3c5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_d4e3c5(); } diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/d65515.wgsl b/test/tint/builtins/gen/literal/textureSampleGrad/d65515.wgsl index 3614908384..aac21fcc94 100644 --- a/test/tint/builtins/gen/literal/textureSampleGrad/d65515.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleGrad/d65515.wgsl @@ -30,18 +30,18 @@ fn textureSampleGrad_d65515() { var res: vec4 = textureSampleGrad(arg_0, arg_1, vec2(), 1, vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_d65515(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_d65515(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_d65515(); } diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/d65515.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleGrad/d65515.wgsl.expected.wgsl index ee0bf52341..e62ecef990 100644 --- a/test/tint/builtins/gen/literal/textureSampleGrad/d65515.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleGrad/d65515.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleGrad_d65515() { var res : vec4 = textureSampleGrad(arg_0, arg_1, vec2(), 1, vec2(), vec2(), vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_d65515(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_d65515(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_d65515(); } diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/e383db.wgsl b/test/tint/builtins/gen/literal/textureSampleGrad/e383db.wgsl index 9f92c4158c..fae0304748 100644 --- a/test/tint/builtins/gen/literal/textureSampleGrad/e383db.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleGrad/e383db.wgsl @@ -30,18 +30,18 @@ fn textureSampleGrad_e383db() { var res: vec4 = textureSampleGrad(arg_0, arg_1, vec3(), 1, vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_e383db(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_e383db(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_e383db(); } diff --git a/test/tint/builtins/gen/literal/textureSampleGrad/e383db.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleGrad/e383db.wgsl.expected.wgsl index dad5f7ff32..bb414626f0 100644 --- a/test/tint/builtins/gen/literal/textureSampleGrad/e383db.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleGrad/e383db.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleGrad_e383db() { var res : vec4 = textureSampleGrad(arg_0, arg_1, vec3(), 1, vec3(), vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_e383db(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_e383db(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_e383db(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/02be59.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/02be59.wgsl index 06116a9e84..3b62a899d8 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/02be59.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/02be59.wgsl @@ -30,18 +30,18 @@ fn textureSampleLevel_02be59() { var res: f32 = textureSampleLevel(arg_0, arg_1, vec2(), 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_02be59(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_02be59(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_02be59(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/02be59.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/02be59.wgsl.expected.wgsl index e5eb1c6b7d..14b220ad7c 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/02be59.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/02be59.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleLevel_02be59() { var res : f32 = textureSampleLevel(arg_0, arg_1, vec2(), 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_02be59(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_02be59(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_02be59(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/0b0a1b.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/0b0a1b.wgsl index 77fd0c9d4a..06b1e5c0e6 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/0b0a1b.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/0b0a1b.wgsl @@ -30,18 +30,18 @@ fn textureSampleLevel_0b0a1b() { var res: vec4 = textureSampleLevel(arg_0, arg_1, vec2(), 1.0, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_0b0a1b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_0b0a1b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_0b0a1b(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/0b0a1b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/0b0a1b.wgsl.expected.wgsl index 2520fdb01e..4d318da8aa 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/0b0a1b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/0b0a1b.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleLevel_0b0a1b() { var res : vec4 = textureSampleLevel(arg_0, arg_1, vec2(), 1.0, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_0b0a1b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_0b0a1b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_0b0a1b(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/0bdd9a.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/0bdd9a.wgsl index 3065b6e52b..20fa8069a3 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/0bdd9a.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/0bdd9a.wgsl @@ -30,18 +30,18 @@ fn textureSampleLevel_0bdd9a() { var res: vec4 = textureSampleLevel(arg_0, arg_1, vec3(), 1, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_0bdd9a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_0bdd9a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_0bdd9a(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/0bdd9a.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/0bdd9a.wgsl.expected.wgsl index 432273cda6..a9feb7c217 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/0bdd9a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/0bdd9a.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleLevel_0bdd9a() { var res : vec4 = textureSampleLevel(arg_0, arg_1, vec3(), 1, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_0bdd9a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_0bdd9a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_0bdd9a(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl index 583634c719..4b93afaeda 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl @@ -30,18 +30,18 @@ fn textureSampleLevel_1b0291() { var res: f32 = textureSampleLevel(arg_0, arg_1, vec3(), 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_1b0291(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_1b0291(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_1b0291(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl.expected.wgsl index 8ce844e4b4..52151bc571 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleLevel_1b0291() { var res : f32 = textureSampleLevel(arg_0, arg_1, vec3(), 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_1b0291(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_1b0291(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_1b0291(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl index e9988593b0..f829077865 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl @@ -30,18 +30,18 @@ fn textureSampleLevel_1bf73e() { var res: f32 = textureSampleLevel(arg_0, arg_1, vec2(), 1, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_1bf73e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_1bf73e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_1bf73e(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.wgsl index ff739ce857..8771b3abcb 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleLevel_1bf73e() { var res : f32 = textureSampleLevel(arg_0, arg_1, vec2(), 1, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_1bf73e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_1bf73e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_1bf73e(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/302be4.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/302be4.wgsl index a1eec71fdc..c1492eb73b 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/302be4.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/302be4.wgsl @@ -30,18 +30,18 @@ fn textureSampleLevel_302be4() { var res: vec4 = textureSampleLevel(arg_0, arg_1, vec2(), 1, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_302be4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_302be4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_302be4(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/302be4.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/302be4.wgsl.expected.wgsl index 15af8c661c..ee37a819ba 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/302be4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/302be4.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleLevel_302be4() { var res : vec4 = textureSampleLevel(arg_0, arg_1, vec2(), 1, 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_302be4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_302be4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_302be4(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl index c44741a6b9..57a1e3e973 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl @@ -30,18 +30,18 @@ fn textureSampleLevel_36780e() { var res: f32 = textureSampleLevel(arg_0, arg_1, vec2(), 1, 0, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_36780e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_36780e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_36780e(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.wgsl index 01d1245e98..caff931b22 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleLevel_36780e() { var res : f32 = textureSampleLevel(arg_0, arg_1, vec2(), 1, 0, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_36780e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_36780e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_36780e(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/749baf.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/749baf.wgsl index d043c1b8ff..8c4be39050 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/749baf.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/749baf.wgsl @@ -30,18 +30,18 @@ fn textureSampleLevel_749baf() { var res: f32 = textureSampleLevel(arg_0, arg_1, vec2(), 0, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_749baf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_749baf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_749baf(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/749baf.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/749baf.wgsl.expected.wgsl index 01d93a0fbe..73109bbc38 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/749baf.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/749baf.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleLevel_749baf() { var res : f32 = textureSampleLevel(arg_0, arg_1, vec2(), 0, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_749baf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_749baf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_749baf(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/979816.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/979816.wgsl index 432061a674..4607c285a7 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/979816.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/979816.wgsl @@ -30,18 +30,18 @@ fn textureSampleLevel_979816() { var res: vec4 = textureSampleLevel(arg_0, arg_1, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_979816(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_979816(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_979816(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/979816.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/979816.wgsl.expected.wgsl index 3d1980fa01..2583d0f8f0 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/979816.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/979816.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleLevel_979816() { var res : vec4 = textureSampleLevel(arg_0, arg_1, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_979816(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_979816(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_979816(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/abfcc0.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/abfcc0.wgsl index 733ef7b334..761da2a32c 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/abfcc0.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/abfcc0.wgsl @@ -30,18 +30,18 @@ fn textureSampleLevel_abfcc0() { var res: vec4 = textureSampleLevel(arg_0, arg_1, vec3(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_abfcc0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_abfcc0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_abfcc0(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/abfcc0.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/abfcc0.wgsl.expected.wgsl index f8f6faf81c..1ff8adb5cc 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/abfcc0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/abfcc0.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleLevel_abfcc0() { var res : vec4 = textureSampleLevel(arg_0, arg_1, vec3(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_abfcc0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_abfcc0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_abfcc0(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/ae5e39.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/ae5e39.wgsl index ec0c39bc56..7467e0184a 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/ae5e39.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/ae5e39.wgsl @@ -30,18 +30,18 @@ fn textureSampleLevel_ae5e39() { var res: f32 = textureSampleLevel(arg_0, arg_1, vec3(), 1, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_ae5e39(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_ae5e39(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_ae5e39(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/ae5e39.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/ae5e39.wgsl.expected.wgsl index 4fc5ac8665..707f48a83c 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/ae5e39.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/ae5e39.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleLevel_ae5e39() { var res : f32 = textureSampleLevel(arg_0, arg_1, vec3(), 1, 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_ae5e39(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_ae5e39(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_ae5e39(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/b7c55c.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/b7c55c.wgsl index 2a2cf1f5b2..9f57d7397d 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/b7c55c.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/b7c55c.wgsl @@ -30,18 +30,18 @@ fn textureSampleLevel_b7c55c() { var res: vec4 = textureSampleLevel(arg_0, arg_1, vec2(), 1, 1.0, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_b7c55c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_b7c55c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_b7c55c(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/b7c55c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/b7c55c.wgsl.expected.wgsl index 5f310cbc86..2590995a40 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/b7c55c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/b7c55c.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleLevel_b7c55c() { var res : vec4 = textureSampleLevel(arg_0, arg_1, vec2(), 1, 1.0, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_b7c55c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_b7c55c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_b7c55c(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/c32df7.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/c32df7.wgsl index 4b0a19e3bc..4ac7413708 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/c32df7.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/c32df7.wgsl @@ -30,18 +30,18 @@ fn textureSampleLevel_c32df7() { var res: vec4 = textureSampleLevel(arg_0, arg_1, vec3(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_c32df7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_c32df7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_c32df7(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/c32df7.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/c32df7.wgsl.expected.wgsl index 2f2df13b05..b263c664ef 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/c32df7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/c32df7.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleLevel_c32df7() { var res : vec4 = textureSampleLevel(arg_0, arg_1, vec3(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_c32df7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_c32df7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_c32df7(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/c6aca6.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/c6aca6.wgsl index c4cdb2d370..3b5ea68aaa 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/c6aca6.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/c6aca6.wgsl @@ -30,18 +30,18 @@ fn textureSampleLevel_c6aca6() { var res: vec4 = textureSampleLevel(arg_0, arg_1, vec2(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_c6aca6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_c6aca6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_c6aca6(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/c6aca6.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/c6aca6.wgsl.expected.wgsl index 35dc735246..455f4d6288 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/c6aca6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/c6aca6.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleLevel_c6aca6() { var res : vec4 = textureSampleLevel(arg_0, arg_1, vec2(), 1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_c6aca6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_c6aca6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_c6aca6(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/dcbecb.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/dcbecb.wgsl index 53846b4a37..5a20c5aade 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/dcbecb.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/dcbecb.wgsl @@ -30,18 +30,18 @@ fn textureSampleLevel_dcbecb() { var res: vec4 = textureSampleLevel(arg_0, arg_1, vec3(), 1.0, vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_dcbecb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_dcbecb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_dcbecb(); } diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/dcbecb.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/dcbecb.wgsl.expected.wgsl index e49b2b0b01..74dca43960 100644 --- a/test/tint/builtins/gen/literal/textureSampleLevel/dcbecb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureSampleLevel/dcbecb.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureSampleLevel_dcbecb() { var res : vec4 = textureSampleLevel(arg_0, arg_1, vec3(), 1.0, vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_dcbecb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_dcbecb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_dcbecb(); } diff --git a/test/tint/builtins/gen/literal/textureStore/05ce15.wgsl b/test/tint/builtins/gen/literal/textureStore/05ce15.wgsl index 4677d18e90..a512d50530 100644 --- a/test/tint/builtins/gen/literal/textureStore/05ce15.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/05ce15.wgsl @@ -29,18 +29,18 @@ fn textureStore_05ce15() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_05ce15(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_05ce15(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_05ce15(); } diff --git a/test/tint/builtins/gen/literal/textureStore/05ce15.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/05ce15.wgsl.expected.wgsl index 2627d0e3ff..caefa60386 100644 --- a/test/tint/builtins/gen/literal/textureStore/05ce15.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/05ce15.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_05ce15() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_05ce15(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_05ce15(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_05ce15(); } diff --git a/test/tint/builtins/gen/literal/textureStore/064c7f.wgsl b/test/tint/builtins/gen/literal/textureStore/064c7f.wgsl index e95908656f..3843b42d62 100644 --- a/test/tint/builtins/gen/literal/textureStore/064c7f.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/064c7f.wgsl @@ -29,18 +29,18 @@ fn textureStore_064c7f() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_064c7f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_064c7f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_064c7f(); } diff --git a/test/tint/builtins/gen/literal/textureStore/064c7f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/064c7f.wgsl.expected.wgsl index 042b3afd27..9d552595b9 100644 --- a/test/tint/builtins/gen/literal/textureStore/064c7f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/064c7f.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_064c7f() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_064c7f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_064c7f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_064c7f(); } diff --git a/test/tint/builtins/gen/literal/textureStore/068641.wgsl b/test/tint/builtins/gen/literal/textureStore/068641.wgsl index 86edaac1b0..0bad84952b 100644 --- a/test/tint/builtins/gen/literal/textureStore/068641.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/068641.wgsl @@ -29,18 +29,18 @@ fn textureStore_068641() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_068641(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_068641(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_068641(); } diff --git a/test/tint/builtins/gen/literal/textureStore/068641.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/068641.wgsl.expected.wgsl index 5b3279a129..1e3ae926fc 100644 --- a/test/tint/builtins/gen/literal/textureStore/068641.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/068641.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_068641() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_068641(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_068641(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_068641(); } diff --git a/test/tint/builtins/gen/literal/textureStore/0af6b5.wgsl b/test/tint/builtins/gen/literal/textureStore/0af6b5.wgsl index 53f97f4f37..1ffa433c59 100644 --- a/test/tint/builtins/gen/literal/textureStore/0af6b5.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/0af6b5.wgsl @@ -29,18 +29,18 @@ fn textureStore_0af6b5() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_0af6b5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_0af6b5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_0af6b5(); } diff --git a/test/tint/builtins/gen/literal/textureStore/0af6b5.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/0af6b5.wgsl.expected.wgsl index 1e67b082fa..d6371ca9d8 100644 --- a/test/tint/builtins/gen/literal/textureStore/0af6b5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/0af6b5.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_0af6b5() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_0af6b5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_0af6b5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_0af6b5(); } diff --git a/test/tint/builtins/gen/literal/textureStore/0c3dff.wgsl b/test/tint/builtins/gen/literal/textureStore/0c3dff.wgsl index f0100ffa2d..1034365f45 100644 --- a/test/tint/builtins/gen/literal/textureStore/0c3dff.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/0c3dff.wgsl @@ -29,18 +29,18 @@ fn textureStore_0c3dff() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_0c3dff(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_0c3dff(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_0c3dff(); } diff --git a/test/tint/builtins/gen/literal/textureStore/0c3dff.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/0c3dff.wgsl.expected.wgsl index b115e07dfc..14d2872b65 100644 --- a/test/tint/builtins/gen/literal/textureStore/0c3dff.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/0c3dff.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_0c3dff() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_0c3dff(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_0c3dff(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_0c3dff(); } diff --git a/test/tint/builtins/gen/literal/textureStore/102722.wgsl b/test/tint/builtins/gen/literal/textureStore/102722.wgsl index 4c9a7dc93e..6470bd706f 100644 --- a/test/tint/builtins/gen/literal/textureStore/102722.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/102722.wgsl @@ -29,18 +29,18 @@ fn textureStore_102722() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_102722(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_102722(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_102722(); } diff --git a/test/tint/builtins/gen/literal/textureStore/102722.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/102722.wgsl.expected.wgsl index 593c342baf..2d6fc38b13 100644 --- a/test/tint/builtins/gen/literal/textureStore/102722.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/102722.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_102722() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_102722(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_102722(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_102722(); } diff --git a/test/tint/builtins/gen/literal/textureStore/1bbd08.wgsl b/test/tint/builtins/gen/literal/textureStore/1bbd08.wgsl index b52633a4af..9609af759d 100644 --- a/test/tint/builtins/gen/literal/textureStore/1bbd08.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/1bbd08.wgsl @@ -29,18 +29,18 @@ fn textureStore_1bbd08() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_1bbd08(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_1bbd08(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_1bbd08(); } diff --git a/test/tint/builtins/gen/literal/textureStore/1bbd08.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/1bbd08.wgsl.expected.wgsl index a775be711e..b6aa3ff4c9 100644 --- a/test/tint/builtins/gen/literal/textureStore/1bbd08.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/1bbd08.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_1bbd08() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_1bbd08(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_1bbd08(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_1bbd08(); } diff --git a/test/tint/builtins/gen/literal/textureStore/1c02e7.wgsl b/test/tint/builtins/gen/literal/textureStore/1c02e7.wgsl index a91041c2dd..aebd170d6c 100644 --- a/test/tint/builtins/gen/literal/textureStore/1c02e7.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/1c02e7.wgsl @@ -29,18 +29,18 @@ fn textureStore_1c02e7() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_1c02e7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_1c02e7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_1c02e7(); } diff --git a/test/tint/builtins/gen/literal/textureStore/1c02e7.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/1c02e7.wgsl.expected.wgsl index 732759fccb..556621ddf0 100644 --- a/test/tint/builtins/gen/literal/textureStore/1c02e7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/1c02e7.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_1c02e7() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_1c02e7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_1c02e7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_1c02e7(); } diff --git a/test/tint/builtins/gen/literal/textureStore/22d955.wgsl b/test/tint/builtins/gen/literal/textureStore/22d955.wgsl index 5e6f372253..f9ce1a389e 100644 --- a/test/tint/builtins/gen/literal/textureStore/22d955.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/22d955.wgsl @@ -29,18 +29,18 @@ fn textureStore_22d955() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_22d955(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_22d955(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_22d955(); } diff --git a/test/tint/builtins/gen/literal/textureStore/22d955.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/22d955.wgsl.expected.wgsl index b9fe255b4a..cfb291c80e 100644 --- a/test/tint/builtins/gen/literal/textureStore/22d955.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/22d955.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_22d955() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_22d955(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_22d955(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_22d955(); } diff --git a/test/tint/builtins/gen/literal/textureStore/26bf70.wgsl b/test/tint/builtins/gen/literal/textureStore/26bf70.wgsl index 8cb6f1e431..b253a233e5 100644 --- a/test/tint/builtins/gen/literal/textureStore/26bf70.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/26bf70.wgsl @@ -29,18 +29,18 @@ fn textureStore_26bf70() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_26bf70(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_26bf70(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_26bf70(); } diff --git a/test/tint/builtins/gen/literal/textureStore/26bf70.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/26bf70.wgsl.expected.wgsl index 896b4f7a4f..10aa757911 100644 --- a/test/tint/builtins/gen/literal/textureStore/26bf70.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/26bf70.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_26bf70() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_26bf70(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_26bf70(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_26bf70(); } diff --git a/test/tint/builtins/gen/literal/textureStore/2796b4.wgsl b/test/tint/builtins/gen/literal/textureStore/2796b4.wgsl index 82ce365e16..2afae6f4d3 100644 --- a/test/tint/builtins/gen/literal/textureStore/2796b4.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/2796b4.wgsl @@ -29,18 +29,18 @@ fn textureStore_2796b4() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_2796b4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_2796b4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_2796b4(); } diff --git a/test/tint/builtins/gen/literal/textureStore/2796b4.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/2796b4.wgsl.expected.wgsl index 3fcb394f8f..60ac36f593 100644 --- a/test/tint/builtins/gen/literal/textureStore/2796b4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/2796b4.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_2796b4() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_2796b4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_2796b4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_2796b4(); } diff --git a/test/tint/builtins/gen/literal/textureStore/2ac6c7.wgsl b/test/tint/builtins/gen/literal/textureStore/2ac6c7.wgsl index 39eebf354a..7fb5d9fab2 100644 --- a/test/tint/builtins/gen/literal/textureStore/2ac6c7.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/2ac6c7.wgsl @@ -29,18 +29,18 @@ fn textureStore_2ac6c7() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_2ac6c7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_2ac6c7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_2ac6c7(); } diff --git a/test/tint/builtins/gen/literal/textureStore/2ac6c7.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/2ac6c7.wgsl.expected.wgsl index 2786ca40da..ca7cc4f150 100644 --- a/test/tint/builtins/gen/literal/textureStore/2ac6c7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/2ac6c7.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_2ac6c7() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_2ac6c7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_2ac6c7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_2ac6c7(); } diff --git a/test/tint/builtins/gen/literal/textureStore/2eb2a4.wgsl b/test/tint/builtins/gen/literal/textureStore/2eb2a4.wgsl index 05df4c892f..dbbc9a0969 100644 --- a/test/tint/builtins/gen/literal/textureStore/2eb2a4.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/2eb2a4.wgsl @@ -29,18 +29,18 @@ fn textureStore_2eb2a4() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_2eb2a4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_2eb2a4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_2eb2a4(); } diff --git a/test/tint/builtins/gen/literal/textureStore/2eb2a4.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/2eb2a4.wgsl.expected.wgsl index 51c5cd9e53..5399668be0 100644 --- a/test/tint/builtins/gen/literal/textureStore/2eb2a4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/2eb2a4.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_2eb2a4() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_2eb2a4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_2eb2a4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_2eb2a4(); } diff --git a/test/tint/builtins/gen/literal/textureStore/2ed2a3.wgsl b/test/tint/builtins/gen/literal/textureStore/2ed2a3.wgsl index 9520984af6..b37f8e4553 100644 --- a/test/tint/builtins/gen/literal/textureStore/2ed2a3.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/2ed2a3.wgsl @@ -29,18 +29,18 @@ fn textureStore_2ed2a3() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_2ed2a3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_2ed2a3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_2ed2a3(); } diff --git a/test/tint/builtins/gen/literal/textureStore/2ed2a3.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/2ed2a3.wgsl.expected.wgsl index c415d580b7..daad961756 100644 --- a/test/tint/builtins/gen/literal/textureStore/2ed2a3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/2ed2a3.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_2ed2a3() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_2ed2a3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_2ed2a3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_2ed2a3(); } diff --git a/test/tint/builtins/gen/literal/textureStore/31745b.wgsl b/test/tint/builtins/gen/literal/textureStore/31745b.wgsl index f26b550b83..115890b68d 100644 --- a/test/tint/builtins/gen/literal/textureStore/31745b.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/31745b.wgsl @@ -29,18 +29,18 @@ fn textureStore_31745b() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_31745b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_31745b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_31745b(); } diff --git a/test/tint/builtins/gen/literal/textureStore/31745b.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/31745b.wgsl.expected.wgsl index 42884340b0..028068121b 100644 --- a/test/tint/builtins/gen/literal/textureStore/31745b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/31745b.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_31745b() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_31745b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_31745b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_31745b(); } diff --git a/test/tint/builtins/gen/literal/textureStore/32f368.wgsl b/test/tint/builtins/gen/literal/textureStore/32f368.wgsl index 33b9e042a2..83cfdbc661 100644 --- a/test/tint/builtins/gen/literal/textureStore/32f368.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/32f368.wgsl @@ -29,18 +29,18 @@ fn textureStore_32f368() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_32f368(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_32f368(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_32f368(); } diff --git a/test/tint/builtins/gen/literal/textureStore/32f368.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/32f368.wgsl.expected.wgsl index a7478222ef..d0d3f8bf97 100644 --- a/test/tint/builtins/gen/literal/textureStore/32f368.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/32f368.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_32f368() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_32f368(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_32f368(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_32f368(); } diff --git a/test/tint/builtins/gen/literal/textureStore/331aee.wgsl b/test/tint/builtins/gen/literal/textureStore/331aee.wgsl index 1099995659..9fc7d04f3b 100644 --- a/test/tint/builtins/gen/literal/textureStore/331aee.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/331aee.wgsl @@ -29,18 +29,18 @@ fn textureStore_331aee() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_331aee(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_331aee(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_331aee(); } diff --git a/test/tint/builtins/gen/literal/textureStore/331aee.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/331aee.wgsl.expected.wgsl index 036326017f..c56aa25c45 100644 --- a/test/tint/builtins/gen/literal/textureStore/331aee.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/331aee.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_331aee() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_331aee(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_331aee(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_331aee(); } diff --git a/test/tint/builtins/gen/literal/textureStore/38e8d7.wgsl b/test/tint/builtins/gen/literal/textureStore/38e8d7.wgsl index 68b8504fc8..a70f91a872 100644 --- a/test/tint/builtins/gen/literal/textureStore/38e8d7.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/38e8d7.wgsl @@ -29,18 +29,18 @@ fn textureStore_38e8d7() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_38e8d7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_38e8d7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_38e8d7(); } diff --git a/test/tint/builtins/gen/literal/textureStore/38e8d7.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/38e8d7.wgsl.expected.wgsl index 28d17915c2..e586ff1e07 100644 --- a/test/tint/builtins/gen/literal/textureStore/38e8d7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/38e8d7.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_38e8d7() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_38e8d7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_38e8d7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_38e8d7(); } diff --git a/test/tint/builtins/gen/literal/textureStore/3a52ac.wgsl b/test/tint/builtins/gen/literal/textureStore/3a52ac.wgsl index bce15d4a93..f8a91fc3e7 100644 --- a/test/tint/builtins/gen/literal/textureStore/3a52ac.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/3a52ac.wgsl @@ -29,18 +29,18 @@ fn textureStore_3a52ac() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_3a52ac(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_3a52ac(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_3a52ac(); } diff --git a/test/tint/builtins/gen/literal/textureStore/3a52ac.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/3a52ac.wgsl.expected.wgsl index 6fbbab08f1..a3aa110123 100644 --- a/test/tint/builtins/gen/literal/textureStore/3a52ac.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/3a52ac.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_3a52ac() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_3a52ac(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_3a52ac(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_3a52ac(); } diff --git a/test/tint/builtins/gen/literal/textureStore/3bb7a1.wgsl b/test/tint/builtins/gen/literal/textureStore/3bb7a1.wgsl index 973de1ba02..d1a8819f3e 100644 --- a/test/tint/builtins/gen/literal/textureStore/3bb7a1.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/3bb7a1.wgsl @@ -29,18 +29,18 @@ fn textureStore_3bb7a1() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_3bb7a1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_3bb7a1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_3bb7a1(); } diff --git a/test/tint/builtins/gen/literal/textureStore/3bb7a1.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/3bb7a1.wgsl.expected.wgsl index ccb304d97c..b1b1b8dcdd 100644 --- a/test/tint/builtins/gen/literal/textureStore/3bb7a1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/3bb7a1.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_3bb7a1() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_3bb7a1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_3bb7a1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_3bb7a1(); } diff --git a/test/tint/builtins/gen/literal/textureStore/3bec15.wgsl b/test/tint/builtins/gen/literal/textureStore/3bec15.wgsl index 1c7fe6a038..687108a1d4 100644 --- a/test/tint/builtins/gen/literal/textureStore/3bec15.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/3bec15.wgsl @@ -29,18 +29,18 @@ fn textureStore_3bec15() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_3bec15(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_3bec15(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_3bec15(); } diff --git a/test/tint/builtins/gen/literal/textureStore/3bec15.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/3bec15.wgsl.expected.wgsl index c594be03d2..96e2996ef8 100644 --- a/test/tint/builtins/gen/literal/textureStore/3bec15.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/3bec15.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_3bec15() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_3bec15(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_3bec15(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_3bec15(); } diff --git a/test/tint/builtins/gen/literal/textureStore/441ba8.wgsl b/test/tint/builtins/gen/literal/textureStore/441ba8.wgsl index 9669e513d1..ff6c199b53 100644 --- a/test/tint/builtins/gen/literal/textureStore/441ba8.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/441ba8.wgsl @@ -29,18 +29,18 @@ fn textureStore_441ba8() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_441ba8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_441ba8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_441ba8(); } diff --git a/test/tint/builtins/gen/literal/textureStore/441ba8.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/441ba8.wgsl.expected.wgsl index b59255a55d..6014c40901 100644 --- a/test/tint/builtins/gen/literal/textureStore/441ba8.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/441ba8.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_441ba8() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_441ba8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_441ba8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_441ba8(); } diff --git a/test/tint/builtins/gen/literal/textureStore/4fc057.wgsl b/test/tint/builtins/gen/literal/textureStore/4fc057.wgsl index 23c58490c9..32988ef0c3 100644 --- a/test/tint/builtins/gen/literal/textureStore/4fc057.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/4fc057.wgsl @@ -29,18 +29,18 @@ fn textureStore_4fc057() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_4fc057(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_4fc057(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_4fc057(); } diff --git a/test/tint/builtins/gen/literal/textureStore/4fc057.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/4fc057.wgsl.expected.wgsl index 26a0018f20..a599ff7aa4 100644 --- a/test/tint/builtins/gen/literal/textureStore/4fc057.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/4fc057.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_4fc057() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_4fc057(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_4fc057(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_4fc057(); } diff --git a/test/tint/builtins/gen/literal/textureStore/5a2f8f.wgsl b/test/tint/builtins/gen/literal/textureStore/5a2f8f.wgsl index f0ceb8f192..2f1873f842 100644 --- a/test/tint/builtins/gen/literal/textureStore/5a2f8f.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/5a2f8f.wgsl @@ -29,18 +29,18 @@ fn textureStore_5a2f8f() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_5a2f8f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_5a2f8f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_5a2f8f(); } diff --git a/test/tint/builtins/gen/literal/textureStore/5a2f8f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/5a2f8f.wgsl.expected.wgsl index 13d97f40aa..9e4b11f69d 100644 --- a/test/tint/builtins/gen/literal/textureStore/5a2f8f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/5a2f8f.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_5a2f8f() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_5a2f8f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_5a2f8f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_5a2f8f(); } diff --git a/test/tint/builtins/gen/literal/textureStore/60975f.wgsl b/test/tint/builtins/gen/literal/textureStore/60975f.wgsl index 8ad1e46092..879c1f4343 100644 --- a/test/tint/builtins/gen/literal/textureStore/60975f.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/60975f.wgsl @@ -29,18 +29,18 @@ fn textureStore_60975f() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_60975f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_60975f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_60975f(); } diff --git a/test/tint/builtins/gen/literal/textureStore/60975f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/60975f.wgsl.expected.wgsl index 47cdd347a1..c723d57dcd 100644 --- a/test/tint/builtins/gen/literal/textureStore/60975f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/60975f.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_60975f() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_60975f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_60975f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_60975f(); } diff --git a/test/tint/builtins/gen/literal/textureStore/682fd6.wgsl b/test/tint/builtins/gen/literal/textureStore/682fd6.wgsl index fefa207151..551f5d7fd6 100644 --- a/test/tint/builtins/gen/literal/textureStore/682fd6.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/682fd6.wgsl @@ -29,18 +29,18 @@ fn textureStore_682fd6() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_682fd6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_682fd6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_682fd6(); } diff --git a/test/tint/builtins/gen/literal/textureStore/682fd6.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/682fd6.wgsl.expected.wgsl index 20603cc7b1..15cae1d748 100644 --- a/test/tint/builtins/gen/literal/textureStore/682fd6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/682fd6.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_682fd6() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_682fd6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_682fd6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_682fd6(); } diff --git a/test/tint/builtins/gen/literal/textureStore/6b75c3.wgsl b/test/tint/builtins/gen/literal/textureStore/6b75c3.wgsl index ebceb5517e..3d991ae45e 100644 --- a/test/tint/builtins/gen/literal/textureStore/6b75c3.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/6b75c3.wgsl @@ -29,18 +29,18 @@ fn textureStore_6b75c3() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_6b75c3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_6b75c3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_6b75c3(); } diff --git a/test/tint/builtins/gen/literal/textureStore/6b75c3.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/6b75c3.wgsl.expected.wgsl index cd827a3990..da091c3ab6 100644 --- a/test/tint/builtins/gen/literal/textureStore/6b75c3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/6b75c3.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_6b75c3() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_6b75c3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_6b75c3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_6b75c3(); } diff --git a/test/tint/builtins/gen/literal/textureStore/6b80d2.wgsl b/test/tint/builtins/gen/literal/textureStore/6b80d2.wgsl index ab22858b3f..ca34d140b5 100644 --- a/test/tint/builtins/gen/literal/textureStore/6b80d2.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/6b80d2.wgsl @@ -29,18 +29,18 @@ fn textureStore_6b80d2() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_6b80d2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_6b80d2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_6b80d2(); } diff --git a/test/tint/builtins/gen/literal/textureStore/6b80d2.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/6b80d2.wgsl.expected.wgsl index e7efff2d8e..85e0231b1a 100644 --- a/test/tint/builtins/gen/literal/textureStore/6b80d2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/6b80d2.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_6b80d2() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_6b80d2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_6b80d2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_6b80d2(); } diff --git a/test/tint/builtins/gen/literal/textureStore/6cff2e.wgsl b/test/tint/builtins/gen/literal/textureStore/6cff2e.wgsl index f00cc003a0..3f6d4ad3e5 100644 --- a/test/tint/builtins/gen/literal/textureStore/6cff2e.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/6cff2e.wgsl @@ -29,18 +29,18 @@ fn textureStore_6cff2e() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_6cff2e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_6cff2e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_6cff2e(); } diff --git a/test/tint/builtins/gen/literal/textureStore/6cff2e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/6cff2e.wgsl.expected.wgsl index 4f43b983ec..bc09df811f 100644 --- a/test/tint/builtins/gen/literal/textureStore/6cff2e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/6cff2e.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_6cff2e() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_6cff2e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_6cff2e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_6cff2e(); } diff --git a/test/tint/builtins/gen/literal/textureStore/6da692.wgsl b/test/tint/builtins/gen/literal/textureStore/6da692.wgsl index ca7410c9d4..d1561ce9c7 100644 --- a/test/tint/builtins/gen/literal/textureStore/6da692.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/6da692.wgsl @@ -29,18 +29,18 @@ fn textureStore_6da692() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_6da692(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_6da692(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_6da692(); } diff --git a/test/tint/builtins/gen/literal/textureStore/6da692.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/6da692.wgsl.expected.wgsl index 2497a692c8..ba262d3bf6 100644 --- a/test/tint/builtins/gen/literal/textureStore/6da692.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/6da692.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_6da692() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_6da692(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_6da692(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_6da692(); } diff --git a/test/tint/builtins/gen/literal/textureStore/731349.wgsl b/test/tint/builtins/gen/literal/textureStore/731349.wgsl index c8f81d62ce..b8cda8e2cd 100644 --- a/test/tint/builtins/gen/literal/textureStore/731349.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/731349.wgsl @@ -29,18 +29,18 @@ fn textureStore_731349() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_731349(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_731349(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_731349(); } diff --git a/test/tint/builtins/gen/literal/textureStore/731349.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/731349.wgsl.expected.wgsl index d5466d87c5..b659a87da6 100644 --- a/test/tint/builtins/gen/literal/textureStore/731349.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/731349.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_731349() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_731349(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_731349(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_731349(); } diff --git a/test/tint/builtins/gen/literal/textureStore/752da6.wgsl b/test/tint/builtins/gen/literal/textureStore/752da6.wgsl index e2b0734486..65b7216e7f 100644 --- a/test/tint/builtins/gen/literal/textureStore/752da6.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/752da6.wgsl @@ -29,18 +29,18 @@ fn textureStore_752da6() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_752da6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_752da6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_752da6(); } diff --git a/test/tint/builtins/gen/literal/textureStore/752da6.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/752da6.wgsl.expected.wgsl index e029549a8a..9f4e06d7cd 100644 --- a/test/tint/builtins/gen/literal/textureStore/752da6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/752da6.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_752da6() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_752da6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_752da6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_752da6(); } diff --git a/test/tint/builtins/gen/literal/textureStore/77c0ae.wgsl b/test/tint/builtins/gen/literal/textureStore/77c0ae.wgsl index a5b9a55759..bf17f8d5b2 100644 --- a/test/tint/builtins/gen/literal/textureStore/77c0ae.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/77c0ae.wgsl @@ -29,18 +29,18 @@ fn textureStore_77c0ae() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_77c0ae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_77c0ae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_77c0ae(); } diff --git a/test/tint/builtins/gen/literal/textureStore/77c0ae.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/77c0ae.wgsl.expected.wgsl index 56cf0793e5..ddc73be612 100644 --- a/test/tint/builtins/gen/literal/textureStore/77c0ae.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/77c0ae.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_77c0ae() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_77c0ae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_77c0ae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_77c0ae(); } diff --git a/test/tint/builtins/gen/literal/textureStore/7cec8d.wgsl b/test/tint/builtins/gen/literal/textureStore/7cec8d.wgsl index 282ed90943..368bfcd4d0 100644 --- a/test/tint/builtins/gen/literal/textureStore/7cec8d.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/7cec8d.wgsl @@ -29,18 +29,18 @@ fn textureStore_7cec8d() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_7cec8d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_7cec8d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_7cec8d(); } diff --git a/test/tint/builtins/gen/literal/textureStore/7cec8d.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/7cec8d.wgsl.expected.wgsl index 89ed161d72..5218558358 100644 --- a/test/tint/builtins/gen/literal/textureStore/7cec8d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/7cec8d.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_7cec8d() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_7cec8d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_7cec8d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_7cec8d(); } diff --git a/test/tint/builtins/gen/literal/textureStore/7f7fae.wgsl b/test/tint/builtins/gen/literal/textureStore/7f7fae.wgsl index 8b5d0dd6f0..6a205dd472 100644 --- a/test/tint/builtins/gen/literal/textureStore/7f7fae.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/7f7fae.wgsl @@ -29,18 +29,18 @@ fn textureStore_7f7fae() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_7f7fae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_7f7fae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_7f7fae(); } diff --git a/test/tint/builtins/gen/literal/textureStore/7f7fae.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/7f7fae.wgsl.expected.wgsl index 438123c898..eba8d52748 100644 --- a/test/tint/builtins/gen/literal/textureStore/7f7fae.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/7f7fae.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_7f7fae() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_7f7fae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_7f7fae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_7f7fae(); } diff --git a/test/tint/builtins/gen/literal/textureStore/804942.wgsl b/test/tint/builtins/gen/literal/textureStore/804942.wgsl index 4024631b8f..cc50e1b0f5 100644 --- a/test/tint/builtins/gen/literal/textureStore/804942.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/804942.wgsl @@ -29,18 +29,18 @@ fn textureStore_804942() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_804942(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_804942(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_804942(); } diff --git a/test/tint/builtins/gen/literal/textureStore/804942.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/804942.wgsl.expected.wgsl index f4a325c7ad..06f7057e20 100644 --- a/test/tint/builtins/gen/literal/textureStore/804942.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/804942.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_804942() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_804942(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_804942(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_804942(); } diff --git a/test/tint/builtins/gen/literal/textureStore/805dae.wgsl b/test/tint/builtins/gen/literal/textureStore/805dae.wgsl index 65e44204f5..3ea3e2daa1 100644 --- a/test/tint/builtins/gen/literal/textureStore/805dae.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/805dae.wgsl @@ -29,18 +29,18 @@ fn textureStore_805dae() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_805dae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_805dae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_805dae(); } diff --git a/test/tint/builtins/gen/literal/textureStore/805dae.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/805dae.wgsl.expected.wgsl index 667452dffa..7bc50679a5 100644 --- a/test/tint/builtins/gen/literal/textureStore/805dae.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/805dae.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_805dae() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_805dae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_805dae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_805dae(); } diff --git a/test/tint/builtins/gen/literal/textureStore/83bcc1.wgsl b/test/tint/builtins/gen/literal/textureStore/83bcc1.wgsl index 55d29c6633..fd88fc198e 100644 --- a/test/tint/builtins/gen/literal/textureStore/83bcc1.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/83bcc1.wgsl @@ -29,18 +29,18 @@ fn textureStore_83bcc1() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_83bcc1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_83bcc1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_83bcc1(); } diff --git a/test/tint/builtins/gen/literal/textureStore/83bcc1.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/83bcc1.wgsl.expected.wgsl index f0ee8634d7..e7e464edf7 100644 --- a/test/tint/builtins/gen/literal/textureStore/83bcc1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/83bcc1.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_83bcc1() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_83bcc1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_83bcc1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_83bcc1(); } diff --git a/test/tint/builtins/gen/literal/textureStore/872747.wgsl b/test/tint/builtins/gen/literal/textureStore/872747.wgsl index 98cceadede..15b1772d22 100644 --- a/test/tint/builtins/gen/literal/textureStore/872747.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/872747.wgsl @@ -29,18 +29,18 @@ fn textureStore_872747() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_872747(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_872747(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_872747(); } diff --git a/test/tint/builtins/gen/literal/textureStore/872747.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/872747.wgsl.expected.wgsl index b5c291414e..50b71065a2 100644 --- a/test/tint/builtins/gen/literal/textureStore/872747.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/872747.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_872747() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_872747(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_872747(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_872747(); } diff --git a/test/tint/builtins/gen/literal/textureStore/8e0479.wgsl b/test/tint/builtins/gen/literal/textureStore/8e0479.wgsl index 271ed67996..6f8b386266 100644 --- a/test/tint/builtins/gen/literal/textureStore/8e0479.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/8e0479.wgsl @@ -29,18 +29,18 @@ fn textureStore_8e0479() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_8e0479(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_8e0479(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_8e0479(); } diff --git a/test/tint/builtins/gen/literal/textureStore/8e0479.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/8e0479.wgsl.expected.wgsl index 07408ae262..c831783a19 100644 --- a/test/tint/builtins/gen/literal/textureStore/8e0479.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/8e0479.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_8e0479() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_8e0479(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_8e0479(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_8e0479(); } diff --git a/test/tint/builtins/gen/literal/textureStore/8f71a1.wgsl b/test/tint/builtins/gen/literal/textureStore/8f71a1.wgsl index 4d840ced71..5f53a96109 100644 --- a/test/tint/builtins/gen/literal/textureStore/8f71a1.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/8f71a1.wgsl @@ -29,18 +29,18 @@ fn textureStore_8f71a1() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_8f71a1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_8f71a1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_8f71a1(); } diff --git a/test/tint/builtins/gen/literal/textureStore/8f71a1.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/8f71a1.wgsl.expected.wgsl index 9bacd31188..5ce5918b48 100644 --- a/test/tint/builtins/gen/literal/textureStore/8f71a1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/8f71a1.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_8f71a1() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_8f71a1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_8f71a1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_8f71a1(); } diff --git a/test/tint/builtins/gen/literal/textureStore/969534.wgsl b/test/tint/builtins/gen/literal/textureStore/969534.wgsl index d73a34d575..809d51e77a 100644 --- a/test/tint/builtins/gen/literal/textureStore/969534.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/969534.wgsl @@ -29,18 +29,18 @@ fn textureStore_969534() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_969534(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_969534(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_969534(); } diff --git a/test/tint/builtins/gen/literal/textureStore/969534.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/969534.wgsl.expected.wgsl index 467cbdad03..41ae9063d0 100644 --- a/test/tint/builtins/gen/literal/textureStore/969534.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/969534.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_969534() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_969534(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_969534(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_969534(); } diff --git a/test/tint/builtins/gen/literal/textureStore/9a3ecc.wgsl b/test/tint/builtins/gen/literal/textureStore/9a3ecc.wgsl index 72656e1d40..513ef4e8f3 100644 --- a/test/tint/builtins/gen/literal/textureStore/9a3ecc.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/9a3ecc.wgsl @@ -29,18 +29,18 @@ fn textureStore_9a3ecc() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_9a3ecc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_9a3ecc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_9a3ecc(); } diff --git a/test/tint/builtins/gen/literal/textureStore/9a3ecc.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/9a3ecc.wgsl.expected.wgsl index 6fe66cb25f..072ae7012d 100644 --- a/test/tint/builtins/gen/literal/textureStore/9a3ecc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/9a3ecc.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_9a3ecc() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_9a3ecc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_9a3ecc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_9a3ecc(); } diff --git a/test/tint/builtins/gen/literal/textureStore/9d9cd5.wgsl b/test/tint/builtins/gen/literal/textureStore/9d9cd5.wgsl index 484a3cd101..ee264b2580 100644 --- a/test/tint/builtins/gen/literal/textureStore/9d9cd5.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/9d9cd5.wgsl @@ -29,18 +29,18 @@ fn textureStore_9d9cd5() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_9d9cd5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_9d9cd5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_9d9cd5(); } diff --git a/test/tint/builtins/gen/literal/textureStore/9d9cd5.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/9d9cd5.wgsl.expected.wgsl index 346f01068b..f321044a7e 100644 --- a/test/tint/builtins/gen/literal/textureStore/9d9cd5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/9d9cd5.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_9d9cd5() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_9d9cd5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_9d9cd5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_9d9cd5(); } diff --git a/test/tint/builtins/gen/literal/textureStore/9e3ec5.wgsl b/test/tint/builtins/gen/literal/textureStore/9e3ec5.wgsl index da9282eb8e..1f6eefc98c 100644 --- a/test/tint/builtins/gen/literal/textureStore/9e3ec5.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/9e3ec5.wgsl @@ -29,18 +29,18 @@ fn textureStore_9e3ec5() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_9e3ec5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_9e3ec5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_9e3ec5(); } diff --git a/test/tint/builtins/gen/literal/textureStore/9e3ec5.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/9e3ec5.wgsl.expected.wgsl index aaa8bf6a56..b2822b3906 100644 --- a/test/tint/builtins/gen/literal/textureStore/9e3ec5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/9e3ec5.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_9e3ec5() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_9e3ec5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_9e3ec5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_9e3ec5(); } diff --git a/test/tint/builtins/gen/literal/textureStore/ac67aa.wgsl b/test/tint/builtins/gen/literal/textureStore/ac67aa.wgsl index 42d2b3021e..24023d5d81 100644 --- a/test/tint/builtins/gen/literal/textureStore/ac67aa.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/ac67aa.wgsl @@ -29,18 +29,18 @@ fn textureStore_ac67aa() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_ac67aa(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_ac67aa(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_ac67aa(); } diff --git a/test/tint/builtins/gen/literal/textureStore/ac67aa.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/ac67aa.wgsl.expected.wgsl index 21d0d22720..c3095f6ba5 100644 --- a/test/tint/builtins/gen/literal/textureStore/ac67aa.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/ac67aa.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_ac67aa() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_ac67aa(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_ac67aa(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_ac67aa(); } diff --git a/test/tint/builtins/gen/literal/textureStore/b706b1.wgsl b/test/tint/builtins/gen/literal/textureStore/b706b1.wgsl index 949c9324aa..bcc47daca1 100644 --- a/test/tint/builtins/gen/literal/textureStore/b706b1.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/b706b1.wgsl @@ -29,18 +29,18 @@ fn textureStore_b706b1() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_b706b1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_b706b1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_b706b1(); } diff --git a/test/tint/builtins/gen/literal/textureStore/b706b1.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/b706b1.wgsl.expected.wgsl index 7b77dc85ef..3c379e9ccb 100644 --- a/test/tint/builtins/gen/literal/textureStore/b706b1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/b706b1.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_b706b1() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_b706b1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_b706b1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_b706b1(); } diff --git a/test/tint/builtins/gen/literal/textureStore/bbcb7f.wgsl b/test/tint/builtins/gen/literal/textureStore/bbcb7f.wgsl index ee04924b4d..f53663a7d9 100644 --- a/test/tint/builtins/gen/literal/textureStore/bbcb7f.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/bbcb7f.wgsl @@ -29,18 +29,18 @@ fn textureStore_bbcb7f() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_bbcb7f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_bbcb7f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_bbcb7f(); } diff --git a/test/tint/builtins/gen/literal/textureStore/bbcb7f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/bbcb7f.wgsl.expected.wgsl index 8c4bb4df15..3f241474b8 100644 --- a/test/tint/builtins/gen/literal/textureStore/bbcb7f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/bbcb7f.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_bbcb7f() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_bbcb7f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_bbcb7f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_bbcb7f(); } diff --git a/test/tint/builtins/gen/literal/textureStore/be6e30.wgsl b/test/tint/builtins/gen/literal/textureStore/be6e30.wgsl index c192581766..6546e46db6 100644 --- a/test/tint/builtins/gen/literal/textureStore/be6e30.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/be6e30.wgsl @@ -29,18 +29,18 @@ fn textureStore_be6e30() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_be6e30(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_be6e30(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_be6e30(); } diff --git a/test/tint/builtins/gen/literal/textureStore/be6e30.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/be6e30.wgsl.expected.wgsl index 3a4c747e01..cf77394b7f 100644 --- a/test/tint/builtins/gen/literal/textureStore/be6e30.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/be6e30.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_be6e30() { textureStore(arg_0, vec2(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_be6e30(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_be6e30(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_be6e30(); } diff --git a/test/tint/builtins/gen/literal/textureStore/bf775c.wgsl b/test/tint/builtins/gen/literal/textureStore/bf775c.wgsl index e8a7f1443f..bdb2d08104 100644 --- a/test/tint/builtins/gen/literal/textureStore/bf775c.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/bf775c.wgsl @@ -29,18 +29,18 @@ fn textureStore_bf775c() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_bf775c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_bf775c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_bf775c(); } diff --git a/test/tint/builtins/gen/literal/textureStore/bf775c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/bf775c.wgsl.expected.wgsl index db5d80e7be..47b4f23cd7 100644 --- a/test/tint/builtins/gen/literal/textureStore/bf775c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/bf775c.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_bf775c() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_bf775c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_bf775c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_bf775c(); } diff --git a/test/tint/builtins/gen/literal/textureStore/c5af1e.wgsl b/test/tint/builtins/gen/literal/textureStore/c5af1e.wgsl index 716f4917c0..4c10f224fa 100644 --- a/test/tint/builtins/gen/literal/textureStore/c5af1e.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/c5af1e.wgsl @@ -29,18 +29,18 @@ fn textureStore_c5af1e() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_c5af1e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_c5af1e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_c5af1e(); } diff --git a/test/tint/builtins/gen/literal/textureStore/c5af1e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/c5af1e.wgsl.expected.wgsl index 02c2ef8e18..003aee25c3 100644 --- a/test/tint/builtins/gen/literal/textureStore/c5af1e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/c5af1e.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_c5af1e() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_c5af1e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_c5af1e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_c5af1e(); } diff --git a/test/tint/builtins/gen/literal/textureStore/c863be.wgsl b/test/tint/builtins/gen/literal/textureStore/c863be.wgsl index abb287f903..b92783586e 100644 --- a/test/tint/builtins/gen/literal/textureStore/c863be.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/c863be.wgsl @@ -29,18 +29,18 @@ fn textureStore_c863be() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_c863be(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_c863be(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_c863be(); } diff --git a/test/tint/builtins/gen/literal/textureStore/c863be.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/c863be.wgsl.expected.wgsl index 46b5a6920c..7c6f8acccd 100644 --- a/test/tint/builtins/gen/literal/textureStore/c863be.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/c863be.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_c863be() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_c863be(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_c863be(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_c863be(); } diff --git a/test/tint/builtins/gen/literal/textureStore/d73b5c.wgsl b/test/tint/builtins/gen/literal/textureStore/d73b5c.wgsl index 44468a81cd..5b73aef900 100644 --- a/test/tint/builtins/gen/literal/textureStore/d73b5c.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/d73b5c.wgsl @@ -29,18 +29,18 @@ fn textureStore_d73b5c() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_d73b5c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_d73b5c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_d73b5c(); } diff --git a/test/tint/builtins/gen/literal/textureStore/d73b5c.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/d73b5c.wgsl.expected.wgsl index 2b09cbc70e..bed8187fad 100644 --- a/test/tint/builtins/gen/literal/textureStore/d73b5c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/d73b5c.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_d73b5c() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_d73b5c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_d73b5c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_d73b5c(); } diff --git a/test/tint/builtins/gen/literal/textureStore/dd7d81.wgsl b/test/tint/builtins/gen/literal/textureStore/dd7d81.wgsl index 8ea8125016..b1cd4fa131 100644 --- a/test/tint/builtins/gen/literal/textureStore/dd7d81.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/dd7d81.wgsl @@ -29,18 +29,18 @@ fn textureStore_dd7d81() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_dd7d81(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_dd7d81(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_dd7d81(); } diff --git a/test/tint/builtins/gen/literal/textureStore/dd7d81.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/dd7d81.wgsl.expected.wgsl index f7f4bc1ec9..4c1f5293ad 100644 --- a/test/tint/builtins/gen/literal/textureStore/dd7d81.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/dd7d81.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_dd7d81() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_dd7d81(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_dd7d81(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_dd7d81(); } diff --git a/test/tint/builtins/gen/literal/textureStore/dde364.wgsl b/test/tint/builtins/gen/literal/textureStore/dde364.wgsl index e09a8e5c01..93f5a328fe 100644 --- a/test/tint/builtins/gen/literal/textureStore/dde364.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/dde364.wgsl @@ -29,18 +29,18 @@ fn textureStore_dde364() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_dde364(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_dde364(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_dde364(); } diff --git a/test/tint/builtins/gen/literal/textureStore/dde364.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/dde364.wgsl.expected.wgsl index 044b09d03d..f7dc0c1d2d 100644 --- a/test/tint/builtins/gen/literal/textureStore/dde364.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/dde364.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_dde364() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_dde364(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_dde364(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_dde364(); } diff --git a/test/tint/builtins/gen/literal/textureStore/e885e8.wgsl b/test/tint/builtins/gen/literal/textureStore/e885e8.wgsl index a6706d5062..26897583aa 100644 --- a/test/tint/builtins/gen/literal/textureStore/e885e8.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/e885e8.wgsl @@ -29,18 +29,18 @@ fn textureStore_e885e8() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_e885e8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_e885e8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_e885e8(); } diff --git a/test/tint/builtins/gen/literal/textureStore/e885e8.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/e885e8.wgsl.expected.wgsl index eac4ea6fbe..f7b3caad6c 100644 --- a/test/tint/builtins/gen/literal/textureStore/e885e8.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/e885e8.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_e885e8() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_e885e8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_e885e8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_e885e8(); } diff --git a/test/tint/builtins/gen/literal/textureStore/eb702f.wgsl b/test/tint/builtins/gen/literal/textureStore/eb702f.wgsl index 916fc32227..5e80ec54a1 100644 --- a/test/tint/builtins/gen/literal/textureStore/eb702f.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/eb702f.wgsl @@ -29,18 +29,18 @@ fn textureStore_eb702f() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_eb702f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_eb702f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_eb702f(); } diff --git a/test/tint/builtins/gen/literal/textureStore/eb702f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/eb702f.wgsl.expected.wgsl index c2b8653104..0e86ad2615 100644 --- a/test/tint/builtins/gen/literal/textureStore/eb702f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/eb702f.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_eb702f() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_eb702f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_eb702f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_eb702f(); } diff --git a/test/tint/builtins/gen/literal/textureStore/eb78b9.wgsl b/test/tint/builtins/gen/literal/textureStore/eb78b9.wgsl index 6d0e377bab..4888ed204d 100644 --- a/test/tint/builtins/gen/literal/textureStore/eb78b9.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/eb78b9.wgsl @@ -29,18 +29,18 @@ fn textureStore_eb78b9() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_eb78b9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_eb78b9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_eb78b9(); } diff --git a/test/tint/builtins/gen/literal/textureStore/eb78b9.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/eb78b9.wgsl.expected.wgsl index 09472aed9a..c200bb2954 100644 --- a/test/tint/builtins/gen/literal/textureStore/eb78b9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/eb78b9.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_eb78b9() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_eb78b9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_eb78b9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_eb78b9(); } diff --git a/test/tint/builtins/gen/literal/textureStore/ee6acc.wgsl b/test/tint/builtins/gen/literal/textureStore/ee6acc.wgsl index a5b15c1aa2..5be75a6ecf 100644 --- a/test/tint/builtins/gen/literal/textureStore/ee6acc.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/ee6acc.wgsl @@ -29,18 +29,18 @@ fn textureStore_ee6acc() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_ee6acc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_ee6acc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_ee6acc(); } diff --git a/test/tint/builtins/gen/literal/textureStore/ee6acc.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/ee6acc.wgsl.expected.wgsl index 8b5b0ab80e..377310e4b5 100644 --- a/test/tint/builtins/gen/literal/textureStore/ee6acc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/ee6acc.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_ee6acc() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_ee6acc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_ee6acc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_ee6acc(); } diff --git a/test/tint/builtins/gen/literal/textureStore/ef9f2f.wgsl b/test/tint/builtins/gen/literal/textureStore/ef9f2f.wgsl index b3effb6bb4..d2a3935b86 100644 --- a/test/tint/builtins/gen/literal/textureStore/ef9f2f.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/ef9f2f.wgsl @@ -29,18 +29,18 @@ fn textureStore_ef9f2f() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_ef9f2f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_ef9f2f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_ef9f2f(); } diff --git a/test/tint/builtins/gen/literal/textureStore/ef9f2f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/ef9f2f.wgsl.expected.wgsl index 72cb6d0b96..9a0b5cb95b 100644 --- a/test/tint/builtins/gen/literal/textureStore/ef9f2f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/ef9f2f.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_ef9f2f() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_ef9f2f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_ef9f2f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_ef9f2f(); } diff --git a/test/tint/builtins/gen/literal/textureStore/f8dead.wgsl b/test/tint/builtins/gen/literal/textureStore/f8dead.wgsl index b49ebc39fc..f3054ef637 100644 --- a/test/tint/builtins/gen/literal/textureStore/f8dead.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/f8dead.wgsl @@ -29,18 +29,18 @@ fn textureStore_f8dead() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_f8dead(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_f8dead(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_f8dead(); } diff --git a/test/tint/builtins/gen/literal/textureStore/f8dead.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/f8dead.wgsl.expected.wgsl index eabfbca22d..450fd25478 100644 --- a/test/tint/builtins/gen/literal/textureStore/f8dead.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/f8dead.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_f8dead() { textureStore(arg_0, vec3(), vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_f8dead(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_f8dead(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_f8dead(); } diff --git a/test/tint/builtins/gen/literal/textureStore/f9be83.wgsl b/test/tint/builtins/gen/literal/textureStore/f9be83.wgsl index cb34f7a636..5677404c79 100644 --- a/test/tint/builtins/gen/literal/textureStore/f9be83.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/f9be83.wgsl @@ -29,18 +29,18 @@ fn textureStore_f9be83() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_f9be83(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_f9be83(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_f9be83(); } diff --git a/test/tint/builtins/gen/literal/textureStore/f9be83.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/f9be83.wgsl.expected.wgsl index c6bb3c4846..0b0ece1beb 100644 --- a/test/tint/builtins/gen/literal/textureStore/f9be83.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/f9be83.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_f9be83() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_f9be83(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_f9be83(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_f9be83(); } diff --git a/test/tint/builtins/gen/literal/textureStore/fb9a8f.wgsl b/test/tint/builtins/gen/literal/textureStore/fb9a8f.wgsl index fa69110982..318638537f 100644 --- a/test/tint/builtins/gen/literal/textureStore/fb9a8f.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/fb9a8f.wgsl @@ -29,18 +29,18 @@ fn textureStore_fb9a8f() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_fb9a8f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_fb9a8f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_fb9a8f(); } diff --git a/test/tint/builtins/gen/literal/textureStore/fb9a8f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/fb9a8f.wgsl.expected.wgsl index 27aa300648..e1b6643388 100644 --- a/test/tint/builtins/gen/literal/textureStore/fb9a8f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/fb9a8f.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_fb9a8f() { textureStore(arg_0, 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_fb9a8f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_fb9a8f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_fb9a8f(); } diff --git a/test/tint/builtins/gen/literal/textureStore/fbf53f.wgsl b/test/tint/builtins/gen/literal/textureStore/fbf53f.wgsl index 541f45c9b3..b65045b1a8 100644 --- a/test/tint/builtins/gen/literal/textureStore/fbf53f.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/fbf53f.wgsl @@ -29,18 +29,18 @@ fn textureStore_fbf53f() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_fbf53f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_fbf53f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_fbf53f(); } diff --git a/test/tint/builtins/gen/literal/textureStore/fbf53f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/textureStore/fbf53f.wgsl.expected.wgsl index 8ee531692e..dd790f2c13 100644 --- a/test/tint/builtins/gen/literal/textureStore/fbf53f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/textureStore/fbf53f.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureStore_fbf53f() { textureStore(arg_0, vec2(), 1, vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_fbf53f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_fbf53f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_fbf53f(); } diff --git a/test/tint/builtins/gen/literal/transpose/2585cd.wgsl b/test/tint/builtins/gen/literal/transpose/2585cd.wgsl index c5684bb161..c8f4f211de 100644 --- a/test/tint/builtins/gen/literal/transpose/2585cd.wgsl +++ b/test/tint/builtins/gen/literal/transpose/2585cd.wgsl @@ -28,18 +28,18 @@ fn transpose_2585cd() { var res: mat3x4 = transpose(mat4x3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_2585cd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_2585cd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_2585cd(); } diff --git a/test/tint/builtins/gen/literal/transpose/2585cd.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/transpose/2585cd.wgsl.expected.wgsl index e2bcbee591..56ecea9a6b 100644 --- a/test/tint/builtins/gen/literal/transpose/2585cd.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/transpose/2585cd.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn transpose_2585cd() { var res : mat3x4 = transpose(mat4x3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_2585cd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_2585cd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_2585cd(); } diff --git a/test/tint/builtins/gen/literal/transpose/31d679.wgsl b/test/tint/builtins/gen/literal/transpose/31d679.wgsl index 389fd148b6..5e9a241dd3 100644 --- a/test/tint/builtins/gen/literal/transpose/31d679.wgsl +++ b/test/tint/builtins/gen/literal/transpose/31d679.wgsl @@ -28,18 +28,18 @@ fn transpose_31d679() { var res: mat2x2 = transpose(mat2x2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_31d679(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_31d679(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_31d679(); } diff --git a/test/tint/builtins/gen/literal/transpose/31d679.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/transpose/31d679.wgsl.expected.wgsl index f588cbaf60..20089bdf37 100644 --- a/test/tint/builtins/gen/literal/transpose/31d679.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/transpose/31d679.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn transpose_31d679() { var res : mat2x2 = transpose(mat2x2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_31d679(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_31d679(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_31d679(); } diff --git a/test/tint/builtins/gen/literal/transpose/31e37e.wgsl b/test/tint/builtins/gen/literal/transpose/31e37e.wgsl index bbce3e962d..354e1ace8b 100644 --- a/test/tint/builtins/gen/literal/transpose/31e37e.wgsl +++ b/test/tint/builtins/gen/literal/transpose/31e37e.wgsl @@ -28,18 +28,18 @@ fn transpose_31e37e() { var res: mat2x4 = transpose(mat4x2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_31e37e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_31e37e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_31e37e(); } diff --git a/test/tint/builtins/gen/literal/transpose/31e37e.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/transpose/31e37e.wgsl.expected.wgsl index 3462f91963..b363af9180 100644 --- a/test/tint/builtins/gen/literal/transpose/31e37e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/transpose/31e37e.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn transpose_31e37e() { var res : mat2x4 = transpose(mat4x2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_31e37e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_31e37e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_31e37e(); } diff --git a/test/tint/builtins/gen/literal/transpose/4ce359.wgsl b/test/tint/builtins/gen/literal/transpose/4ce359.wgsl index 40aa959569..0ce9023534 100644 --- a/test/tint/builtins/gen/literal/transpose/4ce359.wgsl +++ b/test/tint/builtins/gen/literal/transpose/4ce359.wgsl @@ -28,18 +28,18 @@ fn transpose_4ce359() { var res: mat4x2 = transpose(mat2x4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_4ce359(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_4ce359(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_4ce359(); } diff --git a/test/tint/builtins/gen/literal/transpose/4ce359.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/transpose/4ce359.wgsl.expected.wgsl index a4123d5fa9..9a3d630715 100644 --- a/test/tint/builtins/gen/literal/transpose/4ce359.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/transpose/4ce359.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn transpose_4ce359() { var res : mat4x2 = transpose(mat2x4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_4ce359(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_4ce359(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_4ce359(); } diff --git a/test/tint/builtins/gen/literal/transpose/4dc9a1.wgsl b/test/tint/builtins/gen/literal/transpose/4dc9a1.wgsl index 8ff6bb92c3..9cf6f13b54 100644 --- a/test/tint/builtins/gen/literal/transpose/4dc9a1.wgsl +++ b/test/tint/builtins/gen/literal/transpose/4dc9a1.wgsl @@ -28,18 +28,18 @@ fn transpose_4dc9a1() { var res: mat3x2 = transpose(mat2x3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_4dc9a1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_4dc9a1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_4dc9a1(); } diff --git a/test/tint/builtins/gen/literal/transpose/4dc9a1.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/transpose/4dc9a1.wgsl.expected.wgsl index 9a579e0022..7d1b36f767 100644 --- a/test/tint/builtins/gen/literal/transpose/4dc9a1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/transpose/4dc9a1.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn transpose_4dc9a1() { var res : mat3x2 = transpose(mat2x3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_4dc9a1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_4dc9a1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_4dc9a1(); } diff --git a/test/tint/builtins/gen/literal/transpose/854336.wgsl b/test/tint/builtins/gen/literal/transpose/854336.wgsl index 46949b2617..d552afae0b 100644 --- a/test/tint/builtins/gen/literal/transpose/854336.wgsl +++ b/test/tint/builtins/gen/literal/transpose/854336.wgsl @@ -28,18 +28,18 @@ fn transpose_854336() { var res: mat3x3 = transpose(mat3x3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_854336(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_854336(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_854336(); } diff --git a/test/tint/builtins/gen/literal/transpose/854336.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/transpose/854336.wgsl.expected.wgsl index 9eac4c0547..e5c13cd63c 100644 --- a/test/tint/builtins/gen/literal/transpose/854336.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/transpose/854336.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn transpose_854336() { var res : mat3x3 = transpose(mat3x3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_854336(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_854336(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_854336(); } diff --git a/test/tint/builtins/gen/literal/transpose/c1b600.wgsl b/test/tint/builtins/gen/literal/transpose/c1b600.wgsl index 4030074d76..3179333f59 100644 --- a/test/tint/builtins/gen/literal/transpose/c1b600.wgsl +++ b/test/tint/builtins/gen/literal/transpose/c1b600.wgsl @@ -28,18 +28,18 @@ fn transpose_c1b600() { var res: mat4x4 = transpose(mat4x4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_c1b600(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_c1b600(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_c1b600(); } diff --git a/test/tint/builtins/gen/literal/transpose/c1b600.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/transpose/c1b600.wgsl.expected.wgsl index f391f5c3ab..a360f2a8d7 100644 --- a/test/tint/builtins/gen/literal/transpose/c1b600.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/transpose/c1b600.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn transpose_c1b600() { var res : mat4x4 = transpose(mat4x4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_c1b600(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_c1b600(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_c1b600(); } diff --git a/test/tint/builtins/gen/literal/transpose/d8f8ba.wgsl b/test/tint/builtins/gen/literal/transpose/d8f8ba.wgsl index 8c75b91764..31884e2339 100644 --- a/test/tint/builtins/gen/literal/transpose/d8f8ba.wgsl +++ b/test/tint/builtins/gen/literal/transpose/d8f8ba.wgsl @@ -28,18 +28,18 @@ fn transpose_d8f8ba() { var res: mat4x3 = transpose(mat3x4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_d8f8ba(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_d8f8ba(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_d8f8ba(); } diff --git a/test/tint/builtins/gen/literal/transpose/d8f8ba.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/transpose/d8f8ba.wgsl.expected.wgsl index e5af1d47a7..89b49c4ffe 100644 --- a/test/tint/builtins/gen/literal/transpose/d8f8ba.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/transpose/d8f8ba.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn transpose_d8f8ba() { var res : mat4x3 = transpose(mat3x4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_d8f8ba(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_d8f8ba(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_d8f8ba(); } diff --git a/test/tint/builtins/gen/literal/transpose/ed4bdc.wgsl b/test/tint/builtins/gen/literal/transpose/ed4bdc.wgsl index 72740224f2..e7263997fd 100644 --- a/test/tint/builtins/gen/literal/transpose/ed4bdc.wgsl +++ b/test/tint/builtins/gen/literal/transpose/ed4bdc.wgsl @@ -28,18 +28,18 @@ fn transpose_ed4bdc() { var res: mat2x3 = transpose(mat3x2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_ed4bdc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_ed4bdc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_ed4bdc(); } diff --git a/test/tint/builtins/gen/literal/transpose/ed4bdc.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/transpose/ed4bdc.wgsl.expected.wgsl index 462a2cf536..e1ce0ce398 100644 --- a/test/tint/builtins/gen/literal/transpose/ed4bdc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/transpose/ed4bdc.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn transpose_ed4bdc() { var res : mat2x3 = transpose(mat3x2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_ed4bdc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_ed4bdc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_ed4bdc(); } diff --git a/test/tint/builtins/gen/literal/trunc/562d05.wgsl b/test/tint/builtins/gen/literal/trunc/562d05.wgsl index 1ee6499f95..e90c537cab 100644 --- a/test/tint/builtins/gen/literal/trunc/562d05.wgsl +++ b/test/tint/builtins/gen/literal/trunc/562d05.wgsl @@ -28,18 +28,18 @@ fn trunc_562d05() { var res: vec3 = trunc(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { trunc_562d05(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { trunc_562d05(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { trunc_562d05(); } diff --git a/test/tint/builtins/gen/literal/trunc/562d05.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/trunc/562d05.wgsl.expected.wgsl index cef969738f..590a63dbe0 100644 --- a/test/tint/builtins/gen/literal/trunc/562d05.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/trunc/562d05.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn trunc_562d05() { var res : vec3 = trunc(vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { trunc_562d05(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { trunc_562d05(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { trunc_562d05(); } diff --git a/test/tint/builtins/gen/literal/trunc/e183aa.wgsl b/test/tint/builtins/gen/literal/trunc/e183aa.wgsl index a29a53e6a3..20cfe8a96c 100644 --- a/test/tint/builtins/gen/literal/trunc/e183aa.wgsl +++ b/test/tint/builtins/gen/literal/trunc/e183aa.wgsl @@ -28,18 +28,18 @@ fn trunc_e183aa() { var res: vec4 = trunc(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { trunc_e183aa(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { trunc_e183aa(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { trunc_e183aa(); } diff --git a/test/tint/builtins/gen/literal/trunc/e183aa.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/trunc/e183aa.wgsl.expected.wgsl index 94e505f668..ed1ba37d8e 100644 --- a/test/tint/builtins/gen/literal/trunc/e183aa.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/trunc/e183aa.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn trunc_e183aa() { var res : vec4 = trunc(vec4()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { trunc_e183aa(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { trunc_e183aa(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { trunc_e183aa(); } diff --git a/test/tint/builtins/gen/literal/trunc/eb83df.wgsl b/test/tint/builtins/gen/literal/trunc/eb83df.wgsl index 8297d29ea3..fba8f0d5ff 100644 --- a/test/tint/builtins/gen/literal/trunc/eb83df.wgsl +++ b/test/tint/builtins/gen/literal/trunc/eb83df.wgsl @@ -28,18 +28,18 @@ fn trunc_eb83df() { var res: f32 = trunc(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { trunc_eb83df(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { trunc_eb83df(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { trunc_eb83df(); } diff --git a/test/tint/builtins/gen/literal/trunc/eb83df.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/trunc/eb83df.wgsl.expected.wgsl index 7392b6cfc7..edede677f3 100644 --- a/test/tint/builtins/gen/literal/trunc/eb83df.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/trunc/eb83df.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn trunc_eb83df() { var res : f32 = trunc(1.0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { trunc_eb83df(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { trunc_eb83df(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { trunc_eb83df(); } diff --git a/test/tint/builtins/gen/literal/trunc/f370d3.wgsl b/test/tint/builtins/gen/literal/trunc/f370d3.wgsl index 9521b3926d..89cd3fcda0 100644 --- a/test/tint/builtins/gen/literal/trunc/f370d3.wgsl +++ b/test/tint/builtins/gen/literal/trunc/f370d3.wgsl @@ -28,18 +28,18 @@ fn trunc_f370d3() { var res: vec2 = trunc(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { trunc_f370d3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { trunc_f370d3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { trunc_f370d3(); } diff --git a/test/tint/builtins/gen/literal/trunc/f370d3.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/trunc/f370d3.wgsl.expected.wgsl index 8393d973d2..9cd166affc 100644 --- a/test/tint/builtins/gen/literal/trunc/f370d3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/trunc/f370d3.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn trunc_f370d3() { var res : vec2 = trunc(vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { trunc_f370d3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { trunc_f370d3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { trunc_f370d3(); } diff --git a/test/tint/builtins/gen/literal/unpack2x16float/32a5cf.wgsl b/test/tint/builtins/gen/literal/unpack2x16float/32a5cf.wgsl index dd782961e5..a9fa742cda 100644 --- a/test/tint/builtins/gen/literal/unpack2x16float/32a5cf.wgsl +++ b/test/tint/builtins/gen/literal/unpack2x16float/32a5cf.wgsl @@ -28,18 +28,18 @@ fn unpack2x16float_32a5cf() { var res: vec2 = unpack2x16float(1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { unpack2x16float_32a5cf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { unpack2x16float_32a5cf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { unpack2x16float_32a5cf(); } diff --git a/test/tint/builtins/gen/literal/unpack2x16float/32a5cf.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/unpack2x16float/32a5cf.wgsl.expected.wgsl index fac905879c..76d821a686 100644 --- a/test/tint/builtins/gen/literal/unpack2x16float/32a5cf.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/unpack2x16float/32a5cf.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn unpack2x16float_32a5cf() { var res : vec2 = unpack2x16float(1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { unpack2x16float_32a5cf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { unpack2x16float_32a5cf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { unpack2x16float_32a5cf(); } diff --git a/test/tint/builtins/gen/literal/unpack2x16snorm/b4aea6.wgsl b/test/tint/builtins/gen/literal/unpack2x16snorm/b4aea6.wgsl index a832d27ed4..3cfec4609f 100644 --- a/test/tint/builtins/gen/literal/unpack2x16snorm/b4aea6.wgsl +++ b/test/tint/builtins/gen/literal/unpack2x16snorm/b4aea6.wgsl @@ -28,18 +28,18 @@ fn unpack2x16snorm_b4aea6() { var res: vec2 = unpack2x16snorm(1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { unpack2x16snorm_b4aea6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { unpack2x16snorm_b4aea6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { unpack2x16snorm_b4aea6(); } diff --git a/test/tint/builtins/gen/literal/unpack2x16snorm/b4aea6.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/unpack2x16snorm/b4aea6.wgsl.expected.wgsl index a97f8754b8..24d8b1d174 100644 --- a/test/tint/builtins/gen/literal/unpack2x16snorm/b4aea6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/unpack2x16snorm/b4aea6.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn unpack2x16snorm_b4aea6() { var res : vec2 = unpack2x16snorm(1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { unpack2x16snorm_b4aea6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { unpack2x16snorm_b4aea6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { unpack2x16snorm_b4aea6(); } diff --git a/test/tint/builtins/gen/literal/unpack2x16unorm/7699c0.wgsl b/test/tint/builtins/gen/literal/unpack2x16unorm/7699c0.wgsl index 73a124e32f..e69c74cc63 100644 --- a/test/tint/builtins/gen/literal/unpack2x16unorm/7699c0.wgsl +++ b/test/tint/builtins/gen/literal/unpack2x16unorm/7699c0.wgsl @@ -28,18 +28,18 @@ fn unpack2x16unorm_7699c0() { var res: vec2 = unpack2x16unorm(1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { unpack2x16unorm_7699c0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { unpack2x16unorm_7699c0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { unpack2x16unorm_7699c0(); } diff --git a/test/tint/builtins/gen/literal/unpack2x16unorm/7699c0.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/unpack2x16unorm/7699c0.wgsl.expected.wgsl index 784f95a804..46b5d0290a 100644 --- a/test/tint/builtins/gen/literal/unpack2x16unorm/7699c0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/unpack2x16unorm/7699c0.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn unpack2x16unorm_7699c0() { var res : vec2 = unpack2x16unorm(1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { unpack2x16unorm_7699c0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { unpack2x16unorm_7699c0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { unpack2x16unorm_7699c0(); } diff --git a/test/tint/builtins/gen/literal/unpack4x8snorm/523fb3.wgsl b/test/tint/builtins/gen/literal/unpack4x8snorm/523fb3.wgsl index a6c458efc5..1800da3648 100644 --- a/test/tint/builtins/gen/literal/unpack4x8snorm/523fb3.wgsl +++ b/test/tint/builtins/gen/literal/unpack4x8snorm/523fb3.wgsl @@ -28,18 +28,18 @@ fn unpack4x8snorm_523fb3() { var res: vec4 = unpack4x8snorm(1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { unpack4x8snorm_523fb3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { unpack4x8snorm_523fb3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { unpack4x8snorm_523fb3(); } diff --git a/test/tint/builtins/gen/literal/unpack4x8snorm/523fb3.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/unpack4x8snorm/523fb3.wgsl.expected.wgsl index d3baad3594..fc1452d052 100644 --- a/test/tint/builtins/gen/literal/unpack4x8snorm/523fb3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/unpack4x8snorm/523fb3.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn unpack4x8snorm_523fb3() { var res : vec4 = unpack4x8snorm(1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { unpack4x8snorm_523fb3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { unpack4x8snorm_523fb3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { unpack4x8snorm_523fb3(); } diff --git a/test/tint/builtins/gen/literal/unpack4x8unorm/750c74.wgsl b/test/tint/builtins/gen/literal/unpack4x8unorm/750c74.wgsl index 6b3c5e7745..5bf0c3a767 100644 --- a/test/tint/builtins/gen/literal/unpack4x8unorm/750c74.wgsl +++ b/test/tint/builtins/gen/literal/unpack4x8unorm/750c74.wgsl @@ -28,18 +28,18 @@ fn unpack4x8unorm_750c74() { var res: vec4 = unpack4x8unorm(1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { unpack4x8unorm_750c74(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { unpack4x8unorm_750c74(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { unpack4x8unorm_750c74(); } diff --git a/test/tint/builtins/gen/literal/unpack4x8unorm/750c74.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/unpack4x8unorm/750c74.wgsl.expected.wgsl index bfedafb717..eeb5aa8c85 100644 --- a/test/tint/builtins/gen/literal/unpack4x8unorm/750c74.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/unpack4x8unorm/750c74.wgsl.expected.wgsl @@ -2,18 +2,18 @@ fn unpack4x8unorm_750c74() { var res : vec4 = unpack4x8unorm(1u); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { unpack4x8unorm_750c74(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { unpack4x8unorm_750c74(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { unpack4x8unorm_750c74(); } diff --git a/test/tint/builtins/gen/literal/workgroupBarrier/a17f7f.wgsl b/test/tint/builtins/gen/literal/workgroupBarrier/a17f7f.wgsl index 3b3f3272a3..c19b983ba1 100644 --- a/test/tint/builtins/gen/literal/workgroupBarrier/a17f7f.wgsl +++ b/test/tint/builtins/gen/literal/workgroupBarrier/a17f7f.wgsl @@ -28,7 +28,7 @@ fn workgroupBarrier_a17f7f() { workgroupBarrier(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { workgroupBarrier_a17f7f(); } diff --git a/test/tint/builtins/gen/literal/workgroupBarrier/a17f7f.wgsl.expected.wgsl b/test/tint/builtins/gen/literal/workgroupBarrier/a17f7f.wgsl.expected.wgsl index 34db6c85a0..377a35e3e8 100644 --- a/test/tint/builtins/gen/literal/workgroupBarrier/a17f7f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/literal/workgroupBarrier/a17f7f.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn workgroupBarrier_a17f7f() { workgroupBarrier(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { workgroupBarrier_a17f7f(); } diff --git a/test/tint/builtins/gen/var/abs/002533.wgsl b/test/tint/builtins/gen/var/abs/002533.wgsl index edf0d3e6d8..2c4ce2338f 100644 --- a/test/tint/builtins/gen/var/abs/002533.wgsl +++ b/test/tint/builtins/gen/var/abs/002533.wgsl @@ -29,18 +29,18 @@ fn abs_002533() { var res: vec4 = abs(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_002533(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_002533(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_002533(); } diff --git a/test/tint/builtins/gen/var/abs/002533.wgsl.expected.wgsl b/test/tint/builtins/gen/var/abs/002533.wgsl.expected.wgsl index d62346e859..53257d273e 100644 --- a/test/tint/builtins/gen/var/abs/002533.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/abs/002533.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn abs_002533() { var res : vec4 = abs(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_002533(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_002533(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_002533(); } diff --git a/test/tint/builtins/gen/var/abs/005174.wgsl b/test/tint/builtins/gen/var/abs/005174.wgsl index 88d62cf564..ad4d4ebb94 100644 --- a/test/tint/builtins/gen/var/abs/005174.wgsl +++ b/test/tint/builtins/gen/var/abs/005174.wgsl @@ -29,18 +29,18 @@ fn abs_005174() { var res: vec3 = abs(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_005174(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_005174(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_005174(); } diff --git a/test/tint/builtins/gen/var/abs/005174.wgsl.expected.wgsl b/test/tint/builtins/gen/var/abs/005174.wgsl.expected.wgsl index 43910f8ebe..4df9a6035f 100644 --- a/test/tint/builtins/gen/var/abs/005174.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/abs/005174.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn abs_005174() { var res : vec3 = abs(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_005174(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_005174(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_005174(); } diff --git a/test/tint/builtins/gen/var/abs/1ce782.wgsl b/test/tint/builtins/gen/var/abs/1ce782.wgsl index d1a59e8b6e..7193449a79 100644 --- a/test/tint/builtins/gen/var/abs/1ce782.wgsl +++ b/test/tint/builtins/gen/var/abs/1ce782.wgsl @@ -29,18 +29,18 @@ fn abs_1ce782() { var res: vec4 = abs(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_1ce782(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_1ce782(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_1ce782(); } diff --git a/test/tint/builtins/gen/var/abs/1ce782.wgsl.expected.wgsl b/test/tint/builtins/gen/var/abs/1ce782.wgsl.expected.wgsl index 74c2441e2b..ad8ad33f03 100644 --- a/test/tint/builtins/gen/var/abs/1ce782.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/abs/1ce782.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn abs_1ce782() { var res : vec4 = abs(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_1ce782(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_1ce782(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_1ce782(); } diff --git a/test/tint/builtins/gen/var/abs/1e9d53.wgsl b/test/tint/builtins/gen/var/abs/1e9d53.wgsl index b8c68d4488..9e58c8af23 100644 --- a/test/tint/builtins/gen/var/abs/1e9d53.wgsl +++ b/test/tint/builtins/gen/var/abs/1e9d53.wgsl @@ -29,18 +29,18 @@ fn abs_1e9d53() { var res: vec2 = abs(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_1e9d53(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_1e9d53(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_1e9d53(); } diff --git a/test/tint/builtins/gen/var/abs/1e9d53.wgsl.expected.wgsl b/test/tint/builtins/gen/var/abs/1e9d53.wgsl.expected.wgsl index c2ff64d658..40fca8606c 100644 --- a/test/tint/builtins/gen/var/abs/1e9d53.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/abs/1e9d53.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn abs_1e9d53() { var res : vec2 = abs(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_1e9d53(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_1e9d53(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_1e9d53(); } diff --git a/test/tint/builtins/gen/var/abs/467cd1.wgsl b/test/tint/builtins/gen/var/abs/467cd1.wgsl index cbc465a7fb..d6c10a185a 100644 --- a/test/tint/builtins/gen/var/abs/467cd1.wgsl +++ b/test/tint/builtins/gen/var/abs/467cd1.wgsl @@ -29,18 +29,18 @@ fn abs_467cd1() { var res: u32 = abs(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_467cd1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_467cd1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_467cd1(); } diff --git a/test/tint/builtins/gen/var/abs/467cd1.wgsl.expected.wgsl b/test/tint/builtins/gen/var/abs/467cd1.wgsl.expected.wgsl index 47ad192403..13846884f5 100644 --- a/test/tint/builtins/gen/var/abs/467cd1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/abs/467cd1.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn abs_467cd1() { var res : u32 = abs(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_467cd1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_467cd1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_467cd1(); } diff --git a/test/tint/builtins/gen/var/abs/4ad288.wgsl b/test/tint/builtins/gen/var/abs/4ad288.wgsl index 46aeeef061..04efcf8f46 100644 --- a/test/tint/builtins/gen/var/abs/4ad288.wgsl +++ b/test/tint/builtins/gen/var/abs/4ad288.wgsl @@ -29,18 +29,18 @@ fn abs_4ad288() { var res: i32 = abs(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_4ad288(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_4ad288(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_4ad288(); } diff --git a/test/tint/builtins/gen/var/abs/4ad288.wgsl.expected.wgsl b/test/tint/builtins/gen/var/abs/4ad288.wgsl.expected.wgsl index 261ea6d88d..1a9cb02f2d 100644 --- a/test/tint/builtins/gen/var/abs/4ad288.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/abs/4ad288.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn abs_4ad288() { var res : i32 = abs(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_4ad288(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_4ad288(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_4ad288(); } diff --git a/test/tint/builtins/gen/var/abs/5ad50a.wgsl b/test/tint/builtins/gen/var/abs/5ad50a.wgsl index 0d0385e33c..3ffc963fd4 100644 --- a/test/tint/builtins/gen/var/abs/5ad50a.wgsl +++ b/test/tint/builtins/gen/var/abs/5ad50a.wgsl @@ -29,18 +29,18 @@ fn abs_5ad50a() { var res: vec3 = abs(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_5ad50a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_5ad50a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_5ad50a(); } diff --git a/test/tint/builtins/gen/var/abs/5ad50a.wgsl.expected.wgsl b/test/tint/builtins/gen/var/abs/5ad50a.wgsl.expected.wgsl index c26a8c0b9a..ce94d615ab 100644 --- a/test/tint/builtins/gen/var/abs/5ad50a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/abs/5ad50a.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn abs_5ad50a() { var res : vec3 = abs(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_5ad50a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_5ad50a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_5ad50a(); } diff --git a/test/tint/builtins/gen/var/abs/7326de.wgsl b/test/tint/builtins/gen/var/abs/7326de.wgsl index 3bbe715597..67b7afa5cb 100644 --- a/test/tint/builtins/gen/var/abs/7326de.wgsl +++ b/test/tint/builtins/gen/var/abs/7326de.wgsl @@ -29,18 +29,18 @@ fn abs_7326de() { var res: vec3 = abs(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_7326de(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_7326de(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_7326de(); } diff --git a/test/tint/builtins/gen/var/abs/7326de.wgsl.expected.wgsl b/test/tint/builtins/gen/var/abs/7326de.wgsl.expected.wgsl index 312eaa1c98..c697f35a32 100644 --- a/test/tint/builtins/gen/var/abs/7326de.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/abs/7326de.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn abs_7326de() { var res : vec3 = abs(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_7326de(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_7326de(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_7326de(); } diff --git a/test/tint/builtins/gen/var/abs/7f28e6.wgsl b/test/tint/builtins/gen/var/abs/7f28e6.wgsl index 1768ce98bf..50ae79f8e0 100644 --- a/test/tint/builtins/gen/var/abs/7f28e6.wgsl +++ b/test/tint/builtins/gen/var/abs/7f28e6.wgsl @@ -29,18 +29,18 @@ fn abs_7f28e6() { var res: vec2 = abs(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_7f28e6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_7f28e6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_7f28e6(); } diff --git a/test/tint/builtins/gen/var/abs/7f28e6.wgsl.expected.wgsl b/test/tint/builtins/gen/var/abs/7f28e6.wgsl.expected.wgsl index 3d202950bc..108abf3a54 100644 --- a/test/tint/builtins/gen/var/abs/7f28e6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/abs/7f28e6.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn abs_7f28e6() { var res : vec2 = abs(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_7f28e6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_7f28e6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_7f28e6(); } diff --git a/test/tint/builtins/gen/var/abs/7faa9e.wgsl b/test/tint/builtins/gen/var/abs/7faa9e.wgsl index 49c451cd09..e9f14dd8c5 100644 --- a/test/tint/builtins/gen/var/abs/7faa9e.wgsl +++ b/test/tint/builtins/gen/var/abs/7faa9e.wgsl @@ -29,18 +29,18 @@ fn abs_7faa9e() { var res: vec2 = abs(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_7faa9e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_7faa9e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_7faa9e(); } diff --git a/test/tint/builtins/gen/var/abs/7faa9e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/abs/7faa9e.wgsl.expected.wgsl index 95ebb29b25..e20ea39a2c 100644 --- a/test/tint/builtins/gen/var/abs/7faa9e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/abs/7faa9e.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn abs_7faa9e() { var res : vec2 = abs(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_7faa9e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_7faa9e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_7faa9e(); } diff --git a/test/tint/builtins/gen/var/abs/9c80a6.wgsl b/test/tint/builtins/gen/var/abs/9c80a6.wgsl index ec9f3e2be2..8ebf2c49e9 100644 --- a/test/tint/builtins/gen/var/abs/9c80a6.wgsl +++ b/test/tint/builtins/gen/var/abs/9c80a6.wgsl @@ -29,18 +29,18 @@ fn abs_9c80a6() { var res: vec4 = abs(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_9c80a6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_9c80a6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_9c80a6(); } diff --git a/test/tint/builtins/gen/var/abs/9c80a6.wgsl.expected.wgsl b/test/tint/builtins/gen/var/abs/9c80a6.wgsl.expected.wgsl index 9fb60c89ec..50866839fc 100644 --- a/test/tint/builtins/gen/var/abs/9c80a6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/abs/9c80a6.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn abs_9c80a6() { var res : vec4 = abs(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_9c80a6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_9c80a6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_9c80a6(); } diff --git a/test/tint/builtins/gen/var/abs/b96037.wgsl b/test/tint/builtins/gen/var/abs/b96037.wgsl index 7d4df57817..6ce40d8dc1 100644 --- a/test/tint/builtins/gen/var/abs/b96037.wgsl +++ b/test/tint/builtins/gen/var/abs/b96037.wgsl @@ -29,18 +29,18 @@ fn abs_b96037() { var res: f32 = abs(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_b96037(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_b96037(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_b96037(); } diff --git a/test/tint/builtins/gen/var/abs/b96037.wgsl.expected.wgsl b/test/tint/builtins/gen/var/abs/b96037.wgsl.expected.wgsl index e77b0cbde2..8886335bfc 100644 --- a/test/tint/builtins/gen/var/abs/b96037.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/abs/b96037.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn abs_b96037() { var res : f32 = abs(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { abs_b96037(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { abs_b96037(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { abs_b96037(); } diff --git a/test/tint/builtins/gen/var/acos/489247.wgsl b/test/tint/builtins/gen/var/acos/489247.wgsl index 3fe1481a5e..65f0811bd9 100644 --- a/test/tint/builtins/gen/var/acos/489247.wgsl +++ b/test/tint/builtins/gen/var/acos/489247.wgsl @@ -29,18 +29,18 @@ fn acos_489247() { var res: f32 = acos(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { acos_489247(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { acos_489247(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { acos_489247(); } diff --git a/test/tint/builtins/gen/var/acos/489247.wgsl.expected.wgsl b/test/tint/builtins/gen/var/acos/489247.wgsl.expected.wgsl index c1cf17061d..80b99f64f5 100644 --- a/test/tint/builtins/gen/var/acos/489247.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/acos/489247.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn acos_489247() { var res : f32 = acos(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { acos_489247(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { acos_489247(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { acos_489247(); } diff --git a/test/tint/builtins/gen/var/acos/8e2acf.wgsl b/test/tint/builtins/gen/var/acos/8e2acf.wgsl index d706cf164d..b28cae58e5 100644 --- a/test/tint/builtins/gen/var/acos/8e2acf.wgsl +++ b/test/tint/builtins/gen/var/acos/8e2acf.wgsl @@ -29,18 +29,18 @@ fn acos_8e2acf() { var res: vec4 = acos(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { acos_8e2acf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { acos_8e2acf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { acos_8e2acf(); } diff --git a/test/tint/builtins/gen/var/acos/8e2acf.wgsl.expected.wgsl b/test/tint/builtins/gen/var/acos/8e2acf.wgsl.expected.wgsl index b284e35e5d..9327316eed 100644 --- a/test/tint/builtins/gen/var/acos/8e2acf.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/acos/8e2acf.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn acos_8e2acf() { var res : vec4 = acos(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { acos_8e2acf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { acos_8e2acf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { acos_8e2acf(); } diff --git a/test/tint/builtins/gen/var/acos/a610c4.wgsl b/test/tint/builtins/gen/var/acos/a610c4.wgsl index f8c535baec..cd6969bace 100644 --- a/test/tint/builtins/gen/var/acos/a610c4.wgsl +++ b/test/tint/builtins/gen/var/acos/a610c4.wgsl @@ -29,18 +29,18 @@ fn acos_a610c4() { var res: vec3 = acos(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { acos_a610c4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { acos_a610c4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { acos_a610c4(); } diff --git a/test/tint/builtins/gen/var/acos/a610c4.wgsl.expected.wgsl b/test/tint/builtins/gen/var/acos/a610c4.wgsl.expected.wgsl index fed3a9e013..9085b2659c 100644 --- a/test/tint/builtins/gen/var/acos/a610c4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/acos/a610c4.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn acos_a610c4() { var res : vec3 = acos(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { acos_a610c4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { acos_a610c4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { acos_a610c4(); } diff --git a/test/tint/builtins/gen/var/acos/dfc915.wgsl b/test/tint/builtins/gen/var/acos/dfc915.wgsl index e517978dab..0fd72f2028 100644 --- a/test/tint/builtins/gen/var/acos/dfc915.wgsl +++ b/test/tint/builtins/gen/var/acos/dfc915.wgsl @@ -29,18 +29,18 @@ fn acos_dfc915() { var res: vec2 = acos(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { acos_dfc915(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { acos_dfc915(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { acos_dfc915(); } diff --git a/test/tint/builtins/gen/var/acos/dfc915.wgsl.expected.wgsl b/test/tint/builtins/gen/var/acos/dfc915.wgsl.expected.wgsl index f1044c3858..54bdaa4f20 100644 --- a/test/tint/builtins/gen/var/acos/dfc915.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/acos/dfc915.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn acos_dfc915() { var res : vec2 = acos(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { acos_dfc915(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { acos_dfc915(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { acos_dfc915(); } diff --git a/test/tint/builtins/gen/var/all/353d6a.wgsl b/test/tint/builtins/gen/var/all/353d6a.wgsl index e443991e92..59787d6408 100644 --- a/test/tint/builtins/gen/var/all/353d6a.wgsl +++ b/test/tint/builtins/gen/var/all/353d6a.wgsl @@ -29,18 +29,18 @@ fn all_353d6a() { var res: bool = all(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { all_353d6a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { all_353d6a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { all_353d6a(); } diff --git a/test/tint/builtins/gen/var/all/353d6a.wgsl.expected.wgsl b/test/tint/builtins/gen/var/all/353d6a.wgsl.expected.wgsl index d9993dad07..ae1199f24a 100644 --- a/test/tint/builtins/gen/var/all/353d6a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/all/353d6a.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn all_353d6a() { var res : bool = all(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { all_353d6a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { all_353d6a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { all_353d6a(); } diff --git a/test/tint/builtins/gen/var/all/986c7b.wgsl b/test/tint/builtins/gen/var/all/986c7b.wgsl index 524837240f..4fbd4dcf2b 100644 --- a/test/tint/builtins/gen/var/all/986c7b.wgsl +++ b/test/tint/builtins/gen/var/all/986c7b.wgsl @@ -29,18 +29,18 @@ fn all_986c7b() { var res: bool = all(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { all_986c7b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { all_986c7b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { all_986c7b(); } diff --git a/test/tint/builtins/gen/var/all/986c7b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/all/986c7b.wgsl.expected.wgsl index 6aab44deed..eeef0ea644 100644 --- a/test/tint/builtins/gen/var/all/986c7b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/all/986c7b.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn all_986c7b() { var res : bool = all(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { all_986c7b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { all_986c7b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { all_986c7b(); } diff --git a/test/tint/builtins/gen/var/all/bd2dba.wgsl b/test/tint/builtins/gen/var/all/bd2dba.wgsl index 2383e0d6da..52684ef54c 100644 --- a/test/tint/builtins/gen/var/all/bd2dba.wgsl +++ b/test/tint/builtins/gen/var/all/bd2dba.wgsl @@ -29,18 +29,18 @@ fn all_bd2dba() { var res: bool = all(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { all_bd2dba(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { all_bd2dba(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { all_bd2dba(); } diff --git a/test/tint/builtins/gen/var/all/bd2dba.wgsl.expected.wgsl b/test/tint/builtins/gen/var/all/bd2dba.wgsl.expected.wgsl index 4bfafa1baa..94f5c4e2c1 100644 --- a/test/tint/builtins/gen/var/all/bd2dba.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/all/bd2dba.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn all_bd2dba() { var res : bool = all(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { all_bd2dba(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { all_bd2dba(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { all_bd2dba(); } diff --git a/test/tint/builtins/gen/var/all/f46790.wgsl b/test/tint/builtins/gen/var/all/f46790.wgsl index b8217b9168..1d97c255fd 100644 --- a/test/tint/builtins/gen/var/all/f46790.wgsl +++ b/test/tint/builtins/gen/var/all/f46790.wgsl @@ -29,18 +29,18 @@ fn all_f46790() { var res: bool = all(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { all_f46790(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { all_f46790(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { all_f46790(); } diff --git a/test/tint/builtins/gen/var/all/f46790.wgsl.expected.wgsl b/test/tint/builtins/gen/var/all/f46790.wgsl.expected.wgsl index 692168026d..da95275480 100644 --- a/test/tint/builtins/gen/var/all/f46790.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/all/f46790.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn all_f46790() { var res : bool = all(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { all_f46790(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { all_f46790(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { all_f46790(); } diff --git a/test/tint/builtins/gen/var/any/083428.wgsl b/test/tint/builtins/gen/var/any/083428.wgsl index 3a7a69a20f..b164c4e03a 100644 --- a/test/tint/builtins/gen/var/any/083428.wgsl +++ b/test/tint/builtins/gen/var/any/083428.wgsl @@ -29,18 +29,18 @@ fn any_083428() { var res: bool = any(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { any_083428(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { any_083428(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { any_083428(); } diff --git a/test/tint/builtins/gen/var/any/083428.wgsl.expected.wgsl b/test/tint/builtins/gen/var/any/083428.wgsl.expected.wgsl index 6db2c9ac6a..3df99c6538 100644 --- a/test/tint/builtins/gen/var/any/083428.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/any/083428.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn any_083428() { var res : bool = any(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { any_083428(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { any_083428(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { any_083428(); } diff --git a/test/tint/builtins/gen/var/any/0e3e58.wgsl b/test/tint/builtins/gen/var/any/0e3e58.wgsl index 270012c907..557b4a9fb7 100644 --- a/test/tint/builtins/gen/var/any/0e3e58.wgsl +++ b/test/tint/builtins/gen/var/any/0e3e58.wgsl @@ -29,18 +29,18 @@ fn any_0e3e58() { var res: bool = any(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { any_0e3e58(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { any_0e3e58(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { any_0e3e58(); } diff --git a/test/tint/builtins/gen/var/any/0e3e58.wgsl.expected.wgsl b/test/tint/builtins/gen/var/any/0e3e58.wgsl.expected.wgsl index c21cd01d66..839986709e 100644 --- a/test/tint/builtins/gen/var/any/0e3e58.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/any/0e3e58.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn any_0e3e58() { var res : bool = any(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { any_0e3e58(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { any_0e3e58(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { any_0e3e58(); } diff --git a/test/tint/builtins/gen/var/any/2ab91a.wgsl b/test/tint/builtins/gen/var/any/2ab91a.wgsl index c234642e03..a4764b9d91 100644 --- a/test/tint/builtins/gen/var/any/2ab91a.wgsl +++ b/test/tint/builtins/gen/var/any/2ab91a.wgsl @@ -29,18 +29,18 @@ fn any_2ab91a() { var res: bool = any(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { any_2ab91a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { any_2ab91a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { any_2ab91a(); } diff --git a/test/tint/builtins/gen/var/any/2ab91a.wgsl.expected.wgsl b/test/tint/builtins/gen/var/any/2ab91a.wgsl.expected.wgsl index 74315cf56d..d1bde99d1f 100644 --- a/test/tint/builtins/gen/var/any/2ab91a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/any/2ab91a.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn any_2ab91a() { var res : bool = any(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { any_2ab91a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { any_2ab91a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { any_2ab91a(); } diff --git a/test/tint/builtins/gen/var/any/e755c1.wgsl b/test/tint/builtins/gen/var/any/e755c1.wgsl index 983e8cf280..78ba288a80 100644 --- a/test/tint/builtins/gen/var/any/e755c1.wgsl +++ b/test/tint/builtins/gen/var/any/e755c1.wgsl @@ -29,18 +29,18 @@ fn any_e755c1() { var res: bool = any(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { any_e755c1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { any_e755c1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { any_e755c1(); } diff --git a/test/tint/builtins/gen/var/any/e755c1.wgsl.expected.wgsl b/test/tint/builtins/gen/var/any/e755c1.wgsl.expected.wgsl index 5c5c75042b..fe5fc2e283 100644 --- a/test/tint/builtins/gen/var/any/e755c1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/any/e755c1.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn any_e755c1() { var res : bool = any(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { any_e755c1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { any_e755c1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { any_e755c1(); } diff --git a/test/tint/builtins/gen/var/arrayLength/1588cd.wgsl b/test/tint/builtins/gen/var/arrayLength/1588cd.wgsl index c4dec13c3c..5af41cc5bb 100644 --- a/test/tint/builtins/gen/var/arrayLength/1588cd.wgsl +++ b/test/tint/builtins/gen/var/arrayLength/1588cd.wgsl @@ -32,18 +32,18 @@ fn arrayLength_1588cd() { var res: u32 = arrayLength(&sb_ro.arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { arrayLength_1588cd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { arrayLength_1588cd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { arrayLength_1588cd(); } diff --git a/test/tint/builtins/gen/var/arrayLength/1588cd.wgsl.expected.wgsl b/test/tint/builtins/gen/var/arrayLength/1588cd.wgsl.expected.wgsl index 2a2648d3e0..8b3b166c5c 100644 --- a/test/tint/builtins/gen/var/arrayLength/1588cd.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/arrayLength/1588cd.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn arrayLength_1588cd() { var res : u32 = arrayLength(&(sb_ro.arg_0)); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { arrayLength_1588cd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { arrayLength_1588cd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { arrayLength_1588cd(); } diff --git a/test/tint/builtins/gen/var/arrayLength/61b1c7.wgsl b/test/tint/builtins/gen/var/arrayLength/61b1c7.wgsl index a7adcc1bea..6e5afea9e8 100644 --- a/test/tint/builtins/gen/var/arrayLength/61b1c7.wgsl +++ b/test/tint/builtins/gen/var/arrayLength/61b1c7.wgsl @@ -32,18 +32,18 @@ fn arrayLength_61b1c7() { var res: u32 = arrayLength(&sb_rw.arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { arrayLength_61b1c7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { arrayLength_61b1c7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { arrayLength_61b1c7(); } diff --git a/test/tint/builtins/gen/var/arrayLength/61b1c7.wgsl.expected.wgsl b/test/tint/builtins/gen/var/arrayLength/61b1c7.wgsl.expected.wgsl index 73dbbb7f3a..b9b63ee4ad 100644 --- a/test/tint/builtins/gen/var/arrayLength/61b1c7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/arrayLength/61b1c7.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn arrayLength_61b1c7() { var res : u32 = arrayLength(&(sb_rw.arg_0)); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { arrayLength_61b1c7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { arrayLength_61b1c7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { arrayLength_61b1c7(); } diff --git a/test/tint/builtins/gen/var/arrayLength/a0f5ca.wgsl b/test/tint/builtins/gen/var/arrayLength/a0f5ca.wgsl index 3f83858e27..547dc4ee2d 100644 --- a/test/tint/builtins/gen/var/arrayLength/a0f5ca.wgsl +++ b/test/tint/builtins/gen/var/arrayLength/a0f5ca.wgsl @@ -32,18 +32,18 @@ fn arrayLength_a0f5ca() { var res: u32 = arrayLength(&sb_ro.arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { arrayLength_a0f5ca(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { arrayLength_a0f5ca(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { arrayLength_a0f5ca(); } diff --git a/test/tint/builtins/gen/var/arrayLength/a0f5ca.wgsl.expected.wgsl b/test/tint/builtins/gen/var/arrayLength/a0f5ca.wgsl.expected.wgsl index a1eb324f96..fa60a15aab 100644 --- a/test/tint/builtins/gen/var/arrayLength/a0f5ca.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/arrayLength/a0f5ca.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn arrayLength_a0f5ca() { var res : u32 = arrayLength(&(sb_ro.arg_0)); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { arrayLength_a0f5ca(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { arrayLength_a0f5ca(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { arrayLength_a0f5ca(); } diff --git a/test/tint/builtins/gen/var/arrayLength/cdd123.wgsl b/test/tint/builtins/gen/var/arrayLength/cdd123.wgsl index 3b38e51c77..1a1fe9948b 100644 --- a/test/tint/builtins/gen/var/arrayLength/cdd123.wgsl +++ b/test/tint/builtins/gen/var/arrayLength/cdd123.wgsl @@ -32,18 +32,18 @@ fn arrayLength_cdd123() { var res: u32 = arrayLength(&sb_rw.arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { arrayLength_cdd123(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { arrayLength_cdd123(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { arrayLength_cdd123(); } diff --git a/test/tint/builtins/gen/var/arrayLength/cdd123.wgsl.expected.wgsl b/test/tint/builtins/gen/var/arrayLength/cdd123.wgsl.expected.wgsl index 1f2d17cb09..d792619112 100644 --- a/test/tint/builtins/gen/var/arrayLength/cdd123.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/arrayLength/cdd123.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn arrayLength_cdd123() { var res : u32 = arrayLength(&(sb_rw.arg_0)); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { arrayLength_cdd123(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { arrayLength_cdd123(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { arrayLength_cdd123(); } diff --git a/test/tint/builtins/gen/var/arrayLength/cfca0a.wgsl b/test/tint/builtins/gen/var/arrayLength/cfca0a.wgsl index 99d788d87b..0951ce44a3 100644 --- a/test/tint/builtins/gen/var/arrayLength/cfca0a.wgsl +++ b/test/tint/builtins/gen/var/arrayLength/cfca0a.wgsl @@ -32,18 +32,18 @@ fn arrayLength_cfca0a() { var res: u32 = arrayLength(&sb_ro.arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { arrayLength_cfca0a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { arrayLength_cfca0a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { arrayLength_cfca0a(); } diff --git a/test/tint/builtins/gen/var/arrayLength/cfca0a.wgsl.expected.wgsl b/test/tint/builtins/gen/var/arrayLength/cfca0a.wgsl.expected.wgsl index 5778963880..d741ef0924 100644 --- a/test/tint/builtins/gen/var/arrayLength/cfca0a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/arrayLength/cfca0a.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn arrayLength_cfca0a() { var res : u32 = arrayLength(&(sb_ro.arg_0)); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { arrayLength_cfca0a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { arrayLength_cfca0a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { arrayLength_cfca0a(); } diff --git a/test/tint/builtins/gen/var/arrayLength/eb510f.wgsl b/test/tint/builtins/gen/var/arrayLength/eb510f.wgsl index cc2627bbda..23085697d0 100644 --- a/test/tint/builtins/gen/var/arrayLength/eb510f.wgsl +++ b/test/tint/builtins/gen/var/arrayLength/eb510f.wgsl @@ -32,18 +32,18 @@ fn arrayLength_eb510f() { var res: u32 = arrayLength(&sb_rw.arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { arrayLength_eb510f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { arrayLength_eb510f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { arrayLength_eb510f(); } diff --git a/test/tint/builtins/gen/var/arrayLength/eb510f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/arrayLength/eb510f.wgsl.expected.wgsl index 805917c027..a048944656 100644 --- a/test/tint/builtins/gen/var/arrayLength/eb510f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/arrayLength/eb510f.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn arrayLength_eb510f() { var res : u32 = arrayLength(&(sb_rw.arg_0)); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { arrayLength_eb510f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { arrayLength_eb510f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { arrayLength_eb510f(); } diff --git a/test/tint/builtins/gen/var/asin/064953.wgsl b/test/tint/builtins/gen/var/asin/064953.wgsl index 5e2ba51b8d..d7dcf36ece 100644 --- a/test/tint/builtins/gen/var/asin/064953.wgsl +++ b/test/tint/builtins/gen/var/asin/064953.wgsl @@ -29,18 +29,18 @@ fn asin_064953() { var res: vec4 = asin(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { asin_064953(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { asin_064953(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { asin_064953(); } diff --git a/test/tint/builtins/gen/var/asin/064953.wgsl.expected.wgsl b/test/tint/builtins/gen/var/asin/064953.wgsl.expected.wgsl index 3753e5a982..41134627e8 100644 --- a/test/tint/builtins/gen/var/asin/064953.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/asin/064953.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn asin_064953() { var res : vec4 = asin(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { asin_064953(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { asin_064953(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { asin_064953(); } diff --git a/test/tint/builtins/gen/var/asin/7b6a44.wgsl b/test/tint/builtins/gen/var/asin/7b6a44.wgsl index a52ec14c31..6102dabedb 100644 --- a/test/tint/builtins/gen/var/asin/7b6a44.wgsl +++ b/test/tint/builtins/gen/var/asin/7b6a44.wgsl @@ -29,18 +29,18 @@ fn asin_7b6a44() { var res: vec2 = asin(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { asin_7b6a44(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { asin_7b6a44(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { asin_7b6a44(); } diff --git a/test/tint/builtins/gen/var/asin/7b6a44.wgsl.expected.wgsl b/test/tint/builtins/gen/var/asin/7b6a44.wgsl.expected.wgsl index ec5ec15906..6e08cad515 100644 --- a/test/tint/builtins/gen/var/asin/7b6a44.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/asin/7b6a44.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn asin_7b6a44() { var res : vec2 = asin(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { asin_7b6a44(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { asin_7b6a44(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { asin_7b6a44(); } diff --git a/test/tint/builtins/gen/var/asin/8cd9c9.wgsl b/test/tint/builtins/gen/var/asin/8cd9c9.wgsl index e568908c5e..18bd04f2ad 100644 --- a/test/tint/builtins/gen/var/asin/8cd9c9.wgsl +++ b/test/tint/builtins/gen/var/asin/8cd9c9.wgsl @@ -29,18 +29,18 @@ fn asin_8cd9c9() { var res: vec3 = asin(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { asin_8cd9c9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { asin_8cd9c9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { asin_8cd9c9(); } diff --git a/test/tint/builtins/gen/var/asin/8cd9c9.wgsl.expected.wgsl b/test/tint/builtins/gen/var/asin/8cd9c9.wgsl.expected.wgsl index be247ddb0d..598fd675f5 100644 --- a/test/tint/builtins/gen/var/asin/8cd9c9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/asin/8cd9c9.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn asin_8cd9c9() { var res : vec3 = asin(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { asin_8cd9c9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { asin_8cd9c9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { asin_8cd9c9(); } diff --git a/test/tint/builtins/gen/var/asin/c0c272.wgsl b/test/tint/builtins/gen/var/asin/c0c272.wgsl index f7c1933d3b..0dc0a862d5 100644 --- a/test/tint/builtins/gen/var/asin/c0c272.wgsl +++ b/test/tint/builtins/gen/var/asin/c0c272.wgsl @@ -29,18 +29,18 @@ fn asin_c0c272() { var res: f32 = asin(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { asin_c0c272(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { asin_c0c272(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { asin_c0c272(); } diff --git a/test/tint/builtins/gen/var/asin/c0c272.wgsl.expected.wgsl b/test/tint/builtins/gen/var/asin/c0c272.wgsl.expected.wgsl index 15931858bf..242fe4094f 100644 --- a/test/tint/builtins/gen/var/asin/c0c272.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/asin/c0c272.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn asin_c0c272() { var res : f32 = asin(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { asin_c0c272(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { asin_c0c272(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { asin_c0c272(); } diff --git a/test/tint/builtins/gen/var/atan/02979a.wgsl b/test/tint/builtins/gen/var/atan/02979a.wgsl index b78ade5cfe..29d6910824 100644 --- a/test/tint/builtins/gen/var/atan/02979a.wgsl +++ b/test/tint/builtins/gen/var/atan/02979a.wgsl @@ -29,18 +29,18 @@ fn atan_02979a() { var res: f32 = atan(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan_02979a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan_02979a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan_02979a(); } diff --git a/test/tint/builtins/gen/var/atan/02979a.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atan/02979a.wgsl.expected.wgsl index 398e043eee..74ef4026cf 100644 --- a/test/tint/builtins/gen/var/atan/02979a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atan/02979a.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn atan_02979a() { var res : f32 = atan(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan_02979a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan_02979a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan_02979a(); } diff --git a/test/tint/builtins/gen/var/atan/331e6d.wgsl b/test/tint/builtins/gen/var/atan/331e6d.wgsl index 672efcba01..4cd7a1a72e 100644 --- a/test/tint/builtins/gen/var/atan/331e6d.wgsl +++ b/test/tint/builtins/gen/var/atan/331e6d.wgsl @@ -29,18 +29,18 @@ fn atan_331e6d() { var res: vec3 = atan(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan_331e6d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan_331e6d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan_331e6d(); } diff --git a/test/tint/builtins/gen/var/atan/331e6d.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atan/331e6d.wgsl.expected.wgsl index 22be44367d..09a051fbdb 100644 --- a/test/tint/builtins/gen/var/atan/331e6d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atan/331e6d.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn atan_331e6d() { var res : vec3 = atan(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan_331e6d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan_331e6d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan_331e6d(); } diff --git a/test/tint/builtins/gen/var/atan/a8b696.wgsl b/test/tint/builtins/gen/var/atan/a8b696.wgsl index edab37d5cf..760bfb56b7 100644 --- a/test/tint/builtins/gen/var/atan/a8b696.wgsl +++ b/test/tint/builtins/gen/var/atan/a8b696.wgsl @@ -29,18 +29,18 @@ fn atan_a8b696() { var res: vec4 = atan(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan_a8b696(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan_a8b696(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan_a8b696(); } diff --git a/test/tint/builtins/gen/var/atan/a8b696.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atan/a8b696.wgsl.expected.wgsl index 88209b12e8..be3ee4481f 100644 --- a/test/tint/builtins/gen/var/atan/a8b696.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atan/a8b696.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn atan_a8b696() { var res : vec4 = atan(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan_a8b696(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan_a8b696(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan_a8b696(); } diff --git a/test/tint/builtins/gen/var/atan/ad96e4.wgsl b/test/tint/builtins/gen/var/atan/ad96e4.wgsl index 0d33269ace..a4885e5267 100644 --- a/test/tint/builtins/gen/var/atan/ad96e4.wgsl +++ b/test/tint/builtins/gen/var/atan/ad96e4.wgsl @@ -29,18 +29,18 @@ fn atan_ad96e4() { var res: vec2 = atan(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan_ad96e4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan_ad96e4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan_ad96e4(); } diff --git a/test/tint/builtins/gen/var/atan/ad96e4.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atan/ad96e4.wgsl.expected.wgsl index 7fa376b7ac..f226ebee6d 100644 --- a/test/tint/builtins/gen/var/atan/ad96e4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atan/ad96e4.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn atan_ad96e4() { var res : vec2 = atan(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan_ad96e4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan_ad96e4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan_ad96e4(); } diff --git a/test/tint/builtins/gen/var/atan2/57fb13.wgsl b/test/tint/builtins/gen/var/atan2/57fb13.wgsl index 768cf69f7a..b411fdeb21 100644 --- a/test/tint/builtins/gen/var/atan2/57fb13.wgsl +++ b/test/tint/builtins/gen/var/atan2/57fb13.wgsl @@ -30,18 +30,18 @@ fn atan2_57fb13() { var res: vec2 = atan2(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan2_57fb13(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan2_57fb13(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan2_57fb13(); } diff --git a/test/tint/builtins/gen/var/atan2/57fb13.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atan2/57fb13.wgsl.expected.wgsl index d53cd33e9e..37d8508a19 100644 --- a/test/tint/builtins/gen/var/atan2/57fb13.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atan2/57fb13.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn atan2_57fb13() { var res : vec2 = atan2(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan2_57fb13(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan2_57fb13(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan2_57fb13(); } diff --git a/test/tint/builtins/gen/var/atan2/96057c.wgsl b/test/tint/builtins/gen/var/atan2/96057c.wgsl index 789461b043..a452d55fc4 100644 --- a/test/tint/builtins/gen/var/atan2/96057c.wgsl +++ b/test/tint/builtins/gen/var/atan2/96057c.wgsl @@ -30,18 +30,18 @@ fn atan2_96057c() { var res: f32 = atan2(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan2_96057c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan2_96057c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan2_96057c(); } diff --git a/test/tint/builtins/gen/var/atan2/96057c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atan2/96057c.wgsl.expected.wgsl index 7931ce2234..d30026b9ab 100644 --- a/test/tint/builtins/gen/var/atan2/96057c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atan2/96057c.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn atan2_96057c() { var res : f32 = atan2(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan2_96057c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan2_96057c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan2_96057c(); } diff --git a/test/tint/builtins/gen/var/atan2/a70d0d.wgsl b/test/tint/builtins/gen/var/atan2/a70d0d.wgsl index 1a5599b736..79229abfc3 100644 --- a/test/tint/builtins/gen/var/atan2/a70d0d.wgsl +++ b/test/tint/builtins/gen/var/atan2/a70d0d.wgsl @@ -30,18 +30,18 @@ fn atan2_a70d0d() { var res: vec3 = atan2(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan2_a70d0d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan2_a70d0d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan2_a70d0d(); } diff --git a/test/tint/builtins/gen/var/atan2/a70d0d.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atan2/a70d0d.wgsl.expected.wgsl index 3cc0e0f67b..111155b210 100644 --- a/test/tint/builtins/gen/var/atan2/a70d0d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atan2/a70d0d.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn atan2_a70d0d() { var res : vec3 = atan2(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan2_a70d0d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan2_a70d0d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan2_a70d0d(); } diff --git a/test/tint/builtins/gen/var/atan2/ae713e.wgsl b/test/tint/builtins/gen/var/atan2/ae713e.wgsl index 1045aea140..b8165377ab 100644 --- a/test/tint/builtins/gen/var/atan2/ae713e.wgsl +++ b/test/tint/builtins/gen/var/atan2/ae713e.wgsl @@ -30,18 +30,18 @@ fn atan2_ae713e() { var res: vec4 = atan2(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan2_ae713e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan2_ae713e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan2_ae713e(); } diff --git a/test/tint/builtins/gen/var/atan2/ae713e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atan2/ae713e.wgsl.expected.wgsl index cfdb8ca660..2421b3e693 100644 --- a/test/tint/builtins/gen/var/atan2/ae713e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atan2/ae713e.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn atan2_ae713e() { var res : vec4 = atan2(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { atan2_ae713e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { atan2_ae713e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atan2_ae713e(); } diff --git a/test/tint/builtins/gen/var/atomicAdd/794055.wgsl b/test/tint/builtins/gen/var/atomicAdd/794055.wgsl index 7c911e2110..c8cc8fcbd6 100644 --- a/test/tint/builtins/gen/var/atomicAdd/794055.wgsl +++ b/test/tint/builtins/gen/var/atomicAdd/794055.wgsl @@ -30,7 +30,7 @@ fn atomicAdd_794055() { var res: i32 = atomicAdd(&arg_0, arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAdd_794055(); } diff --git a/test/tint/builtins/gen/var/atomicAdd/794055.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicAdd/794055.wgsl.expected.wgsl index 113cf03b7d..969958e629 100644 --- a/test/tint/builtins/gen/var/atomicAdd/794055.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicAdd/794055.wgsl.expected.wgsl @@ -5,7 +5,7 @@ fn atomicAdd_794055() { var res : i32 = atomicAdd(&(arg_0), arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAdd_794055(); } diff --git a/test/tint/builtins/gen/var/atomicAdd/8a199a.wgsl b/test/tint/builtins/gen/var/atomicAdd/8a199a.wgsl index d84abb25ef..591914b18e 100644 --- a/test/tint/builtins/gen/var/atomicAdd/8a199a.wgsl +++ b/test/tint/builtins/gen/var/atomicAdd/8a199a.wgsl @@ -33,12 +33,12 @@ fn atomicAdd_8a199a() { var res: u32 = atomicAdd(&sb_rw.arg_0, arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicAdd_8a199a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAdd_8a199a(); } diff --git a/test/tint/builtins/gen/var/atomicAdd/8a199a.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicAdd/8a199a.wgsl.expected.wgsl index 63cef4f72a..60690f00e7 100644 --- a/test/tint/builtins/gen/var/atomicAdd/8a199a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicAdd/8a199a.wgsl.expected.wgsl @@ -9,12 +9,12 @@ fn atomicAdd_8a199a() { var res : u32 = atomicAdd(&(sb_rw.arg_0), arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicAdd_8a199a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAdd_8a199a(); } diff --git a/test/tint/builtins/gen/var/atomicAdd/d32fe4.wgsl b/test/tint/builtins/gen/var/atomicAdd/d32fe4.wgsl index 38cca7f58a..d04fef753a 100644 --- a/test/tint/builtins/gen/var/atomicAdd/d32fe4.wgsl +++ b/test/tint/builtins/gen/var/atomicAdd/d32fe4.wgsl @@ -33,12 +33,12 @@ fn atomicAdd_d32fe4() { var res: i32 = atomicAdd(&sb_rw.arg_0, arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicAdd_d32fe4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAdd_d32fe4(); } diff --git a/test/tint/builtins/gen/var/atomicAdd/d32fe4.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicAdd/d32fe4.wgsl.expected.wgsl index bc1c383829..9b4b44b6e2 100644 --- a/test/tint/builtins/gen/var/atomicAdd/d32fe4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicAdd/d32fe4.wgsl.expected.wgsl @@ -9,12 +9,12 @@ fn atomicAdd_d32fe4() { var res : i32 = atomicAdd(&(sb_rw.arg_0), arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicAdd_d32fe4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAdd_d32fe4(); } diff --git a/test/tint/builtins/gen/var/atomicAdd/d5db1d.wgsl b/test/tint/builtins/gen/var/atomicAdd/d5db1d.wgsl index 528d4aa051..9f9677898e 100644 --- a/test/tint/builtins/gen/var/atomicAdd/d5db1d.wgsl +++ b/test/tint/builtins/gen/var/atomicAdd/d5db1d.wgsl @@ -30,7 +30,7 @@ fn atomicAdd_d5db1d() { var res: u32 = atomicAdd(&arg_0, arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAdd_d5db1d(); } diff --git a/test/tint/builtins/gen/var/atomicAdd/d5db1d.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicAdd/d5db1d.wgsl.expected.wgsl index eaafde0741..e7ca6d0c11 100644 --- a/test/tint/builtins/gen/var/atomicAdd/d5db1d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicAdd/d5db1d.wgsl.expected.wgsl @@ -5,7 +5,7 @@ fn atomicAdd_d5db1d() { var res : u32 = atomicAdd(&(arg_0), arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAdd_d5db1d(); } diff --git a/test/tint/builtins/gen/var/atomicAnd/152966.wgsl b/test/tint/builtins/gen/var/atomicAnd/152966.wgsl index 62d12c1ab3..95bf7ab8b5 100644 --- a/test/tint/builtins/gen/var/atomicAnd/152966.wgsl +++ b/test/tint/builtins/gen/var/atomicAnd/152966.wgsl @@ -33,12 +33,12 @@ fn atomicAnd_152966() { var res: i32 = atomicAnd(&sb_rw.arg_0, arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicAnd_152966(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAnd_152966(); } diff --git a/test/tint/builtins/gen/var/atomicAnd/152966.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicAnd/152966.wgsl.expected.wgsl index 52984c728b..3fd9d1c365 100644 --- a/test/tint/builtins/gen/var/atomicAnd/152966.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicAnd/152966.wgsl.expected.wgsl @@ -9,12 +9,12 @@ fn atomicAnd_152966() { var res : i32 = atomicAnd(&(sb_rw.arg_0), arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicAnd_152966(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAnd_152966(); } diff --git a/test/tint/builtins/gen/var/atomicAnd/34edd3.wgsl b/test/tint/builtins/gen/var/atomicAnd/34edd3.wgsl index ffb20d8e8a..0fb5b84c43 100644 --- a/test/tint/builtins/gen/var/atomicAnd/34edd3.wgsl +++ b/test/tint/builtins/gen/var/atomicAnd/34edd3.wgsl @@ -30,7 +30,7 @@ fn atomicAnd_34edd3() { var res: u32 = atomicAnd(&arg_0, arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAnd_34edd3(); } diff --git a/test/tint/builtins/gen/var/atomicAnd/34edd3.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicAnd/34edd3.wgsl.expected.wgsl index a7070c304c..95152936c2 100644 --- a/test/tint/builtins/gen/var/atomicAnd/34edd3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicAnd/34edd3.wgsl.expected.wgsl @@ -5,7 +5,7 @@ fn atomicAnd_34edd3() { var res : u32 = atomicAnd(&(arg_0), arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAnd_34edd3(); } diff --git a/test/tint/builtins/gen/var/atomicAnd/45a819.wgsl b/test/tint/builtins/gen/var/atomicAnd/45a819.wgsl index dfd0ca134a..89f8055218 100644 --- a/test/tint/builtins/gen/var/atomicAnd/45a819.wgsl +++ b/test/tint/builtins/gen/var/atomicAnd/45a819.wgsl @@ -30,7 +30,7 @@ fn atomicAnd_45a819() { var res: i32 = atomicAnd(&arg_0, arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAnd_45a819(); } diff --git a/test/tint/builtins/gen/var/atomicAnd/45a819.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicAnd/45a819.wgsl.expected.wgsl index 1d8af20275..317fe39eeb 100644 --- a/test/tint/builtins/gen/var/atomicAnd/45a819.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicAnd/45a819.wgsl.expected.wgsl @@ -5,7 +5,7 @@ fn atomicAnd_45a819() { var res : i32 = atomicAnd(&(arg_0), arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAnd_45a819(); } diff --git a/test/tint/builtins/gen/var/atomicAnd/85a8d9.wgsl b/test/tint/builtins/gen/var/atomicAnd/85a8d9.wgsl index 726d4ad911..bddb4542fb 100644 --- a/test/tint/builtins/gen/var/atomicAnd/85a8d9.wgsl +++ b/test/tint/builtins/gen/var/atomicAnd/85a8d9.wgsl @@ -33,12 +33,12 @@ fn atomicAnd_85a8d9() { var res: u32 = atomicAnd(&sb_rw.arg_0, arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicAnd_85a8d9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAnd_85a8d9(); } diff --git a/test/tint/builtins/gen/var/atomicAnd/85a8d9.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicAnd/85a8d9.wgsl.expected.wgsl index f93a934d9e..b0eb8caa23 100644 --- a/test/tint/builtins/gen/var/atomicAnd/85a8d9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicAnd/85a8d9.wgsl.expected.wgsl @@ -9,12 +9,12 @@ fn atomicAnd_85a8d9() { var res : u32 = atomicAnd(&(sb_rw.arg_0), arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicAnd_85a8d9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicAnd_85a8d9(); } diff --git a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/1bd40a.wgsl b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/1bd40a.wgsl index 10dfb91af5..a583af7530 100644 --- a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/1bd40a.wgsl +++ b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/1bd40a.wgsl @@ -34,12 +34,12 @@ fn atomicCompareExchangeWeak_1bd40a() { var res = atomicCompareExchangeWeak(&sb_rw.arg_0, arg_1, arg_2); } -@stage(fragment) +@fragment fn fragment_main() { atomicCompareExchangeWeak_1bd40a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicCompareExchangeWeak_1bd40a(); } diff --git a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/1bd40a.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/1bd40a.wgsl.expected.wgsl index 5db36c6bac..a97dff5ca3 100644 --- a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/1bd40a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/1bd40a.wgsl.expected.wgsl @@ -10,12 +10,12 @@ fn atomicCompareExchangeWeak_1bd40a() { var res = atomicCompareExchangeWeak(&(sb_rw.arg_0), arg_1, arg_2); } -@stage(fragment) +@fragment fn fragment_main() { atomicCompareExchangeWeak_1bd40a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicCompareExchangeWeak_1bd40a(); } diff --git a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/63d8e6.wgsl b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/63d8e6.wgsl index 591914b033..be49c3ff22 100644 --- a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/63d8e6.wgsl +++ b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/63d8e6.wgsl @@ -34,12 +34,12 @@ fn atomicCompareExchangeWeak_63d8e6() { var res = atomicCompareExchangeWeak(&sb_rw.arg_0, arg_1, arg_2); } -@stage(fragment) +@fragment fn fragment_main() { atomicCompareExchangeWeak_63d8e6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicCompareExchangeWeak_63d8e6(); } diff --git a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/63d8e6.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/63d8e6.wgsl.expected.wgsl index 6be230ee71..6c674d5c76 100644 --- a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/63d8e6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/63d8e6.wgsl.expected.wgsl @@ -10,12 +10,12 @@ fn atomicCompareExchangeWeak_63d8e6() { var res = atomicCompareExchangeWeak(&(sb_rw.arg_0), arg_1, arg_2); } -@stage(fragment) +@fragment fn fragment_main() { atomicCompareExchangeWeak_63d8e6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicCompareExchangeWeak_63d8e6(); } diff --git a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/83580d.wgsl b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/83580d.wgsl index b13a4e4e63..ef712f317f 100644 --- a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/83580d.wgsl +++ b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/83580d.wgsl @@ -31,7 +31,7 @@ fn atomicCompareExchangeWeak_83580d() { var res = atomicCompareExchangeWeak(&arg_0, arg_1, arg_2); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicCompareExchangeWeak_83580d(); } diff --git a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/83580d.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/83580d.wgsl.expected.hlsl index 57e527d0c4..854c568161 100644 --- a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/83580d.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/83580d.wgsl.expected.hlsl @@ -9,7 +9,7 @@ fn atomicCompareExchangeWeak_83580d() { var res = atomicCompareExchangeWeak(&(arg_0), arg_1, arg_2); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicCompareExchangeWeak_83580d(); } diff --git a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/83580d.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/83580d.wgsl.expected.wgsl index 385448dcf4..3cfbe69f43 100644 --- a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/83580d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/83580d.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn atomicCompareExchangeWeak_83580d() { var res = atomicCompareExchangeWeak(&(arg_0), arg_1, arg_2); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicCompareExchangeWeak_83580d(); } diff --git a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/e88938.wgsl b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/e88938.wgsl index c31c39da47..eeacb2ec1c 100644 --- a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/e88938.wgsl +++ b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/e88938.wgsl @@ -31,7 +31,7 @@ fn atomicCompareExchangeWeak_e88938() { var res = atomicCompareExchangeWeak(&arg_0, arg_1, arg_2); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicCompareExchangeWeak_e88938(); } diff --git a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/e88938.wgsl.expected.hlsl b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/e88938.wgsl.expected.hlsl index d74ead1a12..ca63be97fb 100644 --- a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/e88938.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/e88938.wgsl.expected.hlsl @@ -9,7 +9,7 @@ fn atomicCompareExchangeWeak_e88938() { var res = atomicCompareExchangeWeak(&(arg_0), arg_1, arg_2); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicCompareExchangeWeak_e88938(); } diff --git a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/e88938.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/e88938.wgsl.expected.wgsl index ce2d4c96eb..3eb4780352 100644 --- a/test/tint/builtins/gen/var/atomicCompareExchangeWeak/e88938.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicCompareExchangeWeak/e88938.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn atomicCompareExchangeWeak_e88938() { var res = atomicCompareExchangeWeak(&(arg_0), arg_1, arg_2); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicCompareExchangeWeak_e88938(); } diff --git a/test/tint/builtins/gen/var/atomicExchange/0a5dca.wgsl b/test/tint/builtins/gen/var/atomicExchange/0a5dca.wgsl index 1f089d2ff3..62dbdec94c 100644 --- a/test/tint/builtins/gen/var/atomicExchange/0a5dca.wgsl +++ b/test/tint/builtins/gen/var/atomicExchange/0a5dca.wgsl @@ -30,7 +30,7 @@ fn atomicExchange_0a5dca() { var res: u32 = atomicExchange(&arg_0, arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicExchange_0a5dca(); } diff --git a/test/tint/builtins/gen/var/atomicExchange/0a5dca.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicExchange/0a5dca.wgsl.expected.wgsl index 97df00c834..0d58d702a6 100644 --- a/test/tint/builtins/gen/var/atomicExchange/0a5dca.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicExchange/0a5dca.wgsl.expected.wgsl @@ -5,7 +5,7 @@ fn atomicExchange_0a5dca() { var res : u32 = atomicExchange(&(arg_0), arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicExchange_0a5dca(); } diff --git a/test/tint/builtins/gen/var/atomicExchange/d59712.wgsl b/test/tint/builtins/gen/var/atomicExchange/d59712.wgsl index da57ab26fb..6e037436da 100644 --- a/test/tint/builtins/gen/var/atomicExchange/d59712.wgsl +++ b/test/tint/builtins/gen/var/atomicExchange/d59712.wgsl @@ -33,12 +33,12 @@ fn atomicExchange_d59712() { var res: u32 = atomicExchange(&sb_rw.arg_0, arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicExchange_d59712(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicExchange_d59712(); } diff --git a/test/tint/builtins/gen/var/atomicExchange/d59712.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicExchange/d59712.wgsl.expected.wgsl index e2f39b74bf..5f0d591249 100644 --- a/test/tint/builtins/gen/var/atomicExchange/d59712.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicExchange/d59712.wgsl.expected.wgsl @@ -9,12 +9,12 @@ fn atomicExchange_d59712() { var res : u32 = atomicExchange(&(sb_rw.arg_0), arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicExchange_d59712(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicExchange_d59712(); } diff --git a/test/tint/builtins/gen/var/atomicExchange/e114ba.wgsl b/test/tint/builtins/gen/var/atomicExchange/e114ba.wgsl index 5d88b53f51..565c9428d2 100644 --- a/test/tint/builtins/gen/var/atomicExchange/e114ba.wgsl +++ b/test/tint/builtins/gen/var/atomicExchange/e114ba.wgsl @@ -30,7 +30,7 @@ fn atomicExchange_e114ba() { var res: i32 = atomicExchange(&arg_0, arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicExchange_e114ba(); } diff --git a/test/tint/builtins/gen/var/atomicExchange/e114ba.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicExchange/e114ba.wgsl.expected.wgsl index 4002898985..e9b702730c 100644 --- a/test/tint/builtins/gen/var/atomicExchange/e114ba.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicExchange/e114ba.wgsl.expected.wgsl @@ -5,7 +5,7 @@ fn atomicExchange_e114ba() { var res : i32 = atomicExchange(&(arg_0), arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicExchange_e114ba(); } diff --git a/test/tint/builtins/gen/var/atomicExchange/f2e22f.wgsl b/test/tint/builtins/gen/var/atomicExchange/f2e22f.wgsl index 29390d087b..03764cdaf8 100644 --- a/test/tint/builtins/gen/var/atomicExchange/f2e22f.wgsl +++ b/test/tint/builtins/gen/var/atomicExchange/f2e22f.wgsl @@ -33,12 +33,12 @@ fn atomicExchange_f2e22f() { var res: i32 = atomicExchange(&sb_rw.arg_0, arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicExchange_f2e22f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicExchange_f2e22f(); } diff --git a/test/tint/builtins/gen/var/atomicExchange/f2e22f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicExchange/f2e22f.wgsl.expected.wgsl index 9cb773149a..2e874721e6 100644 --- a/test/tint/builtins/gen/var/atomicExchange/f2e22f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicExchange/f2e22f.wgsl.expected.wgsl @@ -9,12 +9,12 @@ fn atomicExchange_f2e22f() { var res : i32 = atomicExchange(&(sb_rw.arg_0), arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicExchange_f2e22f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicExchange_f2e22f(); } diff --git a/test/tint/builtins/gen/var/atomicLoad/0806ad.wgsl b/test/tint/builtins/gen/var/atomicLoad/0806ad.wgsl index e20d830b0e..e2cee71148 100644 --- a/test/tint/builtins/gen/var/atomicLoad/0806ad.wgsl +++ b/test/tint/builtins/gen/var/atomicLoad/0806ad.wgsl @@ -32,12 +32,12 @@ fn atomicLoad_0806ad() { var res: i32 = atomicLoad(&sb_rw.arg_0); } -@stage(fragment) +@fragment fn fragment_main() { atomicLoad_0806ad(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicLoad_0806ad(); } diff --git a/test/tint/builtins/gen/var/atomicLoad/0806ad.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicLoad/0806ad.wgsl.expected.wgsl index e761dd984f..06c2703d56 100644 --- a/test/tint/builtins/gen/var/atomicLoad/0806ad.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicLoad/0806ad.wgsl.expected.wgsl @@ -8,12 +8,12 @@ fn atomicLoad_0806ad() { var res : i32 = atomicLoad(&(sb_rw.arg_0)); } -@stage(fragment) +@fragment fn fragment_main() { atomicLoad_0806ad(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicLoad_0806ad(); } diff --git a/test/tint/builtins/gen/var/atomicLoad/361bf1.wgsl b/test/tint/builtins/gen/var/atomicLoad/361bf1.wgsl index e0cc43fdb4..3ebeea95be 100644 --- a/test/tint/builtins/gen/var/atomicLoad/361bf1.wgsl +++ b/test/tint/builtins/gen/var/atomicLoad/361bf1.wgsl @@ -29,7 +29,7 @@ fn atomicLoad_361bf1() { var res: u32 = atomicLoad(&arg_0); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicLoad_361bf1(); } diff --git a/test/tint/builtins/gen/var/atomicLoad/361bf1.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicLoad/361bf1.wgsl.expected.wgsl index 1040bf29af..2fb4caaf45 100644 --- a/test/tint/builtins/gen/var/atomicLoad/361bf1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicLoad/361bf1.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn atomicLoad_361bf1() { var res : u32 = atomicLoad(&(arg_0)); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicLoad_361bf1(); } diff --git a/test/tint/builtins/gen/var/atomicLoad/afcc03.wgsl b/test/tint/builtins/gen/var/atomicLoad/afcc03.wgsl index 025384fc78..bc946afc87 100644 --- a/test/tint/builtins/gen/var/atomicLoad/afcc03.wgsl +++ b/test/tint/builtins/gen/var/atomicLoad/afcc03.wgsl @@ -29,7 +29,7 @@ fn atomicLoad_afcc03() { var res: i32 = atomicLoad(&arg_0); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicLoad_afcc03(); } diff --git a/test/tint/builtins/gen/var/atomicLoad/afcc03.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicLoad/afcc03.wgsl.expected.wgsl index e39317dde8..37509cad76 100644 --- a/test/tint/builtins/gen/var/atomicLoad/afcc03.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicLoad/afcc03.wgsl.expected.wgsl @@ -4,7 +4,7 @@ fn atomicLoad_afcc03() { var res : i32 = atomicLoad(&(arg_0)); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicLoad_afcc03(); } diff --git a/test/tint/builtins/gen/var/atomicLoad/fe6cc3.wgsl b/test/tint/builtins/gen/var/atomicLoad/fe6cc3.wgsl index 63b1594678..6c297001d0 100644 --- a/test/tint/builtins/gen/var/atomicLoad/fe6cc3.wgsl +++ b/test/tint/builtins/gen/var/atomicLoad/fe6cc3.wgsl @@ -32,12 +32,12 @@ fn atomicLoad_fe6cc3() { var res: u32 = atomicLoad(&sb_rw.arg_0); } -@stage(fragment) +@fragment fn fragment_main() { atomicLoad_fe6cc3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicLoad_fe6cc3(); } diff --git a/test/tint/builtins/gen/var/atomicLoad/fe6cc3.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicLoad/fe6cc3.wgsl.expected.wgsl index f811ee370e..8691467386 100644 --- a/test/tint/builtins/gen/var/atomicLoad/fe6cc3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicLoad/fe6cc3.wgsl.expected.wgsl @@ -8,12 +8,12 @@ fn atomicLoad_fe6cc3() { var res : u32 = atomicLoad(&(sb_rw.arg_0)); } -@stage(fragment) +@fragment fn fragment_main() { atomicLoad_fe6cc3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicLoad_fe6cc3(); } diff --git a/test/tint/builtins/gen/var/atomicMax/51b9be.wgsl b/test/tint/builtins/gen/var/atomicMax/51b9be.wgsl index 44209ff5c5..103f86e84f 100644 --- a/test/tint/builtins/gen/var/atomicMax/51b9be.wgsl +++ b/test/tint/builtins/gen/var/atomicMax/51b9be.wgsl @@ -33,12 +33,12 @@ fn atomicMax_51b9be() { var res: u32 = atomicMax(&sb_rw.arg_0, arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicMax_51b9be(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMax_51b9be(); } diff --git a/test/tint/builtins/gen/var/atomicMax/51b9be.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicMax/51b9be.wgsl.expected.wgsl index 758c04109b..a786881a2b 100644 --- a/test/tint/builtins/gen/var/atomicMax/51b9be.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicMax/51b9be.wgsl.expected.wgsl @@ -9,12 +9,12 @@ fn atomicMax_51b9be() { var res : u32 = atomicMax(&(sb_rw.arg_0), arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicMax_51b9be(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMax_51b9be(); } diff --git a/test/tint/builtins/gen/var/atomicMax/92aa72.wgsl b/test/tint/builtins/gen/var/atomicMax/92aa72.wgsl index 3caa15d2a9..af8fa3d152 100644 --- a/test/tint/builtins/gen/var/atomicMax/92aa72.wgsl +++ b/test/tint/builtins/gen/var/atomicMax/92aa72.wgsl @@ -33,12 +33,12 @@ fn atomicMax_92aa72() { var res: i32 = atomicMax(&sb_rw.arg_0, arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicMax_92aa72(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMax_92aa72(); } diff --git a/test/tint/builtins/gen/var/atomicMax/92aa72.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicMax/92aa72.wgsl.expected.wgsl index 488bf5a856..c5039e52a3 100644 --- a/test/tint/builtins/gen/var/atomicMax/92aa72.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicMax/92aa72.wgsl.expected.wgsl @@ -9,12 +9,12 @@ fn atomicMax_92aa72() { var res : i32 = atomicMax(&(sb_rw.arg_0), arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicMax_92aa72(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMax_92aa72(); } diff --git a/test/tint/builtins/gen/var/atomicMax/a89cc3.wgsl b/test/tint/builtins/gen/var/atomicMax/a89cc3.wgsl index 8d3a68072e..142de60ec8 100644 --- a/test/tint/builtins/gen/var/atomicMax/a89cc3.wgsl +++ b/test/tint/builtins/gen/var/atomicMax/a89cc3.wgsl @@ -30,7 +30,7 @@ fn atomicMax_a89cc3() { var res: i32 = atomicMax(&arg_0, arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMax_a89cc3(); } diff --git a/test/tint/builtins/gen/var/atomicMax/a89cc3.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicMax/a89cc3.wgsl.expected.wgsl index 73ba0bae84..10ed82e499 100644 --- a/test/tint/builtins/gen/var/atomicMax/a89cc3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicMax/a89cc3.wgsl.expected.wgsl @@ -5,7 +5,7 @@ fn atomicMax_a89cc3() { var res : i32 = atomicMax(&(arg_0), arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMax_a89cc3(); } diff --git a/test/tint/builtins/gen/var/atomicMax/beccfc.wgsl b/test/tint/builtins/gen/var/atomicMax/beccfc.wgsl index 8550e0e682..739fbc30e2 100644 --- a/test/tint/builtins/gen/var/atomicMax/beccfc.wgsl +++ b/test/tint/builtins/gen/var/atomicMax/beccfc.wgsl @@ -30,7 +30,7 @@ fn atomicMax_beccfc() { var res: u32 = atomicMax(&arg_0, arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMax_beccfc(); } diff --git a/test/tint/builtins/gen/var/atomicMax/beccfc.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicMax/beccfc.wgsl.expected.wgsl index 8faab2f6f9..22cf4aab39 100644 --- a/test/tint/builtins/gen/var/atomicMax/beccfc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicMax/beccfc.wgsl.expected.wgsl @@ -5,7 +5,7 @@ fn atomicMax_beccfc() { var res : u32 = atomicMax(&(arg_0), arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMax_beccfc(); } diff --git a/test/tint/builtins/gen/var/atomicMin/278235.wgsl b/test/tint/builtins/gen/var/atomicMin/278235.wgsl index b3f15cbc81..4b0d96f3be 100644 --- a/test/tint/builtins/gen/var/atomicMin/278235.wgsl +++ b/test/tint/builtins/gen/var/atomicMin/278235.wgsl @@ -30,7 +30,7 @@ fn atomicMin_278235() { var res: i32 = atomicMin(&arg_0, arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMin_278235(); } diff --git a/test/tint/builtins/gen/var/atomicMin/278235.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicMin/278235.wgsl.expected.wgsl index b0a24df5fb..79955631a0 100644 --- a/test/tint/builtins/gen/var/atomicMin/278235.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicMin/278235.wgsl.expected.wgsl @@ -5,7 +5,7 @@ fn atomicMin_278235() { var res : i32 = atomicMin(&(arg_0), arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMin_278235(); } diff --git a/test/tint/builtins/gen/var/atomicMin/69d383.wgsl b/test/tint/builtins/gen/var/atomicMin/69d383.wgsl index c225e441cd..5869c28643 100644 --- a/test/tint/builtins/gen/var/atomicMin/69d383.wgsl +++ b/test/tint/builtins/gen/var/atomicMin/69d383.wgsl @@ -30,7 +30,7 @@ fn atomicMin_69d383() { var res: u32 = atomicMin(&arg_0, arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMin_69d383(); } diff --git a/test/tint/builtins/gen/var/atomicMin/69d383.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicMin/69d383.wgsl.expected.wgsl index 319c9cd06b..e0fd2ad915 100644 --- a/test/tint/builtins/gen/var/atomicMin/69d383.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicMin/69d383.wgsl.expected.wgsl @@ -5,7 +5,7 @@ fn atomicMin_69d383() { var res : u32 = atomicMin(&(arg_0), arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMin_69d383(); } diff --git a/test/tint/builtins/gen/var/atomicMin/8e38dc.wgsl b/test/tint/builtins/gen/var/atomicMin/8e38dc.wgsl index 283645af35..ec16a2387c 100644 --- a/test/tint/builtins/gen/var/atomicMin/8e38dc.wgsl +++ b/test/tint/builtins/gen/var/atomicMin/8e38dc.wgsl @@ -33,12 +33,12 @@ fn atomicMin_8e38dc() { var res: i32 = atomicMin(&sb_rw.arg_0, arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicMin_8e38dc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMin_8e38dc(); } diff --git a/test/tint/builtins/gen/var/atomicMin/8e38dc.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicMin/8e38dc.wgsl.expected.wgsl index 20955bd4f9..61d4a1eabe 100644 --- a/test/tint/builtins/gen/var/atomicMin/8e38dc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicMin/8e38dc.wgsl.expected.wgsl @@ -9,12 +9,12 @@ fn atomicMin_8e38dc() { var res : i32 = atomicMin(&(sb_rw.arg_0), arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicMin_8e38dc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMin_8e38dc(); } diff --git a/test/tint/builtins/gen/var/atomicMin/c67a74.wgsl b/test/tint/builtins/gen/var/atomicMin/c67a74.wgsl index 6975d3dbf2..fdeb3fddbb 100644 --- a/test/tint/builtins/gen/var/atomicMin/c67a74.wgsl +++ b/test/tint/builtins/gen/var/atomicMin/c67a74.wgsl @@ -33,12 +33,12 @@ fn atomicMin_c67a74() { var res: u32 = atomicMin(&sb_rw.arg_0, arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicMin_c67a74(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMin_c67a74(); } diff --git a/test/tint/builtins/gen/var/atomicMin/c67a74.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicMin/c67a74.wgsl.expected.wgsl index eeb2d0ec33..880c6a673d 100644 --- a/test/tint/builtins/gen/var/atomicMin/c67a74.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicMin/c67a74.wgsl.expected.wgsl @@ -9,12 +9,12 @@ fn atomicMin_c67a74() { var res : u32 = atomicMin(&(sb_rw.arg_0), arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicMin_c67a74(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicMin_c67a74(); } diff --git a/test/tint/builtins/gen/var/atomicOr/5e3d61.wgsl b/test/tint/builtins/gen/var/atomicOr/5e3d61.wgsl index e6ca7e85f2..ea40557f85 100644 --- a/test/tint/builtins/gen/var/atomicOr/5e3d61.wgsl +++ b/test/tint/builtins/gen/var/atomicOr/5e3d61.wgsl @@ -30,7 +30,7 @@ fn atomicOr_5e3d61() { var res: u32 = atomicOr(&arg_0, arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicOr_5e3d61(); } diff --git a/test/tint/builtins/gen/var/atomicOr/5e3d61.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicOr/5e3d61.wgsl.expected.wgsl index e1b1d1c924..c88c5a9b99 100644 --- a/test/tint/builtins/gen/var/atomicOr/5e3d61.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicOr/5e3d61.wgsl.expected.wgsl @@ -5,7 +5,7 @@ fn atomicOr_5e3d61() { var res : u32 = atomicOr(&(arg_0), arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicOr_5e3d61(); } diff --git a/test/tint/builtins/gen/var/atomicOr/5e95d4.wgsl b/test/tint/builtins/gen/var/atomicOr/5e95d4.wgsl index 874d94a4b7..153c6cd63d 100644 --- a/test/tint/builtins/gen/var/atomicOr/5e95d4.wgsl +++ b/test/tint/builtins/gen/var/atomicOr/5e95d4.wgsl @@ -33,12 +33,12 @@ fn atomicOr_5e95d4() { var res: u32 = atomicOr(&sb_rw.arg_0, arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicOr_5e95d4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicOr_5e95d4(); } diff --git a/test/tint/builtins/gen/var/atomicOr/5e95d4.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicOr/5e95d4.wgsl.expected.wgsl index c4407a3431..c9d86b6030 100644 --- a/test/tint/builtins/gen/var/atomicOr/5e95d4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicOr/5e95d4.wgsl.expected.wgsl @@ -9,12 +9,12 @@ fn atomicOr_5e95d4() { var res : u32 = atomicOr(&(sb_rw.arg_0), arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicOr_5e95d4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicOr_5e95d4(); } diff --git a/test/tint/builtins/gen/var/atomicOr/8d96a0.wgsl b/test/tint/builtins/gen/var/atomicOr/8d96a0.wgsl index 80c6328e19..f1bb27e4c3 100644 --- a/test/tint/builtins/gen/var/atomicOr/8d96a0.wgsl +++ b/test/tint/builtins/gen/var/atomicOr/8d96a0.wgsl @@ -33,12 +33,12 @@ fn atomicOr_8d96a0() { var res: i32 = atomicOr(&sb_rw.arg_0, arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicOr_8d96a0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicOr_8d96a0(); } diff --git a/test/tint/builtins/gen/var/atomicOr/8d96a0.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicOr/8d96a0.wgsl.expected.wgsl index 44a5caa696..dd513803b2 100644 --- a/test/tint/builtins/gen/var/atomicOr/8d96a0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicOr/8d96a0.wgsl.expected.wgsl @@ -9,12 +9,12 @@ fn atomicOr_8d96a0() { var res : i32 = atomicOr(&(sb_rw.arg_0), arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicOr_8d96a0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicOr_8d96a0(); } diff --git a/test/tint/builtins/gen/var/atomicOr/d09248.wgsl b/test/tint/builtins/gen/var/atomicOr/d09248.wgsl index 08cbf8921d..28624c9220 100644 --- a/test/tint/builtins/gen/var/atomicOr/d09248.wgsl +++ b/test/tint/builtins/gen/var/atomicOr/d09248.wgsl @@ -30,7 +30,7 @@ fn atomicOr_d09248() { var res: i32 = atomicOr(&arg_0, arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicOr_d09248(); } diff --git a/test/tint/builtins/gen/var/atomicOr/d09248.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicOr/d09248.wgsl.expected.wgsl index e5d8f51192..c8ae9e1efb 100644 --- a/test/tint/builtins/gen/var/atomicOr/d09248.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicOr/d09248.wgsl.expected.wgsl @@ -5,7 +5,7 @@ fn atomicOr_d09248() { var res : i32 = atomicOr(&(arg_0), arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicOr_d09248(); } diff --git a/test/tint/builtins/gen/var/atomicStore/726882.wgsl b/test/tint/builtins/gen/var/atomicStore/726882.wgsl index 64735cb7bc..7425dbe177 100644 --- a/test/tint/builtins/gen/var/atomicStore/726882.wgsl +++ b/test/tint/builtins/gen/var/atomicStore/726882.wgsl @@ -30,7 +30,7 @@ fn atomicStore_726882() { atomicStore(&arg_0, arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicStore_726882(); } diff --git a/test/tint/builtins/gen/var/atomicStore/726882.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicStore/726882.wgsl.expected.wgsl index 178d798dc7..a49ac811b1 100644 --- a/test/tint/builtins/gen/var/atomicStore/726882.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicStore/726882.wgsl.expected.wgsl @@ -5,7 +5,7 @@ fn atomicStore_726882() { atomicStore(&(arg_0), arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicStore_726882(); } diff --git a/test/tint/builtins/gen/var/atomicStore/8bea94.wgsl b/test/tint/builtins/gen/var/atomicStore/8bea94.wgsl index 38caf4fc02..e1d76bda11 100644 --- a/test/tint/builtins/gen/var/atomicStore/8bea94.wgsl +++ b/test/tint/builtins/gen/var/atomicStore/8bea94.wgsl @@ -30,7 +30,7 @@ fn atomicStore_8bea94() { atomicStore(&arg_0, arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicStore_8bea94(); } diff --git a/test/tint/builtins/gen/var/atomicStore/8bea94.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicStore/8bea94.wgsl.expected.wgsl index d68247e903..637085b9d2 100644 --- a/test/tint/builtins/gen/var/atomicStore/8bea94.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicStore/8bea94.wgsl.expected.wgsl @@ -5,7 +5,7 @@ fn atomicStore_8bea94() { atomicStore(&(arg_0), arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicStore_8bea94(); } diff --git a/test/tint/builtins/gen/var/atomicStore/cdc29e.wgsl b/test/tint/builtins/gen/var/atomicStore/cdc29e.wgsl index 51e7e1cf39..d62be5e2f8 100644 --- a/test/tint/builtins/gen/var/atomicStore/cdc29e.wgsl +++ b/test/tint/builtins/gen/var/atomicStore/cdc29e.wgsl @@ -33,12 +33,12 @@ fn atomicStore_cdc29e() { atomicStore(&sb_rw.arg_0, arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicStore_cdc29e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicStore_cdc29e(); } diff --git a/test/tint/builtins/gen/var/atomicStore/cdc29e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicStore/cdc29e.wgsl.expected.wgsl index 32a546ba2a..437c69e81c 100644 --- a/test/tint/builtins/gen/var/atomicStore/cdc29e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicStore/cdc29e.wgsl.expected.wgsl @@ -9,12 +9,12 @@ fn atomicStore_cdc29e() { atomicStore(&(sb_rw.arg_0), arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicStore_cdc29e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicStore_cdc29e(); } diff --git a/test/tint/builtins/gen/var/atomicStore/d1e9a6.wgsl b/test/tint/builtins/gen/var/atomicStore/d1e9a6.wgsl index 80db8961f2..faa4527038 100644 --- a/test/tint/builtins/gen/var/atomicStore/d1e9a6.wgsl +++ b/test/tint/builtins/gen/var/atomicStore/d1e9a6.wgsl @@ -33,12 +33,12 @@ fn atomicStore_d1e9a6() { atomicStore(&sb_rw.arg_0, arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicStore_d1e9a6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicStore_d1e9a6(); } diff --git a/test/tint/builtins/gen/var/atomicStore/d1e9a6.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicStore/d1e9a6.wgsl.expected.wgsl index cd1a3a77a5..6548753bb2 100644 --- a/test/tint/builtins/gen/var/atomicStore/d1e9a6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicStore/d1e9a6.wgsl.expected.wgsl @@ -9,12 +9,12 @@ fn atomicStore_d1e9a6() { atomicStore(&(sb_rw.arg_0), arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicStore_d1e9a6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicStore_d1e9a6(); } diff --git a/test/tint/builtins/gen/var/atomicSub/051100.wgsl b/test/tint/builtins/gen/var/atomicSub/051100.wgsl index 71c55601d2..f430b8e9b2 100644 --- a/test/tint/builtins/gen/var/atomicSub/051100.wgsl +++ b/test/tint/builtins/gen/var/atomicSub/051100.wgsl @@ -33,12 +33,12 @@ fn atomicSub_051100() { var res: i32 = atomicSub(&sb_rw.arg_0, arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicSub_051100(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicSub_051100(); } diff --git a/test/tint/builtins/gen/var/atomicSub/051100.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicSub/051100.wgsl.expected.wgsl index eb4964846b..6eecb4f561 100644 --- a/test/tint/builtins/gen/var/atomicSub/051100.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicSub/051100.wgsl.expected.wgsl @@ -9,12 +9,12 @@ fn atomicSub_051100() { var res : i32 = atomicSub(&(sb_rw.arg_0), arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicSub_051100(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicSub_051100(); } diff --git a/test/tint/builtins/gen/var/atomicSub/0d26c2.wgsl b/test/tint/builtins/gen/var/atomicSub/0d26c2.wgsl index 09c7895d89..f2031d55f5 100644 --- a/test/tint/builtins/gen/var/atomicSub/0d26c2.wgsl +++ b/test/tint/builtins/gen/var/atomicSub/0d26c2.wgsl @@ -30,7 +30,7 @@ fn atomicSub_0d26c2() { var res: u32 = atomicSub(&arg_0, arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicSub_0d26c2(); } diff --git a/test/tint/builtins/gen/var/atomicSub/0d26c2.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicSub/0d26c2.wgsl.expected.wgsl index d907bfba6b..1f5446e9aa 100644 --- a/test/tint/builtins/gen/var/atomicSub/0d26c2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicSub/0d26c2.wgsl.expected.wgsl @@ -5,7 +5,7 @@ fn atomicSub_0d26c2() { var res : u32 = atomicSub(&(arg_0), arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicSub_0d26c2(); } diff --git a/test/tint/builtins/gen/var/atomicSub/15bfc9.wgsl b/test/tint/builtins/gen/var/atomicSub/15bfc9.wgsl index 9caf71e073..b74494c2e5 100644 --- a/test/tint/builtins/gen/var/atomicSub/15bfc9.wgsl +++ b/test/tint/builtins/gen/var/atomicSub/15bfc9.wgsl @@ -33,12 +33,12 @@ fn atomicSub_15bfc9() { var res: u32 = atomicSub(&sb_rw.arg_0, arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicSub_15bfc9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicSub_15bfc9(); } diff --git a/test/tint/builtins/gen/var/atomicSub/15bfc9.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicSub/15bfc9.wgsl.expected.wgsl index a48de0750c..ea7a046dea 100644 --- a/test/tint/builtins/gen/var/atomicSub/15bfc9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicSub/15bfc9.wgsl.expected.wgsl @@ -9,12 +9,12 @@ fn atomicSub_15bfc9() { var res : u32 = atomicSub(&(sb_rw.arg_0), arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicSub_15bfc9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicSub_15bfc9(); } diff --git a/test/tint/builtins/gen/var/atomicSub/77883a.wgsl b/test/tint/builtins/gen/var/atomicSub/77883a.wgsl index 685ed0abc5..b36910729b 100644 --- a/test/tint/builtins/gen/var/atomicSub/77883a.wgsl +++ b/test/tint/builtins/gen/var/atomicSub/77883a.wgsl @@ -30,7 +30,7 @@ fn atomicSub_77883a() { var res: i32 = atomicSub(&arg_0, arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicSub_77883a(); } diff --git a/test/tint/builtins/gen/var/atomicSub/77883a.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicSub/77883a.wgsl.expected.wgsl index 8603aaba94..2c35436eeb 100644 --- a/test/tint/builtins/gen/var/atomicSub/77883a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicSub/77883a.wgsl.expected.wgsl @@ -5,7 +5,7 @@ fn atomicSub_77883a() { var res : i32 = atomicSub(&(arg_0), arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicSub_77883a(); } diff --git a/test/tint/builtins/gen/var/atomicXor/54510e.wgsl b/test/tint/builtins/gen/var/atomicXor/54510e.wgsl index e2285df5eb..11a41636b5 100644 --- a/test/tint/builtins/gen/var/atomicXor/54510e.wgsl +++ b/test/tint/builtins/gen/var/atomicXor/54510e.wgsl @@ -33,12 +33,12 @@ fn atomicXor_54510e() { var res: u32 = atomicXor(&sb_rw.arg_0, arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicXor_54510e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicXor_54510e(); } diff --git a/test/tint/builtins/gen/var/atomicXor/54510e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicXor/54510e.wgsl.expected.wgsl index fa8ead85d8..873a86320e 100644 --- a/test/tint/builtins/gen/var/atomicXor/54510e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicXor/54510e.wgsl.expected.wgsl @@ -9,12 +9,12 @@ fn atomicXor_54510e() { var res : u32 = atomicXor(&(sb_rw.arg_0), arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicXor_54510e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicXor_54510e(); } diff --git a/test/tint/builtins/gen/var/atomicXor/75dc95.wgsl b/test/tint/builtins/gen/var/atomicXor/75dc95.wgsl index 55a28e5625..ed43cfb761 100644 --- a/test/tint/builtins/gen/var/atomicXor/75dc95.wgsl +++ b/test/tint/builtins/gen/var/atomicXor/75dc95.wgsl @@ -30,7 +30,7 @@ fn atomicXor_75dc95() { var res: i32 = atomicXor(&arg_0, arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicXor_75dc95(); } diff --git a/test/tint/builtins/gen/var/atomicXor/75dc95.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicXor/75dc95.wgsl.expected.wgsl index cdba5abfe7..bf056861ac 100644 --- a/test/tint/builtins/gen/var/atomicXor/75dc95.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicXor/75dc95.wgsl.expected.wgsl @@ -5,7 +5,7 @@ fn atomicXor_75dc95() { var res : i32 = atomicXor(&(arg_0), arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicXor_75dc95(); } diff --git a/test/tint/builtins/gen/var/atomicXor/c1b78c.wgsl b/test/tint/builtins/gen/var/atomicXor/c1b78c.wgsl index 05bd6f2eac..a5e74ac57d 100644 --- a/test/tint/builtins/gen/var/atomicXor/c1b78c.wgsl +++ b/test/tint/builtins/gen/var/atomicXor/c1b78c.wgsl @@ -33,12 +33,12 @@ fn atomicXor_c1b78c() { var res: i32 = atomicXor(&sb_rw.arg_0, arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicXor_c1b78c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicXor_c1b78c(); } diff --git a/test/tint/builtins/gen/var/atomicXor/c1b78c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicXor/c1b78c.wgsl.expected.wgsl index af253cabd5..f26d9de339 100644 --- a/test/tint/builtins/gen/var/atomicXor/c1b78c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicXor/c1b78c.wgsl.expected.wgsl @@ -9,12 +9,12 @@ fn atomicXor_c1b78c() { var res : i32 = atomicXor(&(sb_rw.arg_0), arg_1); } -@stage(fragment) +@fragment fn fragment_main() { atomicXor_c1b78c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicXor_c1b78c(); } diff --git a/test/tint/builtins/gen/var/atomicXor/c8e6be.wgsl b/test/tint/builtins/gen/var/atomicXor/c8e6be.wgsl index 14a7921c29..5d6de90bba 100644 --- a/test/tint/builtins/gen/var/atomicXor/c8e6be.wgsl +++ b/test/tint/builtins/gen/var/atomicXor/c8e6be.wgsl @@ -30,7 +30,7 @@ fn atomicXor_c8e6be() { var res: u32 = atomicXor(&arg_0, arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicXor_c8e6be(); } diff --git a/test/tint/builtins/gen/var/atomicXor/c8e6be.wgsl.expected.wgsl b/test/tint/builtins/gen/var/atomicXor/c8e6be.wgsl.expected.wgsl index 7474f6a22e..3cf4fef326 100644 --- a/test/tint/builtins/gen/var/atomicXor/c8e6be.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/atomicXor/c8e6be.wgsl.expected.wgsl @@ -5,7 +5,7 @@ fn atomicXor_c8e6be() { var res : u32 = atomicXor(&(arg_0), arg_1); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { atomicXor_c8e6be(); } diff --git a/test/tint/builtins/gen/var/ceil/34064b.wgsl b/test/tint/builtins/gen/var/ceil/34064b.wgsl index 3c62e9823f..cbc875dfa1 100644 --- a/test/tint/builtins/gen/var/ceil/34064b.wgsl +++ b/test/tint/builtins/gen/var/ceil/34064b.wgsl @@ -29,18 +29,18 @@ fn ceil_34064b() { var res: vec3 = ceil(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ceil_34064b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ceil_34064b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ceil_34064b(); } diff --git a/test/tint/builtins/gen/var/ceil/34064b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/ceil/34064b.wgsl.expected.wgsl index 39d0feeded..2d02fec004 100644 --- a/test/tint/builtins/gen/var/ceil/34064b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/ceil/34064b.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn ceil_34064b() { var res : vec3 = ceil(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ceil_34064b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ceil_34064b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ceil_34064b(); } diff --git a/test/tint/builtins/gen/var/ceil/678655.wgsl b/test/tint/builtins/gen/var/ceil/678655.wgsl index 33d78f2cb9..ddb10727ea 100644 --- a/test/tint/builtins/gen/var/ceil/678655.wgsl +++ b/test/tint/builtins/gen/var/ceil/678655.wgsl @@ -29,18 +29,18 @@ fn ceil_678655() { var res: f32 = ceil(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ceil_678655(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ceil_678655(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ceil_678655(); } diff --git a/test/tint/builtins/gen/var/ceil/678655.wgsl.expected.wgsl b/test/tint/builtins/gen/var/ceil/678655.wgsl.expected.wgsl index 5a86a3280a..459d76bf23 100644 --- a/test/tint/builtins/gen/var/ceil/678655.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/ceil/678655.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn ceil_678655() { var res : f32 = ceil(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ceil_678655(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ceil_678655(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ceil_678655(); } diff --git a/test/tint/builtins/gen/var/ceil/96f597.wgsl b/test/tint/builtins/gen/var/ceil/96f597.wgsl index 71d5cab50f..c9b10f5aee 100644 --- a/test/tint/builtins/gen/var/ceil/96f597.wgsl +++ b/test/tint/builtins/gen/var/ceil/96f597.wgsl @@ -29,18 +29,18 @@ fn ceil_96f597() { var res: vec2 = ceil(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ceil_96f597(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ceil_96f597(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ceil_96f597(); } diff --git a/test/tint/builtins/gen/var/ceil/96f597.wgsl.expected.wgsl b/test/tint/builtins/gen/var/ceil/96f597.wgsl.expected.wgsl index a7a79c206c..03c02ba861 100644 --- a/test/tint/builtins/gen/var/ceil/96f597.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/ceil/96f597.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn ceil_96f597() { var res : vec2 = ceil(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ceil_96f597(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ceil_96f597(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ceil_96f597(); } diff --git a/test/tint/builtins/gen/var/ceil/b74c16.wgsl b/test/tint/builtins/gen/var/ceil/b74c16.wgsl index 7b74614b91..23a03bbb3f 100644 --- a/test/tint/builtins/gen/var/ceil/b74c16.wgsl +++ b/test/tint/builtins/gen/var/ceil/b74c16.wgsl @@ -29,18 +29,18 @@ fn ceil_b74c16() { var res: vec4 = ceil(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ceil_b74c16(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ceil_b74c16(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ceil_b74c16(); } diff --git a/test/tint/builtins/gen/var/ceil/b74c16.wgsl.expected.wgsl b/test/tint/builtins/gen/var/ceil/b74c16.wgsl.expected.wgsl index 2b573f8fb1..ebc8d63803 100644 --- a/test/tint/builtins/gen/var/ceil/b74c16.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/ceil/b74c16.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn ceil_b74c16() { var res : vec4 = ceil(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ceil_b74c16(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ceil_b74c16(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ceil_b74c16(); } diff --git a/test/tint/builtins/gen/var/clamp/0acf8f.wgsl b/test/tint/builtins/gen/var/clamp/0acf8f.wgsl index 314ca1a5c2..7cf569cd8f 100644 --- a/test/tint/builtins/gen/var/clamp/0acf8f.wgsl +++ b/test/tint/builtins/gen/var/clamp/0acf8f.wgsl @@ -31,18 +31,18 @@ fn clamp_0acf8f() { var res: vec2 = clamp(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_0acf8f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_0acf8f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_0acf8f(); } diff --git a/test/tint/builtins/gen/var/clamp/0acf8f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/clamp/0acf8f.wgsl.expected.wgsl index 9f954b4399..ab94dd3756 100644 --- a/test/tint/builtins/gen/var/clamp/0acf8f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/clamp/0acf8f.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn clamp_0acf8f() { var res : vec2 = clamp(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_0acf8f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_0acf8f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_0acf8f(); } diff --git a/test/tint/builtins/gen/var/clamp/1a32e3.wgsl b/test/tint/builtins/gen/var/clamp/1a32e3.wgsl index 52ae09cf86..72820a9cc8 100644 --- a/test/tint/builtins/gen/var/clamp/1a32e3.wgsl +++ b/test/tint/builtins/gen/var/clamp/1a32e3.wgsl @@ -31,18 +31,18 @@ fn clamp_1a32e3() { var res: vec4 = clamp(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_1a32e3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_1a32e3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_1a32e3(); } diff --git a/test/tint/builtins/gen/var/clamp/1a32e3.wgsl.expected.wgsl b/test/tint/builtins/gen/var/clamp/1a32e3.wgsl.expected.wgsl index 6c2345ea37..71ff9a68b0 100644 --- a/test/tint/builtins/gen/var/clamp/1a32e3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/clamp/1a32e3.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn clamp_1a32e3() { var res : vec4 = clamp(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_1a32e3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_1a32e3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_1a32e3(); } diff --git a/test/tint/builtins/gen/var/clamp/2bd567.wgsl b/test/tint/builtins/gen/var/clamp/2bd567.wgsl index 8c1abc8db6..9e94cc25d7 100644 --- a/test/tint/builtins/gen/var/clamp/2bd567.wgsl +++ b/test/tint/builtins/gen/var/clamp/2bd567.wgsl @@ -31,18 +31,18 @@ fn clamp_2bd567() { var res: f32 = clamp(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_2bd567(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_2bd567(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_2bd567(); } diff --git a/test/tint/builtins/gen/var/clamp/2bd567.wgsl.expected.wgsl b/test/tint/builtins/gen/var/clamp/2bd567.wgsl.expected.wgsl index 44a3ecd99a..e5148b543b 100644 --- a/test/tint/builtins/gen/var/clamp/2bd567.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/clamp/2bd567.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn clamp_2bd567() { var res : f32 = clamp(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_2bd567(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_2bd567(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_2bd567(); } diff --git a/test/tint/builtins/gen/var/clamp/2bde41.wgsl b/test/tint/builtins/gen/var/clamp/2bde41.wgsl index f542172eaa..4cc18eaf27 100644 --- a/test/tint/builtins/gen/var/clamp/2bde41.wgsl +++ b/test/tint/builtins/gen/var/clamp/2bde41.wgsl @@ -31,18 +31,18 @@ fn clamp_2bde41() { var res: vec4 = clamp(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_2bde41(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_2bde41(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_2bde41(); } diff --git a/test/tint/builtins/gen/var/clamp/2bde41.wgsl.expected.wgsl b/test/tint/builtins/gen/var/clamp/2bde41.wgsl.expected.wgsl index 2a3dcf57e9..dc20a1ca34 100644 --- a/test/tint/builtins/gen/var/clamp/2bde41.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/clamp/2bde41.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn clamp_2bde41() { var res : vec4 = clamp(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_2bde41(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_2bde41(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_2bde41(); } diff --git a/test/tint/builtins/gen/var/clamp/548fc7.wgsl b/test/tint/builtins/gen/var/clamp/548fc7.wgsl index 9ea35b0327..3b65837835 100644 --- a/test/tint/builtins/gen/var/clamp/548fc7.wgsl +++ b/test/tint/builtins/gen/var/clamp/548fc7.wgsl @@ -31,18 +31,18 @@ fn clamp_548fc7() { var res: vec3 = clamp(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_548fc7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_548fc7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_548fc7(); } diff --git a/test/tint/builtins/gen/var/clamp/548fc7.wgsl.expected.wgsl b/test/tint/builtins/gen/var/clamp/548fc7.wgsl.expected.wgsl index bf9f086f9a..379f026af6 100644 --- a/test/tint/builtins/gen/var/clamp/548fc7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/clamp/548fc7.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn clamp_548fc7() { var res : vec3 = clamp(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_548fc7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_548fc7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_548fc7(); } diff --git a/test/tint/builtins/gen/var/clamp/5f0819.wgsl b/test/tint/builtins/gen/var/clamp/5f0819.wgsl index 96b23a5502..7f51c24638 100644 --- a/test/tint/builtins/gen/var/clamp/5f0819.wgsl +++ b/test/tint/builtins/gen/var/clamp/5f0819.wgsl @@ -31,18 +31,18 @@ fn clamp_5f0819() { var res: vec3 = clamp(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_5f0819(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_5f0819(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_5f0819(); } diff --git a/test/tint/builtins/gen/var/clamp/5f0819.wgsl.expected.wgsl b/test/tint/builtins/gen/var/clamp/5f0819.wgsl.expected.wgsl index 8a70766f49..dcc0a15578 100644 --- a/test/tint/builtins/gen/var/clamp/5f0819.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/clamp/5f0819.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn clamp_5f0819() { var res : vec3 = clamp(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_5f0819(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_5f0819(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_5f0819(); } diff --git a/test/tint/builtins/gen/var/clamp/6c1749.wgsl b/test/tint/builtins/gen/var/clamp/6c1749.wgsl index fdb16e616f..35f286608e 100644 --- a/test/tint/builtins/gen/var/clamp/6c1749.wgsl +++ b/test/tint/builtins/gen/var/clamp/6c1749.wgsl @@ -31,18 +31,18 @@ fn clamp_6c1749() { var res: vec2 = clamp(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_6c1749(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_6c1749(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_6c1749(); } diff --git a/test/tint/builtins/gen/var/clamp/6c1749.wgsl.expected.wgsl b/test/tint/builtins/gen/var/clamp/6c1749.wgsl.expected.wgsl index f2882ec941..6f0e8a31a8 100644 --- a/test/tint/builtins/gen/var/clamp/6c1749.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/clamp/6c1749.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn clamp_6c1749() { var res : vec2 = clamp(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_6c1749(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_6c1749(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_6c1749(); } diff --git a/test/tint/builtins/gen/var/clamp/7706d7.wgsl b/test/tint/builtins/gen/var/clamp/7706d7.wgsl index c708aeb4ef..8833b83ead 100644 --- a/test/tint/builtins/gen/var/clamp/7706d7.wgsl +++ b/test/tint/builtins/gen/var/clamp/7706d7.wgsl @@ -31,18 +31,18 @@ fn clamp_7706d7() { var res: vec2 = clamp(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_7706d7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_7706d7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_7706d7(); } diff --git a/test/tint/builtins/gen/var/clamp/7706d7.wgsl.expected.wgsl b/test/tint/builtins/gen/var/clamp/7706d7.wgsl.expected.wgsl index cde513dd5a..44b7096d1c 100644 --- a/test/tint/builtins/gen/var/clamp/7706d7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/clamp/7706d7.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn clamp_7706d7() { var res : vec2 = clamp(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_7706d7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_7706d7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_7706d7(); } diff --git a/test/tint/builtins/gen/var/clamp/867397.wgsl b/test/tint/builtins/gen/var/clamp/867397.wgsl index 8b545a0808..1ecea11404 100644 --- a/test/tint/builtins/gen/var/clamp/867397.wgsl +++ b/test/tint/builtins/gen/var/clamp/867397.wgsl @@ -31,18 +31,18 @@ fn clamp_867397() { var res: vec3 = clamp(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_867397(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_867397(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_867397(); } diff --git a/test/tint/builtins/gen/var/clamp/867397.wgsl.expected.wgsl b/test/tint/builtins/gen/var/clamp/867397.wgsl.expected.wgsl index a175b663f6..48f43ad7e0 100644 --- a/test/tint/builtins/gen/var/clamp/867397.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/clamp/867397.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn clamp_867397() { var res : vec3 = clamp(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_867397(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_867397(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_867397(); } diff --git a/test/tint/builtins/gen/var/clamp/a2de25.wgsl b/test/tint/builtins/gen/var/clamp/a2de25.wgsl index 76d9689f40..49f3a3286c 100644 --- a/test/tint/builtins/gen/var/clamp/a2de25.wgsl +++ b/test/tint/builtins/gen/var/clamp/a2de25.wgsl @@ -31,18 +31,18 @@ fn clamp_a2de25() { var res: u32 = clamp(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_a2de25(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_a2de25(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_a2de25(); } diff --git a/test/tint/builtins/gen/var/clamp/a2de25.wgsl.expected.wgsl b/test/tint/builtins/gen/var/clamp/a2de25.wgsl.expected.wgsl index 33b39e682a..a2e55fe571 100644 --- a/test/tint/builtins/gen/var/clamp/a2de25.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/clamp/a2de25.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn clamp_a2de25() { var res : u32 = clamp(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_a2de25(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_a2de25(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_a2de25(); } diff --git a/test/tint/builtins/gen/var/clamp/b07c65.wgsl b/test/tint/builtins/gen/var/clamp/b07c65.wgsl index be73d24f20..914713fe0d 100644 --- a/test/tint/builtins/gen/var/clamp/b07c65.wgsl +++ b/test/tint/builtins/gen/var/clamp/b07c65.wgsl @@ -31,18 +31,18 @@ fn clamp_b07c65() { var res: i32 = clamp(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_b07c65(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_b07c65(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_b07c65(); } diff --git a/test/tint/builtins/gen/var/clamp/b07c65.wgsl.expected.wgsl b/test/tint/builtins/gen/var/clamp/b07c65.wgsl.expected.wgsl index 7e9b627164..ea26e1122b 100644 --- a/test/tint/builtins/gen/var/clamp/b07c65.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/clamp/b07c65.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn clamp_b07c65() { var res : i32 = clamp(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_b07c65(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_b07c65(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_b07c65(); } diff --git a/test/tint/builtins/gen/var/clamp/bd43ce.wgsl b/test/tint/builtins/gen/var/clamp/bd43ce.wgsl index 1c3d30035f..64f80bbf01 100644 --- a/test/tint/builtins/gen/var/clamp/bd43ce.wgsl +++ b/test/tint/builtins/gen/var/clamp/bd43ce.wgsl @@ -31,18 +31,18 @@ fn clamp_bd43ce() { var res: vec4 = clamp(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_bd43ce(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_bd43ce(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_bd43ce(); } diff --git a/test/tint/builtins/gen/var/clamp/bd43ce.wgsl.expected.wgsl b/test/tint/builtins/gen/var/clamp/bd43ce.wgsl.expected.wgsl index e3cd79c2a2..fddc51d48c 100644 --- a/test/tint/builtins/gen/var/clamp/bd43ce.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/clamp/bd43ce.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn clamp_bd43ce() { var res : vec4 = clamp(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { clamp_bd43ce(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { clamp_bd43ce(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { clamp_bd43ce(); } diff --git a/test/tint/builtins/gen/var/cos/16dc15.wgsl b/test/tint/builtins/gen/var/cos/16dc15.wgsl index 05cfa561d5..af1d95bfb8 100644 --- a/test/tint/builtins/gen/var/cos/16dc15.wgsl +++ b/test/tint/builtins/gen/var/cos/16dc15.wgsl @@ -29,18 +29,18 @@ fn cos_16dc15() { var res: vec3 = cos(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cos_16dc15(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cos_16dc15(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cos_16dc15(); } diff --git a/test/tint/builtins/gen/var/cos/16dc15.wgsl.expected.wgsl b/test/tint/builtins/gen/var/cos/16dc15.wgsl.expected.wgsl index 9c71b8699e..0e3ad8b68f 100644 --- a/test/tint/builtins/gen/var/cos/16dc15.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/cos/16dc15.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn cos_16dc15() { var res : vec3 = cos(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cos_16dc15(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cos_16dc15(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cos_16dc15(); } diff --git a/test/tint/builtins/gen/var/cos/29d66d.wgsl b/test/tint/builtins/gen/var/cos/29d66d.wgsl index 9490acc5f6..bc78623738 100644 --- a/test/tint/builtins/gen/var/cos/29d66d.wgsl +++ b/test/tint/builtins/gen/var/cos/29d66d.wgsl @@ -29,18 +29,18 @@ fn cos_29d66d() { var res: vec4 = cos(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cos_29d66d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cos_29d66d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cos_29d66d(); } diff --git a/test/tint/builtins/gen/var/cos/29d66d.wgsl.expected.wgsl b/test/tint/builtins/gen/var/cos/29d66d.wgsl.expected.wgsl index 7d9b60e828..bc19b1f4eb 100644 --- a/test/tint/builtins/gen/var/cos/29d66d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/cos/29d66d.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn cos_29d66d() { var res : vec4 = cos(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cos_29d66d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cos_29d66d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cos_29d66d(); } diff --git a/test/tint/builtins/gen/var/cos/c3b486.wgsl b/test/tint/builtins/gen/var/cos/c3b486.wgsl index 263bdecc59..979475c771 100644 --- a/test/tint/builtins/gen/var/cos/c3b486.wgsl +++ b/test/tint/builtins/gen/var/cos/c3b486.wgsl @@ -29,18 +29,18 @@ fn cos_c3b486() { var res: vec2 = cos(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cos_c3b486(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cos_c3b486(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cos_c3b486(); } diff --git a/test/tint/builtins/gen/var/cos/c3b486.wgsl.expected.wgsl b/test/tint/builtins/gen/var/cos/c3b486.wgsl.expected.wgsl index fab94dacc7..3fa3a8af53 100644 --- a/test/tint/builtins/gen/var/cos/c3b486.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/cos/c3b486.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn cos_c3b486() { var res : vec2 = cos(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cos_c3b486(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cos_c3b486(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cos_c3b486(); } diff --git a/test/tint/builtins/gen/var/cos/c5c28e.wgsl b/test/tint/builtins/gen/var/cos/c5c28e.wgsl index b94af0365b..d680525caa 100644 --- a/test/tint/builtins/gen/var/cos/c5c28e.wgsl +++ b/test/tint/builtins/gen/var/cos/c5c28e.wgsl @@ -29,18 +29,18 @@ fn cos_c5c28e() { var res: f32 = cos(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cos_c5c28e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cos_c5c28e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cos_c5c28e(); } diff --git a/test/tint/builtins/gen/var/cos/c5c28e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/cos/c5c28e.wgsl.expected.wgsl index c6854ffe48..f4a349634a 100644 --- a/test/tint/builtins/gen/var/cos/c5c28e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/cos/c5c28e.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn cos_c5c28e() { var res : f32 = cos(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cos_c5c28e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cos_c5c28e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cos_c5c28e(); } diff --git a/test/tint/builtins/gen/var/cosh/377652.wgsl b/test/tint/builtins/gen/var/cosh/377652.wgsl index b6fdb2ef63..4be962335f 100644 --- a/test/tint/builtins/gen/var/cosh/377652.wgsl +++ b/test/tint/builtins/gen/var/cosh/377652.wgsl @@ -29,18 +29,18 @@ fn cosh_377652() { var res: vec3 = cosh(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cosh_377652(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cosh_377652(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cosh_377652(); } diff --git a/test/tint/builtins/gen/var/cosh/377652.wgsl.expected.wgsl b/test/tint/builtins/gen/var/cosh/377652.wgsl.expected.wgsl index 308581e53d..1fbd605fc3 100644 --- a/test/tint/builtins/gen/var/cosh/377652.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/cosh/377652.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn cosh_377652() { var res : vec3 = cosh(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cosh_377652(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cosh_377652(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cosh_377652(); } diff --git a/test/tint/builtins/gen/var/cosh/c13756.wgsl b/test/tint/builtins/gen/var/cosh/c13756.wgsl index 898d074978..64cf4ca45f 100644 --- a/test/tint/builtins/gen/var/cosh/c13756.wgsl +++ b/test/tint/builtins/gen/var/cosh/c13756.wgsl @@ -29,18 +29,18 @@ fn cosh_c13756() { var res: vec2 = cosh(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cosh_c13756(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cosh_c13756(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cosh_c13756(); } diff --git a/test/tint/builtins/gen/var/cosh/c13756.wgsl.expected.wgsl b/test/tint/builtins/gen/var/cosh/c13756.wgsl.expected.wgsl index 41a6061df6..174271b1b5 100644 --- a/test/tint/builtins/gen/var/cosh/c13756.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/cosh/c13756.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn cosh_c13756() { var res : vec2 = cosh(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cosh_c13756(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cosh_c13756(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cosh_c13756(); } diff --git a/test/tint/builtins/gen/var/cosh/da92dd.wgsl b/test/tint/builtins/gen/var/cosh/da92dd.wgsl index fc2f3a6529..46149314ab 100644 --- a/test/tint/builtins/gen/var/cosh/da92dd.wgsl +++ b/test/tint/builtins/gen/var/cosh/da92dd.wgsl @@ -29,18 +29,18 @@ fn cosh_da92dd() { var res: f32 = cosh(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cosh_da92dd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cosh_da92dd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cosh_da92dd(); } diff --git a/test/tint/builtins/gen/var/cosh/da92dd.wgsl.expected.wgsl b/test/tint/builtins/gen/var/cosh/da92dd.wgsl.expected.wgsl index 5a09829866..aa89982df4 100644 --- a/test/tint/builtins/gen/var/cosh/da92dd.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/cosh/da92dd.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn cosh_da92dd() { var res : f32 = cosh(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cosh_da92dd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cosh_da92dd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cosh_da92dd(); } diff --git a/test/tint/builtins/gen/var/cosh/e0c1de.wgsl b/test/tint/builtins/gen/var/cosh/e0c1de.wgsl index 926fd6771b..20b68e279c 100644 --- a/test/tint/builtins/gen/var/cosh/e0c1de.wgsl +++ b/test/tint/builtins/gen/var/cosh/e0c1de.wgsl @@ -29,18 +29,18 @@ fn cosh_e0c1de() { var res: vec4 = cosh(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cosh_e0c1de(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cosh_e0c1de(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cosh_e0c1de(); } diff --git a/test/tint/builtins/gen/var/cosh/e0c1de.wgsl.expected.wgsl b/test/tint/builtins/gen/var/cosh/e0c1de.wgsl.expected.wgsl index 51b4fd511b..5464947f7f 100644 --- a/test/tint/builtins/gen/var/cosh/e0c1de.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/cosh/e0c1de.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn cosh_e0c1de() { var res : vec4 = cosh(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cosh_e0c1de(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cosh_e0c1de(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cosh_e0c1de(); } diff --git a/test/tint/builtins/gen/var/countLeadingZeros/208d46.wgsl b/test/tint/builtins/gen/var/countLeadingZeros/208d46.wgsl index 40b1848062..adcbb5ebda 100644 --- a/test/tint/builtins/gen/var/countLeadingZeros/208d46.wgsl +++ b/test/tint/builtins/gen/var/countLeadingZeros/208d46.wgsl @@ -29,18 +29,18 @@ fn countLeadingZeros_208d46() { var res: u32 = countLeadingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_208d46(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_208d46(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_208d46(); } diff --git a/test/tint/builtins/gen/var/countLeadingZeros/208d46.wgsl.expected.wgsl b/test/tint/builtins/gen/var/countLeadingZeros/208d46.wgsl.expected.wgsl index 052dd97129..fe43b71e84 100644 --- a/test/tint/builtins/gen/var/countLeadingZeros/208d46.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/countLeadingZeros/208d46.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn countLeadingZeros_208d46() { var res : u32 = countLeadingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_208d46(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_208d46(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_208d46(); } diff --git a/test/tint/builtins/gen/var/countLeadingZeros/6d4656.wgsl b/test/tint/builtins/gen/var/countLeadingZeros/6d4656.wgsl index db877abbfc..dba9c83f00 100644 --- a/test/tint/builtins/gen/var/countLeadingZeros/6d4656.wgsl +++ b/test/tint/builtins/gen/var/countLeadingZeros/6d4656.wgsl @@ -29,18 +29,18 @@ fn countLeadingZeros_6d4656() { var res: i32 = countLeadingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_6d4656(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_6d4656(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_6d4656(); } diff --git a/test/tint/builtins/gen/var/countLeadingZeros/6d4656.wgsl.expected.wgsl b/test/tint/builtins/gen/var/countLeadingZeros/6d4656.wgsl.expected.wgsl index 8e14227db8..2b8a2721c5 100644 --- a/test/tint/builtins/gen/var/countLeadingZeros/6d4656.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/countLeadingZeros/6d4656.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn countLeadingZeros_6d4656() { var res : i32 = countLeadingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_6d4656(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_6d4656(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_6d4656(); } diff --git a/test/tint/builtins/gen/var/countLeadingZeros/70783f.wgsl b/test/tint/builtins/gen/var/countLeadingZeros/70783f.wgsl index 0c22c5766c..708e39eed7 100644 --- a/test/tint/builtins/gen/var/countLeadingZeros/70783f.wgsl +++ b/test/tint/builtins/gen/var/countLeadingZeros/70783f.wgsl @@ -29,18 +29,18 @@ fn countLeadingZeros_70783f() { var res: vec2 = countLeadingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_70783f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_70783f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_70783f(); } diff --git a/test/tint/builtins/gen/var/countLeadingZeros/70783f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/countLeadingZeros/70783f.wgsl.expected.wgsl index f005d3528c..1be223d26f 100644 --- a/test/tint/builtins/gen/var/countLeadingZeros/70783f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/countLeadingZeros/70783f.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn countLeadingZeros_70783f() { var res : vec2 = countLeadingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_70783f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_70783f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_70783f(); } diff --git a/test/tint/builtins/gen/var/countLeadingZeros/7c38a6.wgsl b/test/tint/builtins/gen/var/countLeadingZeros/7c38a6.wgsl index 597fb8cd29..e85aae2fd5 100644 --- a/test/tint/builtins/gen/var/countLeadingZeros/7c38a6.wgsl +++ b/test/tint/builtins/gen/var/countLeadingZeros/7c38a6.wgsl @@ -29,18 +29,18 @@ fn countLeadingZeros_7c38a6() { var res: vec3 = countLeadingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_7c38a6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_7c38a6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_7c38a6(); } diff --git a/test/tint/builtins/gen/var/countLeadingZeros/7c38a6.wgsl.expected.wgsl b/test/tint/builtins/gen/var/countLeadingZeros/7c38a6.wgsl.expected.wgsl index b4f5e0a110..8134473594 100644 --- a/test/tint/builtins/gen/var/countLeadingZeros/7c38a6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/countLeadingZeros/7c38a6.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn countLeadingZeros_7c38a6() { var res : vec3 = countLeadingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_7c38a6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_7c38a6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_7c38a6(); } diff --git a/test/tint/builtins/gen/var/countLeadingZeros/858d40.wgsl b/test/tint/builtins/gen/var/countLeadingZeros/858d40.wgsl index cdc1846dc5..bbc1b6ce6c 100644 --- a/test/tint/builtins/gen/var/countLeadingZeros/858d40.wgsl +++ b/test/tint/builtins/gen/var/countLeadingZeros/858d40.wgsl @@ -29,18 +29,18 @@ fn countLeadingZeros_858d40() { var res: vec2 = countLeadingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_858d40(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_858d40(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_858d40(); } diff --git a/test/tint/builtins/gen/var/countLeadingZeros/858d40.wgsl.expected.wgsl b/test/tint/builtins/gen/var/countLeadingZeros/858d40.wgsl.expected.wgsl index 7636a6b088..41f4dedf83 100644 --- a/test/tint/builtins/gen/var/countLeadingZeros/858d40.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/countLeadingZeros/858d40.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn countLeadingZeros_858d40() { var res : vec2 = countLeadingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_858d40(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_858d40(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_858d40(); } diff --git a/test/tint/builtins/gen/var/countLeadingZeros/ab6345.wgsl b/test/tint/builtins/gen/var/countLeadingZeros/ab6345.wgsl index f27d250d8d..e9073605d9 100644 --- a/test/tint/builtins/gen/var/countLeadingZeros/ab6345.wgsl +++ b/test/tint/builtins/gen/var/countLeadingZeros/ab6345.wgsl @@ -29,18 +29,18 @@ fn countLeadingZeros_ab6345() { var res: vec3 = countLeadingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_ab6345(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_ab6345(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_ab6345(); } diff --git a/test/tint/builtins/gen/var/countLeadingZeros/ab6345.wgsl.expected.wgsl b/test/tint/builtins/gen/var/countLeadingZeros/ab6345.wgsl.expected.wgsl index a9936e094c..70c66e2ab0 100644 --- a/test/tint/builtins/gen/var/countLeadingZeros/ab6345.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/countLeadingZeros/ab6345.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn countLeadingZeros_ab6345() { var res : vec3 = countLeadingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_ab6345(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_ab6345(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_ab6345(); } diff --git a/test/tint/builtins/gen/var/countLeadingZeros/eab32b.wgsl b/test/tint/builtins/gen/var/countLeadingZeros/eab32b.wgsl index c3a1e880f8..25d15db376 100644 --- a/test/tint/builtins/gen/var/countLeadingZeros/eab32b.wgsl +++ b/test/tint/builtins/gen/var/countLeadingZeros/eab32b.wgsl @@ -29,18 +29,18 @@ fn countLeadingZeros_eab32b() { var res: vec4 = countLeadingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_eab32b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_eab32b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_eab32b(); } diff --git a/test/tint/builtins/gen/var/countLeadingZeros/eab32b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/countLeadingZeros/eab32b.wgsl.expected.wgsl index 2cfb1aee82..148e8dda3e 100644 --- a/test/tint/builtins/gen/var/countLeadingZeros/eab32b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/countLeadingZeros/eab32b.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn countLeadingZeros_eab32b() { var res : vec4 = countLeadingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_eab32b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_eab32b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_eab32b(); } diff --git a/test/tint/builtins/gen/var/countLeadingZeros/f70103.wgsl b/test/tint/builtins/gen/var/countLeadingZeros/f70103.wgsl index ca3af73fd2..5d7ba1ecc5 100644 --- a/test/tint/builtins/gen/var/countLeadingZeros/f70103.wgsl +++ b/test/tint/builtins/gen/var/countLeadingZeros/f70103.wgsl @@ -29,18 +29,18 @@ fn countLeadingZeros_f70103() { var res: vec4 = countLeadingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_f70103(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_f70103(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_f70103(); } diff --git a/test/tint/builtins/gen/var/countLeadingZeros/f70103.wgsl.expected.wgsl b/test/tint/builtins/gen/var/countLeadingZeros/f70103.wgsl.expected.wgsl index 62fbfc6aff..335e6b57fc 100644 --- a/test/tint/builtins/gen/var/countLeadingZeros/f70103.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/countLeadingZeros/f70103.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn countLeadingZeros_f70103() { var res : vec4 = countLeadingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countLeadingZeros_f70103(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countLeadingZeros_f70103(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countLeadingZeros_f70103(); } diff --git a/test/tint/builtins/gen/var/countOneBits/0d0e46.wgsl b/test/tint/builtins/gen/var/countOneBits/0d0e46.wgsl index 61a57d3c6f..ae4744b0b9 100644 --- a/test/tint/builtins/gen/var/countOneBits/0d0e46.wgsl +++ b/test/tint/builtins/gen/var/countOneBits/0d0e46.wgsl @@ -29,18 +29,18 @@ fn countOneBits_0d0e46() { var res: vec4 = countOneBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_0d0e46(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_0d0e46(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_0d0e46(); } diff --git a/test/tint/builtins/gen/var/countOneBits/0d0e46.wgsl.expected.wgsl b/test/tint/builtins/gen/var/countOneBits/0d0e46.wgsl.expected.wgsl index fd7c5563aa..a63706539b 100644 --- a/test/tint/builtins/gen/var/countOneBits/0d0e46.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/countOneBits/0d0e46.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn countOneBits_0d0e46() { var res : vec4 = countOneBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_0d0e46(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_0d0e46(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_0d0e46(); } diff --git a/test/tint/builtins/gen/var/countOneBits/0f7980.wgsl b/test/tint/builtins/gen/var/countOneBits/0f7980.wgsl index 0e27caa5af..e838c5f43c 100644 --- a/test/tint/builtins/gen/var/countOneBits/0f7980.wgsl +++ b/test/tint/builtins/gen/var/countOneBits/0f7980.wgsl @@ -29,18 +29,18 @@ fn countOneBits_0f7980() { var res: vec4 = countOneBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_0f7980(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_0f7980(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_0f7980(); } diff --git a/test/tint/builtins/gen/var/countOneBits/0f7980.wgsl.expected.wgsl b/test/tint/builtins/gen/var/countOneBits/0f7980.wgsl.expected.wgsl index 200c35e759..d96bd55565 100644 --- a/test/tint/builtins/gen/var/countOneBits/0f7980.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/countOneBits/0f7980.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn countOneBits_0f7980() { var res : vec4 = countOneBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_0f7980(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_0f7980(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_0f7980(); } diff --git a/test/tint/builtins/gen/var/countOneBits/65d2ae.wgsl b/test/tint/builtins/gen/var/countOneBits/65d2ae.wgsl index 5b4d0a253c..6fff4584d2 100644 --- a/test/tint/builtins/gen/var/countOneBits/65d2ae.wgsl +++ b/test/tint/builtins/gen/var/countOneBits/65d2ae.wgsl @@ -29,18 +29,18 @@ fn countOneBits_65d2ae() { var res: vec3 = countOneBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_65d2ae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_65d2ae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_65d2ae(); } diff --git a/test/tint/builtins/gen/var/countOneBits/65d2ae.wgsl.expected.wgsl b/test/tint/builtins/gen/var/countOneBits/65d2ae.wgsl.expected.wgsl index f5a982382b..7822ad944c 100644 --- a/test/tint/builtins/gen/var/countOneBits/65d2ae.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/countOneBits/65d2ae.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn countOneBits_65d2ae() { var res : vec3 = countOneBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_65d2ae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_65d2ae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_65d2ae(); } diff --git a/test/tint/builtins/gen/var/countOneBits/690cfc.wgsl b/test/tint/builtins/gen/var/countOneBits/690cfc.wgsl index 737f27652c..ce01495b9f 100644 --- a/test/tint/builtins/gen/var/countOneBits/690cfc.wgsl +++ b/test/tint/builtins/gen/var/countOneBits/690cfc.wgsl @@ -29,18 +29,18 @@ fn countOneBits_690cfc() { var res: vec3 = countOneBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_690cfc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_690cfc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_690cfc(); } diff --git a/test/tint/builtins/gen/var/countOneBits/690cfc.wgsl.expected.wgsl b/test/tint/builtins/gen/var/countOneBits/690cfc.wgsl.expected.wgsl index 4c33e511b9..15f3f7fdbe 100644 --- a/test/tint/builtins/gen/var/countOneBits/690cfc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/countOneBits/690cfc.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn countOneBits_690cfc() { var res : vec3 = countOneBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_690cfc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_690cfc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_690cfc(); } diff --git a/test/tint/builtins/gen/var/countOneBits/94fd81.wgsl b/test/tint/builtins/gen/var/countOneBits/94fd81.wgsl index 6832818658..829ed10ae6 100644 --- a/test/tint/builtins/gen/var/countOneBits/94fd81.wgsl +++ b/test/tint/builtins/gen/var/countOneBits/94fd81.wgsl @@ -29,18 +29,18 @@ fn countOneBits_94fd81() { var res: vec2 = countOneBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_94fd81(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_94fd81(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_94fd81(); } diff --git a/test/tint/builtins/gen/var/countOneBits/94fd81.wgsl.expected.wgsl b/test/tint/builtins/gen/var/countOneBits/94fd81.wgsl.expected.wgsl index 5048e6c7a5..6925afb241 100644 --- a/test/tint/builtins/gen/var/countOneBits/94fd81.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/countOneBits/94fd81.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn countOneBits_94fd81() { var res : vec2 = countOneBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_94fd81(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_94fd81(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_94fd81(); } diff --git a/test/tint/builtins/gen/var/countOneBits/ae44f9.wgsl b/test/tint/builtins/gen/var/countOneBits/ae44f9.wgsl index 3e6f59ae1f..02722386c6 100644 --- a/test/tint/builtins/gen/var/countOneBits/ae44f9.wgsl +++ b/test/tint/builtins/gen/var/countOneBits/ae44f9.wgsl @@ -29,18 +29,18 @@ fn countOneBits_ae44f9() { var res: u32 = countOneBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_ae44f9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_ae44f9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_ae44f9(); } diff --git a/test/tint/builtins/gen/var/countOneBits/ae44f9.wgsl.expected.wgsl b/test/tint/builtins/gen/var/countOneBits/ae44f9.wgsl.expected.wgsl index 3c536e6d75..7d63e7b66e 100644 --- a/test/tint/builtins/gen/var/countOneBits/ae44f9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/countOneBits/ae44f9.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn countOneBits_ae44f9() { var res : u32 = countOneBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_ae44f9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_ae44f9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_ae44f9(); } diff --git a/test/tint/builtins/gen/var/countOneBits/af90e2.wgsl b/test/tint/builtins/gen/var/countOneBits/af90e2.wgsl index c9d9775429..5d14ec563a 100644 --- a/test/tint/builtins/gen/var/countOneBits/af90e2.wgsl +++ b/test/tint/builtins/gen/var/countOneBits/af90e2.wgsl @@ -29,18 +29,18 @@ fn countOneBits_af90e2() { var res: vec2 = countOneBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_af90e2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_af90e2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_af90e2(); } diff --git a/test/tint/builtins/gen/var/countOneBits/af90e2.wgsl.expected.wgsl b/test/tint/builtins/gen/var/countOneBits/af90e2.wgsl.expected.wgsl index 259a107d8b..d64dedad3b 100644 --- a/test/tint/builtins/gen/var/countOneBits/af90e2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/countOneBits/af90e2.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn countOneBits_af90e2() { var res : vec2 = countOneBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_af90e2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_af90e2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_af90e2(); } diff --git a/test/tint/builtins/gen/var/countOneBits/fd88b2.wgsl b/test/tint/builtins/gen/var/countOneBits/fd88b2.wgsl index e96dd99032..02a4fc9518 100644 --- a/test/tint/builtins/gen/var/countOneBits/fd88b2.wgsl +++ b/test/tint/builtins/gen/var/countOneBits/fd88b2.wgsl @@ -29,18 +29,18 @@ fn countOneBits_fd88b2() { var res: i32 = countOneBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_fd88b2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_fd88b2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_fd88b2(); } diff --git a/test/tint/builtins/gen/var/countOneBits/fd88b2.wgsl.expected.wgsl b/test/tint/builtins/gen/var/countOneBits/fd88b2.wgsl.expected.wgsl index b3e14534f2..3712925abe 100644 --- a/test/tint/builtins/gen/var/countOneBits/fd88b2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/countOneBits/fd88b2.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn countOneBits_fd88b2() { var res : i32 = countOneBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countOneBits_fd88b2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countOneBits_fd88b2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countOneBits_fd88b2(); } diff --git a/test/tint/builtins/gen/var/countTrailingZeros/1ad138.wgsl b/test/tint/builtins/gen/var/countTrailingZeros/1ad138.wgsl index 70140f1a71..5f68b883f9 100644 --- a/test/tint/builtins/gen/var/countTrailingZeros/1ad138.wgsl +++ b/test/tint/builtins/gen/var/countTrailingZeros/1ad138.wgsl @@ -29,18 +29,18 @@ fn countTrailingZeros_1ad138() { var res: vec2 = countTrailingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_1ad138(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_1ad138(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_1ad138(); } diff --git a/test/tint/builtins/gen/var/countTrailingZeros/1ad138.wgsl.expected.wgsl b/test/tint/builtins/gen/var/countTrailingZeros/1ad138.wgsl.expected.wgsl index a4169f7525..b11da61029 100644 --- a/test/tint/builtins/gen/var/countTrailingZeros/1ad138.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/countTrailingZeros/1ad138.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn countTrailingZeros_1ad138() { var res : vec2 = countTrailingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_1ad138(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_1ad138(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_1ad138(); } diff --git a/test/tint/builtins/gen/var/countTrailingZeros/1dc84a.wgsl b/test/tint/builtins/gen/var/countTrailingZeros/1dc84a.wgsl index 0834908238..61c6cc2b4e 100644 --- a/test/tint/builtins/gen/var/countTrailingZeros/1dc84a.wgsl +++ b/test/tint/builtins/gen/var/countTrailingZeros/1dc84a.wgsl @@ -29,18 +29,18 @@ fn countTrailingZeros_1dc84a() { var res: vec4 = countTrailingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_1dc84a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_1dc84a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_1dc84a(); } diff --git a/test/tint/builtins/gen/var/countTrailingZeros/1dc84a.wgsl.expected.wgsl b/test/tint/builtins/gen/var/countTrailingZeros/1dc84a.wgsl.expected.wgsl index e3d95b5ca0..ea85d0fe82 100644 --- a/test/tint/builtins/gen/var/countTrailingZeros/1dc84a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/countTrailingZeros/1dc84a.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn countTrailingZeros_1dc84a() { var res : vec4 = countTrailingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_1dc84a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_1dc84a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_1dc84a(); } diff --git a/test/tint/builtins/gen/var/countTrailingZeros/21e394.wgsl b/test/tint/builtins/gen/var/countTrailingZeros/21e394.wgsl index 925950071c..4689751a30 100644 --- a/test/tint/builtins/gen/var/countTrailingZeros/21e394.wgsl +++ b/test/tint/builtins/gen/var/countTrailingZeros/21e394.wgsl @@ -29,18 +29,18 @@ fn countTrailingZeros_21e394() { var res: u32 = countTrailingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_21e394(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_21e394(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_21e394(); } diff --git a/test/tint/builtins/gen/var/countTrailingZeros/21e394.wgsl.expected.wgsl b/test/tint/builtins/gen/var/countTrailingZeros/21e394.wgsl.expected.wgsl index 3756bcfebe..cafc47e200 100644 --- a/test/tint/builtins/gen/var/countTrailingZeros/21e394.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/countTrailingZeros/21e394.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn countTrailingZeros_21e394() { var res : u32 = countTrailingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_21e394(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_21e394(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_21e394(); } diff --git a/test/tint/builtins/gen/var/countTrailingZeros/327c37.wgsl b/test/tint/builtins/gen/var/countTrailingZeros/327c37.wgsl index f4a72e6406..bace43dad4 100644 --- a/test/tint/builtins/gen/var/countTrailingZeros/327c37.wgsl +++ b/test/tint/builtins/gen/var/countTrailingZeros/327c37.wgsl @@ -29,18 +29,18 @@ fn countTrailingZeros_327c37() { var res: vec2 = countTrailingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_327c37(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_327c37(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_327c37(); } diff --git a/test/tint/builtins/gen/var/countTrailingZeros/327c37.wgsl.expected.wgsl b/test/tint/builtins/gen/var/countTrailingZeros/327c37.wgsl.expected.wgsl index f235ce1478..292b0a710d 100644 --- a/test/tint/builtins/gen/var/countTrailingZeros/327c37.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/countTrailingZeros/327c37.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn countTrailingZeros_327c37() { var res : vec2 = countTrailingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_327c37(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_327c37(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_327c37(); } diff --git a/test/tint/builtins/gen/var/countTrailingZeros/42fed6.wgsl b/test/tint/builtins/gen/var/countTrailingZeros/42fed6.wgsl index 9d3a884954..0d97f6f01c 100644 --- a/test/tint/builtins/gen/var/countTrailingZeros/42fed6.wgsl +++ b/test/tint/builtins/gen/var/countTrailingZeros/42fed6.wgsl @@ -29,18 +29,18 @@ fn countTrailingZeros_42fed6() { var res: i32 = countTrailingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_42fed6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_42fed6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_42fed6(); } diff --git a/test/tint/builtins/gen/var/countTrailingZeros/42fed6.wgsl.expected.wgsl b/test/tint/builtins/gen/var/countTrailingZeros/42fed6.wgsl.expected.wgsl index 536a7c09b6..3007518bd1 100644 --- a/test/tint/builtins/gen/var/countTrailingZeros/42fed6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/countTrailingZeros/42fed6.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn countTrailingZeros_42fed6() { var res : i32 = countTrailingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_42fed6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_42fed6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_42fed6(); } diff --git a/test/tint/builtins/gen/var/countTrailingZeros/8ed26f.wgsl b/test/tint/builtins/gen/var/countTrailingZeros/8ed26f.wgsl index e64b6a8448..134ed8457d 100644 --- a/test/tint/builtins/gen/var/countTrailingZeros/8ed26f.wgsl +++ b/test/tint/builtins/gen/var/countTrailingZeros/8ed26f.wgsl @@ -29,18 +29,18 @@ fn countTrailingZeros_8ed26f() { var res: vec3 = countTrailingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_8ed26f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_8ed26f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_8ed26f(); } diff --git a/test/tint/builtins/gen/var/countTrailingZeros/8ed26f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/countTrailingZeros/8ed26f.wgsl.expected.wgsl index 61986c1363..8fa99cc170 100644 --- a/test/tint/builtins/gen/var/countTrailingZeros/8ed26f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/countTrailingZeros/8ed26f.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn countTrailingZeros_8ed26f() { var res : vec3 = countTrailingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_8ed26f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_8ed26f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_8ed26f(); } diff --git a/test/tint/builtins/gen/var/countTrailingZeros/acfacb.wgsl b/test/tint/builtins/gen/var/countTrailingZeros/acfacb.wgsl index 0da23deac8..91531cc763 100644 --- a/test/tint/builtins/gen/var/countTrailingZeros/acfacb.wgsl +++ b/test/tint/builtins/gen/var/countTrailingZeros/acfacb.wgsl @@ -29,18 +29,18 @@ fn countTrailingZeros_acfacb() { var res: vec3 = countTrailingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_acfacb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_acfacb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_acfacb(); } diff --git a/test/tint/builtins/gen/var/countTrailingZeros/acfacb.wgsl.expected.wgsl b/test/tint/builtins/gen/var/countTrailingZeros/acfacb.wgsl.expected.wgsl index e93b279dc4..395641c9e0 100644 --- a/test/tint/builtins/gen/var/countTrailingZeros/acfacb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/countTrailingZeros/acfacb.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn countTrailingZeros_acfacb() { var res : vec3 = countTrailingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_acfacb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_acfacb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_acfacb(); } diff --git a/test/tint/builtins/gen/var/countTrailingZeros/d2b4a0.wgsl b/test/tint/builtins/gen/var/countTrailingZeros/d2b4a0.wgsl index b94c3b6708..b9fb2578b5 100644 --- a/test/tint/builtins/gen/var/countTrailingZeros/d2b4a0.wgsl +++ b/test/tint/builtins/gen/var/countTrailingZeros/d2b4a0.wgsl @@ -29,18 +29,18 @@ fn countTrailingZeros_d2b4a0() { var res: vec4 = countTrailingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_d2b4a0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_d2b4a0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_d2b4a0(); } diff --git a/test/tint/builtins/gen/var/countTrailingZeros/d2b4a0.wgsl.expected.wgsl b/test/tint/builtins/gen/var/countTrailingZeros/d2b4a0.wgsl.expected.wgsl index 8f10ca0cca..a43d88431b 100644 --- a/test/tint/builtins/gen/var/countTrailingZeros/d2b4a0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/countTrailingZeros/d2b4a0.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn countTrailingZeros_d2b4a0() { var res : vec4 = countTrailingZeros(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { countTrailingZeros_d2b4a0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { countTrailingZeros_d2b4a0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { countTrailingZeros_d2b4a0(); } diff --git a/test/tint/builtins/gen/var/cross/041cb0.wgsl b/test/tint/builtins/gen/var/cross/041cb0.wgsl index 6bcfcba2c3..0c13b08b73 100644 --- a/test/tint/builtins/gen/var/cross/041cb0.wgsl +++ b/test/tint/builtins/gen/var/cross/041cb0.wgsl @@ -30,18 +30,18 @@ fn cross_041cb0() { var res: vec3 = cross(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cross_041cb0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cross_041cb0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cross_041cb0(); } diff --git a/test/tint/builtins/gen/var/cross/041cb0.wgsl.expected.wgsl b/test/tint/builtins/gen/var/cross/041cb0.wgsl.expected.wgsl index 9789b3709f..019e81b5e3 100644 --- a/test/tint/builtins/gen/var/cross/041cb0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/cross/041cb0.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn cross_041cb0() { var res : vec3 = cross(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { cross_041cb0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { cross_041cb0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { cross_041cb0(); } diff --git a/test/tint/builtins/gen/var/degrees/0d170c.wgsl b/test/tint/builtins/gen/var/degrees/0d170c.wgsl index ca3ab637c6..53dfc0f733 100644 --- a/test/tint/builtins/gen/var/degrees/0d170c.wgsl +++ b/test/tint/builtins/gen/var/degrees/0d170c.wgsl @@ -29,18 +29,18 @@ fn degrees_0d170c() { var res: vec4 = degrees(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { degrees_0d170c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { degrees_0d170c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { degrees_0d170c(); } diff --git a/test/tint/builtins/gen/var/degrees/0d170c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/degrees/0d170c.wgsl.expected.wgsl index 921b7ef57b..1fd7099b9c 100644 --- a/test/tint/builtins/gen/var/degrees/0d170c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/degrees/0d170c.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn degrees_0d170c() { var res : vec4 = degrees(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { degrees_0d170c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { degrees_0d170c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { degrees_0d170c(); } diff --git a/test/tint/builtins/gen/var/degrees/1ad5df.wgsl b/test/tint/builtins/gen/var/degrees/1ad5df.wgsl index 7b72b4526d..9fc75c15e8 100644 --- a/test/tint/builtins/gen/var/degrees/1ad5df.wgsl +++ b/test/tint/builtins/gen/var/degrees/1ad5df.wgsl @@ -29,18 +29,18 @@ fn degrees_1ad5df() { var res: vec2 = degrees(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { degrees_1ad5df(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { degrees_1ad5df(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { degrees_1ad5df(); } diff --git a/test/tint/builtins/gen/var/degrees/1ad5df.wgsl.expected.wgsl b/test/tint/builtins/gen/var/degrees/1ad5df.wgsl.expected.wgsl index bcec4b0543..150971073f 100644 --- a/test/tint/builtins/gen/var/degrees/1ad5df.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/degrees/1ad5df.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn degrees_1ad5df() { var res : vec2 = degrees(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { degrees_1ad5df(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { degrees_1ad5df(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { degrees_1ad5df(); } diff --git a/test/tint/builtins/gen/var/degrees/2af623.wgsl b/test/tint/builtins/gen/var/degrees/2af623.wgsl index 2aa8c72268..22f9b491b6 100644 --- a/test/tint/builtins/gen/var/degrees/2af623.wgsl +++ b/test/tint/builtins/gen/var/degrees/2af623.wgsl @@ -29,18 +29,18 @@ fn degrees_2af623() { var res: vec3 = degrees(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { degrees_2af623(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { degrees_2af623(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { degrees_2af623(); } diff --git a/test/tint/builtins/gen/var/degrees/2af623.wgsl.expected.wgsl b/test/tint/builtins/gen/var/degrees/2af623.wgsl.expected.wgsl index 1406f3237f..eb2f038a9d 100644 --- a/test/tint/builtins/gen/var/degrees/2af623.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/degrees/2af623.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn degrees_2af623() { var res : vec3 = degrees(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { degrees_2af623(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { degrees_2af623(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { degrees_2af623(); } diff --git a/test/tint/builtins/gen/var/degrees/51f705.wgsl b/test/tint/builtins/gen/var/degrees/51f705.wgsl index 35c111d1f7..2e70d6c87c 100644 --- a/test/tint/builtins/gen/var/degrees/51f705.wgsl +++ b/test/tint/builtins/gen/var/degrees/51f705.wgsl @@ -29,18 +29,18 @@ fn degrees_51f705() { var res: f32 = degrees(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { degrees_51f705(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { degrees_51f705(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { degrees_51f705(); } diff --git a/test/tint/builtins/gen/var/degrees/51f705.wgsl.expected.wgsl b/test/tint/builtins/gen/var/degrees/51f705.wgsl.expected.wgsl index de2a96d2d8..80f87242f8 100644 --- a/test/tint/builtins/gen/var/degrees/51f705.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/degrees/51f705.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn degrees_51f705() { var res : f32 = degrees(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { degrees_51f705(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { degrees_51f705(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { degrees_51f705(); } diff --git a/test/tint/builtins/gen/var/determinant/2b62ba.wgsl b/test/tint/builtins/gen/var/determinant/2b62ba.wgsl index 0a0a423227..a1d55c2e3f 100644 --- a/test/tint/builtins/gen/var/determinant/2b62ba.wgsl +++ b/test/tint/builtins/gen/var/determinant/2b62ba.wgsl @@ -29,18 +29,18 @@ fn determinant_2b62ba() { var res: f32 = determinant(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { determinant_2b62ba(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { determinant_2b62ba(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { determinant_2b62ba(); } diff --git a/test/tint/builtins/gen/var/determinant/2b62ba.wgsl.expected.wgsl b/test/tint/builtins/gen/var/determinant/2b62ba.wgsl.expected.wgsl index 8ac8f81a4f..cbd87c5b1c 100644 --- a/test/tint/builtins/gen/var/determinant/2b62ba.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/determinant/2b62ba.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn determinant_2b62ba() { var res : f32 = determinant(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { determinant_2b62ba(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { determinant_2b62ba(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { determinant_2b62ba(); } diff --git a/test/tint/builtins/gen/var/determinant/a0a87c.wgsl b/test/tint/builtins/gen/var/determinant/a0a87c.wgsl index ff3c06713d..b3beba9fae 100644 --- a/test/tint/builtins/gen/var/determinant/a0a87c.wgsl +++ b/test/tint/builtins/gen/var/determinant/a0a87c.wgsl @@ -29,18 +29,18 @@ fn determinant_a0a87c() { var res: f32 = determinant(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { determinant_a0a87c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { determinant_a0a87c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { determinant_a0a87c(); } diff --git a/test/tint/builtins/gen/var/determinant/a0a87c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/determinant/a0a87c.wgsl.expected.wgsl index bd9f32c1ec..a49da48054 100644 --- a/test/tint/builtins/gen/var/determinant/a0a87c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/determinant/a0a87c.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn determinant_a0a87c() { var res : f32 = determinant(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { determinant_a0a87c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { determinant_a0a87c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { determinant_a0a87c(); } diff --git a/test/tint/builtins/gen/var/determinant/e19305.wgsl b/test/tint/builtins/gen/var/determinant/e19305.wgsl index 807b446f80..46af1ce02d 100644 --- a/test/tint/builtins/gen/var/determinant/e19305.wgsl +++ b/test/tint/builtins/gen/var/determinant/e19305.wgsl @@ -29,18 +29,18 @@ fn determinant_e19305() { var res: f32 = determinant(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { determinant_e19305(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { determinant_e19305(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { determinant_e19305(); } diff --git a/test/tint/builtins/gen/var/determinant/e19305.wgsl.expected.wgsl b/test/tint/builtins/gen/var/determinant/e19305.wgsl.expected.wgsl index f01365f75d..cba31835f0 100644 --- a/test/tint/builtins/gen/var/determinant/e19305.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/determinant/e19305.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn determinant_e19305() { var res : f32 = determinant(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { determinant_e19305(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { determinant_e19305(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { determinant_e19305(); } diff --git a/test/tint/builtins/gen/var/distance/0657d4.wgsl b/test/tint/builtins/gen/var/distance/0657d4.wgsl index 8569c29b83..e7db5e3248 100644 --- a/test/tint/builtins/gen/var/distance/0657d4.wgsl +++ b/test/tint/builtins/gen/var/distance/0657d4.wgsl @@ -30,18 +30,18 @@ fn distance_0657d4() { var res: f32 = distance(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { distance_0657d4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { distance_0657d4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { distance_0657d4(); } diff --git a/test/tint/builtins/gen/var/distance/0657d4.wgsl.expected.wgsl b/test/tint/builtins/gen/var/distance/0657d4.wgsl.expected.wgsl index 37716a744d..ebbcdd4217 100644 --- a/test/tint/builtins/gen/var/distance/0657d4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/distance/0657d4.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn distance_0657d4() { var res : f32 = distance(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { distance_0657d4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { distance_0657d4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { distance_0657d4(); } diff --git a/test/tint/builtins/gen/var/distance/9646ea.wgsl b/test/tint/builtins/gen/var/distance/9646ea.wgsl index fdd8827a3c..7727a18f81 100644 --- a/test/tint/builtins/gen/var/distance/9646ea.wgsl +++ b/test/tint/builtins/gen/var/distance/9646ea.wgsl @@ -30,18 +30,18 @@ fn distance_9646ea() { var res: f32 = distance(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { distance_9646ea(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { distance_9646ea(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { distance_9646ea(); } diff --git a/test/tint/builtins/gen/var/distance/9646ea.wgsl.expected.wgsl b/test/tint/builtins/gen/var/distance/9646ea.wgsl.expected.wgsl index e2023ef255..b1d5775e92 100644 --- a/test/tint/builtins/gen/var/distance/9646ea.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/distance/9646ea.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn distance_9646ea() { var res : f32 = distance(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { distance_9646ea(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { distance_9646ea(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { distance_9646ea(); } diff --git a/test/tint/builtins/gen/var/distance/aa4055.wgsl b/test/tint/builtins/gen/var/distance/aa4055.wgsl index 192d0926fc..549b29faf5 100644 --- a/test/tint/builtins/gen/var/distance/aa4055.wgsl +++ b/test/tint/builtins/gen/var/distance/aa4055.wgsl @@ -30,18 +30,18 @@ fn distance_aa4055() { var res: f32 = distance(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { distance_aa4055(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { distance_aa4055(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { distance_aa4055(); } diff --git a/test/tint/builtins/gen/var/distance/aa4055.wgsl.expected.wgsl b/test/tint/builtins/gen/var/distance/aa4055.wgsl.expected.wgsl index ed6a4db575..9ed4bda21f 100644 --- a/test/tint/builtins/gen/var/distance/aa4055.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/distance/aa4055.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn distance_aa4055() { var res : f32 = distance(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { distance_aa4055(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { distance_aa4055(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { distance_aa4055(); } diff --git a/test/tint/builtins/gen/var/distance/cfed73.wgsl b/test/tint/builtins/gen/var/distance/cfed73.wgsl index 497731a9f3..24ddffd2a7 100644 --- a/test/tint/builtins/gen/var/distance/cfed73.wgsl +++ b/test/tint/builtins/gen/var/distance/cfed73.wgsl @@ -30,18 +30,18 @@ fn distance_cfed73() { var res: f32 = distance(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { distance_cfed73(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { distance_cfed73(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { distance_cfed73(); } diff --git a/test/tint/builtins/gen/var/distance/cfed73.wgsl.expected.wgsl b/test/tint/builtins/gen/var/distance/cfed73.wgsl.expected.wgsl index 6464628ddf..1237f46b83 100644 --- a/test/tint/builtins/gen/var/distance/cfed73.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/distance/cfed73.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn distance_cfed73() { var res : f32 = distance(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { distance_cfed73(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { distance_cfed73(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { distance_cfed73(); } diff --git a/test/tint/builtins/gen/var/dot/0c577b.wgsl b/test/tint/builtins/gen/var/dot/0c577b.wgsl index 274216412d..7d967e91bf 100644 --- a/test/tint/builtins/gen/var/dot/0c577b.wgsl +++ b/test/tint/builtins/gen/var/dot/0c577b.wgsl @@ -30,18 +30,18 @@ fn dot_0c577b() { var res: f32 = dot(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_0c577b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_0c577b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_0c577b(); } diff --git a/test/tint/builtins/gen/var/dot/0c577b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dot/0c577b.wgsl.expected.wgsl index d09814836a..01269fb595 100644 --- a/test/tint/builtins/gen/var/dot/0c577b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dot/0c577b.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn dot_0c577b() { var res : f32 = dot(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_0c577b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_0c577b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_0c577b(); } diff --git a/test/tint/builtins/gen/var/dot/7548a0.wgsl b/test/tint/builtins/gen/var/dot/7548a0.wgsl index c4f4a8fbb1..c0fbe308d0 100644 --- a/test/tint/builtins/gen/var/dot/7548a0.wgsl +++ b/test/tint/builtins/gen/var/dot/7548a0.wgsl @@ -30,18 +30,18 @@ fn dot_7548a0() { var res: u32 = dot(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_7548a0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_7548a0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_7548a0(); } diff --git a/test/tint/builtins/gen/var/dot/7548a0.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dot/7548a0.wgsl.expected.wgsl index 867b1261d3..c9f97f72a1 100644 --- a/test/tint/builtins/gen/var/dot/7548a0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dot/7548a0.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn dot_7548a0() { var res : u32 = dot(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_7548a0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_7548a0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_7548a0(); } diff --git a/test/tint/builtins/gen/var/dot/883f0e.wgsl b/test/tint/builtins/gen/var/dot/883f0e.wgsl index 699bce7123..3e8cf0302c 100644 --- a/test/tint/builtins/gen/var/dot/883f0e.wgsl +++ b/test/tint/builtins/gen/var/dot/883f0e.wgsl @@ -30,18 +30,18 @@ fn dot_883f0e() { var res: f32 = dot(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_883f0e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_883f0e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_883f0e(); } diff --git a/test/tint/builtins/gen/var/dot/883f0e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dot/883f0e.wgsl.expected.wgsl index 57a9b6e2ed..daca8aec24 100644 --- a/test/tint/builtins/gen/var/dot/883f0e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dot/883f0e.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn dot_883f0e() { var res : f32 = dot(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_883f0e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_883f0e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_883f0e(); } diff --git a/test/tint/builtins/gen/var/dot/97c7ee.wgsl b/test/tint/builtins/gen/var/dot/97c7ee.wgsl index cc042d02d9..db27a08698 100644 --- a/test/tint/builtins/gen/var/dot/97c7ee.wgsl +++ b/test/tint/builtins/gen/var/dot/97c7ee.wgsl @@ -30,18 +30,18 @@ fn dot_97c7ee() { var res: u32 = dot(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_97c7ee(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_97c7ee(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_97c7ee(); } diff --git a/test/tint/builtins/gen/var/dot/97c7ee.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dot/97c7ee.wgsl.expected.wgsl index 6a750d19d1..c0b83f70c4 100644 --- a/test/tint/builtins/gen/var/dot/97c7ee.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dot/97c7ee.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn dot_97c7ee() { var res : u32 = dot(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_97c7ee(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_97c7ee(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_97c7ee(); } diff --git a/test/tint/builtins/gen/var/dot/ba4246.wgsl b/test/tint/builtins/gen/var/dot/ba4246.wgsl index f5cedcdf51..3cc417b549 100644 --- a/test/tint/builtins/gen/var/dot/ba4246.wgsl +++ b/test/tint/builtins/gen/var/dot/ba4246.wgsl @@ -30,18 +30,18 @@ fn dot_ba4246() { var res: f32 = dot(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_ba4246(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_ba4246(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_ba4246(); } diff --git a/test/tint/builtins/gen/var/dot/ba4246.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dot/ba4246.wgsl.expected.wgsl index 77cdb592cb..ceff01cfc6 100644 --- a/test/tint/builtins/gen/var/dot/ba4246.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dot/ba4246.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn dot_ba4246() { var res : f32 = dot(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_ba4246(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_ba4246(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_ba4246(); } diff --git a/test/tint/builtins/gen/var/dot/e994c7.wgsl b/test/tint/builtins/gen/var/dot/e994c7.wgsl index 302f0f9606..729088e021 100644 --- a/test/tint/builtins/gen/var/dot/e994c7.wgsl +++ b/test/tint/builtins/gen/var/dot/e994c7.wgsl @@ -30,18 +30,18 @@ fn dot_e994c7() { var res: u32 = dot(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_e994c7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_e994c7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_e994c7(); } diff --git a/test/tint/builtins/gen/var/dot/e994c7.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dot/e994c7.wgsl.expected.wgsl index 67fff9b32f..bc7a4ad258 100644 --- a/test/tint/builtins/gen/var/dot/e994c7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dot/e994c7.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn dot_e994c7() { var res : u32 = dot(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_e994c7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_e994c7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_e994c7(); } diff --git a/test/tint/builtins/gen/var/dot/ef6b1d.wgsl b/test/tint/builtins/gen/var/dot/ef6b1d.wgsl index 0aa8cf576b..8403d48834 100644 --- a/test/tint/builtins/gen/var/dot/ef6b1d.wgsl +++ b/test/tint/builtins/gen/var/dot/ef6b1d.wgsl @@ -30,18 +30,18 @@ fn dot_ef6b1d() { var res: i32 = dot(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_ef6b1d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_ef6b1d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_ef6b1d(); } diff --git a/test/tint/builtins/gen/var/dot/ef6b1d.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dot/ef6b1d.wgsl.expected.wgsl index aae5da9081..0711b1b180 100644 --- a/test/tint/builtins/gen/var/dot/ef6b1d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dot/ef6b1d.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn dot_ef6b1d() { var res : i32 = dot(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_ef6b1d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_ef6b1d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_ef6b1d(); } diff --git a/test/tint/builtins/gen/var/dot/f1312c.wgsl b/test/tint/builtins/gen/var/dot/f1312c.wgsl index a8ed93f7d5..fbd1d52076 100644 --- a/test/tint/builtins/gen/var/dot/f1312c.wgsl +++ b/test/tint/builtins/gen/var/dot/f1312c.wgsl @@ -30,18 +30,18 @@ fn dot_f1312c() { var res: i32 = dot(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_f1312c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_f1312c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_f1312c(); } diff --git a/test/tint/builtins/gen/var/dot/f1312c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dot/f1312c.wgsl.expected.wgsl index 7b402b4e42..96f1cebd2e 100644 --- a/test/tint/builtins/gen/var/dot/f1312c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dot/f1312c.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn dot_f1312c() { var res : i32 = dot(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_f1312c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_f1312c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_f1312c(); } diff --git a/test/tint/builtins/gen/var/dot/fc5f7c.wgsl b/test/tint/builtins/gen/var/dot/fc5f7c.wgsl index db7080193f..ff1f457769 100644 --- a/test/tint/builtins/gen/var/dot/fc5f7c.wgsl +++ b/test/tint/builtins/gen/var/dot/fc5f7c.wgsl @@ -30,18 +30,18 @@ fn dot_fc5f7c() { var res: i32 = dot(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_fc5f7c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_fc5f7c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_fc5f7c(); } diff --git a/test/tint/builtins/gen/var/dot/fc5f7c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dot/fc5f7c.wgsl.expected.wgsl index f2d3f6763c..677e29d71d 100644 --- a/test/tint/builtins/gen/var/dot/fc5f7c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dot/fc5f7c.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn dot_fc5f7c() { var res : i32 = dot(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { dot_fc5f7c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { dot_fc5f7c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { dot_fc5f7c(); } diff --git a/test/tint/builtins/gen/var/dpdx/0763f7.wgsl b/test/tint/builtins/gen/var/dpdx/0763f7.wgsl index 6a7314b964..7bb5ccd3a8 100644 --- a/test/tint/builtins/gen/var/dpdx/0763f7.wgsl +++ b/test/tint/builtins/gen/var/dpdx/0763f7.wgsl @@ -29,7 +29,7 @@ fn dpdx_0763f7() { var res: vec3 = dpdx(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdx_0763f7(); } diff --git a/test/tint/builtins/gen/var/dpdx/0763f7.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dpdx/0763f7.wgsl.expected.wgsl index 83b7c77b9f..9b99c5a07e 100644 --- a/test/tint/builtins/gen/var/dpdx/0763f7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dpdx/0763f7.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn dpdx_0763f7() { var res : vec3 = dpdx(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdx_0763f7(); } diff --git a/test/tint/builtins/gen/var/dpdx/99edb1.wgsl b/test/tint/builtins/gen/var/dpdx/99edb1.wgsl index cc540ea815..3775ea1a3d 100644 --- a/test/tint/builtins/gen/var/dpdx/99edb1.wgsl +++ b/test/tint/builtins/gen/var/dpdx/99edb1.wgsl @@ -29,7 +29,7 @@ fn dpdx_99edb1() { var res: vec2 = dpdx(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdx_99edb1(); } diff --git a/test/tint/builtins/gen/var/dpdx/99edb1.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dpdx/99edb1.wgsl.expected.wgsl index 7fa9efe56c..bc0b07b3c0 100644 --- a/test/tint/builtins/gen/var/dpdx/99edb1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dpdx/99edb1.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn dpdx_99edb1() { var res : vec2 = dpdx(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdx_99edb1(); } diff --git a/test/tint/builtins/gen/var/dpdx/c487fa.wgsl b/test/tint/builtins/gen/var/dpdx/c487fa.wgsl index ff04efb958..a284be1996 100644 --- a/test/tint/builtins/gen/var/dpdx/c487fa.wgsl +++ b/test/tint/builtins/gen/var/dpdx/c487fa.wgsl @@ -29,7 +29,7 @@ fn dpdx_c487fa() { var res: vec4 = dpdx(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdx_c487fa(); } diff --git a/test/tint/builtins/gen/var/dpdx/c487fa.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dpdx/c487fa.wgsl.expected.wgsl index f7aa222a27..93d12c19a0 100644 --- a/test/tint/builtins/gen/var/dpdx/c487fa.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dpdx/c487fa.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn dpdx_c487fa() { var res : vec4 = dpdx(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdx_c487fa(); } diff --git a/test/tint/builtins/gen/var/dpdx/e263de.wgsl b/test/tint/builtins/gen/var/dpdx/e263de.wgsl index 7247c64601..d5c076ad94 100644 --- a/test/tint/builtins/gen/var/dpdx/e263de.wgsl +++ b/test/tint/builtins/gen/var/dpdx/e263de.wgsl @@ -29,7 +29,7 @@ fn dpdx_e263de() { var res: f32 = dpdx(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdx_e263de(); } diff --git a/test/tint/builtins/gen/var/dpdx/e263de.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dpdx/e263de.wgsl.expected.wgsl index aff2cf188d..ff07c04332 100644 --- a/test/tint/builtins/gen/var/dpdx/e263de.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dpdx/e263de.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn dpdx_e263de() { var res : f32 = dpdx(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdx_e263de(); } diff --git a/test/tint/builtins/gen/var/dpdxCoarse/029152.wgsl b/test/tint/builtins/gen/var/dpdxCoarse/029152.wgsl index a565a80feb..c43ba0a4e3 100644 --- a/test/tint/builtins/gen/var/dpdxCoarse/029152.wgsl +++ b/test/tint/builtins/gen/var/dpdxCoarse/029152.wgsl @@ -29,7 +29,7 @@ fn dpdxCoarse_029152() { var res: f32 = dpdxCoarse(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdxCoarse_029152(); } diff --git a/test/tint/builtins/gen/var/dpdxCoarse/029152.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dpdxCoarse/029152.wgsl.expected.wgsl index d243b10b32..88ed8cfd81 100644 --- a/test/tint/builtins/gen/var/dpdxCoarse/029152.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dpdxCoarse/029152.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn dpdxCoarse_029152() { var res : f32 = dpdxCoarse(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdxCoarse_029152(); } diff --git a/test/tint/builtins/gen/var/dpdxCoarse/9581cf.wgsl b/test/tint/builtins/gen/var/dpdxCoarse/9581cf.wgsl index 4f30edfe42..e28033371e 100644 --- a/test/tint/builtins/gen/var/dpdxCoarse/9581cf.wgsl +++ b/test/tint/builtins/gen/var/dpdxCoarse/9581cf.wgsl @@ -29,7 +29,7 @@ fn dpdxCoarse_9581cf() { var res: vec2 = dpdxCoarse(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdxCoarse_9581cf(); } diff --git a/test/tint/builtins/gen/var/dpdxCoarse/9581cf.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dpdxCoarse/9581cf.wgsl.expected.wgsl index e2ff427071..e45226f24f 100644 --- a/test/tint/builtins/gen/var/dpdxCoarse/9581cf.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dpdxCoarse/9581cf.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn dpdxCoarse_9581cf() { var res : vec2 = dpdxCoarse(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdxCoarse_9581cf(); } diff --git a/test/tint/builtins/gen/var/dpdxCoarse/c28641.wgsl b/test/tint/builtins/gen/var/dpdxCoarse/c28641.wgsl index 18052855c6..897369a030 100644 --- a/test/tint/builtins/gen/var/dpdxCoarse/c28641.wgsl +++ b/test/tint/builtins/gen/var/dpdxCoarse/c28641.wgsl @@ -29,7 +29,7 @@ fn dpdxCoarse_c28641() { var res: vec4 = dpdxCoarse(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdxCoarse_c28641(); } diff --git a/test/tint/builtins/gen/var/dpdxCoarse/c28641.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dpdxCoarse/c28641.wgsl.expected.wgsl index 50ffb6595f..5e662b1218 100644 --- a/test/tint/builtins/gen/var/dpdxCoarse/c28641.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dpdxCoarse/c28641.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn dpdxCoarse_c28641() { var res : vec4 = dpdxCoarse(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdxCoarse_c28641(); } diff --git a/test/tint/builtins/gen/var/dpdxCoarse/f64d7b.wgsl b/test/tint/builtins/gen/var/dpdxCoarse/f64d7b.wgsl index fa36014c68..1bca5ec348 100644 --- a/test/tint/builtins/gen/var/dpdxCoarse/f64d7b.wgsl +++ b/test/tint/builtins/gen/var/dpdxCoarse/f64d7b.wgsl @@ -29,7 +29,7 @@ fn dpdxCoarse_f64d7b() { var res: vec3 = dpdxCoarse(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdxCoarse_f64d7b(); } diff --git a/test/tint/builtins/gen/var/dpdxCoarse/f64d7b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dpdxCoarse/f64d7b.wgsl.expected.wgsl index 82763b8aa8..941ebfb172 100644 --- a/test/tint/builtins/gen/var/dpdxCoarse/f64d7b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dpdxCoarse/f64d7b.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn dpdxCoarse_f64d7b() { var res : vec3 = dpdxCoarse(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdxCoarse_f64d7b(); } diff --git a/test/tint/builtins/gen/var/dpdxFine/8c5069.wgsl b/test/tint/builtins/gen/var/dpdxFine/8c5069.wgsl index 3d78fc807c..ef27450d0e 100644 --- a/test/tint/builtins/gen/var/dpdxFine/8c5069.wgsl +++ b/test/tint/builtins/gen/var/dpdxFine/8c5069.wgsl @@ -29,7 +29,7 @@ fn dpdxFine_8c5069() { var res: vec4 = dpdxFine(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdxFine_8c5069(); } diff --git a/test/tint/builtins/gen/var/dpdxFine/8c5069.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dpdxFine/8c5069.wgsl.expected.wgsl index d19330bb50..f7069f507d 100644 --- a/test/tint/builtins/gen/var/dpdxFine/8c5069.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dpdxFine/8c5069.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn dpdxFine_8c5069() { var res : vec4 = dpdxFine(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdxFine_8c5069(); } diff --git a/test/tint/builtins/gen/var/dpdxFine/9631de.wgsl b/test/tint/builtins/gen/var/dpdxFine/9631de.wgsl index 2d80b50925..48a03c4f1d 100644 --- a/test/tint/builtins/gen/var/dpdxFine/9631de.wgsl +++ b/test/tint/builtins/gen/var/dpdxFine/9631de.wgsl @@ -29,7 +29,7 @@ fn dpdxFine_9631de() { var res: vec2 = dpdxFine(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdxFine_9631de(); } diff --git a/test/tint/builtins/gen/var/dpdxFine/9631de.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dpdxFine/9631de.wgsl.expected.wgsl index 179b071e83..d2ffa27e20 100644 --- a/test/tint/builtins/gen/var/dpdxFine/9631de.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dpdxFine/9631de.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn dpdxFine_9631de() { var res : vec2 = dpdxFine(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdxFine_9631de(); } diff --git a/test/tint/builtins/gen/var/dpdxFine/f401a2.wgsl b/test/tint/builtins/gen/var/dpdxFine/f401a2.wgsl index 1dfeb73da3..4ae18c099d 100644 --- a/test/tint/builtins/gen/var/dpdxFine/f401a2.wgsl +++ b/test/tint/builtins/gen/var/dpdxFine/f401a2.wgsl @@ -29,7 +29,7 @@ fn dpdxFine_f401a2() { var res: f32 = dpdxFine(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdxFine_f401a2(); } diff --git a/test/tint/builtins/gen/var/dpdxFine/f401a2.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dpdxFine/f401a2.wgsl.expected.wgsl index 9b9d0225c7..a045b088da 100644 --- a/test/tint/builtins/gen/var/dpdxFine/f401a2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dpdxFine/f401a2.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn dpdxFine_f401a2() { var res : f32 = dpdxFine(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdxFine_f401a2(); } diff --git a/test/tint/builtins/gen/var/dpdxFine/f92fb6.wgsl b/test/tint/builtins/gen/var/dpdxFine/f92fb6.wgsl index 4849001251..dbeece3cfc 100644 --- a/test/tint/builtins/gen/var/dpdxFine/f92fb6.wgsl +++ b/test/tint/builtins/gen/var/dpdxFine/f92fb6.wgsl @@ -29,7 +29,7 @@ fn dpdxFine_f92fb6() { var res: vec3 = dpdxFine(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdxFine_f92fb6(); } diff --git a/test/tint/builtins/gen/var/dpdxFine/f92fb6.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dpdxFine/f92fb6.wgsl.expected.wgsl index 8a680118c1..35478f0648 100644 --- a/test/tint/builtins/gen/var/dpdxFine/f92fb6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dpdxFine/f92fb6.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn dpdxFine_f92fb6() { var res : vec3 = dpdxFine(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdxFine_f92fb6(); } diff --git a/test/tint/builtins/gen/var/dpdy/699a05.wgsl b/test/tint/builtins/gen/var/dpdy/699a05.wgsl index 2300266729..d94a0c5628 100644 --- a/test/tint/builtins/gen/var/dpdy/699a05.wgsl +++ b/test/tint/builtins/gen/var/dpdy/699a05.wgsl @@ -29,7 +29,7 @@ fn dpdy_699a05() { var res: vec4 = dpdy(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdy_699a05(); } diff --git a/test/tint/builtins/gen/var/dpdy/699a05.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dpdy/699a05.wgsl.expected.wgsl index afd333de99..f77aa143bf 100644 --- a/test/tint/builtins/gen/var/dpdy/699a05.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dpdy/699a05.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn dpdy_699a05() { var res : vec4 = dpdy(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdy_699a05(); } diff --git a/test/tint/builtins/gen/var/dpdy/7f8d84.wgsl b/test/tint/builtins/gen/var/dpdy/7f8d84.wgsl index 9c39cb8ccd..daa8e824b7 100644 --- a/test/tint/builtins/gen/var/dpdy/7f8d84.wgsl +++ b/test/tint/builtins/gen/var/dpdy/7f8d84.wgsl @@ -29,7 +29,7 @@ fn dpdy_7f8d84() { var res: f32 = dpdy(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdy_7f8d84(); } diff --git a/test/tint/builtins/gen/var/dpdy/7f8d84.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dpdy/7f8d84.wgsl.expected.wgsl index aa3d3e834d..d724ec0f73 100644 --- a/test/tint/builtins/gen/var/dpdy/7f8d84.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dpdy/7f8d84.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn dpdy_7f8d84() { var res : f32 = dpdy(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdy_7f8d84(); } diff --git a/test/tint/builtins/gen/var/dpdy/a8b56e.wgsl b/test/tint/builtins/gen/var/dpdy/a8b56e.wgsl index 9774ec2f59..be609cdcd1 100644 --- a/test/tint/builtins/gen/var/dpdy/a8b56e.wgsl +++ b/test/tint/builtins/gen/var/dpdy/a8b56e.wgsl @@ -29,7 +29,7 @@ fn dpdy_a8b56e() { var res: vec2 = dpdy(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdy_a8b56e(); } diff --git a/test/tint/builtins/gen/var/dpdy/a8b56e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dpdy/a8b56e.wgsl.expected.wgsl index 3c525a1478..6b1dca8677 100644 --- a/test/tint/builtins/gen/var/dpdy/a8b56e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dpdy/a8b56e.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn dpdy_a8b56e() { var res : vec2 = dpdy(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdy_a8b56e(); } diff --git a/test/tint/builtins/gen/var/dpdy/feb40f.wgsl b/test/tint/builtins/gen/var/dpdy/feb40f.wgsl index 927411e99d..0e526f4b59 100644 --- a/test/tint/builtins/gen/var/dpdy/feb40f.wgsl +++ b/test/tint/builtins/gen/var/dpdy/feb40f.wgsl @@ -29,7 +29,7 @@ fn dpdy_feb40f() { var res: vec3 = dpdy(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdy_feb40f(); } diff --git a/test/tint/builtins/gen/var/dpdy/feb40f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dpdy/feb40f.wgsl.expected.wgsl index e5cf66bfb5..b0d794e403 100644 --- a/test/tint/builtins/gen/var/dpdy/feb40f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dpdy/feb40f.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn dpdy_feb40f() { var res : vec3 = dpdy(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdy_feb40f(); } diff --git a/test/tint/builtins/gen/var/dpdyCoarse/3e1ab4.wgsl b/test/tint/builtins/gen/var/dpdyCoarse/3e1ab4.wgsl index 5ff70f2e2a..90de753af9 100644 --- a/test/tint/builtins/gen/var/dpdyCoarse/3e1ab4.wgsl +++ b/test/tint/builtins/gen/var/dpdyCoarse/3e1ab4.wgsl @@ -29,7 +29,7 @@ fn dpdyCoarse_3e1ab4() { var res: vec2 = dpdyCoarse(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdyCoarse_3e1ab4(); } diff --git a/test/tint/builtins/gen/var/dpdyCoarse/3e1ab4.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dpdyCoarse/3e1ab4.wgsl.expected.wgsl index 0a46975d71..9a1f51432f 100644 --- a/test/tint/builtins/gen/var/dpdyCoarse/3e1ab4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dpdyCoarse/3e1ab4.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn dpdyCoarse_3e1ab4() { var res : vec2 = dpdyCoarse(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdyCoarse_3e1ab4(); } diff --git a/test/tint/builtins/gen/var/dpdyCoarse/445d24.wgsl b/test/tint/builtins/gen/var/dpdyCoarse/445d24.wgsl index 3e72e2f8be..676632787b 100644 --- a/test/tint/builtins/gen/var/dpdyCoarse/445d24.wgsl +++ b/test/tint/builtins/gen/var/dpdyCoarse/445d24.wgsl @@ -29,7 +29,7 @@ fn dpdyCoarse_445d24() { var res: vec4 = dpdyCoarse(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdyCoarse_445d24(); } diff --git a/test/tint/builtins/gen/var/dpdyCoarse/445d24.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dpdyCoarse/445d24.wgsl.expected.wgsl index e1e9f85cbb..66f4b20a9f 100644 --- a/test/tint/builtins/gen/var/dpdyCoarse/445d24.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dpdyCoarse/445d24.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn dpdyCoarse_445d24() { var res : vec4 = dpdyCoarse(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdyCoarse_445d24(); } diff --git a/test/tint/builtins/gen/var/dpdyCoarse/870a7e.wgsl b/test/tint/builtins/gen/var/dpdyCoarse/870a7e.wgsl index c06358b327..3c7d7b8a31 100644 --- a/test/tint/builtins/gen/var/dpdyCoarse/870a7e.wgsl +++ b/test/tint/builtins/gen/var/dpdyCoarse/870a7e.wgsl @@ -29,7 +29,7 @@ fn dpdyCoarse_870a7e() { var res: f32 = dpdyCoarse(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdyCoarse_870a7e(); } diff --git a/test/tint/builtins/gen/var/dpdyCoarse/870a7e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dpdyCoarse/870a7e.wgsl.expected.wgsl index a5fbe1939b..0cfff79ac0 100644 --- a/test/tint/builtins/gen/var/dpdyCoarse/870a7e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dpdyCoarse/870a7e.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn dpdyCoarse_870a7e() { var res : f32 = dpdyCoarse(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdyCoarse_870a7e(); } diff --git a/test/tint/builtins/gen/var/dpdyCoarse/ae1873.wgsl b/test/tint/builtins/gen/var/dpdyCoarse/ae1873.wgsl index 120e799a87..2d3b754a8d 100644 --- a/test/tint/builtins/gen/var/dpdyCoarse/ae1873.wgsl +++ b/test/tint/builtins/gen/var/dpdyCoarse/ae1873.wgsl @@ -29,7 +29,7 @@ fn dpdyCoarse_ae1873() { var res: vec3 = dpdyCoarse(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdyCoarse_ae1873(); } diff --git a/test/tint/builtins/gen/var/dpdyCoarse/ae1873.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dpdyCoarse/ae1873.wgsl.expected.wgsl index 7cb6ef6a5e..0725af00f0 100644 --- a/test/tint/builtins/gen/var/dpdyCoarse/ae1873.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dpdyCoarse/ae1873.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn dpdyCoarse_ae1873() { var res : vec3 = dpdyCoarse(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdyCoarse_ae1873(); } diff --git a/test/tint/builtins/gen/var/dpdyFine/1fb7ab.wgsl b/test/tint/builtins/gen/var/dpdyFine/1fb7ab.wgsl index 14de6871fa..75b8cd3447 100644 --- a/test/tint/builtins/gen/var/dpdyFine/1fb7ab.wgsl +++ b/test/tint/builtins/gen/var/dpdyFine/1fb7ab.wgsl @@ -29,7 +29,7 @@ fn dpdyFine_1fb7ab() { var res: vec3 = dpdyFine(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdyFine_1fb7ab(); } diff --git a/test/tint/builtins/gen/var/dpdyFine/1fb7ab.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dpdyFine/1fb7ab.wgsl.expected.wgsl index a8b3457504..a9ef3845fc 100644 --- a/test/tint/builtins/gen/var/dpdyFine/1fb7ab.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dpdyFine/1fb7ab.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn dpdyFine_1fb7ab() { var res : vec3 = dpdyFine(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdyFine_1fb7ab(); } diff --git a/test/tint/builtins/gen/var/dpdyFine/6eb673.wgsl b/test/tint/builtins/gen/var/dpdyFine/6eb673.wgsl index 751332930e..932f7026af 100644 --- a/test/tint/builtins/gen/var/dpdyFine/6eb673.wgsl +++ b/test/tint/builtins/gen/var/dpdyFine/6eb673.wgsl @@ -29,7 +29,7 @@ fn dpdyFine_6eb673() { var res: f32 = dpdyFine(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdyFine_6eb673(); } diff --git a/test/tint/builtins/gen/var/dpdyFine/6eb673.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dpdyFine/6eb673.wgsl.expected.wgsl index b6a2e54b92..016163d747 100644 --- a/test/tint/builtins/gen/var/dpdyFine/6eb673.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dpdyFine/6eb673.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn dpdyFine_6eb673() { var res : f32 = dpdyFine(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdyFine_6eb673(); } diff --git a/test/tint/builtins/gen/var/dpdyFine/d0a648.wgsl b/test/tint/builtins/gen/var/dpdyFine/d0a648.wgsl index ab2f873ca6..31a1a9490a 100644 --- a/test/tint/builtins/gen/var/dpdyFine/d0a648.wgsl +++ b/test/tint/builtins/gen/var/dpdyFine/d0a648.wgsl @@ -29,7 +29,7 @@ fn dpdyFine_d0a648() { var res: vec4 = dpdyFine(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdyFine_d0a648(); } diff --git a/test/tint/builtins/gen/var/dpdyFine/d0a648.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dpdyFine/d0a648.wgsl.expected.wgsl index 5a1f817ac0..4e3ad88bad 100644 --- a/test/tint/builtins/gen/var/dpdyFine/d0a648.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dpdyFine/d0a648.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn dpdyFine_d0a648() { var res : vec4 = dpdyFine(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdyFine_d0a648(); } diff --git a/test/tint/builtins/gen/var/dpdyFine/df33aa.wgsl b/test/tint/builtins/gen/var/dpdyFine/df33aa.wgsl index 819c688aac..8946eab6a7 100644 --- a/test/tint/builtins/gen/var/dpdyFine/df33aa.wgsl +++ b/test/tint/builtins/gen/var/dpdyFine/df33aa.wgsl @@ -29,7 +29,7 @@ fn dpdyFine_df33aa() { var res: vec2 = dpdyFine(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdyFine_df33aa(); } diff --git a/test/tint/builtins/gen/var/dpdyFine/df33aa.wgsl.expected.wgsl b/test/tint/builtins/gen/var/dpdyFine/df33aa.wgsl.expected.wgsl index 46d0d1b9ae..557d47333f 100644 --- a/test/tint/builtins/gen/var/dpdyFine/df33aa.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/dpdyFine/df33aa.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn dpdyFine_df33aa() { var res : vec2 = dpdyFine(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { dpdyFine_df33aa(); } diff --git a/test/tint/builtins/gen/var/exp/0f70eb.wgsl b/test/tint/builtins/gen/var/exp/0f70eb.wgsl index dbcfeab1ae..10c64bd9eb 100644 --- a/test/tint/builtins/gen/var/exp/0f70eb.wgsl +++ b/test/tint/builtins/gen/var/exp/0f70eb.wgsl @@ -29,18 +29,18 @@ fn exp_0f70eb() { var res: vec4 = exp(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp_0f70eb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp_0f70eb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp_0f70eb(); } diff --git a/test/tint/builtins/gen/var/exp/0f70eb.wgsl.expected.wgsl b/test/tint/builtins/gen/var/exp/0f70eb.wgsl.expected.wgsl index 9c62eea0c9..33a815cf48 100644 --- a/test/tint/builtins/gen/var/exp/0f70eb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/exp/0f70eb.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn exp_0f70eb() { var res : vec4 = exp(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp_0f70eb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp_0f70eb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp_0f70eb(); } diff --git a/test/tint/builtins/gen/var/exp/1951e7.wgsl b/test/tint/builtins/gen/var/exp/1951e7.wgsl index 9517b8403a..f916d7e2c8 100644 --- a/test/tint/builtins/gen/var/exp/1951e7.wgsl +++ b/test/tint/builtins/gen/var/exp/1951e7.wgsl @@ -29,18 +29,18 @@ fn exp_1951e7() { var res: vec2 = exp(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp_1951e7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp_1951e7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp_1951e7(); } diff --git a/test/tint/builtins/gen/var/exp/1951e7.wgsl.expected.wgsl b/test/tint/builtins/gen/var/exp/1951e7.wgsl.expected.wgsl index 22c08d91d7..ff1e940840 100644 --- a/test/tint/builtins/gen/var/exp/1951e7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/exp/1951e7.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn exp_1951e7() { var res : vec2 = exp(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp_1951e7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp_1951e7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp_1951e7(); } diff --git a/test/tint/builtins/gen/var/exp/771fd2.wgsl b/test/tint/builtins/gen/var/exp/771fd2.wgsl index 8ee0c82068..5d7d206cbf 100644 --- a/test/tint/builtins/gen/var/exp/771fd2.wgsl +++ b/test/tint/builtins/gen/var/exp/771fd2.wgsl @@ -29,18 +29,18 @@ fn exp_771fd2() { var res: f32 = exp(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp_771fd2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp_771fd2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp_771fd2(); } diff --git a/test/tint/builtins/gen/var/exp/771fd2.wgsl.expected.wgsl b/test/tint/builtins/gen/var/exp/771fd2.wgsl.expected.wgsl index 892fa9726c..fd24d08a21 100644 --- a/test/tint/builtins/gen/var/exp/771fd2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/exp/771fd2.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn exp_771fd2() { var res : f32 = exp(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp_771fd2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp_771fd2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp_771fd2(); } diff --git a/test/tint/builtins/gen/var/exp/d98450.wgsl b/test/tint/builtins/gen/var/exp/d98450.wgsl index fae8a40c38..291d149d1c 100644 --- a/test/tint/builtins/gen/var/exp/d98450.wgsl +++ b/test/tint/builtins/gen/var/exp/d98450.wgsl @@ -29,18 +29,18 @@ fn exp_d98450() { var res: vec3 = exp(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp_d98450(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp_d98450(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp_d98450(); } diff --git a/test/tint/builtins/gen/var/exp/d98450.wgsl.expected.wgsl b/test/tint/builtins/gen/var/exp/d98450.wgsl.expected.wgsl index 9cb0d52d3d..067d9e6d96 100644 --- a/test/tint/builtins/gen/var/exp/d98450.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/exp/d98450.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn exp_d98450() { var res : vec3 = exp(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp_d98450(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp_d98450(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp_d98450(); } diff --git a/test/tint/builtins/gen/var/exp2/1f8680.wgsl b/test/tint/builtins/gen/var/exp2/1f8680.wgsl index 60cc0e74b8..336979f06f 100644 --- a/test/tint/builtins/gen/var/exp2/1f8680.wgsl +++ b/test/tint/builtins/gen/var/exp2/1f8680.wgsl @@ -29,18 +29,18 @@ fn exp2_1f8680() { var res: vec3 = exp2(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp2_1f8680(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp2_1f8680(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp2_1f8680(); } diff --git a/test/tint/builtins/gen/var/exp2/1f8680.wgsl.expected.wgsl b/test/tint/builtins/gen/var/exp2/1f8680.wgsl.expected.wgsl index 1311b3f045..cb888ca5aa 100644 --- a/test/tint/builtins/gen/var/exp2/1f8680.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/exp2/1f8680.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn exp2_1f8680() { var res : vec3 = exp2(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp2_1f8680(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp2_1f8680(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp2_1f8680(); } diff --git a/test/tint/builtins/gen/var/exp2/a9d0a7.wgsl b/test/tint/builtins/gen/var/exp2/a9d0a7.wgsl index 918930b7a3..2be13c8e53 100644 --- a/test/tint/builtins/gen/var/exp2/a9d0a7.wgsl +++ b/test/tint/builtins/gen/var/exp2/a9d0a7.wgsl @@ -29,18 +29,18 @@ fn exp2_a9d0a7() { var res: vec4 = exp2(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp2_a9d0a7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp2_a9d0a7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp2_a9d0a7(); } diff --git a/test/tint/builtins/gen/var/exp2/a9d0a7.wgsl.expected.wgsl b/test/tint/builtins/gen/var/exp2/a9d0a7.wgsl.expected.wgsl index db5f690815..61b61ce069 100644 --- a/test/tint/builtins/gen/var/exp2/a9d0a7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/exp2/a9d0a7.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn exp2_a9d0a7() { var res : vec4 = exp2(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp2_a9d0a7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp2_a9d0a7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp2_a9d0a7(); } diff --git a/test/tint/builtins/gen/var/exp2/d6777c.wgsl b/test/tint/builtins/gen/var/exp2/d6777c.wgsl index 6f77edca80..4f64ee2bdd 100644 --- a/test/tint/builtins/gen/var/exp2/d6777c.wgsl +++ b/test/tint/builtins/gen/var/exp2/d6777c.wgsl @@ -29,18 +29,18 @@ fn exp2_d6777c() { var res: vec2 = exp2(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp2_d6777c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp2_d6777c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp2_d6777c(); } diff --git a/test/tint/builtins/gen/var/exp2/d6777c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/exp2/d6777c.wgsl.expected.wgsl index e78ca2e99e..33a244ff93 100644 --- a/test/tint/builtins/gen/var/exp2/d6777c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/exp2/d6777c.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn exp2_d6777c() { var res : vec2 = exp2(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp2_d6777c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp2_d6777c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp2_d6777c(); } diff --git a/test/tint/builtins/gen/var/exp2/dea523.wgsl b/test/tint/builtins/gen/var/exp2/dea523.wgsl index 434d0f6fe9..ed1a4e6788 100644 --- a/test/tint/builtins/gen/var/exp2/dea523.wgsl +++ b/test/tint/builtins/gen/var/exp2/dea523.wgsl @@ -29,18 +29,18 @@ fn exp2_dea523() { var res: f32 = exp2(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp2_dea523(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp2_dea523(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp2_dea523(); } diff --git a/test/tint/builtins/gen/var/exp2/dea523.wgsl.expected.wgsl b/test/tint/builtins/gen/var/exp2/dea523.wgsl.expected.wgsl index f47e367cbb..eff335446b 100644 --- a/test/tint/builtins/gen/var/exp2/dea523.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/exp2/dea523.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn exp2_dea523() { var res : f32 = exp2(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { exp2_dea523(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { exp2_dea523(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { exp2_dea523(); } diff --git a/test/tint/builtins/gen/var/extractBits/12b197.wgsl b/test/tint/builtins/gen/var/extractBits/12b197.wgsl index 75d988bda1..e19468b22b 100644 --- a/test/tint/builtins/gen/var/extractBits/12b197.wgsl +++ b/test/tint/builtins/gen/var/extractBits/12b197.wgsl @@ -31,18 +31,18 @@ fn extractBits_12b197() { var res: vec3 = extractBits(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_12b197(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_12b197(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_12b197(); } diff --git a/test/tint/builtins/gen/var/extractBits/12b197.wgsl.expected.wgsl b/test/tint/builtins/gen/var/extractBits/12b197.wgsl.expected.wgsl index 8aa910c139..926eb6be7b 100644 --- a/test/tint/builtins/gen/var/extractBits/12b197.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/extractBits/12b197.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn extractBits_12b197() { var res : vec3 = extractBits(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_12b197(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_12b197(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_12b197(); } diff --git a/test/tint/builtins/gen/var/extractBits/249874.wgsl b/test/tint/builtins/gen/var/extractBits/249874.wgsl index 58d08773e6..823529d782 100644 --- a/test/tint/builtins/gen/var/extractBits/249874.wgsl +++ b/test/tint/builtins/gen/var/extractBits/249874.wgsl @@ -31,18 +31,18 @@ fn extractBits_249874() { var res: i32 = extractBits(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_249874(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_249874(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_249874(); } diff --git a/test/tint/builtins/gen/var/extractBits/249874.wgsl.expected.wgsl b/test/tint/builtins/gen/var/extractBits/249874.wgsl.expected.wgsl index a7a2804c17..129115695c 100644 --- a/test/tint/builtins/gen/var/extractBits/249874.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/extractBits/249874.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn extractBits_249874() { var res : i32 = extractBits(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_249874(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_249874(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_249874(); } diff --git a/test/tint/builtins/gen/var/extractBits/631377.wgsl b/test/tint/builtins/gen/var/extractBits/631377.wgsl index 3785159646..fa2c000d39 100644 --- a/test/tint/builtins/gen/var/extractBits/631377.wgsl +++ b/test/tint/builtins/gen/var/extractBits/631377.wgsl @@ -31,18 +31,18 @@ fn extractBits_631377() { var res: vec4 = extractBits(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_631377(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_631377(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_631377(); } diff --git a/test/tint/builtins/gen/var/extractBits/631377.wgsl.expected.wgsl b/test/tint/builtins/gen/var/extractBits/631377.wgsl.expected.wgsl index 23e45d2040..0ea85f9ce7 100644 --- a/test/tint/builtins/gen/var/extractBits/631377.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/extractBits/631377.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn extractBits_631377() { var res : vec4 = extractBits(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_631377(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_631377(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_631377(); } diff --git a/test/tint/builtins/gen/var/extractBits/a99a8d.wgsl b/test/tint/builtins/gen/var/extractBits/a99a8d.wgsl index 0086a4b5ba..c4d869cdc7 100644 --- a/test/tint/builtins/gen/var/extractBits/a99a8d.wgsl +++ b/test/tint/builtins/gen/var/extractBits/a99a8d.wgsl @@ -31,18 +31,18 @@ fn extractBits_a99a8d() { var res: vec2 = extractBits(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_a99a8d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_a99a8d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_a99a8d(); } diff --git a/test/tint/builtins/gen/var/extractBits/a99a8d.wgsl.expected.wgsl b/test/tint/builtins/gen/var/extractBits/a99a8d.wgsl.expected.wgsl index de8bc4be63..480f46ae2b 100644 --- a/test/tint/builtins/gen/var/extractBits/a99a8d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/extractBits/a99a8d.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn extractBits_a99a8d() { var res : vec2 = extractBits(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_a99a8d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_a99a8d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_a99a8d(); } diff --git a/test/tint/builtins/gen/var/extractBits/ce81f8.wgsl b/test/tint/builtins/gen/var/extractBits/ce81f8.wgsl index 1e1e5fefdb..0832b129ad 100644 --- a/test/tint/builtins/gen/var/extractBits/ce81f8.wgsl +++ b/test/tint/builtins/gen/var/extractBits/ce81f8.wgsl @@ -31,18 +31,18 @@ fn extractBits_ce81f8() { var res: u32 = extractBits(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_ce81f8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_ce81f8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_ce81f8(); } diff --git a/test/tint/builtins/gen/var/extractBits/ce81f8.wgsl.expected.wgsl b/test/tint/builtins/gen/var/extractBits/ce81f8.wgsl.expected.wgsl index 0a4a29b68c..c99ed1a5ad 100644 --- a/test/tint/builtins/gen/var/extractBits/ce81f8.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/extractBits/ce81f8.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn extractBits_ce81f8() { var res : u32 = extractBits(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_ce81f8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_ce81f8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_ce81f8(); } diff --git a/test/tint/builtins/gen/var/extractBits/e04f5d.wgsl b/test/tint/builtins/gen/var/extractBits/e04f5d.wgsl index 940eb3320a..4bc5ff0948 100644 --- a/test/tint/builtins/gen/var/extractBits/e04f5d.wgsl +++ b/test/tint/builtins/gen/var/extractBits/e04f5d.wgsl @@ -31,18 +31,18 @@ fn extractBits_e04f5d() { var res: vec3 = extractBits(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_e04f5d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_e04f5d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_e04f5d(); } diff --git a/test/tint/builtins/gen/var/extractBits/e04f5d.wgsl.expected.wgsl b/test/tint/builtins/gen/var/extractBits/e04f5d.wgsl.expected.wgsl index a866a10fde..7bad596f27 100644 --- a/test/tint/builtins/gen/var/extractBits/e04f5d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/extractBits/e04f5d.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn extractBits_e04f5d() { var res : vec3 = extractBits(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_e04f5d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_e04f5d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_e04f5d(); } diff --git a/test/tint/builtins/gen/var/extractBits/f28f69.wgsl b/test/tint/builtins/gen/var/extractBits/f28f69.wgsl index 4c40da4ce4..882b2742c8 100644 --- a/test/tint/builtins/gen/var/extractBits/f28f69.wgsl +++ b/test/tint/builtins/gen/var/extractBits/f28f69.wgsl @@ -31,18 +31,18 @@ fn extractBits_f28f69() { var res: vec2 = extractBits(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_f28f69(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_f28f69(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_f28f69(); } diff --git a/test/tint/builtins/gen/var/extractBits/f28f69.wgsl.expected.wgsl b/test/tint/builtins/gen/var/extractBits/f28f69.wgsl.expected.wgsl index f70d9c7bb9..69d9578a96 100644 --- a/test/tint/builtins/gen/var/extractBits/f28f69.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/extractBits/f28f69.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn extractBits_f28f69() { var res : vec2 = extractBits(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_f28f69(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_f28f69(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_f28f69(); } diff --git a/test/tint/builtins/gen/var/extractBits/fb850f.wgsl b/test/tint/builtins/gen/var/extractBits/fb850f.wgsl index f31e60ecf1..bfb55a33e4 100644 --- a/test/tint/builtins/gen/var/extractBits/fb850f.wgsl +++ b/test/tint/builtins/gen/var/extractBits/fb850f.wgsl @@ -31,18 +31,18 @@ fn extractBits_fb850f() { var res: vec4 = extractBits(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_fb850f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_fb850f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_fb850f(); } diff --git a/test/tint/builtins/gen/var/extractBits/fb850f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/extractBits/fb850f.wgsl.expected.wgsl index 1b0afd5fac..2df9fbd70f 100644 --- a/test/tint/builtins/gen/var/extractBits/fb850f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/extractBits/fb850f.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn extractBits_fb850f() { var res : vec4 = extractBits(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { extractBits_fb850f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { extractBits_fb850f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { extractBits_fb850f(); } diff --git a/test/tint/builtins/gen/var/faceForward/5afbd5.wgsl b/test/tint/builtins/gen/var/faceForward/5afbd5.wgsl index 25d1a73b32..8d29491ebd 100644 --- a/test/tint/builtins/gen/var/faceForward/5afbd5.wgsl +++ b/test/tint/builtins/gen/var/faceForward/5afbd5.wgsl @@ -31,18 +31,18 @@ fn faceForward_5afbd5() { var res: vec3 = faceForward(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { faceForward_5afbd5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { faceForward_5afbd5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { faceForward_5afbd5(); } diff --git a/test/tint/builtins/gen/var/faceForward/5afbd5.wgsl.expected.wgsl b/test/tint/builtins/gen/var/faceForward/5afbd5.wgsl.expected.wgsl index 56bed2312f..8b5bbee9b9 100644 --- a/test/tint/builtins/gen/var/faceForward/5afbd5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/faceForward/5afbd5.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn faceForward_5afbd5() { var res : vec3 = faceForward(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { faceForward_5afbd5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { faceForward_5afbd5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { faceForward_5afbd5(); } diff --git a/test/tint/builtins/gen/var/faceForward/b316e5.wgsl b/test/tint/builtins/gen/var/faceForward/b316e5.wgsl index 4d4e57cad8..85d4fac778 100644 --- a/test/tint/builtins/gen/var/faceForward/b316e5.wgsl +++ b/test/tint/builtins/gen/var/faceForward/b316e5.wgsl @@ -31,18 +31,18 @@ fn faceForward_b316e5() { var res: vec4 = faceForward(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { faceForward_b316e5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { faceForward_b316e5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { faceForward_b316e5(); } diff --git a/test/tint/builtins/gen/var/faceForward/b316e5.wgsl.expected.wgsl b/test/tint/builtins/gen/var/faceForward/b316e5.wgsl.expected.wgsl index 50154f3806..c8a389f055 100644 --- a/test/tint/builtins/gen/var/faceForward/b316e5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/faceForward/b316e5.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn faceForward_b316e5() { var res : vec4 = faceForward(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { faceForward_b316e5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { faceForward_b316e5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { faceForward_b316e5(); } diff --git a/test/tint/builtins/gen/var/faceForward/e6908b.wgsl b/test/tint/builtins/gen/var/faceForward/e6908b.wgsl index 5cb18c4baf..065fa6d8bd 100644 --- a/test/tint/builtins/gen/var/faceForward/e6908b.wgsl +++ b/test/tint/builtins/gen/var/faceForward/e6908b.wgsl @@ -31,18 +31,18 @@ fn faceForward_e6908b() { var res: vec2 = faceForward(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { faceForward_e6908b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { faceForward_e6908b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { faceForward_e6908b(); } diff --git a/test/tint/builtins/gen/var/faceForward/e6908b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/faceForward/e6908b.wgsl.expected.wgsl index 7e8df96e3b..5dba944d5d 100644 --- a/test/tint/builtins/gen/var/faceForward/e6908b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/faceForward/e6908b.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn faceForward_e6908b() { var res : vec2 = faceForward(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { faceForward_e6908b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { faceForward_e6908b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { faceForward_e6908b(); } diff --git a/test/tint/builtins/gen/var/firstLeadingBit/000ff3.wgsl b/test/tint/builtins/gen/var/firstLeadingBit/000ff3.wgsl index 6ce9b05824..650a35afec 100644 --- a/test/tint/builtins/gen/var/firstLeadingBit/000ff3.wgsl +++ b/test/tint/builtins/gen/var/firstLeadingBit/000ff3.wgsl @@ -29,18 +29,18 @@ fn firstLeadingBit_000ff3() { var res: vec4 = firstLeadingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_000ff3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_000ff3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_000ff3(); } diff --git a/test/tint/builtins/gen/var/firstLeadingBit/000ff3.wgsl.expected.wgsl b/test/tint/builtins/gen/var/firstLeadingBit/000ff3.wgsl.expected.wgsl index d0c3dfca9a..ce5a31bff8 100644 --- a/test/tint/builtins/gen/var/firstLeadingBit/000ff3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/firstLeadingBit/000ff3.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn firstLeadingBit_000ff3() { var res : vec4 = firstLeadingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_000ff3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_000ff3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_000ff3(); } diff --git a/test/tint/builtins/gen/var/firstLeadingBit/35053e.wgsl b/test/tint/builtins/gen/var/firstLeadingBit/35053e.wgsl index 9ff1c99fc2..f2e1c459f9 100644 --- a/test/tint/builtins/gen/var/firstLeadingBit/35053e.wgsl +++ b/test/tint/builtins/gen/var/firstLeadingBit/35053e.wgsl @@ -29,18 +29,18 @@ fn firstLeadingBit_35053e() { var res: vec3 = firstLeadingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_35053e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_35053e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_35053e(); } diff --git a/test/tint/builtins/gen/var/firstLeadingBit/35053e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/firstLeadingBit/35053e.wgsl.expected.wgsl index c191cc001b..d3dec7318b 100644 --- a/test/tint/builtins/gen/var/firstLeadingBit/35053e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/firstLeadingBit/35053e.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn firstLeadingBit_35053e() { var res : vec3 = firstLeadingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_35053e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_35053e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_35053e(); } diff --git a/test/tint/builtins/gen/var/firstLeadingBit/3fd7d0.wgsl b/test/tint/builtins/gen/var/firstLeadingBit/3fd7d0.wgsl index 15595a1a19..e586d8d4c7 100644 --- a/test/tint/builtins/gen/var/firstLeadingBit/3fd7d0.wgsl +++ b/test/tint/builtins/gen/var/firstLeadingBit/3fd7d0.wgsl @@ -29,18 +29,18 @@ fn firstLeadingBit_3fd7d0() { var res: vec3 = firstLeadingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_3fd7d0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_3fd7d0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_3fd7d0(); } diff --git a/test/tint/builtins/gen/var/firstLeadingBit/3fd7d0.wgsl.expected.wgsl b/test/tint/builtins/gen/var/firstLeadingBit/3fd7d0.wgsl.expected.wgsl index 3f079f91ce..d64dfc65e1 100644 --- a/test/tint/builtins/gen/var/firstLeadingBit/3fd7d0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/firstLeadingBit/3fd7d0.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn firstLeadingBit_3fd7d0() { var res : vec3 = firstLeadingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_3fd7d0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_3fd7d0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_3fd7d0(); } diff --git a/test/tint/builtins/gen/var/firstLeadingBit/57a1a3.wgsl b/test/tint/builtins/gen/var/firstLeadingBit/57a1a3.wgsl index c6e63f57d9..b0b1d96fea 100644 --- a/test/tint/builtins/gen/var/firstLeadingBit/57a1a3.wgsl +++ b/test/tint/builtins/gen/var/firstLeadingBit/57a1a3.wgsl @@ -29,18 +29,18 @@ fn firstLeadingBit_57a1a3() { var res: i32 = firstLeadingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_57a1a3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_57a1a3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_57a1a3(); } diff --git a/test/tint/builtins/gen/var/firstLeadingBit/57a1a3.wgsl.expected.wgsl b/test/tint/builtins/gen/var/firstLeadingBit/57a1a3.wgsl.expected.wgsl index 00fe1f2ea9..fa872659da 100644 --- a/test/tint/builtins/gen/var/firstLeadingBit/57a1a3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/firstLeadingBit/57a1a3.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn firstLeadingBit_57a1a3() { var res : i32 = firstLeadingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_57a1a3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_57a1a3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_57a1a3(); } diff --git a/test/tint/builtins/gen/var/firstLeadingBit/6fe804.wgsl b/test/tint/builtins/gen/var/firstLeadingBit/6fe804.wgsl index 483f61882e..dcbb406bdf 100644 --- a/test/tint/builtins/gen/var/firstLeadingBit/6fe804.wgsl +++ b/test/tint/builtins/gen/var/firstLeadingBit/6fe804.wgsl @@ -29,18 +29,18 @@ fn firstLeadingBit_6fe804() { var res: vec2 = firstLeadingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_6fe804(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_6fe804(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_6fe804(); } diff --git a/test/tint/builtins/gen/var/firstLeadingBit/6fe804.wgsl.expected.wgsl b/test/tint/builtins/gen/var/firstLeadingBit/6fe804.wgsl.expected.wgsl index 1d6c27b028..84ab995fbb 100644 --- a/test/tint/builtins/gen/var/firstLeadingBit/6fe804.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/firstLeadingBit/6fe804.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn firstLeadingBit_6fe804() { var res : vec2 = firstLeadingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_6fe804(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_6fe804(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_6fe804(); } diff --git a/test/tint/builtins/gen/var/firstLeadingBit/a622c2.wgsl b/test/tint/builtins/gen/var/firstLeadingBit/a622c2.wgsl index e482e723cc..115596e3e3 100644 --- a/test/tint/builtins/gen/var/firstLeadingBit/a622c2.wgsl +++ b/test/tint/builtins/gen/var/firstLeadingBit/a622c2.wgsl @@ -29,18 +29,18 @@ fn firstLeadingBit_a622c2() { var res: vec2 = firstLeadingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_a622c2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_a622c2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_a622c2(); } diff --git a/test/tint/builtins/gen/var/firstLeadingBit/a622c2.wgsl.expected.wgsl b/test/tint/builtins/gen/var/firstLeadingBit/a622c2.wgsl.expected.wgsl index 73c77977a9..e089f78a43 100644 --- a/test/tint/builtins/gen/var/firstLeadingBit/a622c2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/firstLeadingBit/a622c2.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn firstLeadingBit_a622c2() { var res : vec2 = firstLeadingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_a622c2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_a622c2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_a622c2(); } diff --git a/test/tint/builtins/gen/var/firstLeadingBit/c1f940.wgsl b/test/tint/builtins/gen/var/firstLeadingBit/c1f940.wgsl index be7d46ced2..2997ff4515 100644 --- a/test/tint/builtins/gen/var/firstLeadingBit/c1f940.wgsl +++ b/test/tint/builtins/gen/var/firstLeadingBit/c1f940.wgsl @@ -29,18 +29,18 @@ fn firstLeadingBit_c1f940() { var res: vec4 = firstLeadingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_c1f940(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_c1f940(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_c1f940(); } diff --git a/test/tint/builtins/gen/var/firstLeadingBit/c1f940.wgsl.expected.wgsl b/test/tint/builtins/gen/var/firstLeadingBit/c1f940.wgsl.expected.wgsl index dd852d4e85..de02acfd03 100644 --- a/test/tint/builtins/gen/var/firstLeadingBit/c1f940.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/firstLeadingBit/c1f940.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn firstLeadingBit_c1f940() { var res : vec4 = firstLeadingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_c1f940(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_c1f940(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_c1f940(); } diff --git a/test/tint/builtins/gen/var/firstLeadingBit/f0779d.wgsl b/test/tint/builtins/gen/var/firstLeadingBit/f0779d.wgsl index 4ccf98300c..a4d6861d6b 100644 --- a/test/tint/builtins/gen/var/firstLeadingBit/f0779d.wgsl +++ b/test/tint/builtins/gen/var/firstLeadingBit/f0779d.wgsl @@ -29,18 +29,18 @@ fn firstLeadingBit_f0779d() { var res: u32 = firstLeadingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_f0779d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_f0779d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_f0779d(); } diff --git a/test/tint/builtins/gen/var/firstLeadingBit/f0779d.wgsl.expected.wgsl b/test/tint/builtins/gen/var/firstLeadingBit/f0779d.wgsl.expected.wgsl index 072135a36b..b47e829975 100644 --- a/test/tint/builtins/gen/var/firstLeadingBit/f0779d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/firstLeadingBit/f0779d.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn firstLeadingBit_f0779d() { var res : u32 = firstLeadingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstLeadingBit_f0779d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstLeadingBit_f0779d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstLeadingBit_f0779d(); } diff --git a/test/tint/builtins/gen/var/firstTrailingBit/110f2c.wgsl b/test/tint/builtins/gen/var/firstTrailingBit/110f2c.wgsl index a3cdb6f985..fcc2127415 100644 --- a/test/tint/builtins/gen/var/firstTrailingBit/110f2c.wgsl +++ b/test/tint/builtins/gen/var/firstTrailingBit/110f2c.wgsl @@ -29,18 +29,18 @@ fn firstTrailingBit_110f2c() { var res: vec4 = firstTrailingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_110f2c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_110f2c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_110f2c(); } diff --git a/test/tint/builtins/gen/var/firstTrailingBit/110f2c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/firstTrailingBit/110f2c.wgsl.expected.wgsl index 6edd9d2863..e35d085151 100644 --- a/test/tint/builtins/gen/var/firstTrailingBit/110f2c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/firstTrailingBit/110f2c.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn firstTrailingBit_110f2c() { var res : vec4 = firstTrailingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_110f2c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_110f2c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_110f2c(); } diff --git a/test/tint/builtins/gen/var/firstTrailingBit/3a2acc.wgsl b/test/tint/builtins/gen/var/firstTrailingBit/3a2acc.wgsl index ed95803b55..fd485e11c2 100644 --- a/test/tint/builtins/gen/var/firstTrailingBit/3a2acc.wgsl +++ b/test/tint/builtins/gen/var/firstTrailingBit/3a2acc.wgsl @@ -29,18 +29,18 @@ fn firstTrailingBit_3a2acc() { var res: i32 = firstTrailingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_3a2acc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_3a2acc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_3a2acc(); } diff --git a/test/tint/builtins/gen/var/firstTrailingBit/3a2acc.wgsl.expected.wgsl b/test/tint/builtins/gen/var/firstTrailingBit/3a2acc.wgsl.expected.wgsl index 414f2ffdca..b3e2dfba69 100644 --- a/test/tint/builtins/gen/var/firstTrailingBit/3a2acc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/firstTrailingBit/3a2acc.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn firstTrailingBit_3a2acc() { var res : i32 = firstTrailingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_3a2acc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_3a2acc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_3a2acc(); } diff --git a/test/tint/builtins/gen/var/firstTrailingBit/45eb10.wgsl b/test/tint/builtins/gen/var/firstTrailingBit/45eb10.wgsl index a76c9b5f39..1d39c64f05 100644 --- a/test/tint/builtins/gen/var/firstTrailingBit/45eb10.wgsl +++ b/test/tint/builtins/gen/var/firstTrailingBit/45eb10.wgsl @@ -29,18 +29,18 @@ fn firstTrailingBit_45eb10() { var res: vec2 = firstTrailingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_45eb10(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_45eb10(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_45eb10(); } diff --git a/test/tint/builtins/gen/var/firstTrailingBit/45eb10.wgsl.expected.wgsl b/test/tint/builtins/gen/var/firstTrailingBit/45eb10.wgsl.expected.wgsl index f462942511..7585a47ebf 100644 --- a/test/tint/builtins/gen/var/firstTrailingBit/45eb10.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/firstTrailingBit/45eb10.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn firstTrailingBit_45eb10() { var res : vec2 = firstTrailingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_45eb10(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_45eb10(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_45eb10(); } diff --git a/test/tint/builtins/gen/var/firstTrailingBit/47d475.wgsl b/test/tint/builtins/gen/var/firstTrailingBit/47d475.wgsl index 1bb0de9648..f648309cf1 100644 --- a/test/tint/builtins/gen/var/firstTrailingBit/47d475.wgsl +++ b/test/tint/builtins/gen/var/firstTrailingBit/47d475.wgsl @@ -29,18 +29,18 @@ fn firstTrailingBit_47d475() { var res: u32 = firstTrailingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_47d475(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_47d475(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_47d475(); } diff --git a/test/tint/builtins/gen/var/firstTrailingBit/47d475.wgsl.expected.wgsl b/test/tint/builtins/gen/var/firstTrailingBit/47d475.wgsl.expected.wgsl index b93d11436f..4653891507 100644 --- a/test/tint/builtins/gen/var/firstTrailingBit/47d475.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/firstTrailingBit/47d475.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn firstTrailingBit_47d475() { var res : u32 = firstTrailingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_47d475(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_47d475(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_47d475(); } diff --git a/test/tint/builtins/gen/var/firstTrailingBit/50c072.wgsl b/test/tint/builtins/gen/var/firstTrailingBit/50c072.wgsl index 41501dfcc2..6d7cd0ea20 100644 --- a/test/tint/builtins/gen/var/firstTrailingBit/50c072.wgsl +++ b/test/tint/builtins/gen/var/firstTrailingBit/50c072.wgsl @@ -29,18 +29,18 @@ fn firstTrailingBit_50c072() { var res: vec2 = firstTrailingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_50c072(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_50c072(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_50c072(); } diff --git a/test/tint/builtins/gen/var/firstTrailingBit/50c072.wgsl.expected.wgsl b/test/tint/builtins/gen/var/firstTrailingBit/50c072.wgsl.expected.wgsl index e3f4f6e66c..8e35398359 100644 --- a/test/tint/builtins/gen/var/firstTrailingBit/50c072.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/firstTrailingBit/50c072.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn firstTrailingBit_50c072() { var res : vec2 = firstTrailingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_50c072(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_50c072(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_50c072(); } diff --git a/test/tint/builtins/gen/var/firstTrailingBit/7496d6.wgsl b/test/tint/builtins/gen/var/firstTrailingBit/7496d6.wgsl index b38a4164f1..83185f36d5 100644 --- a/test/tint/builtins/gen/var/firstTrailingBit/7496d6.wgsl +++ b/test/tint/builtins/gen/var/firstTrailingBit/7496d6.wgsl @@ -29,18 +29,18 @@ fn firstTrailingBit_7496d6() { var res: vec3 = firstTrailingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_7496d6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_7496d6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_7496d6(); } diff --git a/test/tint/builtins/gen/var/firstTrailingBit/7496d6.wgsl.expected.wgsl b/test/tint/builtins/gen/var/firstTrailingBit/7496d6.wgsl.expected.wgsl index bf926d88b5..97e20460f8 100644 --- a/test/tint/builtins/gen/var/firstTrailingBit/7496d6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/firstTrailingBit/7496d6.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn firstTrailingBit_7496d6() { var res : vec3 = firstTrailingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_7496d6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_7496d6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_7496d6(); } diff --git a/test/tint/builtins/gen/var/firstTrailingBit/86551b.wgsl b/test/tint/builtins/gen/var/firstTrailingBit/86551b.wgsl index 7d87a43f3b..9bf0b287aa 100644 --- a/test/tint/builtins/gen/var/firstTrailingBit/86551b.wgsl +++ b/test/tint/builtins/gen/var/firstTrailingBit/86551b.wgsl @@ -29,18 +29,18 @@ fn firstTrailingBit_86551b() { var res: vec4 = firstTrailingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_86551b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_86551b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_86551b(); } diff --git a/test/tint/builtins/gen/var/firstTrailingBit/86551b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/firstTrailingBit/86551b.wgsl.expected.wgsl index f12d0220a0..dcbc82e986 100644 --- a/test/tint/builtins/gen/var/firstTrailingBit/86551b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/firstTrailingBit/86551b.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn firstTrailingBit_86551b() { var res : vec4 = firstTrailingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_86551b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_86551b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_86551b(); } diff --git a/test/tint/builtins/gen/var/firstTrailingBit/cb51ce.wgsl b/test/tint/builtins/gen/var/firstTrailingBit/cb51ce.wgsl index f32a9b8d61..a251b04e65 100644 --- a/test/tint/builtins/gen/var/firstTrailingBit/cb51ce.wgsl +++ b/test/tint/builtins/gen/var/firstTrailingBit/cb51ce.wgsl @@ -29,18 +29,18 @@ fn firstTrailingBit_cb51ce() { var res: vec3 = firstTrailingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_cb51ce(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_cb51ce(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_cb51ce(); } diff --git a/test/tint/builtins/gen/var/firstTrailingBit/cb51ce.wgsl.expected.wgsl b/test/tint/builtins/gen/var/firstTrailingBit/cb51ce.wgsl.expected.wgsl index f167e27d0f..908b5b8167 100644 --- a/test/tint/builtins/gen/var/firstTrailingBit/cb51ce.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/firstTrailingBit/cb51ce.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn firstTrailingBit_cb51ce() { var res : vec3 = firstTrailingBit(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { firstTrailingBit_cb51ce(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { firstTrailingBit_cb51ce(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { firstTrailingBit_cb51ce(); } diff --git a/test/tint/builtins/gen/var/floor/3bccc4.wgsl b/test/tint/builtins/gen/var/floor/3bccc4.wgsl index 8ff9d8fa66..47be64ff26 100644 --- a/test/tint/builtins/gen/var/floor/3bccc4.wgsl +++ b/test/tint/builtins/gen/var/floor/3bccc4.wgsl @@ -29,18 +29,18 @@ fn floor_3bccc4() { var res: vec4 = floor(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { floor_3bccc4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { floor_3bccc4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { floor_3bccc4(); } diff --git a/test/tint/builtins/gen/var/floor/3bccc4.wgsl.expected.wgsl b/test/tint/builtins/gen/var/floor/3bccc4.wgsl.expected.wgsl index 119d8fe867..a5c860d3b6 100644 --- a/test/tint/builtins/gen/var/floor/3bccc4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/floor/3bccc4.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn floor_3bccc4() { var res : vec4 = floor(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { floor_3bccc4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { floor_3bccc4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { floor_3bccc4(); } diff --git a/test/tint/builtins/gen/var/floor/5fc9ac.wgsl b/test/tint/builtins/gen/var/floor/5fc9ac.wgsl index 0f701821e9..9670f23935 100644 --- a/test/tint/builtins/gen/var/floor/5fc9ac.wgsl +++ b/test/tint/builtins/gen/var/floor/5fc9ac.wgsl @@ -29,18 +29,18 @@ fn floor_5fc9ac() { var res: vec2 = floor(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { floor_5fc9ac(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { floor_5fc9ac(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { floor_5fc9ac(); } diff --git a/test/tint/builtins/gen/var/floor/5fc9ac.wgsl.expected.wgsl b/test/tint/builtins/gen/var/floor/5fc9ac.wgsl.expected.wgsl index 6ebabfcafa..3d5dbb338a 100644 --- a/test/tint/builtins/gen/var/floor/5fc9ac.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/floor/5fc9ac.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn floor_5fc9ac() { var res : vec2 = floor(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { floor_5fc9ac(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { floor_5fc9ac(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { floor_5fc9ac(); } diff --git a/test/tint/builtins/gen/var/floor/60d7ea.wgsl b/test/tint/builtins/gen/var/floor/60d7ea.wgsl index fe6a56eeae..06603e530c 100644 --- a/test/tint/builtins/gen/var/floor/60d7ea.wgsl +++ b/test/tint/builtins/gen/var/floor/60d7ea.wgsl @@ -29,18 +29,18 @@ fn floor_60d7ea() { var res: vec3 = floor(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { floor_60d7ea(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { floor_60d7ea(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { floor_60d7ea(); } diff --git a/test/tint/builtins/gen/var/floor/60d7ea.wgsl.expected.wgsl b/test/tint/builtins/gen/var/floor/60d7ea.wgsl.expected.wgsl index efb4036270..798ced8f8a 100644 --- a/test/tint/builtins/gen/var/floor/60d7ea.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/floor/60d7ea.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn floor_60d7ea() { var res : vec3 = floor(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { floor_60d7ea(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { floor_60d7ea(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { floor_60d7ea(); } diff --git a/test/tint/builtins/gen/var/floor/66f154.wgsl b/test/tint/builtins/gen/var/floor/66f154.wgsl index 20f91b660a..4ef714238a 100644 --- a/test/tint/builtins/gen/var/floor/66f154.wgsl +++ b/test/tint/builtins/gen/var/floor/66f154.wgsl @@ -29,18 +29,18 @@ fn floor_66f154() { var res: f32 = floor(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { floor_66f154(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { floor_66f154(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { floor_66f154(); } diff --git a/test/tint/builtins/gen/var/floor/66f154.wgsl.expected.wgsl b/test/tint/builtins/gen/var/floor/66f154.wgsl.expected.wgsl index a368ec4c74..40b95bec01 100644 --- a/test/tint/builtins/gen/var/floor/66f154.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/floor/66f154.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn floor_66f154() { var res : f32 = floor(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { floor_66f154(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { floor_66f154(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { floor_66f154(); } diff --git a/test/tint/builtins/gen/var/fma/26a7a9.wgsl b/test/tint/builtins/gen/var/fma/26a7a9.wgsl index 77a07d664b..6f7401802b 100644 --- a/test/tint/builtins/gen/var/fma/26a7a9.wgsl +++ b/test/tint/builtins/gen/var/fma/26a7a9.wgsl @@ -31,18 +31,18 @@ fn fma_26a7a9() { var res: vec2 = fma(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fma_26a7a9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fma_26a7a9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fma_26a7a9(); } diff --git a/test/tint/builtins/gen/var/fma/26a7a9.wgsl.expected.wgsl b/test/tint/builtins/gen/var/fma/26a7a9.wgsl.expected.wgsl index ee689746d2..f1c4a777ec 100644 --- a/test/tint/builtins/gen/var/fma/26a7a9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/fma/26a7a9.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn fma_26a7a9() { var res : vec2 = fma(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fma_26a7a9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fma_26a7a9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fma_26a7a9(); } diff --git a/test/tint/builtins/gen/var/fma/6a3283.wgsl b/test/tint/builtins/gen/var/fma/6a3283.wgsl index 4cfaff29ad..87668f700d 100644 --- a/test/tint/builtins/gen/var/fma/6a3283.wgsl +++ b/test/tint/builtins/gen/var/fma/6a3283.wgsl @@ -31,18 +31,18 @@ fn fma_6a3283() { var res: vec4 = fma(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fma_6a3283(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fma_6a3283(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fma_6a3283(); } diff --git a/test/tint/builtins/gen/var/fma/6a3283.wgsl.expected.wgsl b/test/tint/builtins/gen/var/fma/6a3283.wgsl.expected.wgsl index 4cf1dde575..85c3990ae2 100644 --- a/test/tint/builtins/gen/var/fma/6a3283.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/fma/6a3283.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn fma_6a3283() { var res : vec4 = fma(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fma_6a3283(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fma_6a3283(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fma_6a3283(); } diff --git a/test/tint/builtins/gen/var/fma/c10ba3.wgsl b/test/tint/builtins/gen/var/fma/c10ba3.wgsl index 8f7bb65735..383b2437b9 100644 --- a/test/tint/builtins/gen/var/fma/c10ba3.wgsl +++ b/test/tint/builtins/gen/var/fma/c10ba3.wgsl @@ -31,18 +31,18 @@ fn fma_c10ba3() { var res: f32 = fma(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fma_c10ba3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fma_c10ba3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fma_c10ba3(); } diff --git a/test/tint/builtins/gen/var/fma/c10ba3.wgsl.expected.wgsl b/test/tint/builtins/gen/var/fma/c10ba3.wgsl.expected.wgsl index 4b4da4303d..43693c4f8a 100644 --- a/test/tint/builtins/gen/var/fma/c10ba3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/fma/c10ba3.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn fma_c10ba3() { var res : f32 = fma(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fma_c10ba3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fma_c10ba3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fma_c10ba3(); } diff --git a/test/tint/builtins/gen/var/fma/e17c5c.wgsl b/test/tint/builtins/gen/var/fma/e17c5c.wgsl index d2b71c42f1..40128a43d8 100644 --- a/test/tint/builtins/gen/var/fma/e17c5c.wgsl +++ b/test/tint/builtins/gen/var/fma/e17c5c.wgsl @@ -31,18 +31,18 @@ fn fma_e17c5c() { var res: vec3 = fma(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fma_e17c5c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fma_e17c5c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fma_e17c5c(); } diff --git a/test/tint/builtins/gen/var/fma/e17c5c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/fma/e17c5c.wgsl.expected.wgsl index e47a18e901..ce1be54097 100644 --- a/test/tint/builtins/gen/var/fma/e17c5c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/fma/e17c5c.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn fma_e17c5c() { var res : vec3 = fma(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fma_e17c5c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fma_e17c5c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fma_e17c5c(); } diff --git a/test/tint/builtins/gen/var/fract/8bc1e9.wgsl b/test/tint/builtins/gen/var/fract/8bc1e9.wgsl index eb6d1de6c6..afbd094ae2 100644 --- a/test/tint/builtins/gen/var/fract/8bc1e9.wgsl +++ b/test/tint/builtins/gen/var/fract/8bc1e9.wgsl @@ -29,18 +29,18 @@ fn fract_8bc1e9() { var res: vec4 = fract(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fract_8bc1e9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fract_8bc1e9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fract_8bc1e9(); } diff --git a/test/tint/builtins/gen/var/fract/8bc1e9.wgsl.expected.wgsl b/test/tint/builtins/gen/var/fract/8bc1e9.wgsl.expected.wgsl index 9447b8d364..6143b139aa 100644 --- a/test/tint/builtins/gen/var/fract/8bc1e9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/fract/8bc1e9.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn fract_8bc1e9() { var res : vec4 = fract(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fract_8bc1e9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fract_8bc1e9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fract_8bc1e9(); } diff --git a/test/tint/builtins/gen/var/fract/943cb1.wgsl b/test/tint/builtins/gen/var/fract/943cb1.wgsl index f82334ea27..3773846425 100644 --- a/test/tint/builtins/gen/var/fract/943cb1.wgsl +++ b/test/tint/builtins/gen/var/fract/943cb1.wgsl @@ -29,18 +29,18 @@ fn fract_943cb1() { var res: vec2 = fract(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fract_943cb1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fract_943cb1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fract_943cb1(); } diff --git a/test/tint/builtins/gen/var/fract/943cb1.wgsl.expected.wgsl b/test/tint/builtins/gen/var/fract/943cb1.wgsl.expected.wgsl index 089b08d9f2..60d5d65a19 100644 --- a/test/tint/builtins/gen/var/fract/943cb1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/fract/943cb1.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn fract_943cb1() { var res : vec2 = fract(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fract_943cb1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fract_943cb1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fract_943cb1(); } diff --git a/test/tint/builtins/gen/var/fract/a49758.wgsl b/test/tint/builtins/gen/var/fract/a49758.wgsl index 51ebe9b6c4..2312f38ec6 100644 --- a/test/tint/builtins/gen/var/fract/a49758.wgsl +++ b/test/tint/builtins/gen/var/fract/a49758.wgsl @@ -29,18 +29,18 @@ fn fract_a49758() { var res: vec3 = fract(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fract_a49758(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fract_a49758(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fract_a49758(); } diff --git a/test/tint/builtins/gen/var/fract/a49758.wgsl.expected.wgsl b/test/tint/builtins/gen/var/fract/a49758.wgsl.expected.wgsl index 0aef8a8c8b..a173b027dd 100644 --- a/test/tint/builtins/gen/var/fract/a49758.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/fract/a49758.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn fract_a49758() { var res : vec3 = fract(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fract_a49758(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fract_a49758(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fract_a49758(); } diff --git a/test/tint/builtins/gen/var/fract/fa5c71.wgsl b/test/tint/builtins/gen/var/fract/fa5c71.wgsl index 22bff95f8f..90beba6f5c 100644 --- a/test/tint/builtins/gen/var/fract/fa5c71.wgsl +++ b/test/tint/builtins/gen/var/fract/fa5c71.wgsl @@ -29,18 +29,18 @@ fn fract_fa5c71() { var res: f32 = fract(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fract_fa5c71(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fract_fa5c71(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fract_fa5c71(); } diff --git a/test/tint/builtins/gen/var/fract/fa5c71.wgsl.expected.wgsl b/test/tint/builtins/gen/var/fract/fa5c71.wgsl.expected.wgsl index b41cb8b1b8..7b985944e5 100644 --- a/test/tint/builtins/gen/var/fract/fa5c71.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/fract/fa5c71.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn fract_fa5c71() { var res : f32 = fract(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { fract_fa5c71(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { fract_fa5c71(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { fract_fa5c71(); } diff --git a/test/tint/builtins/gen/var/frexp/368997.wgsl b/test/tint/builtins/gen/var/frexp/368997.wgsl index b71eb10eca..7f26bb3201 100644 --- a/test/tint/builtins/gen/var/frexp/368997.wgsl +++ b/test/tint/builtins/gen/var/frexp/368997.wgsl @@ -29,18 +29,18 @@ fn frexp_368997() { var res = frexp(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { frexp_368997(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { frexp_368997(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { frexp_368997(); } diff --git a/test/tint/builtins/gen/var/frexp/368997.wgsl.expected.wgsl b/test/tint/builtins/gen/var/frexp/368997.wgsl.expected.wgsl index 41b485e0ac..f8f40dc03d 100644 --- a/test/tint/builtins/gen/var/frexp/368997.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/frexp/368997.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn frexp_368997() { var res = frexp(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { frexp_368997(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { frexp_368997(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { frexp_368997(); } diff --git a/test/tint/builtins/gen/var/frexp/3c4f48.wgsl b/test/tint/builtins/gen/var/frexp/3c4f48.wgsl index 8dc637360c..e1f79e230b 100644 --- a/test/tint/builtins/gen/var/frexp/3c4f48.wgsl +++ b/test/tint/builtins/gen/var/frexp/3c4f48.wgsl @@ -29,18 +29,18 @@ fn frexp_3c4f48() { var res = frexp(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { frexp_3c4f48(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { frexp_3c4f48(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { frexp_3c4f48(); } diff --git a/test/tint/builtins/gen/var/frexp/3c4f48.wgsl.expected.wgsl b/test/tint/builtins/gen/var/frexp/3c4f48.wgsl.expected.wgsl index 3123659370..d0cd5f9e62 100644 --- a/test/tint/builtins/gen/var/frexp/3c4f48.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/frexp/3c4f48.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn frexp_3c4f48() { var res = frexp(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { frexp_3c4f48(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { frexp_3c4f48(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { frexp_3c4f48(); } diff --git a/test/tint/builtins/gen/var/frexp/4bdfc7.wgsl b/test/tint/builtins/gen/var/frexp/4bdfc7.wgsl index 8ea610754a..af86233067 100644 --- a/test/tint/builtins/gen/var/frexp/4bdfc7.wgsl +++ b/test/tint/builtins/gen/var/frexp/4bdfc7.wgsl @@ -29,18 +29,18 @@ fn frexp_4bdfc7() { var res = frexp(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { frexp_4bdfc7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { frexp_4bdfc7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { frexp_4bdfc7(); } diff --git a/test/tint/builtins/gen/var/frexp/4bdfc7.wgsl.expected.wgsl b/test/tint/builtins/gen/var/frexp/4bdfc7.wgsl.expected.wgsl index 757df25bff..07cd661366 100644 --- a/test/tint/builtins/gen/var/frexp/4bdfc7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/frexp/4bdfc7.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn frexp_4bdfc7() { var res = frexp(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { frexp_4bdfc7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { frexp_4bdfc7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { frexp_4bdfc7(); } diff --git a/test/tint/builtins/gen/var/frexp/eabd40.wgsl b/test/tint/builtins/gen/var/frexp/eabd40.wgsl index a3b1aa44b6..b8463dc44c 100644 --- a/test/tint/builtins/gen/var/frexp/eabd40.wgsl +++ b/test/tint/builtins/gen/var/frexp/eabd40.wgsl @@ -29,18 +29,18 @@ fn frexp_eabd40() { var res = frexp(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { frexp_eabd40(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { frexp_eabd40(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { frexp_eabd40(); } diff --git a/test/tint/builtins/gen/var/frexp/eabd40.wgsl.expected.wgsl b/test/tint/builtins/gen/var/frexp/eabd40.wgsl.expected.wgsl index 746e9bb130..f21c0f64e3 100644 --- a/test/tint/builtins/gen/var/frexp/eabd40.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/frexp/eabd40.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn frexp_eabd40() { var res = frexp(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { frexp_eabd40(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { frexp_eabd40(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { frexp_eabd40(); } diff --git a/test/tint/builtins/gen/var/fwidth/5d1b39.wgsl b/test/tint/builtins/gen/var/fwidth/5d1b39.wgsl index 8446a7d89b..7cd2722ad5 100644 --- a/test/tint/builtins/gen/var/fwidth/5d1b39.wgsl +++ b/test/tint/builtins/gen/var/fwidth/5d1b39.wgsl @@ -29,7 +29,7 @@ fn fwidth_5d1b39() { var res: vec3 = fwidth(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { fwidth_5d1b39(); } diff --git a/test/tint/builtins/gen/var/fwidth/5d1b39.wgsl.expected.wgsl b/test/tint/builtins/gen/var/fwidth/5d1b39.wgsl.expected.wgsl index eed9270d99..52743fc248 100644 --- a/test/tint/builtins/gen/var/fwidth/5d1b39.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/fwidth/5d1b39.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn fwidth_5d1b39() { var res : vec3 = fwidth(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { fwidth_5d1b39(); } diff --git a/test/tint/builtins/gen/var/fwidth/b83ebb.wgsl b/test/tint/builtins/gen/var/fwidth/b83ebb.wgsl index abd769d068..3f82513896 100644 --- a/test/tint/builtins/gen/var/fwidth/b83ebb.wgsl +++ b/test/tint/builtins/gen/var/fwidth/b83ebb.wgsl @@ -29,7 +29,7 @@ fn fwidth_b83ebb() { var res: vec2 = fwidth(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { fwidth_b83ebb(); } diff --git a/test/tint/builtins/gen/var/fwidth/b83ebb.wgsl.expected.wgsl b/test/tint/builtins/gen/var/fwidth/b83ebb.wgsl.expected.wgsl index 091f6274b9..307420af0d 100644 --- a/test/tint/builtins/gen/var/fwidth/b83ebb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/fwidth/b83ebb.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn fwidth_b83ebb() { var res : vec2 = fwidth(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { fwidth_b83ebb(); } diff --git a/test/tint/builtins/gen/var/fwidth/d2ab9a.wgsl b/test/tint/builtins/gen/var/fwidth/d2ab9a.wgsl index 0f907632da..27a4d2d4d5 100644 --- a/test/tint/builtins/gen/var/fwidth/d2ab9a.wgsl +++ b/test/tint/builtins/gen/var/fwidth/d2ab9a.wgsl @@ -29,7 +29,7 @@ fn fwidth_d2ab9a() { var res: vec4 = fwidth(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { fwidth_d2ab9a(); } diff --git a/test/tint/builtins/gen/var/fwidth/d2ab9a.wgsl.expected.wgsl b/test/tint/builtins/gen/var/fwidth/d2ab9a.wgsl.expected.wgsl index 25547c0cac..82fda09057 100644 --- a/test/tint/builtins/gen/var/fwidth/d2ab9a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/fwidth/d2ab9a.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn fwidth_d2ab9a() { var res : vec4 = fwidth(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { fwidth_d2ab9a(); } diff --git a/test/tint/builtins/gen/var/fwidth/df38ef.wgsl b/test/tint/builtins/gen/var/fwidth/df38ef.wgsl index f1c3ab8ce5..b9a38cfe16 100644 --- a/test/tint/builtins/gen/var/fwidth/df38ef.wgsl +++ b/test/tint/builtins/gen/var/fwidth/df38ef.wgsl @@ -29,7 +29,7 @@ fn fwidth_df38ef() { var res: f32 = fwidth(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { fwidth_df38ef(); } diff --git a/test/tint/builtins/gen/var/fwidth/df38ef.wgsl.expected.wgsl b/test/tint/builtins/gen/var/fwidth/df38ef.wgsl.expected.wgsl index 616fc529de..e13a01e604 100644 --- a/test/tint/builtins/gen/var/fwidth/df38ef.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/fwidth/df38ef.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn fwidth_df38ef() { var res : f32 = fwidth(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { fwidth_df38ef(); } diff --git a/test/tint/builtins/gen/var/fwidthCoarse/159c8a.wgsl b/test/tint/builtins/gen/var/fwidthCoarse/159c8a.wgsl index 408d3ebe7c..f549f76460 100644 --- a/test/tint/builtins/gen/var/fwidthCoarse/159c8a.wgsl +++ b/test/tint/builtins/gen/var/fwidthCoarse/159c8a.wgsl @@ -29,7 +29,7 @@ fn fwidthCoarse_159c8a() { var res: f32 = fwidthCoarse(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { fwidthCoarse_159c8a(); } diff --git a/test/tint/builtins/gen/var/fwidthCoarse/159c8a.wgsl.expected.wgsl b/test/tint/builtins/gen/var/fwidthCoarse/159c8a.wgsl.expected.wgsl index a5bb1db650..1cea21041b 100644 --- a/test/tint/builtins/gen/var/fwidthCoarse/159c8a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/fwidthCoarse/159c8a.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn fwidthCoarse_159c8a() { var res : f32 = fwidthCoarse(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { fwidthCoarse_159c8a(); } diff --git a/test/tint/builtins/gen/var/fwidthCoarse/1e59d9.wgsl b/test/tint/builtins/gen/var/fwidthCoarse/1e59d9.wgsl index 6561279e20..1e2c9028cd 100644 --- a/test/tint/builtins/gen/var/fwidthCoarse/1e59d9.wgsl +++ b/test/tint/builtins/gen/var/fwidthCoarse/1e59d9.wgsl @@ -29,7 +29,7 @@ fn fwidthCoarse_1e59d9() { var res: vec3 = fwidthCoarse(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { fwidthCoarse_1e59d9(); } diff --git a/test/tint/builtins/gen/var/fwidthCoarse/1e59d9.wgsl.expected.wgsl b/test/tint/builtins/gen/var/fwidthCoarse/1e59d9.wgsl.expected.wgsl index 2bc3f68c05..c218f89e6c 100644 --- a/test/tint/builtins/gen/var/fwidthCoarse/1e59d9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/fwidthCoarse/1e59d9.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn fwidthCoarse_1e59d9() { var res : vec3 = fwidthCoarse(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { fwidthCoarse_1e59d9(); } diff --git a/test/tint/builtins/gen/var/fwidthCoarse/4e4fc4.wgsl b/test/tint/builtins/gen/var/fwidthCoarse/4e4fc4.wgsl index ce9b1a5ca8..84b6d02b2d 100644 --- a/test/tint/builtins/gen/var/fwidthCoarse/4e4fc4.wgsl +++ b/test/tint/builtins/gen/var/fwidthCoarse/4e4fc4.wgsl @@ -29,7 +29,7 @@ fn fwidthCoarse_4e4fc4() { var res: vec4 = fwidthCoarse(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { fwidthCoarse_4e4fc4(); } diff --git a/test/tint/builtins/gen/var/fwidthCoarse/4e4fc4.wgsl.expected.wgsl b/test/tint/builtins/gen/var/fwidthCoarse/4e4fc4.wgsl.expected.wgsl index 2ea994e6c4..ba992a4768 100644 --- a/test/tint/builtins/gen/var/fwidthCoarse/4e4fc4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/fwidthCoarse/4e4fc4.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn fwidthCoarse_4e4fc4() { var res : vec4 = fwidthCoarse(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { fwidthCoarse_4e4fc4(); } diff --git a/test/tint/builtins/gen/var/fwidthCoarse/e653f7.wgsl b/test/tint/builtins/gen/var/fwidthCoarse/e653f7.wgsl index 2b51955fa2..a98230c077 100644 --- a/test/tint/builtins/gen/var/fwidthCoarse/e653f7.wgsl +++ b/test/tint/builtins/gen/var/fwidthCoarse/e653f7.wgsl @@ -29,7 +29,7 @@ fn fwidthCoarse_e653f7() { var res: vec2 = fwidthCoarse(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { fwidthCoarse_e653f7(); } diff --git a/test/tint/builtins/gen/var/fwidthCoarse/e653f7.wgsl.expected.wgsl b/test/tint/builtins/gen/var/fwidthCoarse/e653f7.wgsl.expected.wgsl index a62838349f..df4db7b55d 100644 --- a/test/tint/builtins/gen/var/fwidthCoarse/e653f7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/fwidthCoarse/e653f7.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn fwidthCoarse_e653f7() { var res : vec2 = fwidthCoarse(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { fwidthCoarse_e653f7(); } diff --git a/test/tint/builtins/gen/var/fwidthFine/523fdc.wgsl b/test/tint/builtins/gen/var/fwidthFine/523fdc.wgsl index 156d47fe64..0f60071be2 100644 --- a/test/tint/builtins/gen/var/fwidthFine/523fdc.wgsl +++ b/test/tint/builtins/gen/var/fwidthFine/523fdc.wgsl @@ -29,7 +29,7 @@ fn fwidthFine_523fdc() { var res: vec3 = fwidthFine(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { fwidthFine_523fdc(); } diff --git a/test/tint/builtins/gen/var/fwidthFine/523fdc.wgsl.expected.wgsl b/test/tint/builtins/gen/var/fwidthFine/523fdc.wgsl.expected.wgsl index 31f63e1ce8..44240300f6 100644 --- a/test/tint/builtins/gen/var/fwidthFine/523fdc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/fwidthFine/523fdc.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn fwidthFine_523fdc() { var res : vec3 = fwidthFine(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { fwidthFine_523fdc(); } diff --git a/test/tint/builtins/gen/var/fwidthFine/68f4ef.wgsl b/test/tint/builtins/gen/var/fwidthFine/68f4ef.wgsl index e9044b2ca6..dc8020e952 100644 --- a/test/tint/builtins/gen/var/fwidthFine/68f4ef.wgsl +++ b/test/tint/builtins/gen/var/fwidthFine/68f4ef.wgsl @@ -29,7 +29,7 @@ fn fwidthFine_68f4ef() { var res: vec4 = fwidthFine(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { fwidthFine_68f4ef(); } diff --git a/test/tint/builtins/gen/var/fwidthFine/68f4ef.wgsl.expected.wgsl b/test/tint/builtins/gen/var/fwidthFine/68f4ef.wgsl.expected.wgsl index 226acfbc6b..9061e3038c 100644 --- a/test/tint/builtins/gen/var/fwidthFine/68f4ef.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/fwidthFine/68f4ef.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn fwidthFine_68f4ef() { var res : vec4 = fwidthFine(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { fwidthFine_68f4ef(); } diff --git a/test/tint/builtins/gen/var/fwidthFine/f1742d.wgsl b/test/tint/builtins/gen/var/fwidthFine/f1742d.wgsl index c614dbe1d6..53641a600d 100644 --- a/test/tint/builtins/gen/var/fwidthFine/f1742d.wgsl +++ b/test/tint/builtins/gen/var/fwidthFine/f1742d.wgsl @@ -29,7 +29,7 @@ fn fwidthFine_f1742d() { var res: f32 = fwidthFine(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { fwidthFine_f1742d(); } diff --git a/test/tint/builtins/gen/var/fwidthFine/f1742d.wgsl.expected.wgsl b/test/tint/builtins/gen/var/fwidthFine/f1742d.wgsl.expected.wgsl index 0f475d465a..e6f9daa077 100644 --- a/test/tint/builtins/gen/var/fwidthFine/f1742d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/fwidthFine/f1742d.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn fwidthFine_f1742d() { var res : f32 = fwidthFine(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { fwidthFine_f1742d(); } diff --git a/test/tint/builtins/gen/var/fwidthFine/ff6aa0.wgsl b/test/tint/builtins/gen/var/fwidthFine/ff6aa0.wgsl index e5166eda3a..910332a32a 100644 --- a/test/tint/builtins/gen/var/fwidthFine/ff6aa0.wgsl +++ b/test/tint/builtins/gen/var/fwidthFine/ff6aa0.wgsl @@ -29,7 +29,7 @@ fn fwidthFine_ff6aa0() { var res: vec2 = fwidthFine(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { fwidthFine_ff6aa0(); } diff --git a/test/tint/builtins/gen/var/fwidthFine/ff6aa0.wgsl.expected.wgsl b/test/tint/builtins/gen/var/fwidthFine/ff6aa0.wgsl.expected.wgsl index db8da89d11..51f08e170b 100644 --- a/test/tint/builtins/gen/var/fwidthFine/ff6aa0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/fwidthFine/ff6aa0.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn fwidthFine_ff6aa0() { var res : vec2 = fwidthFine(arg_0); } -@stage(fragment) +@fragment fn fragment_main() { fwidthFine_ff6aa0(); } diff --git a/test/tint/builtins/gen/var/insertBits/3c7ba5.wgsl b/test/tint/builtins/gen/var/insertBits/3c7ba5.wgsl index d6ce9d93ef..1c765ea718 100644 --- a/test/tint/builtins/gen/var/insertBits/3c7ba5.wgsl +++ b/test/tint/builtins/gen/var/insertBits/3c7ba5.wgsl @@ -32,18 +32,18 @@ fn insertBits_3c7ba5() { var res: vec2 = insertBits(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_3c7ba5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_3c7ba5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_3c7ba5(); } diff --git a/test/tint/builtins/gen/var/insertBits/3c7ba5.wgsl.expected.wgsl b/test/tint/builtins/gen/var/insertBits/3c7ba5.wgsl.expected.wgsl index d8fb021c73..31cfb26318 100644 --- a/test/tint/builtins/gen/var/insertBits/3c7ba5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/insertBits/3c7ba5.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn insertBits_3c7ba5() { var res : vec2 = insertBits(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_3c7ba5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_3c7ba5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_3c7ba5(); } diff --git a/test/tint/builtins/gen/var/insertBits/428b0b.wgsl b/test/tint/builtins/gen/var/insertBits/428b0b.wgsl index 4e97da10ba..8eae28804b 100644 --- a/test/tint/builtins/gen/var/insertBits/428b0b.wgsl +++ b/test/tint/builtins/gen/var/insertBits/428b0b.wgsl @@ -32,18 +32,18 @@ fn insertBits_428b0b() { var res: vec3 = insertBits(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_428b0b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_428b0b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_428b0b(); } diff --git a/test/tint/builtins/gen/var/insertBits/428b0b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/insertBits/428b0b.wgsl.expected.wgsl index 2dbf3575ad..bea28a0dbf 100644 --- a/test/tint/builtins/gen/var/insertBits/428b0b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/insertBits/428b0b.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn insertBits_428b0b() { var res : vec3 = insertBits(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_428b0b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_428b0b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_428b0b(); } diff --git a/test/tint/builtins/gen/var/insertBits/51ede1.wgsl b/test/tint/builtins/gen/var/insertBits/51ede1.wgsl index 0d1a93d9b4..05d9e82571 100644 --- a/test/tint/builtins/gen/var/insertBits/51ede1.wgsl +++ b/test/tint/builtins/gen/var/insertBits/51ede1.wgsl @@ -32,18 +32,18 @@ fn insertBits_51ede1() { var res: vec4 = insertBits(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_51ede1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_51ede1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_51ede1(); } diff --git a/test/tint/builtins/gen/var/insertBits/51ede1.wgsl.expected.wgsl b/test/tint/builtins/gen/var/insertBits/51ede1.wgsl.expected.wgsl index 169d42656d..0293f8f185 100644 --- a/test/tint/builtins/gen/var/insertBits/51ede1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/insertBits/51ede1.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn insertBits_51ede1() { var res : vec4 = insertBits(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_51ede1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_51ede1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_51ede1(); } diff --git a/test/tint/builtins/gen/var/insertBits/65468b.wgsl b/test/tint/builtins/gen/var/insertBits/65468b.wgsl index 1d9618f169..0989f81277 100644 --- a/test/tint/builtins/gen/var/insertBits/65468b.wgsl +++ b/test/tint/builtins/gen/var/insertBits/65468b.wgsl @@ -32,18 +32,18 @@ fn insertBits_65468b() { var res: i32 = insertBits(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_65468b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_65468b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_65468b(); } diff --git a/test/tint/builtins/gen/var/insertBits/65468b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/insertBits/65468b.wgsl.expected.wgsl index cee6ffecd5..c1388577e3 100644 --- a/test/tint/builtins/gen/var/insertBits/65468b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/insertBits/65468b.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn insertBits_65468b() { var res : i32 = insertBits(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_65468b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_65468b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_65468b(); } diff --git a/test/tint/builtins/gen/var/insertBits/87826b.wgsl b/test/tint/builtins/gen/var/insertBits/87826b.wgsl index 6f1fca8c02..42d41aab83 100644 --- a/test/tint/builtins/gen/var/insertBits/87826b.wgsl +++ b/test/tint/builtins/gen/var/insertBits/87826b.wgsl @@ -32,18 +32,18 @@ fn insertBits_87826b() { var res: vec3 = insertBits(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_87826b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_87826b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_87826b(); } diff --git a/test/tint/builtins/gen/var/insertBits/87826b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/insertBits/87826b.wgsl.expected.wgsl index 48253d4892..48d6d38ed4 100644 --- a/test/tint/builtins/gen/var/insertBits/87826b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/insertBits/87826b.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn insertBits_87826b() { var res : vec3 = insertBits(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_87826b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_87826b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_87826b(); } diff --git a/test/tint/builtins/gen/var/insertBits/d86978.wgsl b/test/tint/builtins/gen/var/insertBits/d86978.wgsl index db3006980f..73da46a148 100644 --- a/test/tint/builtins/gen/var/insertBits/d86978.wgsl +++ b/test/tint/builtins/gen/var/insertBits/d86978.wgsl @@ -32,18 +32,18 @@ fn insertBits_d86978() { var res: vec4 = insertBits(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_d86978(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_d86978(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_d86978(); } diff --git a/test/tint/builtins/gen/var/insertBits/d86978.wgsl.expected.wgsl b/test/tint/builtins/gen/var/insertBits/d86978.wgsl.expected.wgsl index 0678533d7e..94ec9b8659 100644 --- a/test/tint/builtins/gen/var/insertBits/d86978.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/insertBits/d86978.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn insertBits_d86978() { var res : vec4 = insertBits(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_d86978(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_d86978(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_d86978(); } diff --git a/test/tint/builtins/gen/var/insertBits/e3e3a2.wgsl b/test/tint/builtins/gen/var/insertBits/e3e3a2.wgsl index 82178dcf93..d2624f2905 100644 --- a/test/tint/builtins/gen/var/insertBits/e3e3a2.wgsl +++ b/test/tint/builtins/gen/var/insertBits/e3e3a2.wgsl @@ -32,18 +32,18 @@ fn insertBits_e3e3a2() { var res: u32 = insertBits(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_e3e3a2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_e3e3a2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_e3e3a2(); } diff --git a/test/tint/builtins/gen/var/insertBits/e3e3a2.wgsl.expected.wgsl b/test/tint/builtins/gen/var/insertBits/e3e3a2.wgsl.expected.wgsl index a11ca1ea5a..4541379846 100644 --- a/test/tint/builtins/gen/var/insertBits/e3e3a2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/insertBits/e3e3a2.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn insertBits_e3e3a2() { var res : u32 = insertBits(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_e3e3a2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_e3e3a2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_e3e3a2(); } diff --git a/test/tint/builtins/gen/var/insertBits/fe6ba6.wgsl b/test/tint/builtins/gen/var/insertBits/fe6ba6.wgsl index 1d1b8b16ce..9935070682 100644 --- a/test/tint/builtins/gen/var/insertBits/fe6ba6.wgsl +++ b/test/tint/builtins/gen/var/insertBits/fe6ba6.wgsl @@ -32,18 +32,18 @@ fn insertBits_fe6ba6() { var res: vec2 = insertBits(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_fe6ba6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_fe6ba6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_fe6ba6(); } diff --git a/test/tint/builtins/gen/var/insertBits/fe6ba6.wgsl.expected.wgsl b/test/tint/builtins/gen/var/insertBits/fe6ba6.wgsl.expected.wgsl index 13f8c15f7b..9cdbb2e2e2 100644 --- a/test/tint/builtins/gen/var/insertBits/fe6ba6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/insertBits/fe6ba6.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn insertBits_fe6ba6() { var res : vec2 = insertBits(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { insertBits_fe6ba6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { insertBits_fe6ba6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { insertBits_fe6ba6(); } diff --git a/test/tint/builtins/gen/var/inverseSqrt/84407e.wgsl b/test/tint/builtins/gen/var/inverseSqrt/84407e.wgsl index a5dabf6fc5..9a4210f3a7 100644 --- a/test/tint/builtins/gen/var/inverseSqrt/84407e.wgsl +++ b/test/tint/builtins/gen/var/inverseSqrt/84407e.wgsl @@ -29,18 +29,18 @@ fn inverseSqrt_84407e() { var res: f32 = inverseSqrt(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { inverseSqrt_84407e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { inverseSqrt_84407e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { inverseSqrt_84407e(); } diff --git a/test/tint/builtins/gen/var/inverseSqrt/84407e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/inverseSqrt/84407e.wgsl.expected.wgsl index f86db027dd..1ceb9d7745 100644 --- a/test/tint/builtins/gen/var/inverseSqrt/84407e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/inverseSqrt/84407e.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn inverseSqrt_84407e() { var res : f32 = inverseSqrt(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { inverseSqrt_84407e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { inverseSqrt_84407e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { inverseSqrt_84407e(); } diff --git a/test/tint/builtins/gen/var/inverseSqrt/8f2bd2.wgsl b/test/tint/builtins/gen/var/inverseSqrt/8f2bd2.wgsl index 2f093e92dc..75a8336ea0 100644 --- a/test/tint/builtins/gen/var/inverseSqrt/8f2bd2.wgsl +++ b/test/tint/builtins/gen/var/inverseSqrt/8f2bd2.wgsl @@ -29,18 +29,18 @@ fn inverseSqrt_8f2bd2() { var res: vec2 = inverseSqrt(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { inverseSqrt_8f2bd2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { inverseSqrt_8f2bd2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { inverseSqrt_8f2bd2(); } diff --git a/test/tint/builtins/gen/var/inverseSqrt/8f2bd2.wgsl.expected.wgsl b/test/tint/builtins/gen/var/inverseSqrt/8f2bd2.wgsl.expected.wgsl index 74b8db5084..0f364d3419 100644 --- a/test/tint/builtins/gen/var/inverseSqrt/8f2bd2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/inverseSqrt/8f2bd2.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn inverseSqrt_8f2bd2() { var res : vec2 = inverseSqrt(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { inverseSqrt_8f2bd2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { inverseSqrt_8f2bd2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { inverseSqrt_8f2bd2(); } diff --git a/test/tint/builtins/gen/var/inverseSqrt/b197b1.wgsl b/test/tint/builtins/gen/var/inverseSqrt/b197b1.wgsl index c4b094754c..191c6ff04a 100644 --- a/test/tint/builtins/gen/var/inverseSqrt/b197b1.wgsl +++ b/test/tint/builtins/gen/var/inverseSqrt/b197b1.wgsl @@ -29,18 +29,18 @@ fn inverseSqrt_b197b1() { var res: vec3 = inverseSqrt(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { inverseSqrt_b197b1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { inverseSqrt_b197b1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { inverseSqrt_b197b1(); } diff --git a/test/tint/builtins/gen/var/inverseSqrt/b197b1.wgsl.expected.wgsl b/test/tint/builtins/gen/var/inverseSqrt/b197b1.wgsl.expected.wgsl index 092b101e7c..3dc7542b47 100644 --- a/test/tint/builtins/gen/var/inverseSqrt/b197b1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/inverseSqrt/b197b1.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn inverseSqrt_b197b1() { var res : vec3 = inverseSqrt(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { inverseSqrt_b197b1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { inverseSqrt_b197b1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { inverseSqrt_b197b1(); } diff --git a/test/tint/builtins/gen/var/inverseSqrt/c22347.wgsl b/test/tint/builtins/gen/var/inverseSqrt/c22347.wgsl index 9fa254cdcc..30b6828658 100644 --- a/test/tint/builtins/gen/var/inverseSqrt/c22347.wgsl +++ b/test/tint/builtins/gen/var/inverseSqrt/c22347.wgsl @@ -29,18 +29,18 @@ fn inverseSqrt_c22347() { var res: vec4 = inverseSqrt(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { inverseSqrt_c22347(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { inverseSqrt_c22347(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { inverseSqrt_c22347(); } diff --git a/test/tint/builtins/gen/var/inverseSqrt/c22347.wgsl.expected.wgsl b/test/tint/builtins/gen/var/inverseSqrt/c22347.wgsl.expected.wgsl index fb2b23a215..5a025bc43b 100644 --- a/test/tint/builtins/gen/var/inverseSqrt/c22347.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/inverseSqrt/c22347.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn inverseSqrt_c22347() { var res : vec4 = inverseSqrt(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { inverseSqrt_c22347(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { inverseSqrt_c22347(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { inverseSqrt_c22347(); } diff --git a/test/tint/builtins/gen/var/ldexp/a31cdc.wgsl b/test/tint/builtins/gen/var/ldexp/a31cdc.wgsl index 0b2123aeb6..e5ba76a976 100644 --- a/test/tint/builtins/gen/var/ldexp/a31cdc.wgsl +++ b/test/tint/builtins/gen/var/ldexp/a31cdc.wgsl @@ -30,18 +30,18 @@ fn ldexp_a31cdc() { var res: vec3 = ldexp(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ldexp_a31cdc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ldexp_a31cdc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ldexp_a31cdc(); } diff --git a/test/tint/builtins/gen/var/ldexp/a31cdc.wgsl.expected.wgsl b/test/tint/builtins/gen/var/ldexp/a31cdc.wgsl.expected.wgsl index ff1f93b521..e6303b2090 100644 --- a/test/tint/builtins/gen/var/ldexp/a31cdc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/ldexp/a31cdc.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn ldexp_a31cdc() { var res : vec3 = ldexp(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ldexp_a31cdc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ldexp_a31cdc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ldexp_a31cdc(); } diff --git a/test/tint/builtins/gen/var/ldexp/abd718.wgsl b/test/tint/builtins/gen/var/ldexp/abd718.wgsl index fa363d35c7..a966f03756 100644 --- a/test/tint/builtins/gen/var/ldexp/abd718.wgsl +++ b/test/tint/builtins/gen/var/ldexp/abd718.wgsl @@ -30,18 +30,18 @@ fn ldexp_abd718() { var res: vec2 = ldexp(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ldexp_abd718(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ldexp_abd718(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ldexp_abd718(); } diff --git a/test/tint/builtins/gen/var/ldexp/abd718.wgsl.expected.wgsl b/test/tint/builtins/gen/var/ldexp/abd718.wgsl.expected.wgsl index 436192c740..c42b1e9ccf 100644 --- a/test/tint/builtins/gen/var/ldexp/abd718.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/ldexp/abd718.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn ldexp_abd718() { var res : vec2 = ldexp(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ldexp_abd718(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ldexp_abd718(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ldexp_abd718(); } diff --git a/test/tint/builtins/gen/var/ldexp/cc9cde.wgsl b/test/tint/builtins/gen/var/ldexp/cc9cde.wgsl index 2f89342685..9ab6203493 100644 --- a/test/tint/builtins/gen/var/ldexp/cc9cde.wgsl +++ b/test/tint/builtins/gen/var/ldexp/cc9cde.wgsl @@ -30,18 +30,18 @@ fn ldexp_cc9cde() { var res: vec4 = ldexp(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ldexp_cc9cde(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ldexp_cc9cde(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ldexp_cc9cde(); } diff --git a/test/tint/builtins/gen/var/ldexp/cc9cde.wgsl.expected.wgsl b/test/tint/builtins/gen/var/ldexp/cc9cde.wgsl.expected.wgsl index f24c9704d6..29249e6435 100644 --- a/test/tint/builtins/gen/var/ldexp/cc9cde.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/ldexp/cc9cde.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn ldexp_cc9cde() { var res : vec4 = ldexp(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ldexp_cc9cde(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ldexp_cc9cde(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ldexp_cc9cde(); } diff --git a/test/tint/builtins/gen/var/ldexp/db8b49.wgsl b/test/tint/builtins/gen/var/ldexp/db8b49.wgsl index 140cef645a..96ff02ffaf 100644 --- a/test/tint/builtins/gen/var/ldexp/db8b49.wgsl +++ b/test/tint/builtins/gen/var/ldexp/db8b49.wgsl @@ -30,18 +30,18 @@ fn ldexp_db8b49() { var res: f32 = ldexp(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ldexp_db8b49(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ldexp_db8b49(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ldexp_db8b49(); } diff --git a/test/tint/builtins/gen/var/ldexp/db8b49.wgsl.expected.wgsl b/test/tint/builtins/gen/var/ldexp/db8b49.wgsl.expected.wgsl index 764a162271..79e75152e9 100644 --- a/test/tint/builtins/gen/var/ldexp/db8b49.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/ldexp/db8b49.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn ldexp_db8b49() { var res : f32 = ldexp(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { ldexp_db8b49(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { ldexp_db8b49(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { ldexp_db8b49(); } diff --git a/test/tint/builtins/gen/var/length/056071.wgsl b/test/tint/builtins/gen/var/length/056071.wgsl index 683f51183f..b89744f734 100644 --- a/test/tint/builtins/gen/var/length/056071.wgsl +++ b/test/tint/builtins/gen/var/length/056071.wgsl @@ -29,18 +29,18 @@ fn length_056071() { var res: f32 = length(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { length_056071(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { length_056071(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { length_056071(); } diff --git a/test/tint/builtins/gen/var/length/056071.wgsl.expected.wgsl b/test/tint/builtins/gen/var/length/056071.wgsl.expected.wgsl index 162ff85109..436d3d7791 100644 --- a/test/tint/builtins/gen/var/length/056071.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/length/056071.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn length_056071() { var res : f32 = length(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { length_056071(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { length_056071(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { length_056071(); } diff --git a/test/tint/builtins/gen/var/length/602a17.wgsl b/test/tint/builtins/gen/var/length/602a17.wgsl index 6460b7cffb..56b2c90b1d 100644 --- a/test/tint/builtins/gen/var/length/602a17.wgsl +++ b/test/tint/builtins/gen/var/length/602a17.wgsl @@ -29,18 +29,18 @@ fn length_602a17() { var res: f32 = length(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { length_602a17(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { length_602a17(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { length_602a17(); } diff --git a/test/tint/builtins/gen/var/length/602a17.wgsl.expected.wgsl b/test/tint/builtins/gen/var/length/602a17.wgsl.expected.wgsl index ad417980cc..c8c1ffe731 100644 --- a/test/tint/builtins/gen/var/length/602a17.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/length/602a17.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn length_602a17() { var res : f32 = length(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { length_602a17(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { length_602a17(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { length_602a17(); } diff --git a/test/tint/builtins/gen/var/length/afde8b.wgsl b/test/tint/builtins/gen/var/length/afde8b.wgsl index ec97606990..bb299fa851 100644 --- a/test/tint/builtins/gen/var/length/afde8b.wgsl +++ b/test/tint/builtins/gen/var/length/afde8b.wgsl @@ -29,18 +29,18 @@ fn length_afde8b() { var res: f32 = length(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { length_afde8b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { length_afde8b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { length_afde8b(); } diff --git a/test/tint/builtins/gen/var/length/afde8b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/length/afde8b.wgsl.expected.wgsl index 64f028dc44..602f3c9f2a 100644 --- a/test/tint/builtins/gen/var/length/afde8b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/length/afde8b.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn length_afde8b() { var res : f32 = length(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { length_afde8b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { length_afde8b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { length_afde8b(); } diff --git a/test/tint/builtins/gen/var/length/becebf.wgsl b/test/tint/builtins/gen/var/length/becebf.wgsl index 0eb0b9d2fa..701ba491a7 100644 --- a/test/tint/builtins/gen/var/length/becebf.wgsl +++ b/test/tint/builtins/gen/var/length/becebf.wgsl @@ -29,18 +29,18 @@ fn length_becebf() { var res: f32 = length(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { length_becebf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { length_becebf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { length_becebf(); } diff --git a/test/tint/builtins/gen/var/length/becebf.wgsl.expected.wgsl b/test/tint/builtins/gen/var/length/becebf.wgsl.expected.wgsl index c2b2472b69..d2a125896b 100644 --- a/test/tint/builtins/gen/var/length/becebf.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/length/becebf.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn length_becebf() { var res : f32 = length(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { length_becebf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { length_becebf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { length_becebf(); } diff --git a/test/tint/builtins/gen/var/log/3da25a.wgsl b/test/tint/builtins/gen/var/log/3da25a.wgsl index 46e2e0e99f..4aea68ec36 100644 --- a/test/tint/builtins/gen/var/log/3da25a.wgsl +++ b/test/tint/builtins/gen/var/log/3da25a.wgsl @@ -29,18 +29,18 @@ fn log_3da25a() { var res: vec4 = log(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log_3da25a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log_3da25a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log_3da25a(); } diff --git a/test/tint/builtins/gen/var/log/3da25a.wgsl.expected.wgsl b/test/tint/builtins/gen/var/log/3da25a.wgsl.expected.wgsl index c4e07fb7bb..e20a6535c7 100644 --- a/test/tint/builtins/gen/var/log/3da25a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/log/3da25a.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn log_3da25a() { var res : vec4 = log(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log_3da25a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log_3da25a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log_3da25a(); } diff --git a/test/tint/builtins/gen/var/log/7114a6.wgsl b/test/tint/builtins/gen/var/log/7114a6.wgsl index 6acd3f47ca..2395adaf96 100644 --- a/test/tint/builtins/gen/var/log/7114a6.wgsl +++ b/test/tint/builtins/gen/var/log/7114a6.wgsl @@ -29,18 +29,18 @@ fn log_7114a6() { var res: f32 = log(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log_7114a6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log_7114a6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log_7114a6(); } diff --git a/test/tint/builtins/gen/var/log/7114a6.wgsl.expected.wgsl b/test/tint/builtins/gen/var/log/7114a6.wgsl.expected.wgsl index 1c4a1c0326..7ec2232f92 100644 --- a/test/tint/builtins/gen/var/log/7114a6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/log/7114a6.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn log_7114a6() { var res : f32 = log(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log_7114a6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log_7114a6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log_7114a6(); } diff --git a/test/tint/builtins/gen/var/log/b2ce28.wgsl b/test/tint/builtins/gen/var/log/b2ce28.wgsl index 429c198fae..b3f7e86397 100644 --- a/test/tint/builtins/gen/var/log/b2ce28.wgsl +++ b/test/tint/builtins/gen/var/log/b2ce28.wgsl @@ -29,18 +29,18 @@ fn log_b2ce28() { var res: vec2 = log(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log_b2ce28(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log_b2ce28(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log_b2ce28(); } diff --git a/test/tint/builtins/gen/var/log/b2ce28.wgsl.expected.wgsl b/test/tint/builtins/gen/var/log/b2ce28.wgsl.expected.wgsl index 9a3b8f75b2..503c090bac 100644 --- a/test/tint/builtins/gen/var/log/b2ce28.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/log/b2ce28.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn log_b2ce28() { var res : vec2 = log(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log_b2ce28(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log_b2ce28(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log_b2ce28(); } diff --git a/test/tint/builtins/gen/var/log/f4c570.wgsl b/test/tint/builtins/gen/var/log/f4c570.wgsl index 825c83349e..137aadb809 100644 --- a/test/tint/builtins/gen/var/log/f4c570.wgsl +++ b/test/tint/builtins/gen/var/log/f4c570.wgsl @@ -29,18 +29,18 @@ fn log_f4c570() { var res: vec3 = log(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log_f4c570(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log_f4c570(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log_f4c570(); } diff --git a/test/tint/builtins/gen/var/log/f4c570.wgsl.expected.wgsl b/test/tint/builtins/gen/var/log/f4c570.wgsl.expected.wgsl index a7b9513648..cec470673f 100644 --- a/test/tint/builtins/gen/var/log/f4c570.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/log/f4c570.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn log_f4c570() { var res : vec3 = log(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log_f4c570(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log_f4c570(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log_f4c570(); } diff --git a/test/tint/builtins/gen/var/log2/4036ed.wgsl b/test/tint/builtins/gen/var/log2/4036ed.wgsl index b002ff5a1f..de719737f6 100644 --- a/test/tint/builtins/gen/var/log2/4036ed.wgsl +++ b/test/tint/builtins/gen/var/log2/4036ed.wgsl @@ -29,18 +29,18 @@ fn log2_4036ed() { var res: f32 = log2(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log2_4036ed(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log2_4036ed(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log2_4036ed(); } diff --git a/test/tint/builtins/gen/var/log2/4036ed.wgsl.expected.wgsl b/test/tint/builtins/gen/var/log2/4036ed.wgsl.expected.wgsl index 5baca8b6b5..d194b093c3 100644 --- a/test/tint/builtins/gen/var/log2/4036ed.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/log2/4036ed.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn log2_4036ed() { var res : f32 = log2(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log2_4036ed(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log2_4036ed(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log2_4036ed(); } diff --git a/test/tint/builtins/gen/var/log2/902988.wgsl b/test/tint/builtins/gen/var/log2/902988.wgsl index a0a4f8eb8a..791b79308b 100644 --- a/test/tint/builtins/gen/var/log2/902988.wgsl +++ b/test/tint/builtins/gen/var/log2/902988.wgsl @@ -29,18 +29,18 @@ fn log2_902988() { var res: vec4 = log2(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log2_902988(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log2_902988(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log2_902988(); } diff --git a/test/tint/builtins/gen/var/log2/902988.wgsl.expected.wgsl b/test/tint/builtins/gen/var/log2/902988.wgsl.expected.wgsl index cdc40ad701..ea2f1c52be 100644 --- a/test/tint/builtins/gen/var/log2/902988.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/log2/902988.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn log2_902988() { var res : vec4 = log2(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log2_902988(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log2_902988(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log2_902988(); } diff --git a/test/tint/builtins/gen/var/log2/adb233.wgsl b/test/tint/builtins/gen/var/log2/adb233.wgsl index bbf9c83551..7f2cf69015 100644 --- a/test/tint/builtins/gen/var/log2/adb233.wgsl +++ b/test/tint/builtins/gen/var/log2/adb233.wgsl @@ -29,18 +29,18 @@ fn log2_adb233() { var res: vec3 = log2(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log2_adb233(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log2_adb233(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log2_adb233(); } diff --git a/test/tint/builtins/gen/var/log2/adb233.wgsl.expected.wgsl b/test/tint/builtins/gen/var/log2/adb233.wgsl.expected.wgsl index 23a4b3f2b7..7ff8f04504 100644 --- a/test/tint/builtins/gen/var/log2/adb233.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/log2/adb233.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn log2_adb233() { var res : vec3 = log2(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log2_adb233(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log2_adb233(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log2_adb233(); } diff --git a/test/tint/builtins/gen/var/log2/aea659.wgsl b/test/tint/builtins/gen/var/log2/aea659.wgsl index 88d7d76f73..79b4b65799 100644 --- a/test/tint/builtins/gen/var/log2/aea659.wgsl +++ b/test/tint/builtins/gen/var/log2/aea659.wgsl @@ -29,18 +29,18 @@ fn log2_aea659() { var res: vec2 = log2(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log2_aea659(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log2_aea659(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log2_aea659(); } diff --git a/test/tint/builtins/gen/var/log2/aea659.wgsl.expected.wgsl b/test/tint/builtins/gen/var/log2/aea659.wgsl.expected.wgsl index 86a10f113b..c6d64d28c6 100644 --- a/test/tint/builtins/gen/var/log2/aea659.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/log2/aea659.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn log2_aea659() { var res : vec2 = log2(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { log2_aea659(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { log2_aea659(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { log2_aea659(); } diff --git a/test/tint/builtins/gen/var/max/0c0aae.wgsl b/test/tint/builtins/gen/var/max/0c0aae.wgsl index 67391ec6cc..ceb180f10c 100644 --- a/test/tint/builtins/gen/var/max/0c0aae.wgsl +++ b/test/tint/builtins/gen/var/max/0c0aae.wgsl @@ -30,18 +30,18 @@ fn max_0c0aae() { var res: u32 = max(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_0c0aae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_0c0aae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_0c0aae(); } diff --git a/test/tint/builtins/gen/var/max/0c0aae.wgsl.expected.wgsl b/test/tint/builtins/gen/var/max/0c0aae.wgsl.expected.wgsl index 562bf679ad..2f1e9c2fbd 100644 --- a/test/tint/builtins/gen/var/max/0c0aae.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/max/0c0aae.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn max_0c0aae() { var res : u32 = max(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_0c0aae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_0c0aae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_0c0aae(); } diff --git a/test/tint/builtins/gen/var/max/25eafe.wgsl b/test/tint/builtins/gen/var/max/25eafe.wgsl index 4d028def11..e43839449d 100644 --- a/test/tint/builtins/gen/var/max/25eafe.wgsl +++ b/test/tint/builtins/gen/var/max/25eafe.wgsl @@ -30,18 +30,18 @@ fn max_25eafe() { var res: vec3 = max(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_25eafe(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_25eafe(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_25eafe(); } diff --git a/test/tint/builtins/gen/var/max/25eafe.wgsl.expected.wgsl b/test/tint/builtins/gen/var/max/25eafe.wgsl.expected.wgsl index 70adbd5f2a..df36b3b2d0 100644 --- a/test/tint/builtins/gen/var/max/25eafe.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/max/25eafe.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn max_25eafe() { var res : vec3 = max(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_25eafe(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_25eafe(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_25eafe(); } diff --git a/test/tint/builtins/gen/var/max/320815.wgsl b/test/tint/builtins/gen/var/max/320815.wgsl index 1b27db66e8..a678a562b5 100644 --- a/test/tint/builtins/gen/var/max/320815.wgsl +++ b/test/tint/builtins/gen/var/max/320815.wgsl @@ -30,18 +30,18 @@ fn max_320815() { var res: vec2 = max(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_320815(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_320815(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_320815(); } diff --git a/test/tint/builtins/gen/var/max/320815.wgsl.expected.wgsl b/test/tint/builtins/gen/var/max/320815.wgsl.expected.wgsl index 9d47a9eaf5..1f5cf86205 100644 --- a/test/tint/builtins/gen/var/max/320815.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/max/320815.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn max_320815() { var res : vec2 = max(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_320815(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_320815(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_320815(); } diff --git a/test/tint/builtins/gen/var/max/44a39d.wgsl b/test/tint/builtins/gen/var/max/44a39d.wgsl index 280f40dbd8..244f400d71 100644 --- a/test/tint/builtins/gen/var/max/44a39d.wgsl +++ b/test/tint/builtins/gen/var/max/44a39d.wgsl @@ -30,18 +30,18 @@ fn max_44a39d() { var res: f32 = max(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_44a39d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_44a39d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_44a39d(); } diff --git a/test/tint/builtins/gen/var/max/44a39d.wgsl.expected.wgsl b/test/tint/builtins/gen/var/max/44a39d.wgsl.expected.wgsl index d7107af778..b7e910991f 100644 --- a/test/tint/builtins/gen/var/max/44a39d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/max/44a39d.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn max_44a39d() { var res : f32 = max(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_44a39d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_44a39d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_44a39d(); } diff --git a/test/tint/builtins/gen/var/max/453e04.wgsl b/test/tint/builtins/gen/var/max/453e04.wgsl index b8b66301fc..0afa68b0f0 100644 --- a/test/tint/builtins/gen/var/max/453e04.wgsl +++ b/test/tint/builtins/gen/var/max/453e04.wgsl @@ -30,18 +30,18 @@ fn max_453e04() { var res: vec4 = max(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_453e04(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_453e04(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_453e04(); } diff --git a/test/tint/builtins/gen/var/max/453e04.wgsl.expected.wgsl b/test/tint/builtins/gen/var/max/453e04.wgsl.expected.wgsl index 2fd058d45d..a47fca6ccd 100644 --- a/test/tint/builtins/gen/var/max/453e04.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/max/453e04.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn max_453e04() { var res : vec4 = max(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_453e04(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_453e04(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_453e04(); } diff --git a/test/tint/builtins/gen/var/max/462050.wgsl b/test/tint/builtins/gen/var/max/462050.wgsl index 56bfaa9236..53ca66ec06 100644 --- a/test/tint/builtins/gen/var/max/462050.wgsl +++ b/test/tint/builtins/gen/var/max/462050.wgsl @@ -30,18 +30,18 @@ fn max_462050() { var res: vec2 = max(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_462050(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_462050(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_462050(); } diff --git a/test/tint/builtins/gen/var/max/462050.wgsl.expected.wgsl b/test/tint/builtins/gen/var/max/462050.wgsl.expected.wgsl index 1a7c608f26..ac7bb6047b 100644 --- a/test/tint/builtins/gen/var/max/462050.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/max/462050.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn max_462050() { var res : vec2 = max(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_462050(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_462050(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_462050(); } diff --git a/test/tint/builtins/gen/var/max/4883ac.wgsl b/test/tint/builtins/gen/var/max/4883ac.wgsl index 2ba5c05d3b..8add3f48b7 100644 --- a/test/tint/builtins/gen/var/max/4883ac.wgsl +++ b/test/tint/builtins/gen/var/max/4883ac.wgsl @@ -30,18 +30,18 @@ fn max_4883ac() { var res: vec3 = max(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_4883ac(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_4883ac(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_4883ac(); } diff --git a/test/tint/builtins/gen/var/max/4883ac.wgsl.expected.wgsl b/test/tint/builtins/gen/var/max/4883ac.wgsl.expected.wgsl index 2e155447b0..d0216f5244 100644 --- a/test/tint/builtins/gen/var/max/4883ac.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/max/4883ac.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn max_4883ac() { var res : vec3 = max(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_4883ac(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_4883ac(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_4883ac(); } diff --git a/test/tint/builtins/gen/var/max/85e6bc.wgsl b/test/tint/builtins/gen/var/max/85e6bc.wgsl index 0692e99fc3..d46960fbfc 100644 --- a/test/tint/builtins/gen/var/max/85e6bc.wgsl +++ b/test/tint/builtins/gen/var/max/85e6bc.wgsl @@ -30,18 +30,18 @@ fn max_85e6bc() { var res: vec4 = max(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_85e6bc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_85e6bc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_85e6bc(); } diff --git a/test/tint/builtins/gen/var/max/85e6bc.wgsl.expected.wgsl b/test/tint/builtins/gen/var/max/85e6bc.wgsl.expected.wgsl index 8d76787db1..33565fdd06 100644 --- a/test/tint/builtins/gen/var/max/85e6bc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/max/85e6bc.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn max_85e6bc() { var res : vec4 = max(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_85e6bc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_85e6bc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_85e6bc(); } diff --git a/test/tint/builtins/gen/var/max/a93419.wgsl b/test/tint/builtins/gen/var/max/a93419.wgsl index 3a08c18fb5..c4ca54f3d8 100644 --- a/test/tint/builtins/gen/var/max/a93419.wgsl +++ b/test/tint/builtins/gen/var/max/a93419.wgsl @@ -30,18 +30,18 @@ fn max_a93419() { var res: vec4 = max(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_a93419(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_a93419(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_a93419(); } diff --git a/test/tint/builtins/gen/var/max/a93419.wgsl.expected.wgsl b/test/tint/builtins/gen/var/max/a93419.wgsl.expected.wgsl index 0e3d12d778..22d8ba86ae 100644 --- a/test/tint/builtins/gen/var/max/a93419.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/max/a93419.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn max_a93419() { var res : vec4 = max(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_a93419(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_a93419(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_a93419(); } diff --git a/test/tint/builtins/gen/var/max/b1b73a.wgsl b/test/tint/builtins/gen/var/max/b1b73a.wgsl index b60e810578..f4e625b226 100644 --- a/test/tint/builtins/gen/var/max/b1b73a.wgsl +++ b/test/tint/builtins/gen/var/max/b1b73a.wgsl @@ -30,18 +30,18 @@ fn max_b1b73a() { var res: vec3 = max(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_b1b73a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_b1b73a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_b1b73a(); } diff --git a/test/tint/builtins/gen/var/max/b1b73a.wgsl.expected.wgsl b/test/tint/builtins/gen/var/max/b1b73a.wgsl.expected.wgsl index affed5fa8c..f47436c232 100644 --- a/test/tint/builtins/gen/var/max/b1b73a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/max/b1b73a.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn max_b1b73a() { var res : vec3 = max(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_b1b73a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_b1b73a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_b1b73a(); } diff --git a/test/tint/builtins/gen/var/max/ce7c30.wgsl b/test/tint/builtins/gen/var/max/ce7c30.wgsl index 3bfa94bc75..82ce7720e5 100644 --- a/test/tint/builtins/gen/var/max/ce7c30.wgsl +++ b/test/tint/builtins/gen/var/max/ce7c30.wgsl @@ -30,18 +30,18 @@ fn max_ce7c30() { var res: i32 = max(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_ce7c30(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_ce7c30(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_ce7c30(); } diff --git a/test/tint/builtins/gen/var/max/ce7c30.wgsl.expected.wgsl b/test/tint/builtins/gen/var/max/ce7c30.wgsl.expected.wgsl index 389f57c8fe..830432685c 100644 --- a/test/tint/builtins/gen/var/max/ce7c30.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/max/ce7c30.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn max_ce7c30() { var res : i32 = max(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_ce7c30(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_ce7c30(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_ce7c30(); } diff --git a/test/tint/builtins/gen/var/max/e8192f.wgsl b/test/tint/builtins/gen/var/max/e8192f.wgsl index e492084bc1..f090e940a5 100644 --- a/test/tint/builtins/gen/var/max/e8192f.wgsl +++ b/test/tint/builtins/gen/var/max/e8192f.wgsl @@ -30,18 +30,18 @@ fn max_e8192f() { var res: vec2 = max(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_e8192f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_e8192f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_e8192f(); } diff --git a/test/tint/builtins/gen/var/max/e8192f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/max/e8192f.wgsl.expected.wgsl index d7e94bbfcc..d3b546bd1b 100644 --- a/test/tint/builtins/gen/var/max/e8192f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/max/e8192f.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn max_e8192f() { var res : vec2 = max(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { max_e8192f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { max_e8192f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { max_e8192f(); } diff --git a/test/tint/builtins/gen/var/min/03c7e3.wgsl b/test/tint/builtins/gen/var/min/03c7e3.wgsl index c6584bd7b9..82feb882aa 100644 --- a/test/tint/builtins/gen/var/min/03c7e3.wgsl +++ b/test/tint/builtins/gen/var/min/03c7e3.wgsl @@ -30,18 +30,18 @@ fn min_03c7e3() { var res: vec2 = min(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_03c7e3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_03c7e3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_03c7e3(); } diff --git a/test/tint/builtins/gen/var/min/03c7e3.wgsl.expected.wgsl b/test/tint/builtins/gen/var/min/03c7e3.wgsl.expected.wgsl index c266d214e0..9f91712f03 100644 --- a/test/tint/builtins/gen/var/min/03c7e3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/min/03c7e3.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn min_03c7e3() { var res : vec2 = min(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_03c7e3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_03c7e3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_03c7e3(); } diff --git a/test/tint/builtins/gen/var/min/0dc614.wgsl b/test/tint/builtins/gen/var/min/0dc614.wgsl index 15bd5210c4..f2ed84a596 100644 --- a/test/tint/builtins/gen/var/min/0dc614.wgsl +++ b/test/tint/builtins/gen/var/min/0dc614.wgsl @@ -30,18 +30,18 @@ fn min_0dc614() { var res: vec4 = min(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_0dc614(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_0dc614(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_0dc614(); } diff --git a/test/tint/builtins/gen/var/min/0dc614.wgsl.expected.wgsl b/test/tint/builtins/gen/var/min/0dc614.wgsl.expected.wgsl index 6468740a4e..139b0534ed 100644 --- a/test/tint/builtins/gen/var/min/0dc614.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/min/0dc614.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn min_0dc614() { var res : vec4 = min(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_0dc614(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_0dc614(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_0dc614(); } diff --git a/test/tint/builtins/gen/var/min/3941e1.wgsl b/test/tint/builtins/gen/var/min/3941e1.wgsl index 6ffcdef50a..f3da3eabea 100644 --- a/test/tint/builtins/gen/var/min/3941e1.wgsl +++ b/test/tint/builtins/gen/var/min/3941e1.wgsl @@ -30,18 +30,18 @@ fn min_3941e1() { var res: vec4 = min(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_3941e1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_3941e1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_3941e1(); } diff --git a/test/tint/builtins/gen/var/min/3941e1.wgsl.expected.wgsl b/test/tint/builtins/gen/var/min/3941e1.wgsl.expected.wgsl index e4f18a3881..9836662a18 100644 --- a/test/tint/builtins/gen/var/min/3941e1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/min/3941e1.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn min_3941e1() { var res : vec4 = min(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_3941e1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_3941e1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_3941e1(); } diff --git a/test/tint/builtins/gen/var/min/46c5d3.wgsl b/test/tint/builtins/gen/var/min/46c5d3.wgsl index 391138e90d..eeb50bbfb8 100644 --- a/test/tint/builtins/gen/var/min/46c5d3.wgsl +++ b/test/tint/builtins/gen/var/min/46c5d3.wgsl @@ -30,18 +30,18 @@ fn min_46c5d3() { var res: u32 = min(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_46c5d3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_46c5d3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_46c5d3(); } diff --git a/test/tint/builtins/gen/var/min/46c5d3.wgsl.expected.wgsl b/test/tint/builtins/gen/var/min/46c5d3.wgsl.expected.wgsl index 82edb4bcf1..8c3630f378 100644 --- a/test/tint/builtins/gen/var/min/46c5d3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/min/46c5d3.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn min_46c5d3() { var res : u32 = min(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_46c5d3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_46c5d3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_46c5d3(); } diff --git a/test/tint/builtins/gen/var/min/82b28f.wgsl b/test/tint/builtins/gen/var/min/82b28f.wgsl index 6ccb4e106a..aa5e1b8fb3 100644 --- a/test/tint/builtins/gen/var/min/82b28f.wgsl +++ b/test/tint/builtins/gen/var/min/82b28f.wgsl @@ -30,18 +30,18 @@ fn min_82b28f() { var res: vec2 = min(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_82b28f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_82b28f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_82b28f(); } diff --git a/test/tint/builtins/gen/var/min/82b28f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/min/82b28f.wgsl.expected.wgsl index 934bd52bb2..3d04b298da 100644 --- a/test/tint/builtins/gen/var/min/82b28f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/min/82b28f.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn min_82b28f() { var res : vec2 = min(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_82b28f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_82b28f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_82b28f(); } diff --git a/test/tint/builtins/gen/var/min/93cfc4.wgsl b/test/tint/builtins/gen/var/min/93cfc4.wgsl index 1fe53e8f1f..d56b8f0dfd 100644 --- a/test/tint/builtins/gen/var/min/93cfc4.wgsl +++ b/test/tint/builtins/gen/var/min/93cfc4.wgsl @@ -30,18 +30,18 @@ fn min_93cfc4() { var res: vec3 = min(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_93cfc4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_93cfc4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_93cfc4(); } diff --git a/test/tint/builtins/gen/var/min/93cfc4.wgsl.expected.wgsl b/test/tint/builtins/gen/var/min/93cfc4.wgsl.expected.wgsl index db17519e5d..54a69879a7 100644 --- a/test/tint/builtins/gen/var/min/93cfc4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/min/93cfc4.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn min_93cfc4() { var res : vec3 = min(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_93cfc4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_93cfc4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_93cfc4(); } diff --git a/test/tint/builtins/gen/var/min/a45171.wgsl b/test/tint/builtins/gen/var/min/a45171.wgsl index 8992507701..c98426edbb 100644 --- a/test/tint/builtins/gen/var/min/a45171.wgsl +++ b/test/tint/builtins/gen/var/min/a45171.wgsl @@ -30,18 +30,18 @@ fn min_a45171() { var res: vec3 = min(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_a45171(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_a45171(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_a45171(); } diff --git a/test/tint/builtins/gen/var/min/a45171.wgsl.expected.wgsl b/test/tint/builtins/gen/var/min/a45171.wgsl.expected.wgsl index 80051cb516..25c07acc29 100644 --- a/test/tint/builtins/gen/var/min/a45171.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/min/a45171.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn min_a45171() { var res : vec3 = min(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_a45171(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_a45171(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_a45171(); } diff --git a/test/tint/builtins/gen/var/min/aa28ad.wgsl b/test/tint/builtins/gen/var/min/aa28ad.wgsl index 2b56279d8d..7eadaf1a0e 100644 --- a/test/tint/builtins/gen/var/min/aa28ad.wgsl +++ b/test/tint/builtins/gen/var/min/aa28ad.wgsl @@ -30,18 +30,18 @@ fn min_aa28ad() { var res: vec2 = min(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_aa28ad(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_aa28ad(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_aa28ad(); } diff --git a/test/tint/builtins/gen/var/min/aa28ad.wgsl.expected.wgsl b/test/tint/builtins/gen/var/min/aa28ad.wgsl.expected.wgsl index f14fb39c69..4118b9c699 100644 --- a/test/tint/builtins/gen/var/min/aa28ad.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/min/aa28ad.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn min_aa28ad() { var res : vec2 = min(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_aa28ad(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_aa28ad(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_aa28ad(); } diff --git a/test/tint/builtins/gen/var/min/af326d.wgsl b/test/tint/builtins/gen/var/min/af326d.wgsl index f1bab38ef2..cb64bc117c 100644 --- a/test/tint/builtins/gen/var/min/af326d.wgsl +++ b/test/tint/builtins/gen/var/min/af326d.wgsl @@ -30,18 +30,18 @@ fn min_af326d() { var res: f32 = min(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_af326d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_af326d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_af326d(); } diff --git a/test/tint/builtins/gen/var/min/af326d.wgsl.expected.wgsl b/test/tint/builtins/gen/var/min/af326d.wgsl.expected.wgsl index dfc7c47d82..cad0ec0429 100644 --- a/test/tint/builtins/gen/var/min/af326d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/min/af326d.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn min_af326d() { var res : f32 = min(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_af326d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_af326d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_af326d(); } diff --git a/test/tint/builtins/gen/var/min/c70bb7.wgsl b/test/tint/builtins/gen/var/min/c70bb7.wgsl index 55582fcc7e..1582ed0468 100644 --- a/test/tint/builtins/gen/var/min/c70bb7.wgsl +++ b/test/tint/builtins/gen/var/min/c70bb7.wgsl @@ -30,18 +30,18 @@ fn min_c70bb7() { var res: vec3 = min(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_c70bb7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_c70bb7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_c70bb7(); } diff --git a/test/tint/builtins/gen/var/min/c70bb7.wgsl.expected.wgsl b/test/tint/builtins/gen/var/min/c70bb7.wgsl.expected.wgsl index 485ba0ca34..8ac77f7564 100644 --- a/test/tint/builtins/gen/var/min/c70bb7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/min/c70bb7.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn min_c70bb7() { var res : vec3 = min(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_c70bb7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_c70bb7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_c70bb7(); } diff --git a/test/tint/builtins/gen/var/min/c73147.wgsl b/test/tint/builtins/gen/var/min/c73147.wgsl index cf7c0fbd6b..401f6a0ac4 100644 --- a/test/tint/builtins/gen/var/min/c73147.wgsl +++ b/test/tint/builtins/gen/var/min/c73147.wgsl @@ -30,18 +30,18 @@ fn min_c73147() { var res: i32 = min(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_c73147(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_c73147(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_c73147(); } diff --git a/test/tint/builtins/gen/var/min/c73147.wgsl.expected.wgsl b/test/tint/builtins/gen/var/min/c73147.wgsl.expected.wgsl index 8653636b8c..035e6661d9 100644 --- a/test/tint/builtins/gen/var/min/c73147.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/min/c73147.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn min_c73147() { var res : i32 = min(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_c73147(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_c73147(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_c73147(); } diff --git a/test/tint/builtins/gen/var/min/c76fa6.wgsl b/test/tint/builtins/gen/var/min/c76fa6.wgsl index 0665ca9f73..433b1331d5 100644 --- a/test/tint/builtins/gen/var/min/c76fa6.wgsl +++ b/test/tint/builtins/gen/var/min/c76fa6.wgsl @@ -30,18 +30,18 @@ fn min_c76fa6() { var res: vec4 = min(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_c76fa6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_c76fa6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_c76fa6(); } diff --git a/test/tint/builtins/gen/var/min/c76fa6.wgsl.expected.wgsl b/test/tint/builtins/gen/var/min/c76fa6.wgsl.expected.wgsl index 2ef79b46dc..0de54deb36 100644 --- a/test/tint/builtins/gen/var/min/c76fa6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/min/c76fa6.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn min_c76fa6() { var res : vec4 = min(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { min_c76fa6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { min_c76fa6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { min_c76fa6(); } diff --git a/test/tint/builtins/gen/var/mix/0c8c33.wgsl b/test/tint/builtins/gen/var/mix/0c8c33.wgsl index 173a2df445..debeaf2c82 100644 --- a/test/tint/builtins/gen/var/mix/0c8c33.wgsl +++ b/test/tint/builtins/gen/var/mix/0c8c33.wgsl @@ -31,18 +31,18 @@ fn mix_0c8c33() { var res: vec3 = mix(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_0c8c33(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_0c8c33(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_0c8c33(); } diff --git a/test/tint/builtins/gen/var/mix/0c8c33.wgsl.expected.wgsl b/test/tint/builtins/gen/var/mix/0c8c33.wgsl.expected.wgsl index feae76a73f..09f0497b4f 100644 --- a/test/tint/builtins/gen/var/mix/0c8c33.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/mix/0c8c33.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn mix_0c8c33() { var res : vec3 = mix(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_0c8c33(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_0c8c33(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_0c8c33(); } diff --git a/test/tint/builtins/gen/var/mix/1faeb1.wgsl b/test/tint/builtins/gen/var/mix/1faeb1.wgsl index 65b8108df5..111a5717a8 100644 --- a/test/tint/builtins/gen/var/mix/1faeb1.wgsl +++ b/test/tint/builtins/gen/var/mix/1faeb1.wgsl @@ -31,18 +31,18 @@ fn mix_1faeb1() { var res: vec4 = mix(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_1faeb1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_1faeb1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_1faeb1(); } diff --git a/test/tint/builtins/gen/var/mix/1faeb1.wgsl.expected.wgsl b/test/tint/builtins/gen/var/mix/1faeb1.wgsl.expected.wgsl index 3d73596118..4253d4ac70 100644 --- a/test/tint/builtins/gen/var/mix/1faeb1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/mix/1faeb1.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn mix_1faeb1() { var res : vec4 = mix(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_1faeb1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_1faeb1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_1faeb1(); } diff --git a/test/tint/builtins/gen/var/mix/2fadab.wgsl b/test/tint/builtins/gen/var/mix/2fadab.wgsl index e7ace41bac..e8c3593b69 100644 --- a/test/tint/builtins/gen/var/mix/2fadab.wgsl +++ b/test/tint/builtins/gen/var/mix/2fadab.wgsl @@ -31,18 +31,18 @@ fn mix_2fadab() { var res: vec2 = mix(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_2fadab(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_2fadab(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_2fadab(); } diff --git a/test/tint/builtins/gen/var/mix/2fadab.wgsl.expected.wgsl b/test/tint/builtins/gen/var/mix/2fadab.wgsl.expected.wgsl index 8f1d4f2f92..615c3ebde5 100644 --- a/test/tint/builtins/gen/var/mix/2fadab.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/mix/2fadab.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn mix_2fadab() { var res : vec2 = mix(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_2fadab(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_2fadab(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_2fadab(); } diff --git a/test/tint/builtins/gen/var/mix/315264.wgsl b/test/tint/builtins/gen/var/mix/315264.wgsl index c396c01a6d..90865bb6df 100644 --- a/test/tint/builtins/gen/var/mix/315264.wgsl +++ b/test/tint/builtins/gen/var/mix/315264.wgsl @@ -31,18 +31,18 @@ fn mix_315264() { var res: vec3 = mix(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_315264(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_315264(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_315264(); } diff --git a/test/tint/builtins/gen/var/mix/315264.wgsl.expected.wgsl b/test/tint/builtins/gen/var/mix/315264.wgsl.expected.wgsl index e4f84302ff..ee53b30dd8 100644 --- a/test/tint/builtins/gen/var/mix/315264.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/mix/315264.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn mix_315264() { var res : vec3 = mix(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_315264(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_315264(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_315264(); } diff --git a/test/tint/builtins/gen/var/mix/4f0b5e.wgsl b/test/tint/builtins/gen/var/mix/4f0b5e.wgsl index 4e823a140f..f3088928cb 100644 --- a/test/tint/builtins/gen/var/mix/4f0b5e.wgsl +++ b/test/tint/builtins/gen/var/mix/4f0b5e.wgsl @@ -31,18 +31,18 @@ fn mix_4f0b5e() { var res: f32 = mix(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_4f0b5e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_4f0b5e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_4f0b5e(); } diff --git a/test/tint/builtins/gen/var/mix/4f0b5e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/mix/4f0b5e.wgsl.expected.wgsl index 295f6efc43..e597146a77 100644 --- a/test/tint/builtins/gen/var/mix/4f0b5e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/mix/4f0b5e.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn mix_4f0b5e() { var res : f32 = mix(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_4f0b5e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_4f0b5e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_4f0b5e(); } diff --git a/test/tint/builtins/gen/var/mix/6f8adc.wgsl b/test/tint/builtins/gen/var/mix/6f8adc.wgsl index e730990778..c1efe6ba4b 100644 --- a/test/tint/builtins/gen/var/mix/6f8adc.wgsl +++ b/test/tint/builtins/gen/var/mix/6f8adc.wgsl @@ -31,18 +31,18 @@ fn mix_6f8adc() { var res: vec2 = mix(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_6f8adc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_6f8adc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_6f8adc(); } diff --git a/test/tint/builtins/gen/var/mix/6f8adc.wgsl.expected.wgsl b/test/tint/builtins/gen/var/mix/6f8adc.wgsl.expected.wgsl index f29095a2eb..fad88d5fb7 100644 --- a/test/tint/builtins/gen/var/mix/6f8adc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/mix/6f8adc.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn mix_6f8adc() { var res : vec2 = mix(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_6f8adc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_6f8adc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_6f8adc(); } diff --git a/test/tint/builtins/gen/var/mix/c37ede.wgsl b/test/tint/builtins/gen/var/mix/c37ede.wgsl index 2f0259390e..3463524445 100644 --- a/test/tint/builtins/gen/var/mix/c37ede.wgsl +++ b/test/tint/builtins/gen/var/mix/c37ede.wgsl @@ -31,18 +31,18 @@ fn mix_c37ede() { var res: vec4 = mix(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_c37ede(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_c37ede(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_c37ede(); } diff --git a/test/tint/builtins/gen/var/mix/c37ede.wgsl.expected.wgsl b/test/tint/builtins/gen/var/mix/c37ede.wgsl.expected.wgsl index ed1e7a3c8f..7a073a3da5 100644 --- a/test/tint/builtins/gen/var/mix/c37ede.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/mix/c37ede.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn mix_c37ede() { var res : vec4 = mix(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { mix_c37ede(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { mix_c37ede(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { mix_c37ede(); } diff --git a/test/tint/builtins/gen/var/modf/180fed.wgsl b/test/tint/builtins/gen/var/modf/180fed.wgsl index aaf3f55376..225f1ab6c2 100644 --- a/test/tint/builtins/gen/var/modf/180fed.wgsl +++ b/test/tint/builtins/gen/var/modf/180fed.wgsl @@ -29,18 +29,18 @@ fn modf_180fed() { var res = modf(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { modf_180fed(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { modf_180fed(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { modf_180fed(); } diff --git a/test/tint/builtins/gen/var/modf/180fed.wgsl.expected.wgsl b/test/tint/builtins/gen/var/modf/180fed.wgsl.expected.wgsl index e62aa595de..b9189cb9c8 100644 --- a/test/tint/builtins/gen/var/modf/180fed.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/modf/180fed.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn modf_180fed() { var res = modf(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { modf_180fed(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { modf_180fed(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { modf_180fed(); } diff --git a/test/tint/builtins/gen/var/modf/9b75f7.wgsl b/test/tint/builtins/gen/var/modf/9b75f7.wgsl index 335331a88e..8f45d4384f 100644 --- a/test/tint/builtins/gen/var/modf/9b75f7.wgsl +++ b/test/tint/builtins/gen/var/modf/9b75f7.wgsl @@ -29,18 +29,18 @@ fn modf_9b75f7() { var res = modf(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { modf_9b75f7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { modf_9b75f7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { modf_9b75f7(); } diff --git a/test/tint/builtins/gen/var/modf/9b75f7.wgsl.expected.wgsl b/test/tint/builtins/gen/var/modf/9b75f7.wgsl.expected.wgsl index ce3b3d9511..57c7dd3de3 100644 --- a/test/tint/builtins/gen/var/modf/9b75f7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/modf/9b75f7.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn modf_9b75f7() { var res = modf(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { modf_9b75f7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { modf_9b75f7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { modf_9b75f7(); } diff --git a/test/tint/builtins/gen/var/modf/ec2dbc.wgsl b/test/tint/builtins/gen/var/modf/ec2dbc.wgsl index bd2a298447..f677d91377 100644 --- a/test/tint/builtins/gen/var/modf/ec2dbc.wgsl +++ b/test/tint/builtins/gen/var/modf/ec2dbc.wgsl @@ -29,18 +29,18 @@ fn modf_ec2dbc() { var res = modf(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { modf_ec2dbc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { modf_ec2dbc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { modf_ec2dbc(); } diff --git a/test/tint/builtins/gen/var/modf/ec2dbc.wgsl.expected.wgsl b/test/tint/builtins/gen/var/modf/ec2dbc.wgsl.expected.wgsl index 47cd800b1e..3e6ab82707 100644 --- a/test/tint/builtins/gen/var/modf/ec2dbc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/modf/ec2dbc.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn modf_ec2dbc() { var res = modf(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { modf_ec2dbc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { modf_ec2dbc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { modf_ec2dbc(); } diff --git a/test/tint/builtins/gen/var/modf/f5f20d.wgsl b/test/tint/builtins/gen/var/modf/f5f20d.wgsl index 7111dbab17..2890b35f92 100644 --- a/test/tint/builtins/gen/var/modf/f5f20d.wgsl +++ b/test/tint/builtins/gen/var/modf/f5f20d.wgsl @@ -29,18 +29,18 @@ fn modf_f5f20d() { var res = modf(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { modf_f5f20d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { modf_f5f20d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { modf_f5f20d(); } diff --git a/test/tint/builtins/gen/var/modf/f5f20d.wgsl.expected.wgsl b/test/tint/builtins/gen/var/modf/f5f20d.wgsl.expected.wgsl index b31bbf2599..9866f5bcff 100644 --- a/test/tint/builtins/gen/var/modf/f5f20d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/modf/f5f20d.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn modf_f5f20d() { var res = modf(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { modf_f5f20d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { modf_f5f20d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { modf_f5f20d(); } diff --git a/test/tint/builtins/gen/var/normalize/64d8c0.wgsl b/test/tint/builtins/gen/var/normalize/64d8c0.wgsl index a4b5e1d17b..c550bdedbb 100644 --- a/test/tint/builtins/gen/var/normalize/64d8c0.wgsl +++ b/test/tint/builtins/gen/var/normalize/64d8c0.wgsl @@ -29,18 +29,18 @@ fn normalize_64d8c0() { var res: vec3 = normalize(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { normalize_64d8c0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { normalize_64d8c0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { normalize_64d8c0(); } diff --git a/test/tint/builtins/gen/var/normalize/64d8c0.wgsl.expected.wgsl b/test/tint/builtins/gen/var/normalize/64d8c0.wgsl.expected.wgsl index 189ccda03a..c5241b5d2f 100644 --- a/test/tint/builtins/gen/var/normalize/64d8c0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/normalize/64d8c0.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn normalize_64d8c0() { var res : vec3 = normalize(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { normalize_64d8c0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { normalize_64d8c0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { normalize_64d8c0(); } diff --git a/test/tint/builtins/gen/var/normalize/9a0aab.wgsl b/test/tint/builtins/gen/var/normalize/9a0aab.wgsl index af2958021f..5ded0d4186 100644 --- a/test/tint/builtins/gen/var/normalize/9a0aab.wgsl +++ b/test/tint/builtins/gen/var/normalize/9a0aab.wgsl @@ -29,18 +29,18 @@ fn normalize_9a0aab() { var res: vec4 = normalize(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { normalize_9a0aab(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { normalize_9a0aab(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { normalize_9a0aab(); } diff --git a/test/tint/builtins/gen/var/normalize/9a0aab.wgsl.expected.wgsl b/test/tint/builtins/gen/var/normalize/9a0aab.wgsl.expected.wgsl index 3e8d2c5e42..ad629d05c9 100644 --- a/test/tint/builtins/gen/var/normalize/9a0aab.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/normalize/9a0aab.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn normalize_9a0aab() { var res : vec4 = normalize(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { normalize_9a0aab(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { normalize_9a0aab(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { normalize_9a0aab(); } diff --git a/test/tint/builtins/gen/var/normalize/fc2ef1.wgsl b/test/tint/builtins/gen/var/normalize/fc2ef1.wgsl index 018f4379ff..91c311b04c 100644 --- a/test/tint/builtins/gen/var/normalize/fc2ef1.wgsl +++ b/test/tint/builtins/gen/var/normalize/fc2ef1.wgsl @@ -29,18 +29,18 @@ fn normalize_fc2ef1() { var res: vec2 = normalize(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { normalize_fc2ef1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { normalize_fc2ef1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { normalize_fc2ef1(); } diff --git a/test/tint/builtins/gen/var/normalize/fc2ef1.wgsl.expected.wgsl b/test/tint/builtins/gen/var/normalize/fc2ef1.wgsl.expected.wgsl index ccaf220eb3..badf34dc40 100644 --- a/test/tint/builtins/gen/var/normalize/fc2ef1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/normalize/fc2ef1.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn normalize_fc2ef1() { var res : vec2 = normalize(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { normalize_fc2ef1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { normalize_fc2ef1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { normalize_fc2ef1(); } diff --git a/test/tint/builtins/gen/var/pack2x16float/0e97b3.wgsl b/test/tint/builtins/gen/var/pack2x16float/0e97b3.wgsl index 7d379ed025..55d6bdf389 100644 --- a/test/tint/builtins/gen/var/pack2x16float/0e97b3.wgsl +++ b/test/tint/builtins/gen/var/pack2x16float/0e97b3.wgsl @@ -29,18 +29,18 @@ fn pack2x16float_0e97b3() { var res: u32 = pack2x16float(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pack2x16float_0e97b3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pack2x16float_0e97b3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pack2x16float_0e97b3(); } diff --git a/test/tint/builtins/gen/var/pack2x16float/0e97b3.wgsl.expected.wgsl b/test/tint/builtins/gen/var/pack2x16float/0e97b3.wgsl.expected.wgsl index faab29ae19..27bed46737 100644 --- a/test/tint/builtins/gen/var/pack2x16float/0e97b3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/pack2x16float/0e97b3.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn pack2x16float_0e97b3() { var res : u32 = pack2x16float(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pack2x16float_0e97b3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pack2x16float_0e97b3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pack2x16float_0e97b3(); } diff --git a/test/tint/builtins/gen/var/pack2x16snorm/6c169b.wgsl b/test/tint/builtins/gen/var/pack2x16snorm/6c169b.wgsl index 4bba23eedd..603d87e751 100644 --- a/test/tint/builtins/gen/var/pack2x16snorm/6c169b.wgsl +++ b/test/tint/builtins/gen/var/pack2x16snorm/6c169b.wgsl @@ -29,18 +29,18 @@ fn pack2x16snorm_6c169b() { var res: u32 = pack2x16snorm(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pack2x16snorm_6c169b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pack2x16snorm_6c169b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pack2x16snorm_6c169b(); } diff --git a/test/tint/builtins/gen/var/pack2x16snorm/6c169b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/pack2x16snorm/6c169b.wgsl.expected.wgsl index c3e4cd4ac2..406794bdd4 100644 --- a/test/tint/builtins/gen/var/pack2x16snorm/6c169b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/pack2x16snorm/6c169b.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn pack2x16snorm_6c169b() { var res : u32 = pack2x16snorm(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pack2x16snorm_6c169b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pack2x16snorm_6c169b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pack2x16snorm_6c169b(); } diff --git a/test/tint/builtins/gen/var/pack2x16unorm/0f08e4.wgsl b/test/tint/builtins/gen/var/pack2x16unorm/0f08e4.wgsl index e00776cfde..1bfdf14ea1 100644 --- a/test/tint/builtins/gen/var/pack2x16unorm/0f08e4.wgsl +++ b/test/tint/builtins/gen/var/pack2x16unorm/0f08e4.wgsl @@ -29,18 +29,18 @@ fn pack2x16unorm_0f08e4() { var res: u32 = pack2x16unorm(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pack2x16unorm_0f08e4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pack2x16unorm_0f08e4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pack2x16unorm_0f08e4(); } diff --git a/test/tint/builtins/gen/var/pack2x16unorm/0f08e4.wgsl.expected.wgsl b/test/tint/builtins/gen/var/pack2x16unorm/0f08e4.wgsl.expected.wgsl index eb131fc529..db3a3317a5 100644 --- a/test/tint/builtins/gen/var/pack2x16unorm/0f08e4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/pack2x16unorm/0f08e4.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn pack2x16unorm_0f08e4() { var res : u32 = pack2x16unorm(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pack2x16unorm_0f08e4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pack2x16unorm_0f08e4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pack2x16unorm_0f08e4(); } diff --git a/test/tint/builtins/gen/var/pack4x8snorm/4d22e7.wgsl b/test/tint/builtins/gen/var/pack4x8snorm/4d22e7.wgsl index f027dfd546..ed66aa83e8 100644 --- a/test/tint/builtins/gen/var/pack4x8snorm/4d22e7.wgsl +++ b/test/tint/builtins/gen/var/pack4x8snorm/4d22e7.wgsl @@ -29,18 +29,18 @@ fn pack4x8snorm_4d22e7() { var res: u32 = pack4x8snorm(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pack4x8snorm_4d22e7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pack4x8snorm_4d22e7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pack4x8snorm_4d22e7(); } diff --git a/test/tint/builtins/gen/var/pack4x8snorm/4d22e7.wgsl.expected.wgsl b/test/tint/builtins/gen/var/pack4x8snorm/4d22e7.wgsl.expected.wgsl index 18df3dbaca..b83a2e3dc0 100644 --- a/test/tint/builtins/gen/var/pack4x8snorm/4d22e7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/pack4x8snorm/4d22e7.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn pack4x8snorm_4d22e7() { var res : u32 = pack4x8snorm(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pack4x8snorm_4d22e7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pack4x8snorm_4d22e7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pack4x8snorm_4d22e7(); } diff --git a/test/tint/builtins/gen/var/pack4x8unorm/95c456.wgsl b/test/tint/builtins/gen/var/pack4x8unorm/95c456.wgsl index 96dd055e92..e32ced31e6 100644 --- a/test/tint/builtins/gen/var/pack4x8unorm/95c456.wgsl +++ b/test/tint/builtins/gen/var/pack4x8unorm/95c456.wgsl @@ -29,18 +29,18 @@ fn pack4x8unorm_95c456() { var res: u32 = pack4x8unorm(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pack4x8unorm_95c456(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pack4x8unorm_95c456(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pack4x8unorm_95c456(); } diff --git a/test/tint/builtins/gen/var/pack4x8unorm/95c456.wgsl.expected.wgsl b/test/tint/builtins/gen/var/pack4x8unorm/95c456.wgsl.expected.wgsl index fab95be54b..195c952b3b 100644 --- a/test/tint/builtins/gen/var/pack4x8unorm/95c456.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/pack4x8unorm/95c456.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn pack4x8unorm_95c456() { var res : u32 = pack4x8unorm(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pack4x8unorm_95c456(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pack4x8unorm_95c456(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pack4x8unorm_95c456(); } diff --git a/test/tint/builtins/gen/var/pow/04a908.wgsl b/test/tint/builtins/gen/var/pow/04a908.wgsl index 884e6f44fe..11ed4262eb 100644 --- a/test/tint/builtins/gen/var/pow/04a908.wgsl +++ b/test/tint/builtins/gen/var/pow/04a908.wgsl @@ -30,18 +30,18 @@ fn pow_04a908() { var res: vec4 = pow(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pow_04a908(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pow_04a908(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pow_04a908(); } diff --git a/test/tint/builtins/gen/var/pow/04a908.wgsl.expected.wgsl b/test/tint/builtins/gen/var/pow/04a908.wgsl.expected.wgsl index 1409845719..77389a39a0 100644 --- a/test/tint/builtins/gen/var/pow/04a908.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/pow/04a908.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn pow_04a908() { var res : vec4 = pow(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pow_04a908(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pow_04a908(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pow_04a908(); } diff --git a/test/tint/builtins/gen/var/pow/46e029.wgsl b/test/tint/builtins/gen/var/pow/46e029.wgsl index c2bee4ab08..6f67b51400 100644 --- a/test/tint/builtins/gen/var/pow/46e029.wgsl +++ b/test/tint/builtins/gen/var/pow/46e029.wgsl @@ -30,18 +30,18 @@ fn pow_46e029() { var res: f32 = pow(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pow_46e029(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pow_46e029(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pow_46e029(); } diff --git a/test/tint/builtins/gen/var/pow/46e029.wgsl.expected.wgsl b/test/tint/builtins/gen/var/pow/46e029.wgsl.expected.wgsl index 85ddd37b90..1a23381dd9 100644 --- a/test/tint/builtins/gen/var/pow/46e029.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/pow/46e029.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn pow_46e029() { var res : f32 = pow(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pow_46e029(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pow_46e029(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pow_46e029(); } diff --git a/test/tint/builtins/gen/var/pow/4a46c9.wgsl b/test/tint/builtins/gen/var/pow/4a46c9.wgsl index 5d991fe614..077b87e964 100644 --- a/test/tint/builtins/gen/var/pow/4a46c9.wgsl +++ b/test/tint/builtins/gen/var/pow/4a46c9.wgsl @@ -30,18 +30,18 @@ fn pow_4a46c9() { var res: vec3 = pow(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pow_4a46c9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pow_4a46c9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pow_4a46c9(); } diff --git a/test/tint/builtins/gen/var/pow/4a46c9.wgsl.expected.wgsl b/test/tint/builtins/gen/var/pow/4a46c9.wgsl.expected.wgsl index 71bc724d3d..8e2b88c568 100644 --- a/test/tint/builtins/gen/var/pow/4a46c9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/pow/4a46c9.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn pow_4a46c9() { var res : vec3 = pow(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pow_4a46c9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pow_4a46c9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pow_4a46c9(); } diff --git a/test/tint/builtins/gen/var/pow/e60ea5.wgsl b/test/tint/builtins/gen/var/pow/e60ea5.wgsl index 2070ec8bb8..6cf11daa99 100644 --- a/test/tint/builtins/gen/var/pow/e60ea5.wgsl +++ b/test/tint/builtins/gen/var/pow/e60ea5.wgsl @@ -30,18 +30,18 @@ fn pow_e60ea5() { var res: vec2 = pow(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pow_e60ea5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pow_e60ea5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pow_e60ea5(); } diff --git a/test/tint/builtins/gen/var/pow/e60ea5.wgsl.expected.wgsl b/test/tint/builtins/gen/var/pow/e60ea5.wgsl.expected.wgsl index 65321f8048..c04fdb6a5d 100644 --- a/test/tint/builtins/gen/var/pow/e60ea5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/pow/e60ea5.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn pow_e60ea5() { var res : vec2 = pow(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { pow_e60ea5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { pow_e60ea5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { pow_e60ea5(); } diff --git a/test/tint/builtins/gen/var/radians/09b7fc.wgsl b/test/tint/builtins/gen/var/radians/09b7fc.wgsl index 597c22d86e..dab48202ca 100644 --- a/test/tint/builtins/gen/var/radians/09b7fc.wgsl +++ b/test/tint/builtins/gen/var/radians/09b7fc.wgsl @@ -29,18 +29,18 @@ fn radians_09b7fc() { var res: vec4 = radians(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { radians_09b7fc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { radians_09b7fc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { radians_09b7fc(); } diff --git a/test/tint/builtins/gen/var/radians/09b7fc.wgsl.expected.wgsl b/test/tint/builtins/gen/var/radians/09b7fc.wgsl.expected.wgsl index 534b5a7151..d07f72cb6d 100644 --- a/test/tint/builtins/gen/var/radians/09b7fc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/radians/09b7fc.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn radians_09b7fc() { var res : vec4 = radians(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { radians_09b7fc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { radians_09b7fc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { radians_09b7fc(); } diff --git a/test/tint/builtins/gen/var/radians/61687a.wgsl b/test/tint/builtins/gen/var/radians/61687a.wgsl index d757077be8..27093cb7eb 100644 --- a/test/tint/builtins/gen/var/radians/61687a.wgsl +++ b/test/tint/builtins/gen/var/radians/61687a.wgsl @@ -29,18 +29,18 @@ fn radians_61687a() { var res: vec2 = radians(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { radians_61687a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { radians_61687a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { radians_61687a(); } diff --git a/test/tint/builtins/gen/var/radians/61687a.wgsl.expected.wgsl b/test/tint/builtins/gen/var/radians/61687a.wgsl.expected.wgsl index 6591863e7e..8b8146ec22 100644 --- a/test/tint/builtins/gen/var/radians/61687a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/radians/61687a.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn radians_61687a() { var res : vec2 = radians(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { radians_61687a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { radians_61687a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { radians_61687a(); } diff --git a/test/tint/builtins/gen/var/radians/6b0ff2.wgsl b/test/tint/builtins/gen/var/radians/6b0ff2.wgsl index 58d83efb34..23cd90372d 100644 --- a/test/tint/builtins/gen/var/radians/6b0ff2.wgsl +++ b/test/tint/builtins/gen/var/radians/6b0ff2.wgsl @@ -29,18 +29,18 @@ fn radians_6b0ff2() { var res: f32 = radians(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { radians_6b0ff2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { radians_6b0ff2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { radians_6b0ff2(); } diff --git a/test/tint/builtins/gen/var/radians/6b0ff2.wgsl.expected.wgsl b/test/tint/builtins/gen/var/radians/6b0ff2.wgsl.expected.wgsl index ab1a3872f6..e1de333956 100644 --- a/test/tint/builtins/gen/var/radians/6b0ff2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/radians/6b0ff2.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn radians_6b0ff2() { var res : f32 = radians(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { radians_6b0ff2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { radians_6b0ff2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { radians_6b0ff2(); } diff --git a/test/tint/builtins/gen/var/radians/f96258.wgsl b/test/tint/builtins/gen/var/radians/f96258.wgsl index 77c37c6141..6da511057c 100644 --- a/test/tint/builtins/gen/var/radians/f96258.wgsl +++ b/test/tint/builtins/gen/var/radians/f96258.wgsl @@ -29,18 +29,18 @@ fn radians_f96258() { var res: vec3 = radians(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { radians_f96258(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { radians_f96258(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { radians_f96258(); } diff --git a/test/tint/builtins/gen/var/radians/f96258.wgsl.expected.wgsl b/test/tint/builtins/gen/var/radians/f96258.wgsl.expected.wgsl index eaf3040cfe..962df3e692 100644 --- a/test/tint/builtins/gen/var/radians/f96258.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/radians/f96258.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn radians_f96258() { var res : vec3 = radians(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { radians_f96258(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { radians_f96258(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { radians_f96258(); } diff --git a/test/tint/builtins/gen/var/reflect/05357e.wgsl b/test/tint/builtins/gen/var/reflect/05357e.wgsl index 4eca0e91bc..1dbb9ec13b 100644 --- a/test/tint/builtins/gen/var/reflect/05357e.wgsl +++ b/test/tint/builtins/gen/var/reflect/05357e.wgsl @@ -30,18 +30,18 @@ fn reflect_05357e() { var res: vec4 = reflect(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reflect_05357e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reflect_05357e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reflect_05357e(); } diff --git a/test/tint/builtins/gen/var/reflect/05357e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/reflect/05357e.wgsl.expected.wgsl index 2172c634cf..8ce561c05d 100644 --- a/test/tint/builtins/gen/var/reflect/05357e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/reflect/05357e.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn reflect_05357e() { var res : vec4 = reflect(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reflect_05357e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reflect_05357e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reflect_05357e(); } diff --git a/test/tint/builtins/gen/var/reflect/b61e10.wgsl b/test/tint/builtins/gen/var/reflect/b61e10.wgsl index e522b9ebc2..0bf21285da 100644 --- a/test/tint/builtins/gen/var/reflect/b61e10.wgsl +++ b/test/tint/builtins/gen/var/reflect/b61e10.wgsl @@ -30,18 +30,18 @@ fn reflect_b61e10() { var res: vec2 = reflect(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reflect_b61e10(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reflect_b61e10(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reflect_b61e10(); } diff --git a/test/tint/builtins/gen/var/reflect/b61e10.wgsl.expected.wgsl b/test/tint/builtins/gen/var/reflect/b61e10.wgsl.expected.wgsl index 3fca9bb35f..ec8317cec9 100644 --- a/test/tint/builtins/gen/var/reflect/b61e10.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/reflect/b61e10.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn reflect_b61e10() { var res : vec2 = reflect(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reflect_b61e10(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reflect_b61e10(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reflect_b61e10(); } diff --git a/test/tint/builtins/gen/var/reflect/f47fdb.wgsl b/test/tint/builtins/gen/var/reflect/f47fdb.wgsl index 2bc5f6c5cd..5aabef0ef1 100644 --- a/test/tint/builtins/gen/var/reflect/f47fdb.wgsl +++ b/test/tint/builtins/gen/var/reflect/f47fdb.wgsl @@ -30,18 +30,18 @@ fn reflect_f47fdb() { var res: vec3 = reflect(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reflect_f47fdb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reflect_f47fdb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reflect_f47fdb(); } diff --git a/test/tint/builtins/gen/var/reflect/f47fdb.wgsl.expected.wgsl b/test/tint/builtins/gen/var/reflect/f47fdb.wgsl.expected.wgsl index 57b54ed321..e1ae8d16c9 100644 --- a/test/tint/builtins/gen/var/reflect/f47fdb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/reflect/f47fdb.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn reflect_f47fdb() { var res : vec3 = reflect(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reflect_f47fdb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reflect_f47fdb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reflect_f47fdb(); } diff --git a/test/tint/builtins/gen/var/refract/7e02e6.wgsl b/test/tint/builtins/gen/var/refract/7e02e6.wgsl index 0779089377..9a440848f4 100644 --- a/test/tint/builtins/gen/var/refract/7e02e6.wgsl +++ b/test/tint/builtins/gen/var/refract/7e02e6.wgsl @@ -31,18 +31,18 @@ fn refract_7e02e6() { var res: vec4 = refract(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { refract_7e02e6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { refract_7e02e6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { refract_7e02e6(); } diff --git a/test/tint/builtins/gen/var/refract/7e02e6.wgsl.expected.wgsl b/test/tint/builtins/gen/var/refract/7e02e6.wgsl.expected.wgsl index 747e9924bd..178acc7654 100644 --- a/test/tint/builtins/gen/var/refract/7e02e6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/refract/7e02e6.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn refract_7e02e6() { var res : vec4 = refract(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { refract_7e02e6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { refract_7e02e6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { refract_7e02e6(); } diff --git a/test/tint/builtins/gen/var/refract/cbc1d2.wgsl b/test/tint/builtins/gen/var/refract/cbc1d2.wgsl index e84c072fdc..e21cde5b93 100644 --- a/test/tint/builtins/gen/var/refract/cbc1d2.wgsl +++ b/test/tint/builtins/gen/var/refract/cbc1d2.wgsl @@ -31,18 +31,18 @@ fn refract_cbc1d2() { var res: vec3 = refract(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { refract_cbc1d2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { refract_cbc1d2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { refract_cbc1d2(); } diff --git a/test/tint/builtins/gen/var/refract/cbc1d2.wgsl.expected.wgsl b/test/tint/builtins/gen/var/refract/cbc1d2.wgsl.expected.wgsl index d71d17224e..00ad761342 100644 --- a/test/tint/builtins/gen/var/refract/cbc1d2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/refract/cbc1d2.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn refract_cbc1d2() { var res : vec3 = refract(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { refract_cbc1d2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { refract_cbc1d2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { refract_cbc1d2(); } diff --git a/test/tint/builtins/gen/var/refract/cd905f.wgsl b/test/tint/builtins/gen/var/refract/cd905f.wgsl index 50675c7918..a70ed45e27 100644 --- a/test/tint/builtins/gen/var/refract/cd905f.wgsl +++ b/test/tint/builtins/gen/var/refract/cd905f.wgsl @@ -31,18 +31,18 @@ fn refract_cd905f() { var res: vec2 = refract(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { refract_cd905f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { refract_cd905f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { refract_cd905f(); } diff --git a/test/tint/builtins/gen/var/refract/cd905f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/refract/cd905f.wgsl.expected.wgsl index 34cfbcef9d..3bd2166e5f 100644 --- a/test/tint/builtins/gen/var/refract/cd905f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/refract/cd905f.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn refract_cd905f() { var res : vec2 = refract(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { refract_cd905f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { refract_cd905f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { refract_cd905f(); } diff --git a/test/tint/builtins/gen/var/reverseBits/222177.wgsl b/test/tint/builtins/gen/var/reverseBits/222177.wgsl index 7d2ca9506d..c0614a5e3a 100644 --- a/test/tint/builtins/gen/var/reverseBits/222177.wgsl +++ b/test/tint/builtins/gen/var/reverseBits/222177.wgsl @@ -29,18 +29,18 @@ fn reverseBits_222177() { var res: vec2 = reverseBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_222177(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_222177(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_222177(); } diff --git a/test/tint/builtins/gen/var/reverseBits/222177.wgsl.expected.wgsl b/test/tint/builtins/gen/var/reverseBits/222177.wgsl.expected.wgsl index 40ebf3ccbf..b48e837304 100644 --- a/test/tint/builtins/gen/var/reverseBits/222177.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/reverseBits/222177.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn reverseBits_222177() { var res : vec2 = reverseBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_222177(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_222177(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_222177(); } diff --git a/test/tint/builtins/gen/var/reverseBits/35fea9.wgsl b/test/tint/builtins/gen/var/reverseBits/35fea9.wgsl index 93b2e48fe8..52f0ecd36c 100644 --- a/test/tint/builtins/gen/var/reverseBits/35fea9.wgsl +++ b/test/tint/builtins/gen/var/reverseBits/35fea9.wgsl @@ -29,18 +29,18 @@ fn reverseBits_35fea9() { var res: vec4 = reverseBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_35fea9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_35fea9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_35fea9(); } diff --git a/test/tint/builtins/gen/var/reverseBits/35fea9.wgsl.expected.wgsl b/test/tint/builtins/gen/var/reverseBits/35fea9.wgsl.expected.wgsl index b158c6899b..001c341212 100644 --- a/test/tint/builtins/gen/var/reverseBits/35fea9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/reverseBits/35fea9.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn reverseBits_35fea9() { var res : vec4 = reverseBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_35fea9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_35fea9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_35fea9(); } diff --git a/test/tint/builtins/gen/var/reverseBits/4dbd6f.wgsl b/test/tint/builtins/gen/var/reverseBits/4dbd6f.wgsl index 5ab35adb4a..180c3cbe4f 100644 --- a/test/tint/builtins/gen/var/reverseBits/4dbd6f.wgsl +++ b/test/tint/builtins/gen/var/reverseBits/4dbd6f.wgsl @@ -29,18 +29,18 @@ fn reverseBits_4dbd6f() { var res: vec4 = reverseBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_4dbd6f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_4dbd6f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_4dbd6f(); } diff --git a/test/tint/builtins/gen/var/reverseBits/4dbd6f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/reverseBits/4dbd6f.wgsl.expected.wgsl index fa97ef8794..3c0f6d8383 100644 --- a/test/tint/builtins/gen/var/reverseBits/4dbd6f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/reverseBits/4dbd6f.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn reverseBits_4dbd6f() { var res : vec4 = reverseBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_4dbd6f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_4dbd6f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_4dbd6f(); } diff --git a/test/tint/builtins/gen/var/reverseBits/7c4269.wgsl b/test/tint/builtins/gen/var/reverseBits/7c4269.wgsl index 9ea20f0a84..dbadffb4ae 100644 --- a/test/tint/builtins/gen/var/reverseBits/7c4269.wgsl +++ b/test/tint/builtins/gen/var/reverseBits/7c4269.wgsl @@ -29,18 +29,18 @@ fn reverseBits_7c4269() { var res: i32 = reverseBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_7c4269(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_7c4269(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_7c4269(); } diff --git a/test/tint/builtins/gen/var/reverseBits/7c4269.wgsl.expected.wgsl b/test/tint/builtins/gen/var/reverseBits/7c4269.wgsl.expected.wgsl index fdaa2644c7..d5c8ac15a4 100644 --- a/test/tint/builtins/gen/var/reverseBits/7c4269.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/reverseBits/7c4269.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn reverseBits_7c4269() { var res : i32 = reverseBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_7c4269(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_7c4269(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_7c4269(); } diff --git a/test/tint/builtins/gen/var/reverseBits/a6ccd4.wgsl b/test/tint/builtins/gen/var/reverseBits/a6ccd4.wgsl index 507b520bd2..6f3d2cbd85 100644 --- a/test/tint/builtins/gen/var/reverseBits/a6ccd4.wgsl +++ b/test/tint/builtins/gen/var/reverseBits/a6ccd4.wgsl @@ -29,18 +29,18 @@ fn reverseBits_a6ccd4() { var res: vec3 = reverseBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_a6ccd4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_a6ccd4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_a6ccd4(); } diff --git a/test/tint/builtins/gen/var/reverseBits/a6ccd4.wgsl.expected.wgsl b/test/tint/builtins/gen/var/reverseBits/a6ccd4.wgsl.expected.wgsl index 97f587933e..9dc94d0e80 100644 --- a/test/tint/builtins/gen/var/reverseBits/a6ccd4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/reverseBits/a6ccd4.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn reverseBits_a6ccd4() { var res : vec3 = reverseBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_a6ccd4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_a6ccd4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_a6ccd4(); } diff --git a/test/tint/builtins/gen/var/reverseBits/c21bc1.wgsl b/test/tint/builtins/gen/var/reverseBits/c21bc1.wgsl index 8f348e7e4e..13569e63f8 100644 --- a/test/tint/builtins/gen/var/reverseBits/c21bc1.wgsl +++ b/test/tint/builtins/gen/var/reverseBits/c21bc1.wgsl @@ -29,18 +29,18 @@ fn reverseBits_c21bc1() { var res: vec3 = reverseBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_c21bc1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_c21bc1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_c21bc1(); } diff --git a/test/tint/builtins/gen/var/reverseBits/c21bc1.wgsl.expected.wgsl b/test/tint/builtins/gen/var/reverseBits/c21bc1.wgsl.expected.wgsl index fe4a6c3120..7f102d63f7 100644 --- a/test/tint/builtins/gen/var/reverseBits/c21bc1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/reverseBits/c21bc1.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn reverseBits_c21bc1() { var res : vec3 = reverseBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_c21bc1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_c21bc1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_c21bc1(); } diff --git a/test/tint/builtins/gen/var/reverseBits/e1f4c1.wgsl b/test/tint/builtins/gen/var/reverseBits/e1f4c1.wgsl index 53904080ff..52ad2b8422 100644 --- a/test/tint/builtins/gen/var/reverseBits/e1f4c1.wgsl +++ b/test/tint/builtins/gen/var/reverseBits/e1f4c1.wgsl @@ -29,18 +29,18 @@ fn reverseBits_e1f4c1() { var res: vec2 = reverseBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_e1f4c1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_e1f4c1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_e1f4c1(); } diff --git a/test/tint/builtins/gen/var/reverseBits/e1f4c1.wgsl.expected.wgsl b/test/tint/builtins/gen/var/reverseBits/e1f4c1.wgsl.expected.wgsl index c04788b142..e0e0fc2403 100644 --- a/test/tint/builtins/gen/var/reverseBits/e1f4c1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/reverseBits/e1f4c1.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn reverseBits_e1f4c1() { var res : vec2 = reverseBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_e1f4c1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_e1f4c1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_e1f4c1(); } diff --git a/test/tint/builtins/gen/var/reverseBits/e31adf.wgsl b/test/tint/builtins/gen/var/reverseBits/e31adf.wgsl index e72facbef0..f799199a2d 100644 --- a/test/tint/builtins/gen/var/reverseBits/e31adf.wgsl +++ b/test/tint/builtins/gen/var/reverseBits/e31adf.wgsl @@ -29,18 +29,18 @@ fn reverseBits_e31adf() { var res: u32 = reverseBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_e31adf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_e31adf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_e31adf(); } diff --git a/test/tint/builtins/gen/var/reverseBits/e31adf.wgsl.expected.wgsl b/test/tint/builtins/gen/var/reverseBits/e31adf.wgsl.expected.wgsl index 9d1053684a..74890314d9 100644 --- a/test/tint/builtins/gen/var/reverseBits/e31adf.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/reverseBits/e31adf.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn reverseBits_e31adf() { var res : u32 = reverseBits(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { reverseBits_e31adf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { reverseBits_e31adf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { reverseBits_e31adf(); } diff --git a/test/tint/builtins/gen/var/round/106c0b.wgsl b/test/tint/builtins/gen/var/round/106c0b.wgsl index 7be10c2e4b..cbc3c57d93 100644 --- a/test/tint/builtins/gen/var/round/106c0b.wgsl +++ b/test/tint/builtins/gen/var/round/106c0b.wgsl @@ -29,18 +29,18 @@ fn round_106c0b() { var res: vec4 = round(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { round_106c0b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { round_106c0b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { round_106c0b(); } diff --git a/test/tint/builtins/gen/var/round/106c0b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/round/106c0b.wgsl.expected.wgsl index a21172045d..8aa4fc6910 100644 --- a/test/tint/builtins/gen/var/round/106c0b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/round/106c0b.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn round_106c0b() { var res : vec4 = round(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { round_106c0b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { round_106c0b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { round_106c0b(); } diff --git a/test/tint/builtins/gen/var/round/1c7897.wgsl b/test/tint/builtins/gen/var/round/1c7897.wgsl index 02bb2d6923..1edba984b3 100644 --- a/test/tint/builtins/gen/var/round/1c7897.wgsl +++ b/test/tint/builtins/gen/var/round/1c7897.wgsl @@ -29,18 +29,18 @@ fn round_1c7897() { var res: vec3 = round(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { round_1c7897(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { round_1c7897(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { round_1c7897(); } diff --git a/test/tint/builtins/gen/var/round/1c7897.wgsl.expected.wgsl b/test/tint/builtins/gen/var/round/1c7897.wgsl.expected.wgsl index 07ae079dc8..154e42cf23 100644 --- a/test/tint/builtins/gen/var/round/1c7897.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/round/1c7897.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn round_1c7897() { var res : vec3 = round(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { round_1c7897(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { round_1c7897(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { round_1c7897(); } diff --git a/test/tint/builtins/gen/var/round/52c84d.wgsl b/test/tint/builtins/gen/var/round/52c84d.wgsl index 49ecbee0b9..e71edecbe0 100644 --- a/test/tint/builtins/gen/var/round/52c84d.wgsl +++ b/test/tint/builtins/gen/var/round/52c84d.wgsl @@ -29,18 +29,18 @@ fn round_52c84d() { var res: vec2 = round(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { round_52c84d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { round_52c84d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { round_52c84d(); } diff --git a/test/tint/builtins/gen/var/round/52c84d.wgsl.expected.wgsl b/test/tint/builtins/gen/var/round/52c84d.wgsl.expected.wgsl index b92ade61f4..ce72ed6fa3 100644 --- a/test/tint/builtins/gen/var/round/52c84d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/round/52c84d.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn round_52c84d() { var res : vec2 = round(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { round_52c84d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { round_52c84d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { round_52c84d(); } diff --git a/test/tint/builtins/gen/var/round/9edc38.wgsl b/test/tint/builtins/gen/var/round/9edc38.wgsl index 1c7f2e0de7..ac5e283c66 100644 --- a/test/tint/builtins/gen/var/round/9edc38.wgsl +++ b/test/tint/builtins/gen/var/round/9edc38.wgsl @@ -29,18 +29,18 @@ fn round_9edc38() { var res: f32 = round(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { round_9edc38(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { round_9edc38(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { round_9edc38(); } diff --git a/test/tint/builtins/gen/var/round/9edc38.wgsl.expected.wgsl b/test/tint/builtins/gen/var/round/9edc38.wgsl.expected.wgsl index b4d0e0164b..a34918b8a2 100644 --- a/test/tint/builtins/gen/var/round/9edc38.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/round/9edc38.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn round_9edc38() { var res : f32 = round(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { round_9edc38(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { round_9edc38(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { round_9edc38(); } diff --git a/test/tint/builtins/gen/var/select/00b848.wgsl b/test/tint/builtins/gen/var/select/00b848.wgsl index a6fbecbafa..3343d2dd2e 100644 --- a/test/tint/builtins/gen/var/select/00b848.wgsl +++ b/test/tint/builtins/gen/var/select/00b848.wgsl @@ -31,18 +31,18 @@ fn select_00b848() { var res: vec2 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_00b848(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_00b848(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_00b848(); } diff --git a/test/tint/builtins/gen/var/select/00b848.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/00b848.wgsl.expected.wgsl index f23e5002d3..b2996a32b1 100644 --- a/test/tint/builtins/gen/var/select/00b848.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/00b848.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_00b848() { var res : vec2 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_00b848(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_00b848(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_00b848(); } diff --git a/test/tint/builtins/gen/var/select/01e2cd.wgsl b/test/tint/builtins/gen/var/select/01e2cd.wgsl index e33b451811..1a63dcf9ab 100644 --- a/test/tint/builtins/gen/var/select/01e2cd.wgsl +++ b/test/tint/builtins/gen/var/select/01e2cd.wgsl @@ -31,18 +31,18 @@ fn select_01e2cd() { var res: vec3 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_01e2cd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_01e2cd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_01e2cd(); } diff --git a/test/tint/builtins/gen/var/select/01e2cd.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/01e2cd.wgsl.expected.wgsl index 9e110daf95..b12ad1b970 100644 --- a/test/tint/builtins/gen/var/select/01e2cd.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/01e2cd.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_01e2cd() { var res : vec3 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_01e2cd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_01e2cd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_01e2cd(); } diff --git a/test/tint/builtins/gen/var/select/087ea4.wgsl b/test/tint/builtins/gen/var/select/087ea4.wgsl index a3c3dd7f93..77ce636a70 100644 --- a/test/tint/builtins/gen/var/select/087ea4.wgsl +++ b/test/tint/builtins/gen/var/select/087ea4.wgsl @@ -31,18 +31,18 @@ fn select_087ea4() { var res: vec4 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_087ea4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_087ea4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_087ea4(); } diff --git a/test/tint/builtins/gen/var/select/087ea4.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/087ea4.wgsl.expected.wgsl index c868bbfa9d..6ebe328a16 100644 --- a/test/tint/builtins/gen/var/select/087ea4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/087ea4.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_087ea4() { var res : vec4 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_087ea4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_087ea4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_087ea4(); } diff --git a/test/tint/builtins/gen/var/select/1e960b.wgsl b/test/tint/builtins/gen/var/select/1e960b.wgsl index 9f66b8548d..d03d66b59a 100644 --- a/test/tint/builtins/gen/var/select/1e960b.wgsl +++ b/test/tint/builtins/gen/var/select/1e960b.wgsl @@ -31,18 +31,18 @@ fn select_1e960b() { var res: vec2 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_1e960b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_1e960b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_1e960b(); } diff --git a/test/tint/builtins/gen/var/select/1e960b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/1e960b.wgsl.expected.wgsl index 74b9532c8f..965431e39b 100644 --- a/test/tint/builtins/gen/var/select/1e960b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/1e960b.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_1e960b() { var res : vec2 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_1e960b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_1e960b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_1e960b(); } diff --git a/test/tint/builtins/gen/var/select/266aff.wgsl b/test/tint/builtins/gen/var/select/266aff.wgsl index 7630dfbd77..586e332ced 100644 --- a/test/tint/builtins/gen/var/select/266aff.wgsl +++ b/test/tint/builtins/gen/var/select/266aff.wgsl @@ -31,18 +31,18 @@ fn select_266aff() { var res: vec2 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_266aff(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_266aff(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_266aff(); } diff --git a/test/tint/builtins/gen/var/select/266aff.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/266aff.wgsl.expected.wgsl index 0236878d08..41aedd4688 100644 --- a/test/tint/builtins/gen/var/select/266aff.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/266aff.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_266aff() { var res : vec2 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_266aff(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_266aff(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_266aff(); } diff --git a/test/tint/builtins/gen/var/select/28a27e.wgsl b/test/tint/builtins/gen/var/select/28a27e.wgsl index f9ae32bca5..96d116d28c 100644 --- a/test/tint/builtins/gen/var/select/28a27e.wgsl +++ b/test/tint/builtins/gen/var/select/28a27e.wgsl @@ -31,18 +31,18 @@ fn select_28a27e() { var res: vec3 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_28a27e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_28a27e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_28a27e(); } diff --git a/test/tint/builtins/gen/var/select/28a27e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/28a27e.wgsl.expected.wgsl index 2aa730bbe6..be10bf87b2 100644 --- a/test/tint/builtins/gen/var/select/28a27e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/28a27e.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_28a27e() { var res : vec3 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_28a27e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_28a27e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_28a27e(); } diff --git a/test/tint/builtins/gen/var/select/3c25ce.wgsl b/test/tint/builtins/gen/var/select/3c25ce.wgsl index 913cb41234..dba9560a3c 100644 --- a/test/tint/builtins/gen/var/select/3c25ce.wgsl +++ b/test/tint/builtins/gen/var/select/3c25ce.wgsl @@ -31,18 +31,18 @@ fn select_3c25ce() { var res: vec3 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_3c25ce(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_3c25ce(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_3c25ce(); } diff --git a/test/tint/builtins/gen/var/select/3c25ce.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/3c25ce.wgsl.expected.wgsl index 396fac01fc..826c33c559 100644 --- a/test/tint/builtins/gen/var/select/3c25ce.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/3c25ce.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_3c25ce() { var res : vec3 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_3c25ce(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_3c25ce(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_3c25ce(); } diff --git a/test/tint/builtins/gen/var/select/416e14.wgsl b/test/tint/builtins/gen/var/select/416e14.wgsl index 9e9c75909f..8c31750d83 100644 --- a/test/tint/builtins/gen/var/select/416e14.wgsl +++ b/test/tint/builtins/gen/var/select/416e14.wgsl @@ -31,18 +31,18 @@ fn select_416e14() { var res: f32 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_416e14(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_416e14(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_416e14(); } diff --git a/test/tint/builtins/gen/var/select/416e14.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/416e14.wgsl.expected.wgsl index d35a4c248a..52fda76d80 100644 --- a/test/tint/builtins/gen/var/select/416e14.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/416e14.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_416e14() { var res : f32 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_416e14(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_416e14(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_416e14(); } diff --git a/test/tint/builtins/gen/var/select/51b047.wgsl b/test/tint/builtins/gen/var/select/51b047.wgsl index aca27281a9..f04a2518d6 100644 --- a/test/tint/builtins/gen/var/select/51b047.wgsl +++ b/test/tint/builtins/gen/var/select/51b047.wgsl @@ -31,18 +31,18 @@ fn select_51b047() { var res: vec2 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_51b047(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_51b047(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_51b047(); } diff --git a/test/tint/builtins/gen/var/select/51b047.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/51b047.wgsl.expected.wgsl index dd440a89d5..54400b4382 100644 --- a/test/tint/builtins/gen/var/select/51b047.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/51b047.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_51b047() { var res : vec2 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_51b047(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_51b047(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_51b047(); } diff --git a/test/tint/builtins/gen/var/select/713567.wgsl b/test/tint/builtins/gen/var/select/713567.wgsl index f638664afc..4f8d50fcb4 100644 --- a/test/tint/builtins/gen/var/select/713567.wgsl +++ b/test/tint/builtins/gen/var/select/713567.wgsl @@ -31,18 +31,18 @@ fn select_713567() { var res: vec4 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_713567(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_713567(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_713567(); } diff --git a/test/tint/builtins/gen/var/select/713567.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/713567.wgsl.expected.wgsl index 1bc9fb6a58..e201d4cfa3 100644 --- a/test/tint/builtins/gen/var/select/713567.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/713567.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_713567() { var res : vec4 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_713567(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_713567(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_713567(); } diff --git a/test/tint/builtins/gen/var/select/78be5f.wgsl b/test/tint/builtins/gen/var/select/78be5f.wgsl index 427d23e3a8..a45c8dd010 100644 --- a/test/tint/builtins/gen/var/select/78be5f.wgsl +++ b/test/tint/builtins/gen/var/select/78be5f.wgsl @@ -31,18 +31,18 @@ fn select_78be5f() { var res: vec3 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_78be5f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_78be5f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_78be5f(); } diff --git a/test/tint/builtins/gen/var/select/78be5f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/78be5f.wgsl.expected.wgsl index 71f76b0749..e7f0a3bece 100644 --- a/test/tint/builtins/gen/var/select/78be5f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/78be5f.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_78be5f() { var res : vec3 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_78be5f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_78be5f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_78be5f(); } diff --git a/test/tint/builtins/gen/var/select/80a9a9.wgsl b/test/tint/builtins/gen/var/select/80a9a9.wgsl index cffeddc4b0..b2d1345e16 100644 --- a/test/tint/builtins/gen/var/select/80a9a9.wgsl +++ b/test/tint/builtins/gen/var/select/80a9a9.wgsl @@ -31,18 +31,18 @@ fn select_80a9a9() { var res: vec3 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_80a9a9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_80a9a9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_80a9a9(); } diff --git a/test/tint/builtins/gen/var/select/80a9a9.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/80a9a9.wgsl.expected.wgsl index a49c335443..d11594c9ba 100644 --- a/test/tint/builtins/gen/var/select/80a9a9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/80a9a9.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_80a9a9() { var res : vec3 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_80a9a9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_80a9a9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_80a9a9(); } diff --git a/test/tint/builtins/gen/var/select/8fa62c.wgsl b/test/tint/builtins/gen/var/select/8fa62c.wgsl index c222014b6f..963d4227e1 100644 --- a/test/tint/builtins/gen/var/select/8fa62c.wgsl +++ b/test/tint/builtins/gen/var/select/8fa62c.wgsl @@ -31,18 +31,18 @@ fn select_8fa62c() { var res: vec3 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_8fa62c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_8fa62c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_8fa62c(); } diff --git a/test/tint/builtins/gen/var/select/8fa62c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/8fa62c.wgsl.expected.wgsl index 3cd2a56ded..fbd6f2e863 100644 --- a/test/tint/builtins/gen/var/select/8fa62c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/8fa62c.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_8fa62c() { var res : vec3 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_8fa62c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_8fa62c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_8fa62c(); } diff --git a/test/tint/builtins/gen/var/select/99f883.wgsl b/test/tint/builtins/gen/var/select/99f883.wgsl index 8b8549d650..a1f0a3831a 100644 --- a/test/tint/builtins/gen/var/select/99f883.wgsl +++ b/test/tint/builtins/gen/var/select/99f883.wgsl @@ -31,18 +31,18 @@ fn select_99f883() { var res: u32 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_99f883(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_99f883(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_99f883(); } diff --git a/test/tint/builtins/gen/var/select/99f883.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/99f883.wgsl.expected.wgsl index c92d6c3243..4f6a8a161f 100644 --- a/test/tint/builtins/gen/var/select/99f883.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/99f883.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_99f883() { var res : u32 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_99f883(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_99f883(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_99f883(); } diff --git a/test/tint/builtins/gen/var/select/a2860e.wgsl b/test/tint/builtins/gen/var/select/a2860e.wgsl index 18b2545c62..525e7724e9 100644 --- a/test/tint/builtins/gen/var/select/a2860e.wgsl +++ b/test/tint/builtins/gen/var/select/a2860e.wgsl @@ -31,18 +31,18 @@ fn select_a2860e() { var res: vec4 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_a2860e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_a2860e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_a2860e(); } diff --git a/test/tint/builtins/gen/var/select/a2860e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/a2860e.wgsl.expected.wgsl index c665d80ac9..45ee0c2dcb 100644 --- a/test/tint/builtins/gen/var/select/a2860e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/a2860e.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_a2860e() { var res : vec4 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_a2860e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_a2860e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_a2860e(); } diff --git a/test/tint/builtins/gen/var/select/ab069f.wgsl b/test/tint/builtins/gen/var/select/ab069f.wgsl index 0defb643df..8749b672e3 100644 --- a/test/tint/builtins/gen/var/select/ab069f.wgsl +++ b/test/tint/builtins/gen/var/select/ab069f.wgsl @@ -31,18 +31,18 @@ fn select_ab069f() { var res: vec4 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_ab069f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_ab069f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_ab069f(); } diff --git a/test/tint/builtins/gen/var/select/ab069f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/ab069f.wgsl.expected.wgsl index c3c395f88c..39cc2ef710 100644 --- a/test/tint/builtins/gen/var/select/ab069f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/ab069f.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_ab069f() { var res : vec4 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_ab069f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_ab069f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_ab069f(); } diff --git a/test/tint/builtins/gen/var/select/b04721.wgsl b/test/tint/builtins/gen/var/select/b04721.wgsl index 21b2378ac6..8acf598c3f 100644 --- a/test/tint/builtins/gen/var/select/b04721.wgsl +++ b/test/tint/builtins/gen/var/select/b04721.wgsl @@ -31,18 +31,18 @@ fn select_b04721() { var res: vec3 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_b04721(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_b04721(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_b04721(); } diff --git a/test/tint/builtins/gen/var/select/b04721.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/b04721.wgsl.expected.wgsl index 5f57eca150..a7779ac447 100644 --- a/test/tint/builtins/gen/var/select/b04721.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/b04721.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_b04721() { var res : vec3 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_b04721(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_b04721(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_b04721(); } diff --git a/test/tint/builtins/gen/var/select/bb447f.wgsl b/test/tint/builtins/gen/var/select/bb447f.wgsl index 0a966ab114..5e36c81484 100644 --- a/test/tint/builtins/gen/var/select/bb447f.wgsl +++ b/test/tint/builtins/gen/var/select/bb447f.wgsl @@ -31,18 +31,18 @@ fn select_bb447f() { var res: vec2 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_bb447f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_bb447f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_bb447f(); } diff --git a/test/tint/builtins/gen/var/select/bb447f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/bb447f.wgsl.expected.wgsl index 78571c14b8..4bb3be7eb9 100644 --- a/test/tint/builtins/gen/var/select/bb447f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/bb447f.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_bb447f() { var res : vec2 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_bb447f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_bb447f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_bb447f(); } diff --git a/test/tint/builtins/gen/var/select/bb8aae.wgsl b/test/tint/builtins/gen/var/select/bb8aae.wgsl index ca9c182e5f..c18509cba2 100644 --- a/test/tint/builtins/gen/var/select/bb8aae.wgsl +++ b/test/tint/builtins/gen/var/select/bb8aae.wgsl @@ -31,18 +31,18 @@ fn select_bb8aae() { var res: vec4 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_bb8aae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_bb8aae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_bb8aae(); } diff --git a/test/tint/builtins/gen/var/select/bb8aae.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/bb8aae.wgsl.expected.wgsl index 0ee6a28db6..17d904daff 100644 --- a/test/tint/builtins/gen/var/select/bb8aae.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/bb8aae.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_bb8aae() { var res : vec4 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_bb8aae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_bb8aae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_bb8aae(); } diff --git a/test/tint/builtins/gen/var/select/bf3d29.wgsl b/test/tint/builtins/gen/var/select/bf3d29.wgsl index d778c46a45..fd33a8e4bb 100644 --- a/test/tint/builtins/gen/var/select/bf3d29.wgsl +++ b/test/tint/builtins/gen/var/select/bf3d29.wgsl @@ -31,18 +31,18 @@ fn select_bf3d29() { var res: vec2 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_bf3d29(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_bf3d29(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_bf3d29(); } diff --git a/test/tint/builtins/gen/var/select/bf3d29.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/bf3d29.wgsl.expected.wgsl index e058445484..5cbeae7d72 100644 --- a/test/tint/builtins/gen/var/select/bf3d29.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/bf3d29.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_bf3d29() { var res : vec2 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_bf3d29(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_bf3d29(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_bf3d29(); } diff --git a/test/tint/builtins/gen/var/select/c31f9e.wgsl b/test/tint/builtins/gen/var/select/c31f9e.wgsl index 555869bbcc..999888ee4b 100644 --- a/test/tint/builtins/gen/var/select/c31f9e.wgsl +++ b/test/tint/builtins/gen/var/select/c31f9e.wgsl @@ -31,18 +31,18 @@ fn select_c31f9e() { var res: bool = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_c31f9e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_c31f9e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_c31f9e(); } diff --git a/test/tint/builtins/gen/var/select/c31f9e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/c31f9e.wgsl.expected.wgsl index 1e577466e7..785cf8d129 100644 --- a/test/tint/builtins/gen/var/select/c31f9e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/c31f9e.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_c31f9e() { var res : bool = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_c31f9e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_c31f9e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_c31f9e(); } diff --git a/test/tint/builtins/gen/var/select/c41bd1.wgsl b/test/tint/builtins/gen/var/select/c41bd1.wgsl index 64817eb545..42550cb690 100644 --- a/test/tint/builtins/gen/var/select/c41bd1.wgsl +++ b/test/tint/builtins/gen/var/select/c41bd1.wgsl @@ -31,18 +31,18 @@ fn select_c41bd1() { var res: vec4 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_c41bd1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_c41bd1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_c41bd1(); } diff --git a/test/tint/builtins/gen/var/select/c41bd1.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/c41bd1.wgsl.expected.wgsl index 68857ad866..bdf0644a40 100644 --- a/test/tint/builtins/gen/var/select/c41bd1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/c41bd1.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_c41bd1() { var res : vec4 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_c41bd1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_c41bd1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_c41bd1(); } diff --git a/test/tint/builtins/gen/var/select/c4a4ef.wgsl b/test/tint/builtins/gen/var/select/c4a4ef.wgsl index a81e6dfc1a..f21d6cae9a 100644 --- a/test/tint/builtins/gen/var/select/c4a4ef.wgsl +++ b/test/tint/builtins/gen/var/select/c4a4ef.wgsl @@ -31,18 +31,18 @@ fn select_c4a4ef() { var res: vec4 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_c4a4ef(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_c4a4ef(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_c4a4ef(); } diff --git a/test/tint/builtins/gen/var/select/c4a4ef.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/c4a4ef.wgsl.expected.wgsl index 843cfc4026..73011bc9ad 100644 --- a/test/tint/builtins/gen/var/select/c4a4ef.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/c4a4ef.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_c4a4ef() { var res : vec4 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_c4a4ef(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_c4a4ef(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_c4a4ef(); } diff --git a/test/tint/builtins/gen/var/select/cb9301.wgsl b/test/tint/builtins/gen/var/select/cb9301.wgsl index 0adf8d72c6..c7bfb5433c 100644 --- a/test/tint/builtins/gen/var/select/cb9301.wgsl +++ b/test/tint/builtins/gen/var/select/cb9301.wgsl @@ -31,18 +31,18 @@ fn select_cb9301() { var res: vec2 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_cb9301(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_cb9301(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_cb9301(); } diff --git a/test/tint/builtins/gen/var/select/cb9301.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/cb9301.wgsl.expected.wgsl index aa7f2a3ad8..ea47bdf86c 100644 --- a/test/tint/builtins/gen/var/select/cb9301.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/cb9301.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_cb9301() { var res : vec2 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_cb9301(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_cb9301(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_cb9301(); } diff --git a/test/tint/builtins/gen/var/select/e3e028.wgsl b/test/tint/builtins/gen/var/select/e3e028.wgsl index f0ed31ac3b..49f534ed62 100644 --- a/test/tint/builtins/gen/var/select/e3e028.wgsl +++ b/test/tint/builtins/gen/var/select/e3e028.wgsl @@ -31,18 +31,18 @@ fn select_e3e028() { var res: vec4 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_e3e028(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_e3e028(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_e3e028(); } diff --git a/test/tint/builtins/gen/var/select/e3e028.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/e3e028.wgsl.expected.wgsl index fa2243ab8b..f7aa2787ea 100644 --- a/test/tint/builtins/gen/var/select/e3e028.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/e3e028.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_e3e028() { var res : vec4 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_e3e028(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_e3e028(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_e3e028(); } diff --git a/test/tint/builtins/gen/var/select/ebfea2.wgsl b/test/tint/builtins/gen/var/select/ebfea2.wgsl index 8ca2585716..5af3aa5ed8 100644 --- a/test/tint/builtins/gen/var/select/ebfea2.wgsl +++ b/test/tint/builtins/gen/var/select/ebfea2.wgsl @@ -31,18 +31,18 @@ fn select_ebfea2() { var res: vec3 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_ebfea2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_ebfea2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_ebfea2(); } diff --git a/test/tint/builtins/gen/var/select/ebfea2.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/ebfea2.wgsl.expected.wgsl index e6ab17b86c..5c5fef58ed 100644 --- a/test/tint/builtins/gen/var/select/ebfea2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/ebfea2.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_ebfea2() { var res : vec3 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_ebfea2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_ebfea2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_ebfea2(); } diff --git a/test/tint/builtins/gen/var/select/ed8a15.wgsl b/test/tint/builtins/gen/var/select/ed8a15.wgsl index 450eac3817..49aae0ac17 100644 --- a/test/tint/builtins/gen/var/select/ed8a15.wgsl +++ b/test/tint/builtins/gen/var/select/ed8a15.wgsl @@ -31,18 +31,18 @@ fn select_ed8a15() { var res: i32 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_ed8a15(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_ed8a15(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_ed8a15(); } diff --git a/test/tint/builtins/gen/var/select/ed8a15.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/ed8a15.wgsl.expected.wgsl index 7f1c4d1ab8..65bbb9833a 100644 --- a/test/tint/builtins/gen/var/select/ed8a15.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/ed8a15.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_ed8a15() { var res : i32 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_ed8a15(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_ed8a15(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_ed8a15(); } diff --git a/test/tint/builtins/gen/var/select/fb7e53.wgsl b/test/tint/builtins/gen/var/select/fb7e53.wgsl index 14fc5b3656..ee4dd96464 100644 --- a/test/tint/builtins/gen/var/select/fb7e53.wgsl +++ b/test/tint/builtins/gen/var/select/fb7e53.wgsl @@ -31,18 +31,18 @@ fn select_fb7e53() { var res: vec2 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_fb7e53(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_fb7e53(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_fb7e53(); } diff --git a/test/tint/builtins/gen/var/select/fb7e53.wgsl.expected.wgsl b/test/tint/builtins/gen/var/select/fb7e53.wgsl.expected.wgsl index 125fabfe2b..f7f0b1893f 100644 --- a/test/tint/builtins/gen/var/select/fb7e53.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/select/fb7e53.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn select_fb7e53() { var res : vec2 = select(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { select_fb7e53(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { select_fb7e53(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { select_fb7e53(); } diff --git a/test/tint/builtins/gen/var/sign/159665.wgsl b/test/tint/builtins/gen/var/sign/159665.wgsl index 9b02104884..ab8e3d8662 100644 --- a/test/tint/builtins/gen/var/sign/159665.wgsl +++ b/test/tint/builtins/gen/var/sign/159665.wgsl @@ -29,18 +29,18 @@ fn sign_159665() { var res: vec3 = sign(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sign_159665(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sign_159665(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sign_159665(); } diff --git a/test/tint/builtins/gen/var/sign/159665.wgsl.expected.wgsl b/test/tint/builtins/gen/var/sign/159665.wgsl.expected.wgsl index 139cee0ce3..60bd474843 100644 --- a/test/tint/builtins/gen/var/sign/159665.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/sign/159665.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn sign_159665() { var res : vec3 = sign(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sign_159665(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sign_159665(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sign_159665(); } diff --git a/test/tint/builtins/gen/var/sign/b8f634.wgsl b/test/tint/builtins/gen/var/sign/b8f634.wgsl index f4473c64c5..c9d7756d16 100644 --- a/test/tint/builtins/gen/var/sign/b8f634.wgsl +++ b/test/tint/builtins/gen/var/sign/b8f634.wgsl @@ -29,18 +29,18 @@ fn sign_b8f634() { var res: vec4 = sign(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sign_b8f634(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sign_b8f634(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sign_b8f634(); } diff --git a/test/tint/builtins/gen/var/sign/b8f634.wgsl.expected.wgsl b/test/tint/builtins/gen/var/sign/b8f634.wgsl.expected.wgsl index cd37c6cf35..54508497b9 100644 --- a/test/tint/builtins/gen/var/sign/b8f634.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/sign/b8f634.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn sign_b8f634() { var res : vec4 = sign(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sign_b8f634(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sign_b8f634(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sign_b8f634(); } diff --git a/test/tint/builtins/gen/var/sign/d065d8.wgsl b/test/tint/builtins/gen/var/sign/d065d8.wgsl index ad538d3279..d38af2ff7e 100644 --- a/test/tint/builtins/gen/var/sign/d065d8.wgsl +++ b/test/tint/builtins/gen/var/sign/d065d8.wgsl @@ -29,18 +29,18 @@ fn sign_d065d8() { var res: vec2 = sign(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sign_d065d8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sign_d065d8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sign_d065d8(); } diff --git a/test/tint/builtins/gen/var/sign/d065d8.wgsl.expected.wgsl b/test/tint/builtins/gen/var/sign/d065d8.wgsl.expected.wgsl index 9b3d127361..685db1e59b 100644 --- a/test/tint/builtins/gen/var/sign/d065d8.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/sign/d065d8.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn sign_d065d8() { var res : vec2 = sign(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sign_d065d8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sign_d065d8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sign_d065d8(); } diff --git a/test/tint/builtins/gen/var/sign/dd790e.wgsl b/test/tint/builtins/gen/var/sign/dd790e.wgsl index f381540c60..bb2c9cfd10 100644 --- a/test/tint/builtins/gen/var/sign/dd790e.wgsl +++ b/test/tint/builtins/gen/var/sign/dd790e.wgsl @@ -29,18 +29,18 @@ fn sign_dd790e() { var res: f32 = sign(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sign_dd790e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sign_dd790e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sign_dd790e(); } diff --git a/test/tint/builtins/gen/var/sign/dd790e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/sign/dd790e.wgsl.expected.wgsl index b6b8bb21f5..ab2beee34b 100644 --- a/test/tint/builtins/gen/var/sign/dd790e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/sign/dd790e.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn sign_dd790e() { var res : f32 = sign(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sign_dd790e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sign_dd790e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sign_dd790e(); } diff --git a/test/tint/builtins/gen/var/sin/01f241.wgsl b/test/tint/builtins/gen/var/sin/01f241.wgsl index 533a83a471..807d5ba4cc 100644 --- a/test/tint/builtins/gen/var/sin/01f241.wgsl +++ b/test/tint/builtins/gen/var/sin/01f241.wgsl @@ -29,18 +29,18 @@ fn sin_01f241() { var res: vec3 = sin(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sin_01f241(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sin_01f241(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sin_01f241(); } diff --git a/test/tint/builtins/gen/var/sin/01f241.wgsl.expected.wgsl b/test/tint/builtins/gen/var/sin/01f241.wgsl.expected.wgsl index dac1cf6e79..e75c9e4d27 100644 --- a/test/tint/builtins/gen/var/sin/01f241.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/sin/01f241.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn sin_01f241() { var res : vec3 = sin(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sin_01f241(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sin_01f241(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sin_01f241(); } diff --git a/test/tint/builtins/gen/var/sin/4e3979.wgsl b/test/tint/builtins/gen/var/sin/4e3979.wgsl index 5ae4b3db28..6622071e65 100644 --- a/test/tint/builtins/gen/var/sin/4e3979.wgsl +++ b/test/tint/builtins/gen/var/sin/4e3979.wgsl @@ -29,18 +29,18 @@ fn sin_4e3979() { var res: vec4 = sin(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sin_4e3979(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sin_4e3979(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sin_4e3979(); } diff --git a/test/tint/builtins/gen/var/sin/4e3979.wgsl.expected.wgsl b/test/tint/builtins/gen/var/sin/4e3979.wgsl.expected.wgsl index b588d0e1be..829c920440 100644 --- a/test/tint/builtins/gen/var/sin/4e3979.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/sin/4e3979.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn sin_4e3979() { var res : vec4 = sin(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sin_4e3979(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sin_4e3979(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sin_4e3979(); } diff --git a/test/tint/builtins/gen/var/sin/b78c91.wgsl b/test/tint/builtins/gen/var/sin/b78c91.wgsl index 23a08d5a38..318b7e6273 100644 --- a/test/tint/builtins/gen/var/sin/b78c91.wgsl +++ b/test/tint/builtins/gen/var/sin/b78c91.wgsl @@ -29,18 +29,18 @@ fn sin_b78c91() { var res: f32 = sin(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sin_b78c91(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sin_b78c91(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sin_b78c91(); } diff --git a/test/tint/builtins/gen/var/sin/b78c91.wgsl.expected.wgsl b/test/tint/builtins/gen/var/sin/b78c91.wgsl.expected.wgsl index b736ea8a06..9c031bc376 100644 --- a/test/tint/builtins/gen/var/sin/b78c91.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/sin/b78c91.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn sin_b78c91() { var res : f32 = sin(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sin_b78c91(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sin_b78c91(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sin_b78c91(); } diff --git a/test/tint/builtins/gen/var/sin/fc8bc4.wgsl b/test/tint/builtins/gen/var/sin/fc8bc4.wgsl index 66ad20ac8d..139591c94a 100644 --- a/test/tint/builtins/gen/var/sin/fc8bc4.wgsl +++ b/test/tint/builtins/gen/var/sin/fc8bc4.wgsl @@ -29,18 +29,18 @@ fn sin_fc8bc4() { var res: vec2 = sin(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sin_fc8bc4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sin_fc8bc4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sin_fc8bc4(); } diff --git a/test/tint/builtins/gen/var/sin/fc8bc4.wgsl.expected.wgsl b/test/tint/builtins/gen/var/sin/fc8bc4.wgsl.expected.wgsl index 0168f26375..a0328019f4 100644 --- a/test/tint/builtins/gen/var/sin/fc8bc4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/sin/fc8bc4.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn sin_fc8bc4() { var res : vec2 = sin(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sin_fc8bc4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sin_fc8bc4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sin_fc8bc4(); } diff --git a/test/tint/builtins/gen/var/sinh/445e33.wgsl b/test/tint/builtins/gen/var/sinh/445e33.wgsl index aedfe3b60b..479f81dad7 100644 --- a/test/tint/builtins/gen/var/sinh/445e33.wgsl +++ b/test/tint/builtins/gen/var/sinh/445e33.wgsl @@ -29,18 +29,18 @@ fn sinh_445e33() { var res: vec4 = sinh(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sinh_445e33(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sinh_445e33(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sinh_445e33(); } diff --git a/test/tint/builtins/gen/var/sinh/445e33.wgsl.expected.wgsl b/test/tint/builtins/gen/var/sinh/445e33.wgsl.expected.wgsl index 5b1e2a603c..2d59ce51bc 100644 --- a/test/tint/builtins/gen/var/sinh/445e33.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/sinh/445e33.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn sinh_445e33() { var res : vec4 = sinh(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sinh_445e33(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sinh_445e33(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sinh_445e33(); } diff --git a/test/tint/builtins/gen/var/sinh/7bb598.wgsl b/test/tint/builtins/gen/var/sinh/7bb598.wgsl index 0075c04fb9..90614967e8 100644 --- a/test/tint/builtins/gen/var/sinh/7bb598.wgsl +++ b/test/tint/builtins/gen/var/sinh/7bb598.wgsl @@ -29,18 +29,18 @@ fn sinh_7bb598() { var res: f32 = sinh(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sinh_7bb598(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sinh_7bb598(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sinh_7bb598(); } diff --git a/test/tint/builtins/gen/var/sinh/7bb598.wgsl.expected.wgsl b/test/tint/builtins/gen/var/sinh/7bb598.wgsl.expected.wgsl index 1d5be8c19f..45a656ce8c 100644 --- a/test/tint/builtins/gen/var/sinh/7bb598.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/sinh/7bb598.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn sinh_7bb598() { var res : f32 = sinh(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sinh_7bb598(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sinh_7bb598(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sinh_7bb598(); } diff --git a/test/tint/builtins/gen/var/sinh/b9860e.wgsl b/test/tint/builtins/gen/var/sinh/b9860e.wgsl index 530c4231b2..d01d522e3e 100644 --- a/test/tint/builtins/gen/var/sinh/b9860e.wgsl +++ b/test/tint/builtins/gen/var/sinh/b9860e.wgsl @@ -29,18 +29,18 @@ fn sinh_b9860e() { var res: vec2 = sinh(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sinh_b9860e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sinh_b9860e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sinh_b9860e(); } diff --git a/test/tint/builtins/gen/var/sinh/b9860e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/sinh/b9860e.wgsl.expected.wgsl index d1153b7e81..d7b13b82cb 100644 --- a/test/tint/builtins/gen/var/sinh/b9860e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/sinh/b9860e.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn sinh_b9860e() { var res : vec2 = sinh(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sinh_b9860e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sinh_b9860e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sinh_b9860e(); } diff --git a/test/tint/builtins/gen/var/sinh/c9a5eb.wgsl b/test/tint/builtins/gen/var/sinh/c9a5eb.wgsl index 94f38dd336..d6dcd5033a 100644 --- a/test/tint/builtins/gen/var/sinh/c9a5eb.wgsl +++ b/test/tint/builtins/gen/var/sinh/c9a5eb.wgsl @@ -29,18 +29,18 @@ fn sinh_c9a5eb() { var res: vec3 = sinh(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sinh_c9a5eb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sinh_c9a5eb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sinh_c9a5eb(); } diff --git a/test/tint/builtins/gen/var/sinh/c9a5eb.wgsl.expected.wgsl b/test/tint/builtins/gen/var/sinh/c9a5eb.wgsl.expected.wgsl index bd5b007e90..b17650c24d 100644 --- a/test/tint/builtins/gen/var/sinh/c9a5eb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/sinh/c9a5eb.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn sinh_c9a5eb() { var res : vec3 = sinh(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sinh_c9a5eb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sinh_c9a5eb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sinh_c9a5eb(); } diff --git a/test/tint/builtins/gen/var/smoothstep/392c19.wgsl b/test/tint/builtins/gen/var/smoothstep/392c19.wgsl index 3b00111847..a197c30616 100644 --- a/test/tint/builtins/gen/var/smoothstep/392c19.wgsl +++ b/test/tint/builtins/gen/var/smoothstep/392c19.wgsl @@ -31,18 +31,18 @@ fn smoothstep_392c19() { var res: vec2 = smoothstep(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { smoothstep_392c19(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { smoothstep_392c19(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { smoothstep_392c19(); } diff --git a/test/tint/builtins/gen/var/smoothstep/392c19.wgsl.expected.wgsl b/test/tint/builtins/gen/var/smoothstep/392c19.wgsl.expected.wgsl index 06beb1c382..4c013fabe5 100644 --- a/test/tint/builtins/gen/var/smoothstep/392c19.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/smoothstep/392c19.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn smoothstep_392c19() { var res : vec2 = smoothstep(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { smoothstep_392c19(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { smoothstep_392c19(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { smoothstep_392c19(); } diff --git a/test/tint/builtins/gen/var/smoothstep/40864c.wgsl b/test/tint/builtins/gen/var/smoothstep/40864c.wgsl index 898791a3cf..63fc2ee727 100644 --- a/test/tint/builtins/gen/var/smoothstep/40864c.wgsl +++ b/test/tint/builtins/gen/var/smoothstep/40864c.wgsl @@ -31,18 +31,18 @@ fn smoothstep_40864c() { var res: vec4 = smoothstep(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { smoothstep_40864c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { smoothstep_40864c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { smoothstep_40864c(); } diff --git a/test/tint/builtins/gen/var/smoothstep/40864c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/smoothstep/40864c.wgsl.expected.wgsl index 6fbfc2a183..6d517e6fc8 100644 --- a/test/tint/builtins/gen/var/smoothstep/40864c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/smoothstep/40864c.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn smoothstep_40864c() { var res : vec4 = smoothstep(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { smoothstep_40864c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { smoothstep_40864c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { smoothstep_40864c(); } diff --git a/test/tint/builtins/gen/var/smoothstep/6c4975.wgsl b/test/tint/builtins/gen/var/smoothstep/6c4975.wgsl index c8483cc491..07efb9ffe9 100644 --- a/test/tint/builtins/gen/var/smoothstep/6c4975.wgsl +++ b/test/tint/builtins/gen/var/smoothstep/6c4975.wgsl @@ -31,18 +31,18 @@ fn smoothstep_6c4975() { var res: f32 = smoothstep(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { smoothstep_6c4975(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { smoothstep_6c4975(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { smoothstep_6c4975(); } diff --git a/test/tint/builtins/gen/var/smoothstep/6c4975.wgsl.expected.wgsl b/test/tint/builtins/gen/var/smoothstep/6c4975.wgsl.expected.wgsl index ce4b2bccae..26820f3eb5 100644 --- a/test/tint/builtins/gen/var/smoothstep/6c4975.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/smoothstep/6c4975.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn smoothstep_6c4975() { var res : f32 = smoothstep(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { smoothstep_6c4975(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { smoothstep_6c4975(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { smoothstep_6c4975(); } diff --git a/test/tint/builtins/gen/var/smoothstep/aad1db.wgsl b/test/tint/builtins/gen/var/smoothstep/aad1db.wgsl index 1efd98fbe5..1aa6a12485 100644 --- a/test/tint/builtins/gen/var/smoothstep/aad1db.wgsl +++ b/test/tint/builtins/gen/var/smoothstep/aad1db.wgsl @@ -31,18 +31,18 @@ fn smoothstep_aad1db() { var res: vec3 = smoothstep(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { smoothstep_aad1db(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { smoothstep_aad1db(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { smoothstep_aad1db(); } diff --git a/test/tint/builtins/gen/var/smoothstep/aad1db.wgsl.expected.wgsl b/test/tint/builtins/gen/var/smoothstep/aad1db.wgsl.expected.wgsl index 6b730b682d..5da4d55f6f 100644 --- a/test/tint/builtins/gen/var/smoothstep/aad1db.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/smoothstep/aad1db.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn smoothstep_aad1db() { var res : vec3 = smoothstep(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { smoothstep_aad1db(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { smoothstep_aad1db(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { smoothstep_aad1db(); } diff --git a/test/tint/builtins/gen/var/sqrt/20c74e.wgsl b/test/tint/builtins/gen/var/sqrt/20c74e.wgsl index 86b17d6242..8d81a83247 100644 --- a/test/tint/builtins/gen/var/sqrt/20c74e.wgsl +++ b/test/tint/builtins/gen/var/sqrt/20c74e.wgsl @@ -29,18 +29,18 @@ fn sqrt_20c74e() { var res: f32 = sqrt(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sqrt_20c74e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sqrt_20c74e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sqrt_20c74e(); } diff --git a/test/tint/builtins/gen/var/sqrt/20c74e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/sqrt/20c74e.wgsl.expected.wgsl index 84e54f4b8d..719553f2e3 100644 --- a/test/tint/builtins/gen/var/sqrt/20c74e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/sqrt/20c74e.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn sqrt_20c74e() { var res : f32 = sqrt(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sqrt_20c74e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sqrt_20c74e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sqrt_20c74e(); } diff --git a/test/tint/builtins/gen/var/sqrt/8c7024.wgsl b/test/tint/builtins/gen/var/sqrt/8c7024.wgsl index db384b7c45..34815b418b 100644 --- a/test/tint/builtins/gen/var/sqrt/8c7024.wgsl +++ b/test/tint/builtins/gen/var/sqrt/8c7024.wgsl @@ -29,18 +29,18 @@ fn sqrt_8c7024() { var res: vec2 = sqrt(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sqrt_8c7024(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sqrt_8c7024(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sqrt_8c7024(); } diff --git a/test/tint/builtins/gen/var/sqrt/8c7024.wgsl.expected.wgsl b/test/tint/builtins/gen/var/sqrt/8c7024.wgsl.expected.wgsl index 4e6fba0a38..c77283af6d 100644 --- a/test/tint/builtins/gen/var/sqrt/8c7024.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/sqrt/8c7024.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn sqrt_8c7024() { var res : vec2 = sqrt(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sqrt_8c7024(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sqrt_8c7024(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sqrt_8c7024(); } diff --git a/test/tint/builtins/gen/var/sqrt/aa0d7a.wgsl b/test/tint/builtins/gen/var/sqrt/aa0d7a.wgsl index 84a347d0c6..442bbfa718 100644 --- a/test/tint/builtins/gen/var/sqrt/aa0d7a.wgsl +++ b/test/tint/builtins/gen/var/sqrt/aa0d7a.wgsl @@ -29,18 +29,18 @@ fn sqrt_aa0d7a() { var res: vec4 = sqrt(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sqrt_aa0d7a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sqrt_aa0d7a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sqrt_aa0d7a(); } diff --git a/test/tint/builtins/gen/var/sqrt/aa0d7a.wgsl.expected.wgsl b/test/tint/builtins/gen/var/sqrt/aa0d7a.wgsl.expected.wgsl index 7d32a517b1..66ed5230e5 100644 --- a/test/tint/builtins/gen/var/sqrt/aa0d7a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/sqrt/aa0d7a.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn sqrt_aa0d7a() { var res : vec4 = sqrt(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sqrt_aa0d7a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sqrt_aa0d7a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sqrt_aa0d7a(); } diff --git a/test/tint/builtins/gen/var/sqrt/f8c59a.wgsl b/test/tint/builtins/gen/var/sqrt/f8c59a.wgsl index 16827fbc4a..09d5bf1039 100644 --- a/test/tint/builtins/gen/var/sqrt/f8c59a.wgsl +++ b/test/tint/builtins/gen/var/sqrt/f8c59a.wgsl @@ -29,18 +29,18 @@ fn sqrt_f8c59a() { var res: vec3 = sqrt(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sqrt_f8c59a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sqrt_f8c59a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sqrt_f8c59a(); } diff --git a/test/tint/builtins/gen/var/sqrt/f8c59a.wgsl.expected.wgsl b/test/tint/builtins/gen/var/sqrt/f8c59a.wgsl.expected.wgsl index ff31cee66d..69ed0969eb 100644 --- a/test/tint/builtins/gen/var/sqrt/f8c59a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/sqrt/f8c59a.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn sqrt_f8c59a() { var res : vec3 = sqrt(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { sqrt_f8c59a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { sqrt_f8c59a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { sqrt_f8c59a(); } diff --git a/test/tint/builtins/gen/var/step/0b073b.wgsl b/test/tint/builtins/gen/var/step/0b073b.wgsl index 815380d206..cb16a1755a 100644 --- a/test/tint/builtins/gen/var/step/0b073b.wgsl +++ b/test/tint/builtins/gen/var/step/0b073b.wgsl @@ -30,18 +30,18 @@ fn step_0b073b() { var res: f32 = step(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { step_0b073b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { step_0b073b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { step_0b073b(); } diff --git a/test/tint/builtins/gen/var/step/0b073b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/step/0b073b.wgsl.expected.wgsl index 1c7f7e6649..d40153b090 100644 --- a/test/tint/builtins/gen/var/step/0b073b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/step/0b073b.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn step_0b073b() { var res : f32 = step(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { step_0b073b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { step_0b073b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { step_0b073b(); } diff --git a/test/tint/builtins/gen/var/step/19accd.wgsl b/test/tint/builtins/gen/var/step/19accd.wgsl index 57a56e2c12..e6a61d1fba 100644 --- a/test/tint/builtins/gen/var/step/19accd.wgsl +++ b/test/tint/builtins/gen/var/step/19accd.wgsl @@ -30,18 +30,18 @@ fn step_19accd() { var res: vec2 = step(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { step_19accd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { step_19accd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { step_19accd(); } diff --git a/test/tint/builtins/gen/var/step/19accd.wgsl.expected.wgsl b/test/tint/builtins/gen/var/step/19accd.wgsl.expected.wgsl index bd11983b5c..a6cac467c6 100644 --- a/test/tint/builtins/gen/var/step/19accd.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/step/19accd.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn step_19accd() { var res : vec2 = step(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { step_19accd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { step_19accd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { step_19accd(); } diff --git a/test/tint/builtins/gen/var/step/334303.wgsl b/test/tint/builtins/gen/var/step/334303.wgsl index 5bddc72287..051309dff2 100644 --- a/test/tint/builtins/gen/var/step/334303.wgsl +++ b/test/tint/builtins/gen/var/step/334303.wgsl @@ -30,18 +30,18 @@ fn step_334303() { var res: vec3 = step(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { step_334303(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { step_334303(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { step_334303(); } diff --git a/test/tint/builtins/gen/var/step/334303.wgsl.expected.wgsl b/test/tint/builtins/gen/var/step/334303.wgsl.expected.wgsl index 71667c3bb6..f02a0fb18c 100644 --- a/test/tint/builtins/gen/var/step/334303.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/step/334303.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn step_334303() { var res : vec3 = step(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { step_334303(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { step_334303(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { step_334303(); } diff --git a/test/tint/builtins/gen/var/step/e2b337.wgsl b/test/tint/builtins/gen/var/step/e2b337.wgsl index 1aa6b52b92..d53d42619e 100644 --- a/test/tint/builtins/gen/var/step/e2b337.wgsl +++ b/test/tint/builtins/gen/var/step/e2b337.wgsl @@ -30,18 +30,18 @@ fn step_e2b337() { var res: vec4 = step(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { step_e2b337(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { step_e2b337(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { step_e2b337(); } diff --git a/test/tint/builtins/gen/var/step/e2b337.wgsl.expected.wgsl b/test/tint/builtins/gen/var/step/e2b337.wgsl.expected.wgsl index 370bb45c7d..7c051c2ee4 100644 --- a/test/tint/builtins/gen/var/step/e2b337.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/step/e2b337.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn step_e2b337() { var res : vec4 = step(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { step_e2b337(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { step_e2b337(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { step_e2b337(); } diff --git a/test/tint/builtins/gen/var/storageBarrier/d87211.wgsl b/test/tint/builtins/gen/var/storageBarrier/d87211.wgsl index 5306f6c3bc..875d13fa6d 100644 --- a/test/tint/builtins/gen/var/storageBarrier/d87211.wgsl +++ b/test/tint/builtins/gen/var/storageBarrier/d87211.wgsl @@ -28,7 +28,7 @@ fn storageBarrier_d87211() { storageBarrier(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { storageBarrier_d87211(); } diff --git a/test/tint/builtins/gen/var/storageBarrier/d87211.wgsl.expected.wgsl b/test/tint/builtins/gen/var/storageBarrier/d87211.wgsl.expected.wgsl index 4c87708134..b92968109a 100644 --- a/test/tint/builtins/gen/var/storageBarrier/d87211.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/storageBarrier/d87211.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn storageBarrier_d87211() { storageBarrier(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { storageBarrier_d87211(); } diff --git a/test/tint/builtins/gen/var/tan/244e2a.wgsl b/test/tint/builtins/gen/var/tan/244e2a.wgsl index a124869df8..b5c642792b 100644 --- a/test/tint/builtins/gen/var/tan/244e2a.wgsl +++ b/test/tint/builtins/gen/var/tan/244e2a.wgsl @@ -29,18 +29,18 @@ fn tan_244e2a() { var res: vec4 = tan(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tan_244e2a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tan_244e2a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tan_244e2a(); } diff --git a/test/tint/builtins/gen/var/tan/244e2a.wgsl.expected.wgsl b/test/tint/builtins/gen/var/tan/244e2a.wgsl.expected.wgsl index 35bfc66db9..3db4284c6b 100644 --- a/test/tint/builtins/gen/var/tan/244e2a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/tan/244e2a.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn tan_244e2a() { var res : vec4 = tan(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tan_244e2a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tan_244e2a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tan_244e2a(); } diff --git a/test/tint/builtins/gen/var/tan/2f030e.wgsl b/test/tint/builtins/gen/var/tan/2f030e.wgsl index 2cdb41f2d3..a9b303b6ea 100644 --- a/test/tint/builtins/gen/var/tan/2f030e.wgsl +++ b/test/tint/builtins/gen/var/tan/2f030e.wgsl @@ -29,18 +29,18 @@ fn tan_2f030e() { var res: f32 = tan(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tan_2f030e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tan_2f030e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tan_2f030e(); } diff --git a/test/tint/builtins/gen/var/tan/2f030e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/tan/2f030e.wgsl.expected.wgsl index fac48492cc..96993de00c 100644 --- a/test/tint/builtins/gen/var/tan/2f030e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/tan/2f030e.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn tan_2f030e() { var res : f32 = tan(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tan_2f030e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tan_2f030e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tan_2f030e(); } diff --git a/test/tint/builtins/gen/var/tan/7ea104.wgsl b/test/tint/builtins/gen/var/tan/7ea104.wgsl index 220629ca55..b2afe5c94c 100644 --- a/test/tint/builtins/gen/var/tan/7ea104.wgsl +++ b/test/tint/builtins/gen/var/tan/7ea104.wgsl @@ -29,18 +29,18 @@ fn tan_7ea104() { var res: vec3 = tan(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tan_7ea104(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tan_7ea104(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tan_7ea104(); } diff --git a/test/tint/builtins/gen/var/tan/7ea104.wgsl.expected.wgsl b/test/tint/builtins/gen/var/tan/7ea104.wgsl.expected.wgsl index dc85409727..5e33833c8d 100644 --- a/test/tint/builtins/gen/var/tan/7ea104.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/tan/7ea104.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn tan_7ea104() { var res : vec3 = tan(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tan_7ea104(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tan_7ea104(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tan_7ea104(); } diff --git a/test/tint/builtins/gen/var/tan/8ce3e9.wgsl b/test/tint/builtins/gen/var/tan/8ce3e9.wgsl index 8a415d1301..e34a69344f 100644 --- a/test/tint/builtins/gen/var/tan/8ce3e9.wgsl +++ b/test/tint/builtins/gen/var/tan/8ce3e9.wgsl @@ -29,18 +29,18 @@ fn tan_8ce3e9() { var res: vec2 = tan(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tan_8ce3e9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tan_8ce3e9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tan_8ce3e9(); } diff --git a/test/tint/builtins/gen/var/tan/8ce3e9.wgsl.expected.wgsl b/test/tint/builtins/gen/var/tan/8ce3e9.wgsl.expected.wgsl index 4fef31c88e..2fe6fda66e 100644 --- a/test/tint/builtins/gen/var/tan/8ce3e9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/tan/8ce3e9.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn tan_8ce3e9() { var res : vec2 = tan(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tan_8ce3e9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tan_8ce3e9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tan_8ce3e9(); } diff --git a/test/tint/builtins/gen/var/tanh/5663c5.wgsl b/test/tint/builtins/gen/var/tanh/5663c5.wgsl index f13674259c..d061b31e75 100644 --- a/test/tint/builtins/gen/var/tanh/5663c5.wgsl +++ b/test/tint/builtins/gen/var/tanh/5663c5.wgsl @@ -29,18 +29,18 @@ fn tanh_5663c5() { var res: vec4 = tanh(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tanh_5663c5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tanh_5663c5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tanh_5663c5(); } diff --git a/test/tint/builtins/gen/var/tanh/5663c5.wgsl.expected.wgsl b/test/tint/builtins/gen/var/tanh/5663c5.wgsl.expected.wgsl index 68b3e225a8..5e8ad97f2f 100644 --- a/test/tint/builtins/gen/var/tanh/5663c5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/tanh/5663c5.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn tanh_5663c5() { var res : vec4 = tanh(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tanh_5663c5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tanh_5663c5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tanh_5663c5(); } diff --git a/test/tint/builtins/gen/var/tanh/5724b3.wgsl b/test/tint/builtins/gen/var/tanh/5724b3.wgsl index a09c5dc564..baacbd5a80 100644 --- a/test/tint/builtins/gen/var/tanh/5724b3.wgsl +++ b/test/tint/builtins/gen/var/tanh/5724b3.wgsl @@ -29,18 +29,18 @@ fn tanh_5724b3() { var res: vec2 = tanh(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tanh_5724b3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tanh_5724b3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tanh_5724b3(); } diff --git a/test/tint/builtins/gen/var/tanh/5724b3.wgsl.expected.wgsl b/test/tint/builtins/gen/var/tanh/5724b3.wgsl.expected.wgsl index 4ba6039fd1..2c6b8ac9fc 100644 --- a/test/tint/builtins/gen/var/tanh/5724b3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/tanh/5724b3.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn tanh_5724b3() { var res : vec2 = tanh(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tanh_5724b3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tanh_5724b3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tanh_5724b3(); } diff --git a/test/tint/builtins/gen/var/tanh/9f9fb9.wgsl b/test/tint/builtins/gen/var/tanh/9f9fb9.wgsl index 3ef2e2f93f..8ef2acea14 100644 --- a/test/tint/builtins/gen/var/tanh/9f9fb9.wgsl +++ b/test/tint/builtins/gen/var/tanh/9f9fb9.wgsl @@ -29,18 +29,18 @@ fn tanh_9f9fb9() { var res: vec3 = tanh(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tanh_9f9fb9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tanh_9f9fb9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tanh_9f9fb9(); } diff --git a/test/tint/builtins/gen/var/tanh/9f9fb9.wgsl.expected.wgsl b/test/tint/builtins/gen/var/tanh/9f9fb9.wgsl.expected.wgsl index 2cf169fb2c..78a8aefee3 100644 --- a/test/tint/builtins/gen/var/tanh/9f9fb9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/tanh/9f9fb9.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn tanh_9f9fb9() { var res : vec3 = tanh(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tanh_9f9fb9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tanh_9f9fb9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tanh_9f9fb9(); } diff --git a/test/tint/builtins/gen/var/tanh/c15fdb.wgsl b/test/tint/builtins/gen/var/tanh/c15fdb.wgsl index a0e4a5b60a..642ee64a4e 100644 --- a/test/tint/builtins/gen/var/tanh/c15fdb.wgsl +++ b/test/tint/builtins/gen/var/tanh/c15fdb.wgsl @@ -29,18 +29,18 @@ fn tanh_c15fdb() { var res: f32 = tanh(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tanh_c15fdb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tanh_c15fdb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tanh_c15fdb(); } diff --git a/test/tint/builtins/gen/var/tanh/c15fdb.wgsl.expected.wgsl b/test/tint/builtins/gen/var/tanh/c15fdb.wgsl.expected.wgsl index 0831fee28b..14b0c57ace 100644 --- a/test/tint/builtins/gen/var/tanh/c15fdb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/tanh/c15fdb.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn tanh_c15fdb() { var res : f32 = tanh(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { tanh_c15fdb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { tanh_c15fdb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { tanh_c15fdb(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/002b2a.wgsl b/test/tint/builtins/gen/var/textureDimensions/002b2a.wgsl index b93721f74c..7d535e36bf 100644 --- a/test/tint/builtins/gen/var/textureDimensions/002b2a.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/002b2a.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_002b2a() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_002b2a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_002b2a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_002b2a(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/002b2a.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/002b2a.wgsl.expected.wgsl index a21a8c0b16..5f09068124 100644 --- a/test/tint/builtins/gen/var/textureDimensions/002b2a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/002b2a.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_002b2a() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_002b2a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_002b2a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_002b2a(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/012b82.wgsl b/test/tint/builtins/gen/var/textureDimensions/012b82.wgsl index d011596a67..4ce156e879 100644 --- a/test/tint/builtins/gen/var/textureDimensions/012b82.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/012b82.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_012b82() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_012b82(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_012b82(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_012b82(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/012b82.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/012b82.wgsl.expected.wgsl index 7ebcab6b4e..216df4f29f 100644 --- a/test/tint/builtins/gen/var/textureDimensions/012b82.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/012b82.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_012b82() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_012b82(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_012b82(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_012b82(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/08753d.wgsl b/test/tint/builtins/gen/var/textureDimensions/08753d.wgsl index 4e071a0b4f..c60871d014 100644 --- a/test/tint/builtins/gen/var/textureDimensions/08753d.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/08753d.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_08753d() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_08753d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_08753d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_08753d(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/08753d.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/08753d.wgsl.expected.wgsl index 45dce4b559..443a678ed3 100644 --- a/test/tint/builtins/gen/var/textureDimensions/08753d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/08753d.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_08753d() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_08753d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_08753d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_08753d(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/0c4772.wgsl b/test/tint/builtins/gen/var/textureDimensions/0c4772.wgsl index 3acce510b9..c23ca841e2 100644 --- a/test/tint/builtins/gen/var/textureDimensions/0c4772.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/0c4772.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_0c4772() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_0c4772(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_0c4772(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_0c4772(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/0c4772.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/0c4772.wgsl.expected.wgsl index dc5fc35cb9..fc2907df4a 100644 --- a/test/tint/builtins/gen/var/textureDimensions/0c4772.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/0c4772.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_0c4772() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_0c4772(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_0c4772(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_0c4772(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/0cce40.wgsl b/test/tint/builtins/gen/var/textureDimensions/0cce40.wgsl index 410f924b2b..3c1678bfc1 100644 --- a/test/tint/builtins/gen/var/textureDimensions/0cce40.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/0cce40.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_0cce40() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_0cce40(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_0cce40(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_0cce40(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/0cce40.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/0cce40.wgsl.expected.wgsl index 04b0e24fd1..5193665715 100644 --- a/test/tint/builtins/gen/var/textureDimensions/0cce40.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/0cce40.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_0cce40() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_0cce40(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_0cce40(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_0cce40(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/0cf2ff.wgsl b/test/tint/builtins/gen/var/textureDimensions/0cf2ff.wgsl index 4ca09283fc..b19e1ddd51 100644 --- a/test/tint/builtins/gen/var/textureDimensions/0cf2ff.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/0cf2ff.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_0cf2ff() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_0cf2ff(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_0cf2ff(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_0cf2ff(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/0cf2ff.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/0cf2ff.wgsl.expected.wgsl index 36e3e6109f..a13b916c8a 100644 --- a/test/tint/builtins/gen/var/textureDimensions/0cf2ff.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/0cf2ff.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_0cf2ff() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_0cf2ff(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_0cf2ff(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_0cf2ff(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/0d8b7e.wgsl b/test/tint/builtins/gen/var/textureDimensions/0d8b7e.wgsl index 69277768d9..d522067512 100644 --- a/test/tint/builtins/gen/var/textureDimensions/0d8b7e.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/0d8b7e.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_0d8b7e() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_0d8b7e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_0d8b7e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_0d8b7e(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/0d8b7e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/0d8b7e.wgsl.expected.wgsl index b4a1350a3b..2ce14eadae 100644 --- a/test/tint/builtins/gen/var/textureDimensions/0d8b7e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/0d8b7e.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_0d8b7e() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_0d8b7e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_0d8b7e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_0d8b7e(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/0e32ee.wgsl b/test/tint/builtins/gen/var/textureDimensions/0e32ee.wgsl index 60d2aa3469..f4e9278032 100644 --- a/test/tint/builtins/gen/var/textureDimensions/0e32ee.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/0e32ee.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_0e32ee() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_0e32ee(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_0e32ee(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_0e32ee(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/0e32ee.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/0e32ee.wgsl.expected.wgsl index 9f0e1d1347..c037616b43 100644 --- a/test/tint/builtins/gen/var/textureDimensions/0e32ee.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/0e32ee.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_0e32ee() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_0e32ee(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_0e32ee(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_0e32ee(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/0f3c50.wgsl b/test/tint/builtins/gen/var/textureDimensions/0f3c50.wgsl index c8010cbe59..55b704e743 100644 --- a/test/tint/builtins/gen/var/textureDimensions/0f3c50.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/0f3c50.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_0f3c50() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_0f3c50(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_0f3c50(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_0f3c50(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/0f3c50.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/0f3c50.wgsl.expected.wgsl index 553f57ea88..45eee36977 100644 --- a/test/tint/builtins/gen/var/textureDimensions/0f3c50.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/0f3c50.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_0f3c50() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_0f3c50(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_0f3c50(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_0f3c50(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/1191a5.wgsl b/test/tint/builtins/gen/var/textureDimensions/1191a5.wgsl index 172d0496ae..b9175156e2 100644 --- a/test/tint/builtins/gen/var/textureDimensions/1191a5.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/1191a5.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_1191a5() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_1191a5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_1191a5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_1191a5(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/1191a5.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/1191a5.wgsl.expected.wgsl index 2131304dac..c0e1745f76 100644 --- a/test/tint/builtins/gen/var/textureDimensions/1191a5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/1191a5.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_1191a5() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_1191a5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_1191a5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_1191a5(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/12c9bb.wgsl b/test/tint/builtins/gen/var/textureDimensions/12c9bb.wgsl index f235441dc5..75c167a751 100644 --- a/test/tint/builtins/gen/var/textureDimensions/12c9bb.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/12c9bb.wgsl @@ -30,18 +30,18 @@ fn textureDimensions_12c9bb() { var res: vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_12c9bb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_12c9bb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_12c9bb(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/12c9bb.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/12c9bb.wgsl.expected.wgsl index d61d60295e..bbeb242256 100644 --- a/test/tint/builtins/gen/var/textureDimensions/12c9bb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/12c9bb.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn textureDimensions_12c9bb() { var res : vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_12c9bb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_12c9bb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_12c9bb(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/147998.wgsl b/test/tint/builtins/gen/var/textureDimensions/147998.wgsl index 17e2e21255..1917a883fc 100644 --- a/test/tint/builtins/gen/var/textureDimensions/147998.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/147998.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_147998() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_147998(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_147998(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_147998(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/147998.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/147998.wgsl.expected.wgsl index 3cd6855640..8379507811 100644 --- a/test/tint/builtins/gen/var/textureDimensions/147998.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/147998.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_147998() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_147998(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_147998(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_147998(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/16036c.wgsl b/test/tint/builtins/gen/var/textureDimensions/16036c.wgsl index 84ce99813b..2107c74afd 100644 --- a/test/tint/builtins/gen/var/textureDimensions/16036c.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/16036c.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_16036c() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_16036c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_16036c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_16036c(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/16036c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/16036c.wgsl.expected.wgsl index 072b71e684..5a9c5f30b6 100644 --- a/test/tint/builtins/gen/var/textureDimensions/16036c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/16036c.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_16036c() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_16036c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_16036c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_16036c(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/1b71f0.wgsl b/test/tint/builtins/gen/var/textureDimensions/1b71f0.wgsl index 77f345dd70..4435f685b1 100644 --- a/test/tint/builtins/gen/var/textureDimensions/1b71f0.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/1b71f0.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_1b71f0() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_1b71f0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_1b71f0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_1b71f0(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/1b71f0.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/1b71f0.wgsl.expected.wgsl index 8fedb781ff..ee928e222f 100644 --- a/test/tint/builtins/gen/var/textureDimensions/1b71f0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/1b71f0.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_1b71f0() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_1b71f0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_1b71f0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_1b71f0(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/1d6c26.wgsl b/test/tint/builtins/gen/var/textureDimensions/1d6c26.wgsl index 0b5857db45..6b576ba999 100644 --- a/test/tint/builtins/gen/var/textureDimensions/1d6c26.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/1d6c26.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_1d6c26() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_1d6c26(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_1d6c26(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_1d6c26(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/1d6c26.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/1d6c26.wgsl.expected.wgsl index 1ca754c28d..8bb5c22cd9 100644 --- a/test/tint/builtins/gen/var/textureDimensions/1d6c26.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/1d6c26.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_1d6c26() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_1d6c26(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_1d6c26(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_1d6c26(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/1e9e39.wgsl b/test/tint/builtins/gen/var/textureDimensions/1e9e39.wgsl index c40f9c0e1c..afd80e382f 100644 --- a/test/tint/builtins/gen/var/textureDimensions/1e9e39.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/1e9e39.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_1e9e39() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_1e9e39(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_1e9e39(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_1e9e39(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/1e9e39.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/1e9e39.wgsl.expected.wgsl index 938b1048a4..efd42acd26 100644 --- a/test/tint/builtins/gen/var/textureDimensions/1e9e39.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/1e9e39.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_1e9e39() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_1e9e39(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_1e9e39(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_1e9e39(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/1f20c5.wgsl b/test/tint/builtins/gen/var/textureDimensions/1f20c5.wgsl index 8301b57d00..e509ecbac6 100644 --- a/test/tint/builtins/gen/var/textureDimensions/1f20c5.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/1f20c5.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_1f20c5() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_1f20c5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_1f20c5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_1f20c5(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/1f20c5.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/1f20c5.wgsl.expected.wgsl index 2cbde3e854..4800bad9b3 100644 --- a/test/tint/builtins/gen/var/textureDimensions/1f20c5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/1f20c5.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_1f20c5() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_1f20c5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_1f20c5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_1f20c5(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/214dd4.wgsl b/test/tint/builtins/gen/var/textureDimensions/214dd4.wgsl index e3ac96cdb7..edb3961f93 100644 --- a/test/tint/builtins/gen/var/textureDimensions/214dd4.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/214dd4.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_214dd4() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_214dd4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_214dd4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_214dd4(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/214dd4.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/214dd4.wgsl.expected.wgsl index a6e1919e1b..8fdb8a387e 100644 --- a/test/tint/builtins/gen/var/textureDimensions/214dd4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/214dd4.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_214dd4() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_214dd4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_214dd4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_214dd4(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/221f22.wgsl b/test/tint/builtins/gen/var/textureDimensions/221f22.wgsl index 4af29a21df..9cace3272b 100644 --- a/test/tint/builtins/gen/var/textureDimensions/221f22.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/221f22.wgsl @@ -30,18 +30,18 @@ fn textureDimensions_221f22() { var res: vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_221f22(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_221f22(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_221f22(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/221f22.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/221f22.wgsl.expected.wgsl index b7afc404af..3d8724580d 100644 --- a/test/tint/builtins/gen/var/textureDimensions/221f22.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/221f22.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn textureDimensions_221f22() { var res : vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_221f22(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_221f22(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_221f22(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/267788.wgsl b/test/tint/builtins/gen/var/textureDimensions/267788.wgsl index 1fca259117..1778524827 100644 --- a/test/tint/builtins/gen/var/textureDimensions/267788.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/267788.wgsl @@ -30,18 +30,18 @@ fn textureDimensions_267788() { var res: vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_267788(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_267788(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_267788(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/267788.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/267788.wgsl.expected.wgsl index b3c7d0e608..75e5f8413c 100644 --- a/test/tint/builtins/gen/var/textureDimensions/267788.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/267788.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn textureDimensions_267788() { var res : vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_267788(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_267788(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_267788(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/26bdfa.wgsl b/test/tint/builtins/gen/var/textureDimensions/26bdfa.wgsl index 46faf7535e..8187e83f23 100644 --- a/test/tint/builtins/gen/var/textureDimensions/26bdfa.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/26bdfa.wgsl @@ -30,18 +30,18 @@ fn textureDimensions_26bdfa() { var res: vec3 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_26bdfa(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_26bdfa(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_26bdfa(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/26bdfa.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/26bdfa.wgsl.expected.wgsl index 99aeee2c0e..66415999bb 100644 --- a/test/tint/builtins/gen/var/textureDimensions/26bdfa.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/26bdfa.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn textureDimensions_26bdfa() { var res : vec3 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_26bdfa(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_26bdfa(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_26bdfa(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/26ef6c.wgsl b/test/tint/builtins/gen/var/textureDimensions/26ef6c.wgsl index ccf3250e86..cc993960d8 100644 --- a/test/tint/builtins/gen/var/textureDimensions/26ef6c.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/26ef6c.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_26ef6c() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_26ef6c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_26ef6c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_26ef6c(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/26ef6c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/26ef6c.wgsl.expected.wgsl index 960c66d5b8..c0b495c846 100644 --- a/test/tint/builtins/gen/var/textureDimensions/26ef6c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/26ef6c.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_26ef6c() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_26ef6c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_26ef6c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_26ef6c(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/2ad087.wgsl b/test/tint/builtins/gen/var/textureDimensions/2ad087.wgsl index 25a8b28efd..62d94f536c 100644 --- a/test/tint/builtins/gen/var/textureDimensions/2ad087.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/2ad087.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_2ad087() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_2ad087(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_2ad087(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_2ad087(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/2ad087.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/2ad087.wgsl.expected.wgsl index c2b8327fa5..e965a18e09 100644 --- a/test/tint/builtins/gen/var/textureDimensions/2ad087.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/2ad087.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_2ad087() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_2ad087(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_2ad087(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_2ad087(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/2efa05.wgsl b/test/tint/builtins/gen/var/textureDimensions/2efa05.wgsl index 9d16f9609a..375e2bda79 100644 --- a/test/tint/builtins/gen/var/textureDimensions/2efa05.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/2efa05.wgsl @@ -30,18 +30,18 @@ fn textureDimensions_2efa05() { var res: vec3 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_2efa05(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_2efa05(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_2efa05(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/2efa05.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/2efa05.wgsl.expected.wgsl index ac7a3e2bea..f2a2fd3533 100644 --- a/test/tint/builtins/gen/var/textureDimensions/2efa05.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/2efa05.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn textureDimensions_2efa05() { var res : vec3 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_2efa05(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_2efa05(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_2efa05(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/2f289f.wgsl b/test/tint/builtins/gen/var/textureDimensions/2f289f.wgsl index 63835a1d8c..5fdde6f668 100644 --- a/test/tint/builtins/gen/var/textureDimensions/2f289f.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/2f289f.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_2f289f() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_2f289f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_2f289f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_2f289f(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/2f289f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/2f289f.wgsl.expected.wgsl index 7ffc030342..6895807816 100644 --- a/test/tint/builtins/gen/var/textureDimensions/2f289f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/2f289f.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_2f289f() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_2f289f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_2f289f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_2f289f(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/2fe1cc.wgsl b/test/tint/builtins/gen/var/textureDimensions/2fe1cc.wgsl index 1d4350ba06..bff531fd72 100644 --- a/test/tint/builtins/gen/var/textureDimensions/2fe1cc.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/2fe1cc.wgsl @@ -30,18 +30,18 @@ fn textureDimensions_2fe1cc() { var res: vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_2fe1cc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_2fe1cc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_2fe1cc(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/2fe1cc.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/2fe1cc.wgsl.expected.wgsl index 148b19956f..9b45aa5c3c 100644 --- a/test/tint/builtins/gen/var/textureDimensions/2fe1cc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/2fe1cc.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn textureDimensions_2fe1cc() { var res : vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_2fe1cc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_2fe1cc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_2fe1cc(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/318ecc.wgsl b/test/tint/builtins/gen/var/textureDimensions/318ecc.wgsl index 4563fc8955..52ead3c447 100644 --- a/test/tint/builtins/gen/var/textureDimensions/318ecc.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/318ecc.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_318ecc() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_318ecc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_318ecc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_318ecc(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/318ecc.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/318ecc.wgsl.expected.wgsl index d1c53d49be..9a7028c4a8 100644 --- a/test/tint/builtins/gen/var/textureDimensions/318ecc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/318ecc.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_318ecc() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_318ecc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_318ecc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_318ecc(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/340d06.wgsl b/test/tint/builtins/gen/var/textureDimensions/340d06.wgsl index 801a81e511..afb2e3d961 100644 --- a/test/tint/builtins/gen/var/textureDimensions/340d06.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/340d06.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_340d06() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_340d06(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_340d06(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_340d06(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/340d06.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/340d06.wgsl.expected.wgsl index 7ae21b4ce9..99bca2d762 100644 --- a/test/tint/builtins/gen/var/textureDimensions/340d06.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/340d06.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_340d06() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_340d06(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_340d06(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_340d06(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/398e30.wgsl b/test/tint/builtins/gen/var/textureDimensions/398e30.wgsl index d8a22e3716..d5f67d6a81 100644 --- a/test/tint/builtins/gen/var/textureDimensions/398e30.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/398e30.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_398e30() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_398e30(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_398e30(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_398e30(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/398e30.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/398e30.wgsl.expected.wgsl index 457ff70cff..5deab7d0d3 100644 --- a/test/tint/builtins/gen/var/textureDimensions/398e30.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/398e30.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_398e30() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_398e30(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_398e30(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_398e30(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/3a94ea.wgsl b/test/tint/builtins/gen/var/textureDimensions/3a94ea.wgsl index d00adb2a00..9573c5c8a4 100644 --- a/test/tint/builtins/gen/var/textureDimensions/3a94ea.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/3a94ea.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_3a94ea() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_3a94ea(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_3a94ea(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_3a94ea(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/3a94ea.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/3a94ea.wgsl.expected.wgsl index 29d95790f2..c1cebafe60 100644 --- a/test/tint/builtins/gen/var/textureDimensions/3a94ea.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/3a94ea.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_3a94ea() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_3a94ea(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_3a94ea(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_3a94ea(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/3aca08.wgsl b/test/tint/builtins/gen/var/textureDimensions/3aca08.wgsl index 01a56a9e53..cca374af54 100644 --- a/test/tint/builtins/gen/var/textureDimensions/3aca08.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/3aca08.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_3aca08() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_3aca08(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_3aca08(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_3aca08(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/3aca08.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/3aca08.wgsl.expected.wgsl index ba8e34f7ca..1a72665839 100644 --- a/test/tint/builtins/gen/var/textureDimensions/3aca08.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/3aca08.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_3aca08() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_3aca08(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_3aca08(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_3aca08(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/3c5ad8.wgsl b/test/tint/builtins/gen/var/textureDimensions/3c5ad8.wgsl index 9d72673e4d..a135b33d02 100644 --- a/test/tint/builtins/gen/var/textureDimensions/3c5ad8.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/3c5ad8.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_3c5ad8() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_3c5ad8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_3c5ad8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_3c5ad8(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/3c5ad8.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/3c5ad8.wgsl.expected.wgsl index dc42b19d97..a73139d844 100644 --- a/test/tint/builtins/gen/var/textureDimensions/3c5ad8.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/3c5ad8.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_3c5ad8() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_3c5ad8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_3c5ad8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_3c5ad8(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/4152a6.wgsl b/test/tint/builtins/gen/var/textureDimensions/4152a6.wgsl index 52a3a0760a..19e2dee05e 100644 --- a/test/tint/builtins/gen/var/textureDimensions/4152a6.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/4152a6.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_4152a6() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_4152a6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_4152a6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_4152a6(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/4152a6.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/4152a6.wgsl.expected.wgsl index f9ec8d52a2..67521abbcd 100644 --- a/test/tint/builtins/gen/var/textureDimensions/4152a6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/4152a6.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_4152a6() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_4152a6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_4152a6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_4152a6(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/423f99.wgsl b/test/tint/builtins/gen/var/textureDimensions/423f99.wgsl index 3fd9d7b0a8..8183ccf212 100644 --- a/test/tint/builtins/gen/var/textureDimensions/423f99.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/423f99.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_423f99() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_423f99(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_423f99(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_423f99(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/423f99.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/423f99.wgsl.expected.wgsl index b84b03300c..0ef4f77e1a 100644 --- a/test/tint/builtins/gen/var/textureDimensions/423f99.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/423f99.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_423f99() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_423f99(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_423f99(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_423f99(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/4267ee.wgsl b/test/tint/builtins/gen/var/textureDimensions/4267ee.wgsl index 1c849b8130..1e230b6b86 100644 --- a/test/tint/builtins/gen/var/textureDimensions/4267ee.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/4267ee.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_4267ee() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_4267ee(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_4267ee(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_4267ee(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/4267ee.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/4267ee.wgsl.expected.wgsl index 909269f2bc..a63426875e 100644 --- a/test/tint/builtins/gen/var/textureDimensions/4267ee.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/4267ee.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_4267ee() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_4267ee(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_4267ee(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_4267ee(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/42d4e6.wgsl b/test/tint/builtins/gen/var/textureDimensions/42d4e6.wgsl index ac087c5e62..7c00b9e1f6 100644 --- a/test/tint/builtins/gen/var/textureDimensions/42d4e6.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/42d4e6.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_42d4e6() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_42d4e6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_42d4e6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_42d4e6(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/42d4e6.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/42d4e6.wgsl.expected.wgsl index bc98490a9e..ab0376bd4b 100644 --- a/test/tint/builtins/gen/var/textureDimensions/42d4e6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/42d4e6.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_42d4e6() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_42d4e6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_42d4e6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_42d4e6(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/48cb89.wgsl b/test/tint/builtins/gen/var/textureDimensions/48cb89.wgsl index c278ed8e5b..5ec1e8c0ee 100644 --- a/test/tint/builtins/gen/var/textureDimensions/48cb89.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/48cb89.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_48cb89() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_48cb89(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_48cb89(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_48cb89(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/48cb89.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/48cb89.wgsl.expected.wgsl index cdc0578bd2..2e4ee35c96 100644 --- a/test/tint/builtins/gen/var/textureDimensions/48cb89.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/48cb89.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_48cb89() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_48cb89(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_48cb89(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_48cb89(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/49d274.wgsl b/test/tint/builtins/gen/var/textureDimensions/49d274.wgsl index dd8592605d..e93d693944 100644 --- a/test/tint/builtins/gen/var/textureDimensions/49d274.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/49d274.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_49d274() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_49d274(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_49d274(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_49d274(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/49d274.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/49d274.wgsl.expected.wgsl index 00ebf3628e..060af23164 100644 --- a/test/tint/builtins/gen/var/textureDimensions/49d274.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/49d274.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_49d274() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_49d274(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_49d274(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_49d274(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/4df9a8.wgsl b/test/tint/builtins/gen/var/textureDimensions/4df9a8.wgsl index c95dd96fa5..59e46379fc 100644 --- a/test/tint/builtins/gen/var/textureDimensions/4df9a8.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/4df9a8.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_4df9a8() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_4df9a8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_4df9a8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_4df9a8(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/4df9a8.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/4df9a8.wgsl.expected.wgsl index 4078aa2b55..b771310fa5 100644 --- a/test/tint/builtins/gen/var/textureDimensions/4df9a8.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/4df9a8.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_4df9a8() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_4df9a8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_4df9a8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_4df9a8(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/50a9ee.wgsl b/test/tint/builtins/gen/var/textureDimensions/50a9ee.wgsl index 1a5c087a83..b63788ada7 100644 --- a/test/tint/builtins/gen/var/textureDimensions/50a9ee.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/50a9ee.wgsl @@ -30,18 +30,18 @@ fn textureDimensions_50a9ee() { var res: vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_50a9ee(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_50a9ee(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_50a9ee(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/50a9ee.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/50a9ee.wgsl.expected.wgsl index 664cf63442..137aadfa33 100644 --- a/test/tint/builtins/gen/var/textureDimensions/50a9ee.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/50a9ee.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn textureDimensions_50a9ee() { var res : vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_50a9ee(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_50a9ee(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_50a9ee(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/52045c.wgsl b/test/tint/builtins/gen/var/textureDimensions/52045c.wgsl index 08d9c900c8..ac3f2ae3ac 100644 --- a/test/tint/builtins/gen/var/textureDimensions/52045c.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/52045c.wgsl @@ -30,18 +30,18 @@ fn textureDimensions_52045c() { var res: i32 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_52045c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_52045c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_52045c(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/52045c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/52045c.wgsl.expected.wgsl index a03ae632f1..ea3568c4d3 100644 --- a/test/tint/builtins/gen/var/textureDimensions/52045c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/52045c.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn textureDimensions_52045c() { var res : i32 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_52045c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_52045c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_52045c(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/55b23e.wgsl b/test/tint/builtins/gen/var/textureDimensions/55b23e.wgsl index 06255e84f4..886c1e9cd6 100644 --- a/test/tint/builtins/gen/var/textureDimensions/55b23e.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/55b23e.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_55b23e() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_55b23e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_55b23e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_55b23e(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/55b23e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/55b23e.wgsl.expected.wgsl index 32b929ccf5..430da3cdaf 100644 --- a/test/tint/builtins/gen/var/textureDimensions/55b23e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/55b23e.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_55b23e() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_55b23e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_55b23e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_55b23e(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/579629.wgsl b/test/tint/builtins/gen/var/textureDimensions/579629.wgsl index 963d480a3d..af4fd858d9 100644 --- a/test/tint/builtins/gen/var/textureDimensions/579629.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/579629.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_579629() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_579629(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_579629(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_579629(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/579629.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/579629.wgsl.expected.wgsl index e157439e3d..1e1d6d7a44 100644 --- a/test/tint/builtins/gen/var/textureDimensions/579629.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/579629.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_579629() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_579629(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_579629(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_579629(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/57da0b.wgsl b/test/tint/builtins/gen/var/textureDimensions/57da0b.wgsl index 5b7a1689fb..fe79b2a916 100644 --- a/test/tint/builtins/gen/var/textureDimensions/57da0b.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/57da0b.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_57da0b() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_57da0b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_57da0b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_57da0b(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/57da0b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/57da0b.wgsl.expected.wgsl index f05ee1cf65..b599184810 100644 --- a/test/tint/builtins/gen/var/textureDimensions/57da0b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/57da0b.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_57da0b() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_57da0b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_57da0b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_57da0b(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/57e28f.wgsl b/test/tint/builtins/gen/var/textureDimensions/57e28f.wgsl index 0b9d680776..fc88a27e2a 100644 --- a/test/tint/builtins/gen/var/textureDimensions/57e28f.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/57e28f.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_57e28f() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_57e28f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_57e28f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_57e28f(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/57e28f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/57e28f.wgsl.expected.wgsl index 3d257471e3..e0b854e393 100644 --- a/test/tint/builtins/gen/var/textureDimensions/57e28f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/57e28f.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_57e28f() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_57e28f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_57e28f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_57e28f(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/58a515.wgsl b/test/tint/builtins/gen/var/textureDimensions/58a515.wgsl index df0e9cd509..979cefbe81 100644 --- a/test/tint/builtins/gen/var/textureDimensions/58a515.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/58a515.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_58a515() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_58a515(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_58a515(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_58a515(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/58a515.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/58a515.wgsl.expected.wgsl index c395b923f7..21bad72927 100644 --- a/test/tint/builtins/gen/var/textureDimensions/58a515.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/58a515.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_58a515() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_58a515(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_58a515(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_58a515(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/5985f3.wgsl b/test/tint/builtins/gen/var/textureDimensions/5985f3.wgsl index dffa849250..77a07071a1 100644 --- a/test/tint/builtins/gen/var/textureDimensions/5985f3.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/5985f3.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_5985f3() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_5985f3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_5985f3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_5985f3(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/5985f3.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/5985f3.wgsl.expected.wgsl index cc73d08dc7..84495171ac 100644 --- a/test/tint/builtins/gen/var/textureDimensions/5985f3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/5985f3.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_5985f3() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_5985f3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_5985f3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_5985f3(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/5caa5e.wgsl b/test/tint/builtins/gen/var/textureDimensions/5caa5e.wgsl index 5582c6e7ab..abe7868ce0 100644 --- a/test/tint/builtins/gen/var/textureDimensions/5caa5e.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/5caa5e.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_5caa5e() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_5caa5e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_5caa5e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_5caa5e(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/5caa5e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/5caa5e.wgsl.expected.wgsl index 3f834431a1..ac87720adb 100644 --- a/test/tint/builtins/gen/var/textureDimensions/5caa5e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/5caa5e.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_5caa5e() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_5caa5e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_5caa5e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_5caa5e(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/5e295d.wgsl b/test/tint/builtins/gen/var/textureDimensions/5e295d.wgsl index b855d3c2d2..83970062eb 100644 --- a/test/tint/builtins/gen/var/textureDimensions/5e295d.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/5e295d.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_5e295d() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_5e295d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_5e295d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_5e295d(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/5e295d.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/5e295d.wgsl.expected.wgsl index d8bceb6fec..ae8f76333d 100644 --- a/test/tint/builtins/gen/var/textureDimensions/5e295d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/5e295d.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_5e295d() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_5e295d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_5e295d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_5e295d(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/60bf54.wgsl b/test/tint/builtins/gen/var/textureDimensions/60bf54.wgsl index df274c5399..9c5ff1641b 100644 --- a/test/tint/builtins/gen/var/textureDimensions/60bf54.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/60bf54.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_60bf54() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_60bf54(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_60bf54(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_60bf54(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/60bf54.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/60bf54.wgsl.expected.wgsl index f9347deb41..fbc7cd74a7 100644 --- a/test/tint/builtins/gen/var/textureDimensions/60bf54.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/60bf54.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_60bf54() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_60bf54(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_60bf54(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_60bf54(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/63f3cf.wgsl b/test/tint/builtins/gen/var/textureDimensions/63f3cf.wgsl index ae013ed060..77eff3f39a 100644 --- a/test/tint/builtins/gen/var/textureDimensions/63f3cf.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/63f3cf.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_63f3cf() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_63f3cf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_63f3cf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_63f3cf(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/63f3cf.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/63f3cf.wgsl.expected.wgsl index 43e5f1573d..3e0ebfd2bf 100644 --- a/test/tint/builtins/gen/var/textureDimensions/63f3cf.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/63f3cf.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_63f3cf() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_63f3cf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_63f3cf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_63f3cf(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/68105c.wgsl b/test/tint/builtins/gen/var/textureDimensions/68105c.wgsl index ddac6b66ab..2c5f5dcd05 100644 --- a/test/tint/builtins/gen/var/textureDimensions/68105c.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/68105c.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_68105c() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_68105c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_68105c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_68105c(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/68105c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/68105c.wgsl.expected.wgsl index 853c631dc4..19c49290b7 100644 --- a/test/tint/builtins/gen/var/textureDimensions/68105c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/68105c.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_68105c() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_68105c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_68105c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_68105c(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/686ef2.wgsl b/test/tint/builtins/gen/var/textureDimensions/686ef2.wgsl index 8a24797438..afcbf8c809 100644 --- a/test/tint/builtins/gen/var/textureDimensions/686ef2.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/686ef2.wgsl @@ -30,18 +30,18 @@ fn textureDimensions_686ef2() { var res: vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_686ef2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_686ef2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_686ef2(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/686ef2.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/686ef2.wgsl.expected.wgsl index 19de8f06da..df409b74f8 100644 --- a/test/tint/builtins/gen/var/textureDimensions/686ef2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/686ef2.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn textureDimensions_686ef2() { var res : vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_686ef2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_686ef2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_686ef2(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/6adac6.wgsl b/test/tint/builtins/gen/var/textureDimensions/6adac6.wgsl index d079cf96b7..c63ff5fdb1 100644 --- a/test/tint/builtins/gen/var/textureDimensions/6adac6.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/6adac6.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_6adac6() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_6adac6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_6adac6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_6adac6(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/6adac6.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/6adac6.wgsl.expected.wgsl index c48c479c52..8ab67f07a3 100644 --- a/test/tint/builtins/gen/var/textureDimensions/6adac6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/6adac6.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_6adac6() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_6adac6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_6adac6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_6adac6(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/6ec1b4.wgsl b/test/tint/builtins/gen/var/textureDimensions/6ec1b4.wgsl index eaab1916bb..5038764430 100644 --- a/test/tint/builtins/gen/var/textureDimensions/6ec1b4.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/6ec1b4.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_6ec1b4() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_6ec1b4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_6ec1b4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_6ec1b4(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/6ec1b4.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/6ec1b4.wgsl.expected.wgsl index 6cc7cc1946..7573c55260 100644 --- a/test/tint/builtins/gen/var/textureDimensions/6ec1b4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/6ec1b4.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_6ec1b4() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_6ec1b4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_6ec1b4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_6ec1b4(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/6f0d79.wgsl b/test/tint/builtins/gen/var/textureDimensions/6f0d79.wgsl index 05ff7506bd..4b03051226 100644 --- a/test/tint/builtins/gen/var/textureDimensions/6f0d79.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/6f0d79.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_6f0d79() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_6f0d79(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_6f0d79(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_6f0d79(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/6f0d79.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/6f0d79.wgsl.expected.wgsl index 7b1f32c816..b055eea1db 100644 --- a/test/tint/builtins/gen/var/textureDimensions/6f0d79.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/6f0d79.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_6f0d79() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_6f0d79(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_6f0d79(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_6f0d79(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/702c53.wgsl b/test/tint/builtins/gen/var/textureDimensions/702c53.wgsl index 0673cb460d..b4459502b5 100644 --- a/test/tint/builtins/gen/var/textureDimensions/702c53.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/702c53.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_702c53() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_702c53(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_702c53(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_702c53(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/702c53.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/702c53.wgsl.expected.wgsl index 27d3074777..093625d570 100644 --- a/test/tint/builtins/gen/var/textureDimensions/702c53.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/702c53.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_702c53() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_702c53(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_702c53(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_702c53(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/72e5d6.wgsl b/test/tint/builtins/gen/var/textureDimensions/72e5d6.wgsl index 92e43ae11b..8f8c942d1f 100644 --- a/test/tint/builtins/gen/var/textureDimensions/72e5d6.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/72e5d6.wgsl @@ -30,18 +30,18 @@ fn textureDimensions_72e5d6() { var res: vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_72e5d6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_72e5d6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_72e5d6(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/72e5d6.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/72e5d6.wgsl.expected.wgsl index 7789fbc8f5..a6f1b85a29 100644 --- a/test/tint/builtins/gen/var/textureDimensions/72e5d6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/72e5d6.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn textureDimensions_72e5d6() { var res : vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_72e5d6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_72e5d6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_72e5d6(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/79df87.wgsl b/test/tint/builtins/gen/var/textureDimensions/79df87.wgsl index 868f9d9ec1..b9174bb816 100644 --- a/test/tint/builtins/gen/var/textureDimensions/79df87.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/79df87.wgsl @@ -30,18 +30,18 @@ fn textureDimensions_79df87() { var res: i32 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_79df87(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_79df87(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_79df87(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/79df87.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/79df87.wgsl.expected.wgsl index 3029f41870..23db8dc9e7 100644 --- a/test/tint/builtins/gen/var/textureDimensions/79df87.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/79df87.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn textureDimensions_79df87() { var res : i32 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_79df87(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_79df87(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_79df87(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/7bf826.wgsl b/test/tint/builtins/gen/var/textureDimensions/7bf826.wgsl index 6297e5a335..172a553bd4 100644 --- a/test/tint/builtins/gen/var/textureDimensions/7bf826.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/7bf826.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_7bf826() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_7bf826(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_7bf826(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_7bf826(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/7bf826.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/7bf826.wgsl.expected.wgsl index 50ddae7146..4953ba3b69 100644 --- a/test/tint/builtins/gen/var/textureDimensions/7bf826.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/7bf826.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_7bf826() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_7bf826(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_7bf826(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_7bf826(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/7f5c2e.wgsl b/test/tint/builtins/gen/var/textureDimensions/7f5c2e.wgsl index 97ce4ddafd..d754ab79b8 100644 --- a/test/tint/builtins/gen/var/textureDimensions/7f5c2e.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/7f5c2e.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_7f5c2e() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_7f5c2e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_7f5c2e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_7f5c2e(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/7f5c2e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/7f5c2e.wgsl.expected.wgsl index 0eecf68fd2..85bbc4b745 100644 --- a/test/tint/builtins/gen/var/textureDimensions/7f5c2e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/7f5c2e.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_7f5c2e() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_7f5c2e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_7f5c2e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_7f5c2e(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/8028f3.wgsl b/test/tint/builtins/gen/var/textureDimensions/8028f3.wgsl index b478fa2d96..1e26bccfe4 100644 --- a/test/tint/builtins/gen/var/textureDimensions/8028f3.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/8028f3.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_8028f3() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_8028f3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_8028f3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_8028f3(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/8028f3.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/8028f3.wgsl.expected.wgsl index 7ad57279ae..fbc19794de 100644 --- a/test/tint/builtins/gen/var/textureDimensions/8028f3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/8028f3.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_8028f3() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_8028f3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_8028f3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_8028f3(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/811679.wgsl b/test/tint/builtins/gen/var/textureDimensions/811679.wgsl index 7d7722d4f0..da8d8cb27d 100644 --- a/test/tint/builtins/gen/var/textureDimensions/811679.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/811679.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_811679() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_811679(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_811679(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_811679(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/811679.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/811679.wgsl.expected.wgsl index 154cddebb4..494c1da936 100644 --- a/test/tint/builtins/gen/var/textureDimensions/811679.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/811679.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_811679() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_811679(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_811679(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_811679(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/820596.wgsl b/test/tint/builtins/gen/var/textureDimensions/820596.wgsl index 8ec3269dce..c4803cf0b2 100644 --- a/test/tint/builtins/gen/var/textureDimensions/820596.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/820596.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_820596() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_820596(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_820596(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_820596(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/820596.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/820596.wgsl.expected.wgsl index 93106d5a90..dc1379f8f4 100644 --- a/test/tint/builtins/gen/var/textureDimensions/820596.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/820596.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_820596() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_820596(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_820596(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_820596(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/83ee5a.wgsl b/test/tint/builtins/gen/var/textureDimensions/83ee5a.wgsl index bdd0b53c32..162289b0db 100644 --- a/test/tint/builtins/gen/var/textureDimensions/83ee5a.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/83ee5a.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_83ee5a() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_83ee5a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_83ee5a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_83ee5a(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/83ee5a.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/83ee5a.wgsl.expected.wgsl index 3481e3c102..0d0d5ea87c 100644 --- a/test/tint/builtins/gen/var/textureDimensions/83ee5a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/83ee5a.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_83ee5a() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_83ee5a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_83ee5a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_83ee5a(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/85d556.wgsl b/test/tint/builtins/gen/var/textureDimensions/85d556.wgsl index 10a4318e5e..e7a2ff3edc 100644 --- a/test/tint/builtins/gen/var/textureDimensions/85d556.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/85d556.wgsl @@ -30,18 +30,18 @@ fn textureDimensions_85d556() { var res: vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_85d556(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_85d556(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_85d556(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/85d556.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/85d556.wgsl.expected.wgsl index 55c3e24a7d..4297cfbea6 100644 --- a/test/tint/builtins/gen/var/textureDimensions/85d556.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/85d556.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn textureDimensions_85d556() { var res : vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_85d556(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_85d556(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_85d556(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/88ad17.wgsl b/test/tint/builtins/gen/var/textureDimensions/88ad17.wgsl index f64186a99e..9f4b2e9018 100644 --- a/test/tint/builtins/gen/var/textureDimensions/88ad17.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/88ad17.wgsl @@ -30,18 +30,18 @@ fn textureDimensions_88ad17() { var res: vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_88ad17(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_88ad17(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_88ad17(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/88ad17.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/88ad17.wgsl.expected.wgsl index 8a2f64b484..c7755b863c 100644 --- a/test/tint/builtins/gen/var/textureDimensions/88ad17.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/88ad17.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn textureDimensions_88ad17() { var res : vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_88ad17(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_88ad17(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_88ad17(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/8aa4c4.wgsl b/test/tint/builtins/gen/var/textureDimensions/8aa4c4.wgsl index 4468f2676d..fde91a0a8c 100644 --- a/test/tint/builtins/gen/var/textureDimensions/8aa4c4.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/8aa4c4.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_8aa4c4() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_8aa4c4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_8aa4c4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_8aa4c4(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/8aa4c4.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/8aa4c4.wgsl.expected.wgsl index 3a59eb68df..840105bae9 100644 --- a/test/tint/builtins/gen/var/textureDimensions/8aa4c4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/8aa4c4.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_8aa4c4() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_8aa4c4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_8aa4c4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_8aa4c4(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/8deb5e.wgsl b/test/tint/builtins/gen/var/textureDimensions/8deb5e.wgsl index de87126016..a31d313752 100644 --- a/test/tint/builtins/gen/var/textureDimensions/8deb5e.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/8deb5e.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_8deb5e() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_8deb5e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_8deb5e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_8deb5e(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/8deb5e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/8deb5e.wgsl.expected.wgsl index 1f088c3858..c3e10c786b 100644 --- a/test/tint/builtins/gen/var/textureDimensions/8deb5e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/8deb5e.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_8deb5e() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_8deb5e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_8deb5e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_8deb5e(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/8f20bf.wgsl b/test/tint/builtins/gen/var/textureDimensions/8f20bf.wgsl index ba505967cf..d4b63472de 100644 --- a/test/tint/builtins/gen/var/textureDimensions/8f20bf.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/8f20bf.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_8f20bf() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_8f20bf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_8f20bf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_8f20bf(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/8f20bf.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/8f20bf.wgsl.expected.wgsl index e299daf159..2d3dcb0619 100644 --- a/test/tint/builtins/gen/var/textureDimensions/8f20bf.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/8f20bf.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_8f20bf() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_8f20bf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_8f20bf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_8f20bf(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/8fca0f.wgsl b/test/tint/builtins/gen/var/textureDimensions/8fca0f.wgsl index ca949de724..feea2a471d 100644 --- a/test/tint/builtins/gen/var/textureDimensions/8fca0f.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/8fca0f.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_8fca0f() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_8fca0f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_8fca0f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_8fca0f(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/8fca0f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/8fca0f.wgsl.expected.wgsl index 4599b2e29a..6ef7d1ba5c 100644 --- a/test/tint/builtins/gen/var/textureDimensions/8fca0f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/8fca0f.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_8fca0f() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_8fca0f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_8fca0f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_8fca0f(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/90340b.wgsl b/test/tint/builtins/gen/var/textureDimensions/90340b.wgsl index 4acb1f6412..d169f40c08 100644 --- a/test/tint/builtins/gen/var/textureDimensions/90340b.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/90340b.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_90340b() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_90340b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_90340b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_90340b(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/90340b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/90340b.wgsl.expected.wgsl index 2addbf1322..c70e0d392e 100644 --- a/test/tint/builtins/gen/var/textureDimensions/90340b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/90340b.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_90340b() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_90340b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_90340b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_90340b(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/9042ab.wgsl b/test/tint/builtins/gen/var/textureDimensions/9042ab.wgsl index 6365cba61e..c148d8888d 100644 --- a/test/tint/builtins/gen/var/textureDimensions/9042ab.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/9042ab.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_9042ab() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9042ab(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9042ab(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9042ab(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/9042ab.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/9042ab.wgsl.expected.wgsl index a2d866661b..1602fd8232 100644 --- a/test/tint/builtins/gen/var/textureDimensions/9042ab.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/9042ab.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_9042ab() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9042ab(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9042ab(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9042ab(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/9393b0.wgsl b/test/tint/builtins/gen/var/textureDimensions/9393b0.wgsl index 2872414576..102ad8fe8b 100644 --- a/test/tint/builtins/gen/var/textureDimensions/9393b0.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/9393b0.wgsl @@ -30,18 +30,18 @@ fn textureDimensions_9393b0() { var res: vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9393b0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9393b0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9393b0(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/9393b0.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/9393b0.wgsl.expected.wgsl index 6243a7fe9d..f46b018d11 100644 --- a/test/tint/builtins/gen/var/textureDimensions/9393b0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/9393b0.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn textureDimensions_9393b0() { var res : vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9393b0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9393b0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9393b0(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/939fdb.wgsl b/test/tint/builtins/gen/var/textureDimensions/939fdb.wgsl index 9852d37cf8..eb7dc6a049 100644 --- a/test/tint/builtins/gen/var/textureDimensions/939fdb.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/939fdb.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_939fdb() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_939fdb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_939fdb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_939fdb(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/939fdb.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/939fdb.wgsl.expected.wgsl index 12cc53592c..eda2bcb884 100644 --- a/test/tint/builtins/gen/var/textureDimensions/939fdb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/939fdb.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_939fdb() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_939fdb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_939fdb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_939fdb(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/962dcd.wgsl b/test/tint/builtins/gen/var/textureDimensions/962dcd.wgsl index fddb8289a4..14738c7451 100644 --- a/test/tint/builtins/gen/var/textureDimensions/962dcd.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/962dcd.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_962dcd() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_962dcd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_962dcd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_962dcd(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/962dcd.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/962dcd.wgsl.expected.wgsl index 8c1d2563a5..bd3ca7aa54 100644 --- a/test/tint/builtins/gen/var/textureDimensions/962dcd.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/962dcd.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_962dcd() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_962dcd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_962dcd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_962dcd(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/9abfe5.wgsl b/test/tint/builtins/gen/var/textureDimensions/9abfe5.wgsl index 4fea70cd28..20c87c3b16 100644 --- a/test/tint/builtins/gen/var/textureDimensions/9abfe5.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/9abfe5.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_9abfe5() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9abfe5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9abfe5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9abfe5(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/9abfe5.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/9abfe5.wgsl.expected.wgsl index fd979941fa..5845daaf79 100644 --- a/test/tint/builtins/gen/var/textureDimensions/9abfe5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/9abfe5.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_9abfe5() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9abfe5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9abfe5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9abfe5(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/9c9c57.wgsl b/test/tint/builtins/gen/var/textureDimensions/9c9c57.wgsl index d04579d7ed..d4f0c7099a 100644 --- a/test/tint/builtins/gen/var/textureDimensions/9c9c57.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/9c9c57.wgsl @@ -30,18 +30,18 @@ fn textureDimensions_9c9c57() { var res: vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9c9c57(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9c9c57(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9c9c57(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/9c9c57.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/9c9c57.wgsl.expected.wgsl index dd5cf5b246..cffe4b1ba8 100644 --- a/test/tint/builtins/gen/var/textureDimensions/9c9c57.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/9c9c57.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn textureDimensions_9c9c57() { var res : vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9c9c57(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9c9c57(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9c9c57(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/9da9e2.wgsl b/test/tint/builtins/gen/var/textureDimensions/9da9e2.wgsl index 05e9f02a72..66a2234f60 100644 --- a/test/tint/builtins/gen/var/textureDimensions/9da9e2.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/9da9e2.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_9da9e2() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9da9e2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9da9e2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9da9e2(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/9da9e2.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/9da9e2.wgsl.expected.wgsl index 3e1f941fcb..73cfaf1b3d 100644 --- a/test/tint/builtins/gen/var/textureDimensions/9da9e2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/9da9e2.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_9da9e2() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9da9e2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9da9e2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9da9e2(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/9eb8d8.wgsl b/test/tint/builtins/gen/var/textureDimensions/9eb8d8.wgsl index 8a3f461c91..8ab88402bb 100644 --- a/test/tint/builtins/gen/var/textureDimensions/9eb8d8.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/9eb8d8.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_9eb8d8() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9eb8d8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9eb8d8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9eb8d8(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/9eb8d8.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/9eb8d8.wgsl.expected.wgsl index 58bc54ffae..fc40eab388 100644 --- a/test/tint/builtins/gen/var/textureDimensions/9eb8d8.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/9eb8d8.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_9eb8d8() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9eb8d8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9eb8d8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9eb8d8(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/9f8e46.wgsl b/test/tint/builtins/gen/var/textureDimensions/9f8e46.wgsl index c2caccf29d..4de2592f88 100644 --- a/test/tint/builtins/gen/var/textureDimensions/9f8e46.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/9f8e46.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_9f8e46() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9f8e46(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9f8e46(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9f8e46(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/9f8e46.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/9f8e46.wgsl.expected.wgsl index df7b1a7e59..3d3ef8378f 100644 --- a/test/tint/builtins/gen/var/textureDimensions/9f8e46.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/9f8e46.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_9f8e46() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_9f8e46(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_9f8e46(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_9f8e46(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/a01845.wgsl b/test/tint/builtins/gen/var/textureDimensions/a01845.wgsl index 00aa1e57d6..9261aace95 100644 --- a/test/tint/builtins/gen/var/textureDimensions/a01845.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/a01845.wgsl @@ -30,18 +30,18 @@ fn textureDimensions_a01845() { var res: vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_a01845(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_a01845(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_a01845(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/a01845.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/a01845.wgsl.expected.wgsl index 70d0b729ac..8d395050cd 100644 --- a/test/tint/builtins/gen/var/textureDimensions/a01845.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/a01845.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn textureDimensions_a01845() { var res : vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_a01845(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_a01845(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_a01845(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/a7d565.wgsl b/test/tint/builtins/gen/var/textureDimensions/a7d565.wgsl index 2559f773d8..4629e87244 100644 --- a/test/tint/builtins/gen/var/textureDimensions/a7d565.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/a7d565.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_a7d565() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_a7d565(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_a7d565(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_a7d565(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/a7d565.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/a7d565.wgsl.expected.wgsl index 4cd2c97081..76183ec117 100644 --- a/test/tint/builtins/gen/var/textureDimensions/a7d565.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/a7d565.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_a7d565() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_a7d565(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_a7d565(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_a7d565(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/a863f2.wgsl b/test/tint/builtins/gen/var/textureDimensions/a863f2.wgsl index d88716e58e..7d1329fff8 100644 --- a/test/tint/builtins/gen/var/textureDimensions/a863f2.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/a863f2.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_a863f2() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_a863f2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_a863f2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_a863f2(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/a863f2.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/a863f2.wgsl.expected.wgsl index 257be4e0f7..d3e7e38700 100644 --- a/test/tint/builtins/gen/var/textureDimensions/a863f2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/a863f2.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_a863f2() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_a863f2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_a863f2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_a863f2(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/a9c9c1.wgsl b/test/tint/builtins/gen/var/textureDimensions/a9c9c1.wgsl index 7dac118e51..5111e6a56c 100644 --- a/test/tint/builtins/gen/var/textureDimensions/a9c9c1.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/a9c9c1.wgsl @@ -30,18 +30,18 @@ fn textureDimensions_a9c9c1() { var res: vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_a9c9c1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_a9c9c1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_a9c9c1(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/a9c9c1.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/a9c9c1.wgsl.expected.wgsl index 4532c170c0..a878fe0575 100644 --- a/test/tint/builtins/gen/var/textureDimensions/a9c9c1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/a9c9c1.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn textureDimensions_a9c9c1() { var res : vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_a9c9c1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_a9c9c1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_a9c9c1(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/b0e16d.wgsl b/test/tint/builtins/gen/var/textureDimensions/b0e16d.wgsl index ff16fe84ee..ad3cb17cac 100644 --- a/test/tint/builtins/gen/var/textureDimensions/b0e16d.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/b0e16d.wgsl @@ -30,18 +30,18 @@ fn textureDimensions_b0e16d() { var res: vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_b0e16d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_b0e16d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_b0e16d(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/b0e16d.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/b0e16d.wgsl.expected.wgsl index fd73808664..06f39cf7c5 100644 --- a/test/tint/builtins/gen/var/textureDimensions/b0e16d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/b0e16d.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn textureDimensions_b0e16d() { var res : vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_b0e16d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_b0e16d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_b0e16d(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/b3c954.wgsl b/test/tint/builtins/gen/var/textureDimensions/b3c954.wgsl index 2fb0e3d12c..5486e5a799 100644 --- a/test/tint/builtins/gen/var/textureDimensions/b3c954.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/b3c954.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_b3c954() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_b3c954(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_b3c954(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_b3c954(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/b3c954.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/b3c954.wgsl.expected.wgsl index de3b872866..8c364077df 100644 --- a/test/tint/builtins/gen/var/textureDimensions/b3c954.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/b3c954.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_b3c954() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_b3c954(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_b3c954(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_b3c954(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/b3e407.wgsl b/test/tint/builtins/gen/var/textureDimensions/b3e407.wgsl index 5b88cd2957..7a6dd9be2e 100644 --- a/test/tint/builtins/gen/var/textureDimensions/b3e407.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/b3e407.wgsl @@ -30,18 +30,18 @@ fn textureDimensions_b3e407() { var res: i32 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_b3e407(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_b3e407(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_b3e407(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/b3e407.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/b3e407.wgsl.expected.wgsl index 6e09c13292..95f3a26f99 100644 --- a/test/tint/builtins/gen/var/textureDimensions/b3e407.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/b3e407.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn textureDimensions_b3e407() { var res : i32 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_b3e407(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_b3e407(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_b3e407(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/b91240.wgsl b/test/tint/builtins/gen/var/textureDimensions/b91240.wgsl index df6cccbef5..984437e508 100644 --- a/test/tint/builtins/gen/var/textureDimensions/b91240.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/b91240.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_b91240() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_b91240(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_b91240(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_b91240(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/b91240.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/b91240.wgsl.expected.wgsl index 105338f1c8..7c88173764 100644 --- a/test/tint/builtins/gen/var/textureDimensions/b91240.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/b91240.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_b91240() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_b91240(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_b91240(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_b91240(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/ba1481.wgsl b/test/tint/builtins/gen/var/textureDimensions/ba1481.wgsl index 1cb0abe122..0469176b59 100644 --- a/test/tint/builtins/gen/var/textureDimensions/ba1481.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/ba1481.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_ba1481() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_ba1481(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_ba1481(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_ba1481(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/ba1481.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/ba1481.wgsl.expected.wgsl index 0bcf4af3de..cbc883776d 100644 --- a/test/tint/builtins/gen/var/textureDimensions/ba1481.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/ba1481.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_ba1481() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_ba1481(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_ba1481(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_ba1481(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/bb3dde.wgsl b/test/tint/builtins/gen/var/textureDimensions/bb3dde.wgsl index fec2488e79..0e971f89c3 100644 --- a/test/tint/builtins/gen/var/textureDimensions/bb3dde.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/bb3dde.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_bb3dde() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_bb3dde(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_bb3dde(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_bb3dde(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/bb3dde.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/bb3dde.wgsl.expected.wgsl index 005cae6f32..bd224fb852 100644 --- a/test/tint/builtins/gen/var/textureDimensions/bb3dde.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/bb3dde.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_bb3dde() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_bb3dde(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_bb3dde(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_bb3dde(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/c30e75.wgsl b/test/tint/builtins/gen/var/textureDimensions/c30e75.wgsl index c5afaf371b..582a4053b6 100644 --- a/test/tint/builtins/gen/var/textureDimensions/c30e75.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/c30e75.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_c30e75() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_c30e75(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_c30e75(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_c30e75(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/c30e75.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/c30e75.wgsl.expected.wgsl index ecf60b5c6b..121b2c32dd 100644 --- a/test/tint/builtins/gen/var/textureDimensions/c30e75.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/c30e75.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_c30e75() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_c30e75(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_c30e75(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_c30e75(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/c7943d.wgsl b/test/tint/builtins/gen/var/textureDimensions/c7943d.wgsl index 892ea87552..240e244904 100644 --- a/test/tint/builtins/gen/var/textureDimensions/c7943d.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/c7943d.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_c7943d() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_c7943d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_c7943d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_c7943d(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/c7943d.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/c7943d.wgsl.expected.wgsl index d664f33756..0d589b588d 100644 --- a/test/tint/builtins/gen/var/textureDimensions/c7943d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/c7943d.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_c7943d() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_c7943d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_c7943d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_c7943d(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/cc968c.wgsl b/test/tint/builtins/gen/var/textureDimensions/cc968c.wgsl index 42f777f254..7745787d78 100644 --- a/test/tint/builtins/gen/var/textureDimensions/cc968c.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/cc968c.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_cc968c() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_cc968c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_cc968c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_cc968c(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/cc968c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/cc968c.wgsl.expected.wgsl index 8198585683..8caceedc84 100644 --- a/test/tint/builtins/gen/var/textureDimensions/cc968c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/cc968c.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_cc968c() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_cc968c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_cc968c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_cc968c(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/cccc8f.wgsl b/test/tint/builtins/gen/var/textureDimensions/cccc8f.wgsl index b320e91e14..5b21d75e39 100644 --- a/test/tint/builtins/gen/var/textureDimensions/cccc8f.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/cccc8f.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_cccc8f() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_cccc8f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_cccc8f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_cccc8f(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/cccc8f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/cccc8f.wgsl.expected.wgsl index a4d44f0df9..19570add23 100644 --- a/test/tint/builtins/gen/var/textureDimensions/cccc8f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/cccc8f.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_cccc8f() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_cccc8f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_cccc8f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_cccc8f(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/cd76a7.wgsl b/test/tint/builtins/gen/var/textureDimensions/cd76a7.wgsl index 8959a179d7..3044d70792 100644 --- a/test/tint/builtins/gen/var/textureDimensions/cd76a7.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/cd76a7.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_cd76a7() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_cd76a7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_cd76a7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_cd76a7(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/cd76a7.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/cd76a7.wgsl.expected.wgsl index 139070fb82..fa3b1a9c68 100644 --- a/test/tint/builtins/gen/var/textureDimensions/cd76a7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/cd76a7.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_cd76a7() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_cd76a7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_cd76a7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_cd76a7(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/cdf473.wgsl b/test/tint/builtins/gen/var/textureDimensions/cdf473.wgsl index 3eb0f09d1d..f7f54855dd 100644 --- a/test/tint/builtins/gen/var/textureDimensions/cdf473.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/cdf473.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_cdf473() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_cdf473(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_cdf473(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_cdf473(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/cdf473.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/cdf473.wgsl.expected.wgsl index 31373c0050..a675dad97e 100644 --- a/test/tint/builtins/gen/var/textureDimensions/cdf473.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/cdf473.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_cdf473() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_cdf473(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_cdf473(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_cdf473(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/cec841.wgsl b/test/tint/builtins/gen/var/textureDimensions/cec841.wgsl index abd76b16c5..471ec9ca20 100644 --- a/test/tint/builtins/gen/var/textureDimensions/cec841.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/cec841.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_cec841() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_cec841(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_cec841(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_cec841(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/cec841.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/cec841.wgsl.expected.wgsl index d1667a0f6d..7a92b371d0 100644 --- a/test/tint/builtins/gen/var/textureDimensions/cec841.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/cec841.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_cec841() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_cec841(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_cec841(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_cec841(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/cf7e43.wgsl b/test/tint/builtins/gen/var/textureDimensions/cf7e43.wgsl index 8faa148e88..31ebad20b8 100644 --- a/test/tint/builtins/gen/var/textureDimensions/cf7e43.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/cf7e43.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_cf7e43() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_cf7e43(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_cf7e43(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_cf7e43(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/cf7e43.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/cf7e43.wgsl.expected.wgsl index fd5550b6bb..38c9845f8b 100644 --- a/test/tint/builtins/gen/var/textureDimensions/cf7e43.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/cf7e43.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_cf7e43() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_cf7e43(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_cf7e43(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_cf7e43(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/d125bc.wgsl b/test/tint/builtins/gen/var/textureDimensions/d125bc.wgsl index 62a607fe01..38cc6f9795 100644 --- a/test/tint/builtins/gen/var/textureDimensions/d125bc.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/d125bc.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_d125bc() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_d125bc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_d125bc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_d125bc(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/d125bc.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/d125bc.wgsl.expected.wgsl index e8b2c56e33..21f8b055f3 100644 --- a/test/tint/builtins/gen/var/textureDimensions/d125bc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/d125bc.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_d125bc() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_d125bc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_d125bc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_d125bc(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/d83c45.wgsl b/test/tint/builtins/gen/var/textureDimensions/d83c45.wgsl index 46265786bd..ea461bee4e 100644 --- a/test/tint/builtins/gen/var/textureDimensions/d83c45.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/d83c45.wgsl @@ -30,18 +30,18 @@ fn textureDimensions_d83c45() { var res: vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_d83c45(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_d83c45(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_d83c45(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/d83c45.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/d83c45.wgsl.expected.wgsl index a0186f6756..13f8d6b1ed 100644 --- a/test/tint/builtins/gen/var/textureDimensions/d83c45.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/d83c45.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn textureDimensions_d83c45() { var res : vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_d83c45(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_d83c45(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_d83c45(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/daf7c0.wgsl b/test/tint/builtins/gen/var/textureDimensions/daf7c0.wgsl index 9d66ada51a..c1f3feb9ea 100644 --- a/test/tint/builtins/gen/var/textureDimensions/daf7c0.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/daf7c0.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_daf7c0() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_daf7c0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_daf7c0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_daf7c0(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/daf7c0.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/daf7c0.wgsl.expected.wgsl index 6d2fbebf54..cf8158373d 100644 --- a/test/tint/builtins/gen/var/textureDimensions/daf7c0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/daf7c0.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_daf7c0() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_daf7c0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_daf7c0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_daf7c0(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/dc2dd0.wgsl b/test/tint/builtins/gen/var/textureDimensions/dc2dd0.wgsl index dd28eb479d..f560a93161 100644 --- a/test/tint/builtins/gen/var/textureDimensions/dc2dd0.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/dc2dd0.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_dc2dd0() { var res: i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_dc2dd0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_dc2dd0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_dc2dd0(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/dc2dd0.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/dc2dd0.wgsl.expected.wgsl index 5151ae90a7..53eaf8fad7 100644 --- a/test/tint/builtins/gen/var/textureDimensions/dc2dd0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/dc2dd0.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_dc2dd0() { var res : i32 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_dc2dd0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_dc2dd0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_dc2dd0(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/e927be.wgsl b/test/tint/builtins/gen/var/textureDimensions/e927be.wgsl index e711cdd7da..532ab9bb2d 100644 --- a/test/tint/builtins/gen/var/textureDimensions/e927be.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/e927be.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_e927be() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_e927be(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_e927be(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_e927be(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/e927be.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/e927be.wgsl.expected.wgsl index 637bad6a3b..1c420a19d6 100644 --- a/test/tint/builtins/gen/var/textureDimensions/e927be.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/e927be.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_e927be() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_e927be(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_e927be(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_e927be(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/e9e96c.wgsl b/test/tint/builtins/gen/var/textureDimensions/e9e96c.wgsl index 41b9f1e4ac..27ba50a5b2 100644 --- a/test/tint/builtins/gen/var/textureDimensions/e9e96c.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/e9e96c.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_e9e96c() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_e9e96c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_e9e96c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_e9e96c(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/e9e96c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/e9e96c.wgsl.expected.wgsl index 0f84facc76..4c37479f96 100644 --- a/test/tint/builtins/gen/var/textureDimensions/e9e96c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/e9e96c.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_e9e96c() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_e9e96c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_e9e96c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_e9e96c(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/ef5b89.wgsl b/test/tint/builtins/gen/var/textureDimensions/ef5b89.wgsl index b533d388c6..f7625ec6f9 100644 --- a/test/tint/builtins/gen/var/textureDimensions/ef5b89.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/ef5b89.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_ef5b89() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_ef5b89(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_ef5b89(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_ef5b89(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/ef5b89.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/ef5b89.wgsl.expected.wgsl index f7589624bb..32a0325cfd 100644 --- a/test/tint/builtins/gen/var/textureDimensions/ef5b89.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/ef5b89.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_ef5b89() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_ef5b89(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_ef5b89(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_ef5b89(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/efc8a4.wgsl b/test/tint/builtins/gen/var/textureDimensions/efc8a4.wgsl index 3c65b12e7b..43360e0d50 100644 --- a/test/tint/builtins/gen/var/textureDimensions/efc8a4.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/efc8a4.wgsl @@ -30,18 +30,18 @@ fn textureDimensions_efc8a4() { var res: vec3 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_efc8a4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_efc8a4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_efc8a4(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/efc8a4.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/efc8a4.wgsl.expected.wgsl index 0bec181c10..f65550d1c5 100644 --- a/test/tint/builtins/gen/var/textureDimensions/efc8a4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/efc8a4.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn textureDimensions_efc8a4() { var res : vec3 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_efc8a4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_efc8a4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_efc8a4(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/f60bdb.wgsl b/test/tint/builtins/gen/var/textureDimensions/f60bdb.wgsl index 167f39a254..21d5f904fa 100644 --- a/test/tint/builtins/gen/var/textureDimensions/f60bdb.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/f60bdb.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_f60bdb() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_f60bdb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_f60bdb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_f60bdb(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/f60bdb.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/f60bdb.wgsl.expected.wgsl index 04d24555c7..f22008da03 100644 --- a/test/tint/builtins/gen/var/textureDimensions/f60bdb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/f60bdb.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_f60bdb() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_f60bdb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_f60bdb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_f60bdb(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/f7145b.wgsl b/test/tint/builtins/gen/var/textureDimensions/f7145b.wgsl index b2c2685b81..cf66fa6284 100644 --- a/test/tint/builtins/gen/var/textureDimensions/f7145b.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/f7145b.wgsl @@ -30,18 +30,18 @@ fn textureDimensions_f7145b() { var res: vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_f7145b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_f7145b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_f7145b(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/f7145b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/f7145b.wgsl.expected.wgsl index 0bbfb0e8f3..a04f27d1fe 100644 --- a/test/tint/builtins/gen/var/textureDimensions/f7145b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/f7145b.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn textureDimensions_f7145b() { var res : vec2 = textureDimensions(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_f7145b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_f7145b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_f7145b(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/f931c7.wgsl b/test/tint/builtins/gen/var/textureDimensions/f931c7.wgsl index 85c0fab066..a10010eeed 100644 --- a/test/tint/builtins/gen/var/textureDimensions/f931c7.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/f931c7.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_f931c7() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_f931c7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_f931c7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_f931c7(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/f931c7.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/f931c7.wgsl.expected.wgsl index 14de15ab0c..041ed4c1b9 100644 --- a/test/tint/builtins/gen/var/textureDimensions/f931c7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/f931c7.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_f931c7() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_f931c7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_f931c7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_f931c7(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/fa9859.wgsl b/test/tint/builtins/gen/var/textureDimensions/fa9859.wgsl index 206c54ecf8..2992b658a5 100644 --- a/test/tint/builtins/gen/var/textureDimensions/fa9859.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/fa9859.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_fa9859() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_fa9859(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_fa9859(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_fa9859(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/fa9859.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/fa9859.wgsl.expected.wgsl index 58b2bd0e55..3acbf7dd2f 100644 --- a/test/tint/builtins/gen/var/textureDimensions/fa9859.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/fa9859.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_fa9859() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_fa9859(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_fa9859(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_fa9859(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/fb5670.wgsl b/test/tint/builtins/gen/var/textureDimensions/fb5670.wgsl index fcfb9cf8c8..fd06d1efe5 100644 --- a/test/tint/builtins/gen/var/textureDimensions/fb5670.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/fb5670.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_fb5670() { var res: vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_fb5670(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_fb5670(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_fb5670(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/fb5670.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/fb5670.wgsl.expected.wgsl index 79fcdb8375..199f3559ca 100644 --- a/test/tint/builtins/gen/var/textureDimensions/fb5670.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/fb5670.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_fb5670() { var res : vec2 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_fb5670(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_fb5670(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_fb5670(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/fcac78.wgsl b/test/tint/builtins/gen/var/textureDimensions/fcac78.wgsl index 7e7c4d874f..e7b1dbbbcb 100644 --- a/test/tint/builtins/gen/var/textureDimensions/fcac78.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/fcac78.wgsl @@ -29,18 +29,18 @@ fn textureDimensions_fcac78() { var res: vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_fcac78(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_fcac78(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_fcac78(); } diff --git a/test/tint/builtins/gen/var/textureDimensions/fcac78.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureDimensions/fcac78.wgsl.expected.wgsl index bd243ab9de..3e13671d20 100644 --- a/test/tint/builtins/gen/var/textureDimensions/fcac78.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureDimensions/fcac78.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureDimensions_fcac78() { var res : vec3 = textureDimensions(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureDimensions_fcac78(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureDimensions_fcac78(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureDimensions_fcac78(); } diff --git a/test/tint/builtins/gen/var/textureGather/10c554.wgsl b/test/tint/builtins/gen/var/textureGather/10c554.wgsl index 3f1f968cdb..4e211a5bd0 100644 --- a/test/tint/builtins/gen/var/textureGather/10c554.wgsl +++ b/test/tint/builtins/gen/var/textureGather/10c554.wgsl @@ -31,18 +31,18 @@ fn textureGather_10c554() { var res: vec4 = textureGather(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_10c554(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_10c554(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_10c554(); } diff --git a/test/tint/builtins/gen/var/textureGather/10c554.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGather/10c554.wgsl.expected.wgsl index 2e22217e6f..4df84e8e08 100644 --- a/test/tint/builtins/gen/var/textureGather/10c554.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGather/10c554.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureGather_10c554() { var res : vec4 = textureGather(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_10c554(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_10c554(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_10c554(); } diff --git a/test/tint/builtins/gen/var/textureGather/1f7f6b.wgsl b/test/tint/builtins/gen/var/textureGather/1f7f6b.wgsl index e22c989947..c349ad7c83 100644 --- a/test/tint/builtins/gen/var/textureGather/1f7f6b.wgsl +++ b/test/tint/builtins/gen/var/textureGather/1f7f6b.wgsl @@ -31,18 +31,18 @@ fn textureGather_1f7f6b() { var res: vec4 = textureGather(arg_0, arg_1, arg_2, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_1f7f6b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_1f7f6b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_1f7f6b(); } diff --git a/test/tint/builtins/gen/var/textureGather/1f7f6b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGather/1f7f6b.wgsl.expected.wgsl index b5b56634a1..33aec6eb6c 100644 --- a/test/tint/builtins/gen/var/textureGather/1f7f6b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGather/1f7f6b.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureGather_1f7f6b() { var res : vec4 = textureGather(arg_0, arg_1, arg_2, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_1f7f6b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_1f7f6b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_1f7f6b(); } diff --git a/test/tint/builtins/gen/var/textureGather/22e930.wgsl b/test/tint/builtins/gen/var/textureGather/22e930.wgsl index ba57f22822..cc9aa07f08 100644 --- a/test/tint/builtins/gen/var/textureGather/22e930.wgsl +++ b/test/tint/builtins/gen/var/textureGather/22e930.wgsl @@ -32,18 +32,18 @@ fn textureGather_22e930() { var res: vec4 = textureGather(1, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_22e930(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_22e930(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_22e930(); } diff --git a/test/tint/builtins/gen/var/textureGather/22e930.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGather/22e930.wgsl.expected.wgsl index 2642e65308..e804200500 100644 --- a/test/tint/builtins/gen/var/textureGather/22e930.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGather/22e930.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureGather_22e930() { var res : vec4 = textureGather(1, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_22e930(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_22e930(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_22e930(); } diff --git a/test/tint/builtins/gen/var/textureGather/2cc066.wgsl b/test/tint/builtins/gen/var/textureGather/2cc066.wgsl index 436aa7448e..c36b4ede57 100644 --- a/test/tint/builtins/gen/var/textureGather/2cc066.wgsl +++ b/test/tint/builtins/gen/var/textureGather/2cc066.wgsl @@ -32,18 +32,18 @@ fn textureGather_2cc066() { var res: vec4 = textureGather(1, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_2cc066(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_2cc066(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_2cc066(); } diff --git a/test/tint/builtins/gen/var/textureGather/2cc066.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGather/2cc066.wgsl.expected.wgsl index a7766aafab..d6358a9bc4 100644 --- a/test/tint/builtins/gen/var/textureGather/2cc066.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGather/2cc066.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureGather_2cc066() { var res : vec4 = textureGather(1, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_2cc066(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_2cc066(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_2cc066(); } diff --git a/test/tint/builtins/gen/var/textureGather/2e0ed5.wgsl b/test/tint/builtins/gen/var/textureGather/2e0ed5.wgsl index f678c1d059..8d9bd80374 100644 --- a/test/tint/builtins/gen/var/textureGather/2e0ed5.wgsl +++ b/test/tint/builtins/gen/var/textureGather/2e0ed5.wgsl @@ -31,18 +31,18 @@ fn textureGather_2e0ed5() { var res: vec4 = textureGather(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_2e0ed5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_2e0ed5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_2e0ed5(); } diff --git a/test/tint/builtins/gen/var/textureGather/2e0ed5.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGather/2e0ed5.wgsl.expected.wgsl index b2617bb533..b5d2415adf 100644 --- a/test/tint/builtins/gen/var/textureGather/2e0ed5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGather/2e0ed5.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureGather_2e0ed5() { var res : vec4 = textureGather(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_2e0ed5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_2e0ed5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_2e0ed5(); } diff --git a/test/tint/builtins/gen/var/textureGather/32c4e8.wgsl b/test/tint/builtins/gen/var/textureGather/32c4e8.wgsl index 981274f851..de3cd4bb54 100644 --- a/test/tint/builtins/gen/var/textureGather/32c4e8.wgsl +++ b/test/tint/builtins/gen/var/textureGather/32c4e8.wgsl @@ -31,18 +31,18 @@ fn textureGather_32c4e8() { var res: vec4 = textureGather(1, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_32c4e8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_32c4e8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_32c4e8(); } diff --git a/test/tint/builtins/gen/var/textureGather/32c4e8.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGather/32c4e8.wgsl.expected.wgsl index 257838472a..d748a7b081 100644 --- a/test/tint/builtins/gen/var/textureGather/32c4e8.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGather/32c4e8.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureGather_32c4e8() { var res : vec4 = textureGather(1, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_32c4e8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_32c4e8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_32c4e8(); } diff --git a/test/tint/builtins/gen/var/textureGather/3b32cc.wgsl b/test/tint/builtins/gen/var/textureGather/3b32cc.wgsl index 361b66f62d..ef9e7de117 100644 --- a/test/tint/builtins/gen/var/textureGather/3b32cc.wgsl +++ b/test/tint/builtins/gen/var/textureGather/3b32cc.wgsl @@ -31,18 +31,18 @@ fn textureGather_3b32cc() { var res: vec4 = textureGather(1, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_3b32cc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_3b32cc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_3b32cc(); } diff --git a/test/tint/builtins/gen/var/textureGather/3b32cc.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGather/3b32cc.wgsl.expected.wgsl index 769f417c33..3d33dcb297 100644 --- a/test/tint/builtins/gen/var/textureGather/3b32cc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGather/3b32cc.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureGather_3b32cc() { var res : vec4 = textureGather(1, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_3b32cc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_3b32cc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_3b32cc(); } diff --git a/test/tint/builtins/gen/var/textureGather/43025d.wgsl b/test/tint/builtins/gen/var/textureGather/43025d.wgsl index f17e27514c..11de541117 100644 --- a/test/tint/builtins/gen/var/textureGather/43025d.wgsl +++ b/test/tint/builtins/gen/var/textureGather/43025d.wgsl @@ -32,18 +32,18 @@ fn textureGather_43025d() { var res: vec4 = textureGather(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_43025d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_43025d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_43025d(); } diff --git a/test/tint/builtins/gen/var/textureGather/43025d.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGather/43025d.wgsl.expected.wgsl index 4abc4a15f7..8624141d78 100644 --- a/test/tint/builtins/gen/var/textureGather/43025d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGather/43025d.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureGather_43025d() { var res : vec4 = textureGather(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_43025d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_43025d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_43025d(); } diff --git a/test/tint/builtins/gen/var/textureGather/49b07f.wgsl b/test/tint/builtins/gen/var/textureGather/49b07f.wgsl index b72043a563..b20b677bb2 100644 --- a/test/tint/builtins/gen/var/textureGather/49b07f.wgsl +++ b/test/tint/builtins/gen/var/textureGather/49b07f.wgsl @@ -31,18 +31,18 @@ fn textureGather_49b07f() { var res: vec4 = textureGather(1, arg_1, arg_2, arg_3, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_49b07f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_49b07f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_49b07f(); } diff --git a/test/tint/builtins/gen/var/textureGather/49b07f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGather/49b07f.wgsl.expected.wgsl index 7153c61424..78eb732857 100644 --- a/test/tint/builtins/gen/var/textureGather/49b07f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGather/49b07f.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureGather_49b07f() { var res : vec4 = textureGather(1, arg_1, arg_2, arg_3, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_49b07f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_49b07f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_49b07f(); } diff --git a/test/tint/builtins/gen/var/textureGather/4b8103.wgsl b/test/tint/builtins/gen/var/textureGather/4b8103.wgsl index 8cd2108a15..d88ce60ab6 100644 --- a/test/tint/builtins/gen/var/textureGather/4b8103.wgsl +++ b/test/tint/builtins/gen/var/textureGather/4b8103.wgsl @@ -32,18 +32,18 @@ fn textureGather_4b8103() { var res: vec4 = textureGather(1, arg_1, arg_2, arg_3, arg_4, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_4b8103(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_4b8103(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_4b8103(); } diff --git a/test/tint/builtins/gen/var/textureGather/4b8103.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGather/4b8103.wgsl.expected.wgsl index 1fa629ee20..05fe1370c1 100644 --- a/test/tint/builtins/gen/var/textureGather/4b8103.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGather/4b8103.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureGather_4b8103() { var res : vec4 = textureGather(1, arg_1, arg_2, arg_3, arg_4, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_4b8103(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_4b8103(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_4b8103(); } diff --git a/test/tint/builtins/gen/var/textureGather/5266da.wgsl b/test/tint/builtins/gen/var/textureGather/5266da.wgsl index 3514a736df..44b22c9f0c 100644 --- a/test/tint/builtins/gen/var/textureGather/5266da.wgsl +++ b/test/tint/builtins/gen/var/textureGather/5266da.wgsl @@ -31,18 +31,18 @@ fn textureGather_5266da() { var res: vec4 = textureGather(1, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_5266da(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_5266da(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_5266da(); } diff --git a/test/tint/builtins/gen/var/textureGather/5266da.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGather/5266da.wgsl.expected.wgsl index cca1739cb2..9bf8e14dcd 100644 --- a/test/tint/builtins/gen/var/textureGather/5266da.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGather/5266da.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureGather_5266da() { var res : vec4 = textureGather(1, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_5266da(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_5266da(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_5266da(); } diff --git a/test/tint/builtins/gen/var/textureGather/5ba85f.wgsl b/test/tint/builtins/gen/var/textureGather/5ba85f.wgsl index bbf18dd931..00d205fffe 100644 --- a/test/tint/builtins/gen/var/textureGather/5ba85f.wgsl +++ b/test/tint/builtins/gen/var/textureGather/5ba85f.wgsl @@ -31,18 +31,18 @@ fn textureGather_5ba85f() { var res: vec4 = textureGather(1, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_5ba85f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_5ba85f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_5ba85f(); } diff --git a/test/tint/builtins/gen/var/textureGather/5ba85f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGather/5ba85f.wgsl.expected.wgsl index bc8269afa7..3f97184d5a 100644 --- a/test/tint/builtins/gen/var/textureGather/5ba85f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGather/5ba85f.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureGather_5ba85f() { var res : vec4 = textureGather(1, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_5ba85f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_5ba85f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_5ba85f(); } diff --git a/test/tint/builtins/gen/var/textureGather/5bd491.wgsl b/test/tint/builtins/gen/var/textureGather/5bd491.wgsl index 13d3c92aa4..a057d46f09 100644 --- a/test/tint/builtins/gen/var/textureGather/5bd491.wgsl +++ b/test/tint/builtins/gen/var/textureGather/5bd491.wgsl @@ -31,18 +31,18 @@ fn textureGather_5bd491() { var res: vec4 = textureGather(1, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_5bd491(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_5bd491(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_5bd491(); } diff --git a/test/tint/builtins/gen/var/textureGather/5bd491.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGather/5bd491.wgsl.expected.wgsl index 7e8077e9ed..e39e4cfc2e 100644 --- a/test/tint/builtins/gen/var/textureGather/5bd491.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGather/5bd491.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureGather_5bd491() { var res : vec4 = textureGather(1, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_5bd491(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_5bd491(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_5bd491(); } diff --git a/test/tint/builtins/gen/var/textureGather/751f8a.wgsl b/test/tint/builtins/gen/var/textureGather/751f8a.wgsl index 4103e55809..d767ad3db1 100644 --- a/test/tint/builtins/gen/var/textureGather/751f8a.wgsl +++ b/test/tint/builtins/gen/var/textureGather/751f8a.wgsl @@ -32,18 +32,18 @@ fn textureGather_751f8a() { var res: vec4 = textureGather(1, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_751f8a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_751f8a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_751f8a(); } diff --git a/test/tint/builtins/gen/var/textureGather/751f8a.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGather/751f8a.wgsl.expected.wgsl index 81f901db8b..26429ac4c0 100644 --- a/test/tint/builtins/gen/var/textureGather/751f8a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGather/751f8a.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureGather_751f8a() { var res : vec4 = textureGather(1, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_751f8a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_751f8a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_751f8a(); } diff --git a/test/tint/builtins/gen/var/textureGather/7c3828.wgsl b/test/tint/builtins/gen/var/textureGather/7c3828.wgsl index 3ae2518401..1c1e0e0800 100644 --- a/test/tint/builtins/gen/var/textureGather/7c3828.wgsl +++ b/test/tint/builtins/gen/var/textureGather/7c3828.wgsl @@ -31,18 +31,18 @@ fn textureGather_7c3828() { var res: vec4 = textureGather(1, arg_1, arg_2, arg_3, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_7c3828(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_7c3828(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_7c3828(); } diff --git a/test/tint/builtins/gen/var/textureGather/7c3828.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGather/7c3828.wgsl.expected.wgsl index 701c035da6..326c0a70ae 100644 --- a/test/tint/builtins/gen/var/textureGather/7c3828.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGather/7c3828.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureGather_7c3828() { var res : vec4 = textureGather(1, arg_1, arg_2, arg_3, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_7c3828(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_7c3828(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_7c3828(); } diff --git a/test/tint/builtins/gen/var/textureGather/8b754c.wgsl b/test/tint/builtins/gen/var/textureGather/8b754c.wgsl index 155ef01431..96db5bd8e3 100644 --- a/test/tint/builtins/gen/var/textureGather/8b754c.wgsl +++ b/test/tint/builtins/gen/var/textureGather/8b754c.wgsl @@ -32,18 +32,18 @@ fn textureGather_8b754c() { var res: vec4 = textureGather(1, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_8b754c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_8b754c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_8b754c(); } diff --git a/test/tint/builtins/gen/var/textureGather/8b754c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGather/8b754c.wgsl.expected.wgsl index 7bcabc248c..11a8062178 100644 --- a/test/tint/builtins/gen/var/textureGather/8b754c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGather/8b754c.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureGather_8b754c() { var res : vec4 = textureGather(1, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_8b754c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_8b754c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_8b754c(); } diff --git a/test/tint/builtins/gen/var/textureGather/9a6358.wgsl b/test/tint/builtins/gen/var/textureGather/9a6358.wgsl index 8d662be8e1..be2317ee3e 100644 --- a/test/tint/builtins/gen/var/textureGather/9a6358.wgsl +++ b/test/tint/builtins/gen/var/textureGather/9a6358.wgsl @@ -32,18 +32,18 @@ fn textureGather_9a6358() { var res: vec4 = textureGather(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_9a6358(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_9a6358(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_9a6358(); } diff --git a/test/tint/builtins/gen/var/textureGather/9a6358.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGather/9a6358.wgsl.expected.wgsl index 91e2ccd243..4c3a7ec896 100644 --- a/test/tint/builtins/gen/var/textureGather/9a6358.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGather/9a6358.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureGather_9a6358() { var res : vec4 = textureGather(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_9a6358(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_9a6358(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_9a6358(); } diff --git a/test/tint/builtins/gen/var/textureGather/af55b3.wgsl b/test/tint/builtins/gen/var/textureGather/af55b3.wgsl index 754bffcf00..9898662f4c 100644 --- a/test/tint/builtins/gen/var/textureGather/af55b3.wgsl +++ b/test/tint/builtins/gen/var/textureGather/af55b3.wgsl @@ -31,18 +31,18 @@ fn textureGather_af55b3() { var res: vec4 = textureGather(1, arg_1, arg_2, arg_3, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_af55b3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_af55b3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_af55b3(); } diff --git a/test/tint/builtins/gen/var/textureGather/af55b3.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGather/af55b3.wgsl.expected.wgsl index e0e56dbebf..bc63ad8f34 100644 --- a/test/tint/builtins/gen/var/textureGather/af55b3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGather/af55b3.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureGather_af55b3() { var res : vec4 = textureGather(1, arg_1, arg_2, arg_3, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_af55b3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_af55b3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_af55b3(); } diff --git a/test/tint/builtins/gen/var/textureGather/bb3ac5.wgsl b/test/tint/builtins/gen/var/textureGather/bb3ac5.wgsl index a0a33cbbb6..6b06f4e704 100644 --- a/test/tint/builtins/gen/var/textureGather/bb3ac5.wgsl +++ b/test/tint/builtins/gen/var/textureGather/bb3ac5.wgsl @@ -31,18 +31,18 @@ fn textureGather_bb3ac5() { var res: vec4 = textureGather(1, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_bb3ac5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_bb3ac5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_bb3ac5(); } diff --git a/test/tint/builtins/gen/var/textureGather/bb3ac5.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGather/bb3ac5.wgsl.expected.wgsl index e7eb3e8fad..62af63a3e3 100644 --- a/test/tint/builtins/gen/var/textureGather/bb3ac5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGather/bb3ac5.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureGather_bb3ac5() { var res : vec4 = textureGather(1, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_bb3ac5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_bb3ac5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_bb3ac5(); } diff --git a/test/tint/builtins/gen/var/textureGather/c0640c.wgsl b/test/tint/builtins/gen/var/textureGather/c0640c.wgsl index 6c23eb073b..f6e672a351 100644 --- a/test/tint/builtins/gen/var/textureGather/c0640c.wgsl +++ b/test/tint/builtins/gen/var/textureGather/c0640c.wgsl @@ -32,18 +32,18 @@ fn textureGather_c0640c() { var res: vec4 = textureGather(1, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_c0640c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_c0640c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_c0640c(); } diff --git a/test/tint/builtins/gen/var/textureGather/c0640c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGather/c0640c.wgsl.expected.wgsl index da3cf25865..ecea543186 100644 --- a/test/tint/builtins/gen/var/textureGather/c0640c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGather/c0640c.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureGather_c0640c() { var res : vec4 = textureGather(1, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_c0640c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_c0640c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_c0640c(); } diff --git a/test/tint/builtins/gen/var/textureGather/d1f187.wgsl b/test/tint/builtins/gen/var/textureGather/d1f187.wgsl index f6546dbc7c..7bd95718dd 100644 --- a/test/tint/builtins/gen/var/textureGather/d1f187.wgsl +++ b/test/tint/builtins/gen/var/textureGather/d1f187.wgsl @@ -32,18 +32,18 @@ fn textureGather_d1f187() { var res: vec4 = textureGather(1, arg_1, arg_2, arg_3, arg_4, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_d1f187(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_d1f187(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_d1f187(); } diff --git a/test/tint/builtins/gen/var/textureGather/d1f187.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGather/d1f187.wgsl.expected.wgsl index 93aa44d9ef..6c817298da 100644 --- a/test/tint/builtins/gen/var/textureGather/d1f187.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGather/d1f187.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureGather_d1f187() { var res : vec4 = textureGather(1, arg_1, arg_2, arg_3, arg_4, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_d1f187(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_d1f187(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_d1f187(); } diff --git a/test/tint/builtins/gen/var/textureGather/d90605.wgsl b/test/tint/builtins/gen/var/textureGather/d90605.wgsl index c813243b5a..b932cdba35 100644 --- a/test/tint/builtins/gen/var/textureGather/d90605.wgsl +++ b/test/tint/builtins/gen/var/textureGather/d90605.wgsl @@ -32,18 +32,18 @@ fn textureGather_d90605() { var res: vec4 = textureGather(arg_0, arg_1, arg_2, arg_3, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_d90605(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_d90605(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_d90605(); } diff --git a/test/tint/builtins/gen/var/textureGather/d90605.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGather/d90605.wgsl.expected.wgsl index be99bc531c..e27b9c7939 100644 --- a/test/tint/builtins/gen/var/textureGather/d90605.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGather/d90605.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureGather_d90605() { var res : vec4 = textureGather(arg_0, arg_1, arg_2, arg_3, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_d90605(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_d90605(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_d90605(); } diff --git a/test/tint/builtins/gen/var/textureGather/e9d390.wgsl b/test/tint/builtins/gen/var/textureGather/e9d390.wgsl index afee0450d8..556de0f0e7 100644 --- a/test/tint/builtins/gen/var/textureGather/e9d390.wgsl +++ b/test/tint/builtins/gen/var/textureGather/e9d390.wgsl @@ -32,18 +32,18 @@ fn textureGather_e9d390() { var res: vec4 = textureGather(1, arg_1, arg_2, arg_3, arg_4, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_e9d390(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_e9d390(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_e9d390(); } diff --git a/test/tint/builtins/gen/var/textureGather/e9d390.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGather/e9d390.wgsl.expected.wgsl index 5b73c9d106..b4ffcf0cb6 100644 --- a/test/tint/builtins/gen/var/textureGather/e9d390.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGather/e9d390.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureGather_e9d390() { var res : vec4 = textureGather(1, arg_1, arg_2, arg_3, arg_4, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_e9d390(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_e9d390(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_e9d390(); } diff --git a/test/tint/builtins/gen/var/textureGather/f2c6e3.wgsl b/test/tint/builtins/gen/var/textureGather/f2c6e3.wgsl index e68bee7f32..2652fa4418 100644 --- a/test/tint/builtins/gen/var/textureGather/f2c6e3.wgsl +++ b/test/tint/builtins/gen/var/textureGather/f2c6e3.wgsl @@ -32,18 +32,18 @@ fn textureGather_f2c6e3() { var res: vec4 = textureGather(1, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_f2c6e3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_f2c6e3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_f2c6e3(); } diff --git a/test/tint/builtins/gen/var/textureGather/f2c6e3.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGather/f2c6e3.wgsl.expected.wgsl index a12cb2e79a..725af08831 100644 --- a/test/tint/builtins/gen/var/textureGather/f2c6e3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGather/f2c6e3.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureGather_f2c6e3() { var res : vec4 = textureGather(1, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGather_f2c6e3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGather_f2c6e3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGather_f2c6e3(); } diff --git a/test/tint/builtins/gen/var/textureGatherCompare/182fd4.wgsl b/test/tint/builtins/gen/var/textureGatherCompare/182fd4.wgsl index c4cd7b290b..dbd06b9daa 100644 --- a/test/tint/builtins/gen/var/textureGatherCompare/182fd4.wgsl +++ b/test/tint/builtins/gen/var/textureGatherCompare/182fd4.wgsl @@ -32,18 +32,18 @@ fn textureGatherCompare_182fd4() { var res: vec4 = textureGatherCompare(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGatherCompare_182fd4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGatherCompare_182fd4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGatherCompare_182fd4(); } diff --git a/test/tint/builtins/gen/var/textureGatherCompare/182fd4.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGatherCompare/182fd4.wgsl.expected.wgsl index 14cdd2b55c..f9909202a8 100644 --- a/test/tint/builtins/gen/var/textureGatherCompare/182fd4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGatherCompare/182fd4.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureGatherCompare_182fd4() { var res : vec4 = textureGatherCompare(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGatherCompare_182fd4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGatherCompare_182fd4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGatherCompare_182fd4(); } diff --git a/test/tint/builtins/gen/var/textureGatherCompare/313add.wgsl b/test/tint/builtins/gen/var/textureGatherCompare/313add.wgsl index e7dcda61cc..f2519ce330 100644 --- a/test/tint/builtins/gen/var/textureGatherCompare/313add.wgsl +++ b/test/tint/builtins/gen/var/textureGatherCompare/313add.wgsl @@ -32,18 +32,18 @@ fn textureGatherCompare_313add() { var res: vec4 = textureGatherCompare(arg_0, arg_1, arg_2, arg_3, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGatherCompare_313add(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGatherCompare_313add(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGatherCompare_313add(); } diff --git a/test/tint/builtins/gen/var/textureGatherCompare/313add.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGatherCompare/313add.wgsl.expected.wgsl index 280870d4f4..6d6db3d4c9 100644 --- a/test/tint/builtins/gen/var/textureGatherCompare/313add.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGatherCompare/313add.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureGatherCompare_313add() { var res : vec4 = textureGatherCompare(arg_0, arg_1, arg_2, arg_3, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGatherCompare_313add(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGatherCompare_313add(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGatherCompare_313add(); } diff --git a/test/tint/builtins/gen/var/textureGatherCompare/60d2d1.wgsl b/test/tint/builtins/gen/var/textureGatherCompare/60d2d1.wgsl index 279f1cc13a..cd30ef2529 100644 --- a/test/tint/builtins/gen/var/textureGatherCompare/60d2d1.wgsl +++ b/test/tint/builtins/gen/var/textureGatherCompare/60d2d1.wgsl @@ -33,18 +33,18 @@ fn textureGatherCompare_60d2d1() { var res: vec4 = textureGatherCompare(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGatherCompare_60d2d1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGatherCompare_60d2d1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGatherCompare_60d2d1(); } diff --git a/test/tint/builtins/gen/var/textureGatherCompare/60d2d1.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGatherCompare/60d2d1.wgsl.expected.wgsl index 630a5af3d9..d786d88ea6 100644 --- a/test/tint/builtins/gen/var/textureGatherCompare/60d2d1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGatherCompare/60d2d1.wgsl.expected.wgsl @@ -9,18 +9,18 @@ fn textureGatherCompare_60d2d1() { var res : vec4 = textureGatherCompare(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGatherCompare_60d2d1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGatherCompare_60d2d1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGatherCompare_60d2d1(); } diff --git a/test/tint/builtins/gen/var/textureGatherCompare/6d9352.wgsl b/test/tint/builtins/gen/var/textureGatherCompare/6d9352.wgsl index 4f8562bf2b..0c0dd06bf7 100644 --- a/test/tint/builtins/gen/var/textureGatherCompare/6d9352.wgsl +++ b/test/tint/builtins/gen/var/textureGatherCompare/6d9352.wgsl @@ -32,18 +32,18 @@ fn textureGatherCompare_6d9352() { var res: vec4 = textureGatherCompare(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGatherCompare_6d9352(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGatherCompare_6d9352(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGatherCompare_6d9352(); } diff --git a/test/tint/builtins/gen/var/textureGatherCompare/6d9352.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGatherCompare/6d9352.wgsl.expected.wgsl index b45c6fd084..2a39d9e9da 100644 --- a/test/tint/builtins/gen/var/textureGatherCompare/6d9352.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGatherCompare/6d9352.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureGatherCompare_6d9352() { var res : vec4 = textureGatherCompare(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGatherCompare_6d9352(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGatherCompare_6d9352(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGatherCompare_6d9352(); } diff --git a/test/tint/builtins/gen/var/textureGatherCompare/783e65.wgsl b/test/tint/builtins/gen/var/textureGatherCompare/783e65.wgsl index 5215238c4a..ca16ba1947 100644 --- a/test/tint/builtins/gen/var/textureGatherCompare/783e65.wgsl +++ b/test/tint/builtins/gen/var/textureGatherCompare/783e65.wgsl @@ -33,18 +33,18 @@ fn textureGatherCompare_783e65() { var res: vec4 = textureGatherCompare(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGatherCompare_783e65(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGatherCompare_783e65(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGatherCompare_783e65(); } diff --git a/test/tint/builtins/gen/var/textureGatherCompare/783e65.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGatherCompare/783e65.wgsl.expected.wgsl index 9ce6640352..a9edd2617b 100644 --- a/test/tint/builtins/gen/var/textureGatherCompare/783e65.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGatherCompare/783e65.wgsl.expected.wgsl @@ -9,18 +9,18 @@ fn textureGatherCompare_783e65() { var res : vec4 = textureGatherCompare(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGatherCompare_783e65(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGatherCompare_783e65(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGatherCompare_783e65(); } diff --git a/test/tint/builtins/gen/var/textureGatherCompare/f585cc.wgsl b/test/tint/builtins/gen/var/textureGatherCompare/f585cc.wgsl index 17d15e20a1..3ff121823e 100644 --- a/test/tint/builtins/gen/var/textureGatherCompare/f585cc.wgsl +++ b/test/tint/builtins/gen/var/textureGatherCompare/f585cc.wgsl @@ -33,18 +33,18 @@ fn textureGatherCompare_f585cc() { var res: vec4 = textureGatherCompare(arg_0, arg_1, arg_2, arg_3, arg_4, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGatherCompare_f585cc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGatherCompare_f585cc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGatherCompare_f585cc(); } diff --git a/test/tint/builtins/gen/var/textureGatherCompare/f585cc.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureGatherCompare/f585cc.wgsl.expected.wgsl index 6281ea00e5..0bcc5a33d7 100644 --- a/test/tint/builtins/gen/var/textureGatherCompare/f585cc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureGatherCompare/f585cc.wgsl.expected.wgsl @@ -9,18 +9,18 @@ fn textureGatherCompare_f585cc() { var res : vec4 = textureGatherCompare(arg_0, arg_1, arg_2, arg_3, arg_4, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureGatherCompare_f585cc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureGatherCompare_f585cc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureGatherCompare_f585cc(); } diff --git a/test/tint/builtins/gen/var/textureLoad/19cf87.wgsl b/test/tint/builtins/gen/var/textureLoad/19cf87.wgsl index 1f8fe73af5..4cd90bce7c 100644 --- a/test/tint/builtins/gen/var/textureLoad/19cf87.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/19cf87.wgsl @@ -31,18 +31,18 @@ fn textureLoad_19cf87() { var res: f32 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_19cf87(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_19cf87(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_19cf87(); } diff --git a/test/tint/builtins/gen/var/textureLoad/19cf87.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureLoad/19cf87.wgsl.expected.wgsl index 86140df447..af6d6de79a 100644 --- a/test/tint/builtins/gen/var/textureLoad/19cf87.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/19cf87.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureLoad_19cf87() { var res : f32 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_19cf87(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_19cf87(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_19cf87(); } diff --git a/test/tint/builtins/gen/var/textureLoad/1b8588.wgsl b/test/tint/builtins/gen/var/textureLoad/1b8588.wgsl index de34cc8fc6..a1085cd9cc 100644 --- a/test/tint/builtins/gen/var/textureLoad/1b8588.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/1b8588.wgsl @@ -31,18 +31,18 @@ fn textureLoad_1b8588() { var res: vec4 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_1b8588(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_1b8588(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_1b8588(); } diff --git a/test/tint/builtins/gen/var/textureLoad/1b8588.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureLoad/1b8588.wgsl.expected.wgsl index 5d581f2e17..41cc6cb143 100644 --- a/test/tint/builtins/gen/var/textureLoad/1b8588.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/1b8588.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureLoad_1b8588() { var res : vec4 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_1b8588(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_1b8588(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_1b8588(); } diff --git a/test/tint/builtins/gen/var/textureLoad/1f2016.wgsl b/test/tint/builtins/gen/var/textureLoad/1f2016.wgsl index 26e385b6fc..e561ebabb9 100644 --- a/test/tint/builtins/gen/var/textureLoad/1f2016.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/1f2016.wgsl @@ -31,18 +31,18 @@ fn textureLoad_1f2016() { var res: vec4 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_1f2016(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_1f2016(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_1f2016(); } diff --git a/test/tint/builtins/gen/var/textureLoad/1f2016.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureLoad/1f2016.wgsl.expected.wgsl index 75576c8214..f03bb4f292 100644 --- a/test/tint/builtins/gen/var/textureLoad/1f2016.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/1f2016.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureLoad_1f2016() { var res : vec4 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_1f2016(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_1f2016(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_1f2016(); } diff --git a/test/tint/builtins/gen/var/textureLoad/484344.wgsl b/test/tint/builtins/gen/var/textureLoad/484344.wgsl index 3d7622853e..a9584df543 100644 --- a/test/tint/builtins/gen/var/textureLoad/484344.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/484344.wgsl @@ -31,18 +31,18 @@ fn textureLoad_484344() { var res: vec4 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_484344(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_484344(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_484344(); } diff --git a/test/tint/builtins/gen/var/textureLoad/484344.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureLoad/484344.wgsl.expected.wgsl index e8b9067f96..c4f317409e 100644 --- a/test/tint/builtins/gen/var/textureLoad/484344.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/484344.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureLoad_484344() { var res : vec4 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_484344(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_484344(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_484344(); } diff --git a/test/tint/builtins/gen/var/textureLoad/4fd803.wgsl b/test/tint/builtins/gen/var/textureLoad/4fd803.wgsl index feb2dd260b..a77c9a8a5e 100644 --- a/test/tint/builtins/gen/var/textureLoad/4fd803.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/4fd803.wgsl @@ -31,18 +31,18 @@ fn textureLoad_4fd803() { var res: vec4 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_4fd803(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_4fd803(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_4fd803(); } diff --git a/test/tint/builtins/gen/var/textureLoad/4fd803.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureLoad/4fd803.wgsl.expected.wgsl index b6c2086adb..300acfd649 100644 --- a/test/tint/builtins/gen/var/textureLoad/4fd803.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/4fd803.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureLoad_4fd803() { var res : vec4 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_4fd803(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_4fd803(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_4fd803(); } diff --git a/test/tint/builtins/gen/var/textureLoad/5a2f9d.wgsl b/test/tint/builtins/gen/var/textureLoad/5a2f9d.wgsl index 70e70e409f..f4d4f75f0a 100644 --- a/test/tint/builtins/gen/var/textureLoad/5a2f9d.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/5a2f9d.wgsl @@ -31,18 +31,18 @@ fn textureLoad_5a2f9d() { var res: vec4 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_5a2f9d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_5a2f9d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_5a2f9d(); } diff --git a/test/tint/builtins/gen/var/textureLoad/5a2f9d.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureLoad/5a2f9d.wgsl.expected.wgsl index c78620ef9d..ea4cf9132a 100644 --- a/test/tint/builtins/gen/var/textureLoad/5a2f9d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/5a2f9d.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureLoad_5a2f9d() { var res : vec4 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_5a2f9d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_5a2f9d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_5a2f9d(); } diff --git a/test/tint/builtins/gen/var/textureLoad/6154d4.wgsl b/test/tint/builtins/gen/var/textureLoad/6154d4.wgsl index a165d74508..6969ab49fe 100644 --- a/test/tint/builtins/gen/var/textureLoad/6154d4.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/6154d4.wgsl @@ -31,18 +31,18 @@ fn textureLoad_6154d4() { var res: vec4 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_6154d4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_6154d4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_6154d4(); } diff --git a/test/tint/builtins/gen/var/textureLoad/6154d4.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureLoad/6154d4.wgsl.expected.wgsl index f58a9da230..def8ddb420 100644 --- a/test/tint/builtins/gen/var/textureLoad/6154d4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/6154d4.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureLoad_6154d4() { var res : vec4 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_6154d4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_6154d4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_6154d4(); } diff --git a/test/tint/builtins/gen/var/textureLoad/6273b1.wgsl b/test/tint/builtins/gen/var/textureLoad/6273b1.wgsl index 5d6029c557..16046228aa 100644 --- a/test/tint/builtins/gen/var/textureLoad/6273b1.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/6273b1.wgsl @@ -31,18 +31,18 @@ fn textureLoad_6273b1() { var res: f32 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_6273b1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_6273b1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_6273b1(); } diff --git a/test/tint/builtins/gen/var/textureLoad/6273b1.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureLoad/6273b1.wgsl.expected.wgsl index 98a60a0219..f62b81f696 100644 --- a/test/tint/builtins/gen/var/textureLoad/6273b1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/6273b1.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureLoad_6273b1() { var res : f32 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_6273b1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_6273b1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_6273b1(); } diff --git a/test/tint/builtins/gen/var/textureLoad/79e697.wgsl b/test/tint/builtins/gen/var/textureLoad/79e697.wgsl index 555abca6bb..119599256d 100644 --- a/test/tint/builtins/gen/var/textureLoad/79e697.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/79e697.wgsl @@ -32,18 +32,18 @@ fn textureLoad_79e697() { var res: vec4 = textureLoad(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_79e697(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_79e697(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_79e697(); } diff --git a/test/tint/builtins/gen/var/textureLoad/79e697.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureLoad/79e697.wgsl.expected.wgsl index 4ab97b8b43..e792f8b9aa 100644 --- a/test/tint/builtins/gen/var/textureLoad/79e697.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/79e697.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureLoad_79e697() { var res : vec4 = textureLoad(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_79e697(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_79e697(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_79e697(); } diff --git a/test/tint/builtins/gen/var/textureLoad/7c90e5.wgsl b/test/tint/builtins/gen/var/textureLoad/7c90e5.wgsl index e6ae43375e..53b28e9413 100644 --- a/test/tint/builtins/gen/var/textureLoad/7c90e5.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/7c90e5.wgsl @@ -32,18 +32,18 @@ fn textureLoad_7c90e5() { var res: vec4 = textureLoad(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_7c90e5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_7c90e5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_7c90e5(); } diff --git a/test/tint/builtins/gen/var/textureLoad/7c90e5.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureLoad/7c90e5.wgsl.expected.wgsl index f6852e1d75..5c79550378 100644 --- a/test/tint/builtins/gen/var/textureLoad/7c90e5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/7c90e5.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureLoad_7c90e5() { var res : vec4 = textureLoad(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_7c90e5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_7c90e5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_7c90e5(); } diff --git a/test/tint/builtins/gen/var/textureLoad/81c381.wgsl b/test/tint/builtins/gen/var/textureLoad/81c381.wgsl index 45d48d4a14..563f872fdf 100644 --- a/test/tint/builtins/gen/var/textureLoad/81c381.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/81c381.wgsl @@ -31,18 +31,18 @@ fn textureLoad_81c381() { var res: vec4 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_81c381(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_81c381(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_81c381(); } diff --git a/test/tint/builtins/gen/var/textureLoad/81c381.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureLoad/81c381.wgsl.expected.wgsl index 3ada1acff1..65bb5f55a3 100644 --- a/test/tint/builtins/gen/var/textureLoad/81c381.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/81c381.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureLoad_81c381() { var res : vec4 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_81c381(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_81c381(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_81c381(); } diff --git a/test/tint/builtins/gen/var/textureLoad/87be85.wgsl b/test/tint/builtins/gen/var/textureLoad/87be85.wgsl index a32ef3901c..c1ba7703ef 100644 --- a/test/tint/builtins/gen/var/textureLoad/87be85.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/87be85.wgsl @@ -32,18 +32,18 @@ fn textureLoad_87be85() { var res: vec4 = textureLoad(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_87be85(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_87be85(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_87be85(); } diff --git a/test/tint/builtins/gen/var/textureLoad/87be85.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureLoad/87be85.wgsl.expected.wgsl index a033a61265..277a603873 100644 --- a/test/tint/builtins/gen/var/textureLoad/87be85.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/87be85.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureLoad_87be85() { var res : vec4 = textureLoad(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_87be85(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_87be85(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_87be85(); } diff --git a/test/tint/builtins/gen/var/textureLoad/8acf41.wgsl b/test/tint/builtins/gen/var/textureLoad/8acf41.wgsl index 1f98b4d3a7..0def2aae2e 100644 --- a/test/tint/builtins/gen/var/textureLoad/8acf41.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/8acf41.wgsl @@ -30,18 +30,18 @@ fn textureLoad_8acf41() { var res: vec4 = textureLoad(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_8acf41(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_8acf41(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_8acf41(); } diff --git a/test/tint/builtins/gen/var/textureLoad/8acf41.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureLoad/8acf41.wgsl.expected.wgsl index bcabc7d31c..09bc01249d 100644 --- a/test/tint/builtins/gen/var/textureLoad/8acf41.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/8acf41.wgsl.expected.wgsl @@ -5,18 +5,18 @@ fn textureLoad_8acf41() { var res : vec4 = textureLoad(arg_0, arg_1); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_8acf41(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_8acf41(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_8acf41(); } diff --git a/test/tint/builtins/gen/var/textureLoad/9b2667.wgsl b/test/tint/builtins/gen/var/textureLoad/9b2667.wgsl index 437dd0ab01..9394a434c3 100644 --- a/test/tint/builtins/gen/var/textureLoad/9b2667.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/9b2667.wgsl @@ -32,18 +32,18 @@ fn textureLoad_9b2667() { var res: f32 = textureLoad(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_9b2667(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_9b2667(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_9b2667(); } diff --git a/test/tint/builtins/gen/var/textureLoad/9b2667.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureLoad/9b2667.wgsl.expected.wgsl index 157799ea7f..3b7f1292d2 100644 --- a/test/tint/builtins/gen/var/textureLoad/9b2667.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/9b2667.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureLoad_9b2667() { var res : f32 = textureLoad(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_9b2667(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_9b2667(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_9b2667(); } diff --git a/test/tint/builtins/gen/var/textureLoad/a583c9.wgsl b/test/tint/builtins/gen/var/textureLoad/a583c9.wgsl index da8572a45d..99ef514b95 100644 --- a/test/tint/builtins/gen/var/textureLoad/a583c9.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/a583c9.wgsl @@ -31,18 +31,18 @@ fn textureLoad_a583c9() { var res: vec4 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_a583c9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_a583c9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_a583c9(); } diff --git a/test/tint/builtins/gen/var/textureLoad/a583c9.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureLoad/a583c9.wgsl.expected.wgsl index 2e45ae4644..5a92faa62d 100644 --- a/test/tint/builtins/gen/var/textureLoad/a583c9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/a583c9.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureLoad_a583c9() { var res : vec4 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_a583c9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_a583c9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_a583c9(); } diff --git a/test/tint/builtins/gen/var/textureLoad/a9a9f5.wgsl b/test/tint/builtins/gen/var/textureLoad/a9a9f5.wgsl index 2b35241ef8..54483a9f59 100644 --- a/test/tint/builtins/gen/var/textureLoad/a9a9f5.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/a9a9f5.wgsl @@ -31,18 +31,18 @@ fn textureLoad_a9a9f5() { var res: vec4 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_a9a9f5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_a9a9f5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_a9a9f5(); } diff --git a/test/tint/builtins/gen/var/textureLoad/a9a9f5.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureLoad/a9a9f5.wgsl.expected.wgsl index 93a3b77347..660e8183a1 100644 --- a/test/tint/builtins/gen/var/textureLoad/a9a9f5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/a9a9f5.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureLoad_a9a9f5() { var res : vec4 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_a9a9f5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_a9a9f5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_a9a9f5(); } diff --git a/test/tint/builtins/gen/var/textureLoad/c2a480.wgsl b/test/tint/builtins/gen/var/textureLoad/c2a480.wgsl index 62944a9f1e..42ed9222a0 100644 --- a/test/tint/builtins/gen/var/textureLoad/c2a480.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/c2a480.wgsl @@ -31,18 +31,18 @@ fn textureLoad_c2a480() { var res: vec4 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_c2a480(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_c2a480(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_c2a480(); } diff --git a/test/tint/builtins/gen/var/textureLoad/c2a480.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureLoad/c2a480.wgsl.expected.wgsl index a28a80c6ec..1ba5cbd123 100644 --- a/test/tint/builtins/gen/var/textureLoad/c2a480.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/c2a480.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureLoad_c2a480() { var res : vec4 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_c2a480(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_c2a480(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_c2a480(); } diff --git a/test/tint/builtins/gen/var/textureLoad/c378ee.wgsl b/test/tint/builtins/gen/var/textureLoad/c378ee.wgsl index fad4ac3cf4..5174262b17 100644 --- a/test/tint/builtins/gen/var/textureLoad/c378ee.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/c378ee.wgsl @@ -31,18 +31,18 @@ fn textureLoad_c378ee() { var res: vec4 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_c378ee(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_c378ee(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_c378ee(); } diff --git a/test/tint/builtins/gen/var/textureLoad/c378ee.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureLoad/c378ee.wgsl.expected.wgsl index b957d4affd..cb6fd49690 100644 --- a/test/tint/builtins/gen/var/textureLoad/c378ee.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/c378ee.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureLoad_c378ee() { var res : vec4 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_c378ee(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_c378ee(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_c378ee(); } diff --git a/test/tint/builtins/gen/var/textureLoad/e3d2cc.wgsl b/test/tint/builtins/gen/var/textureLoad/e3d2cc.wgsl index a8f4f099e3..a5ef14ec13 100644 --- a/test/tint/builtins/gen/var/textureLoad/e3d2cc.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/e3d2cc.wgsl @@ -31,18 +31,18 @@ fn textureLoad_e3d2cc() { var res: vec4 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_e3d2cc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_e3d2cc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_e3d2cc(); } diff --git a/test/tint/builtins/gen/var/textureLoad/e3d2cc.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureLoad/e3d2cc.wgsl.expected.wgsl index 97cb8d8967..f1f2971c7e 100644 --- a/test/tint/builtins/gen/var/textureLoad/e3d2cc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureLoad/e3d2cc.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureLoad_e3d2cc() { var res : vec4 = textureLoad(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureLoad_e3d2cc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureLoad_e3d2cc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureLoad_e3d2cc(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/024820.wgsl b/test/tint/builtins/gen/var/textureNumLayers/024820.wgsl index ee39dbbd35..e6ab7d4ee0 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/024820.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/024820.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_024820() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_024820(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_024820(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_024820(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/024820.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLayers/024820.wgsl.expected.wgsl index f58c93cef4..eaa9cc7883 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/024820.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/024820.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_024820() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_024820(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_024820(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_024820(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/053df7.wgsl b/test/tint/builtins/gen/var/textureNumLayers/053df7.wgsl index f906fef223..77d7dbab65 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/053df7.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/053df7.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_053df7() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_053df7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_053df7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_053df7(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/053df7.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLayers/053df7.wgsl.expected.wgsl index fae44b9a2b..06592acc08 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/053df7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/053df7.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_053df7() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_053df7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_053df7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_053df7(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/058cc3.wgsl b/test/tint/builtins/gen/var/textureNumLayers/058cc3.wgsl index 55e7ee0848..c030a71c69 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/058cc3.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/058cc3.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_058cc3() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_058cc3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_058cc3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_058cc3(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/058cc3.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLayers/058cc3.wgsl.expected.wgsl index ee5d2e0686..a39583bf6a 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/058cc3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/058cc3.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_058cc3() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_058cc3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_058cc3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_058cc3(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/09d05d.wgsl b/test/tint/builtins/gen/var/textureNumLayers/09d05d.wgsl index baf9538784..ca4cb54961 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/09d05d.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/09d05d.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_09d05d() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_09d05d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_09d05d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_09d05d(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/09d05d.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLayers/09d05d.wgsl.expected.wgsl index 2034fa4019..cede280a55 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/09d05d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/09d05d.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_09d05d() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_09d05d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_09d05d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_09d05d(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/13b4ce.wgsl b/test/tint/builtins/gen/var/textureNumLayers/13b4ce.wgsl index e21134db8b..c69857afcf 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/13b4ce.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/13b4ce.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_13b4ce() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_13b4ce(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_13b4ce(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_13b4ce(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/13b4ce.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLayers/13b4ce.wgsl.expected.wgsl index 5061e7e950..15c0d550e5 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/13b4ce.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/13b4ce.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_13b4ce() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_13b4ce(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_13b4ce(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_13b4ce(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/22e53b.wgsl b/test/tint/builtins/gen/var/textureNumLayers/22e53b.wgsl index a74f529565..f67f703b3c 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/22e53b.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/22e53b.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_22e53b() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_22e53b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_22e53b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_22e53b(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/22e53b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLayers/22e53b.wgsl.expected.wgsl index 6d9957b55d..2ac305721e 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/22e53b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/22e53b.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_22e53b() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_22e53b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_22e53b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_22e53b(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/562013.wgsl b/test/tint/builtins/gen/var/textureNumLayers/562013.wgsl index b6f1c4891b..e7d5963b84 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/562013.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/562013.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_562013() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_562013(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_562013(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_562013(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/562013.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLayers/562013.wgsl.expected.wgsl index 72231707de..c82f593d00 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/562013.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/562013.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_562013() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_562013(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_562013(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_562013(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/5d59cd.wgsl b/test/tint/builtins/gen/var/textureNumLayers/5d59cd.wgsl index d808df9b03..ab5023721f 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/5d59cd.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/5d59cd.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_5d59cd() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_5d59cd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_5d59cd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_5d59cd(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/5d59cd.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLayers/5d59cd.wgsl.expected.wgsl index 170c76310d..28bcd65030 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/5d59cd.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/5d59cd.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_5d59cd() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_5d59cd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_5d59cd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_5d59cd(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/68a65b.wgsl b/test/tint/builtins/gen/var/textureNumLayers/68a65b.wgsl index 680221f648..56b97ccda0 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/68a65b.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/68a65b.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_68a65b() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_68a65b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_68a65b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_68a65b(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/68a65b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLayers/68a65b.wgsl.expected.wgsl index f358993084..f7cfa50e58 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/68a65b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/68a65b.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_68a65b() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_68a65b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_68a65b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_68a65b(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/778bd1.wgsl b/test/tint/builtins/gen/var/textureNumLayers/778bd1.wgsl index 814bad17d6..81ba1493ea 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/778bd1.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/778bd1.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_778bd1() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_778bd1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_778bd1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_778bd1(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/778bd1.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLayers/778bd1.wgsl.expected.wgsl index c13e994169..8274e1e0dc 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/778bd1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/778bd1.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_778bd1() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_778bd1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_778bd1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_778bd1(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/7f1937.wgsl b/test/tint/builtins/gen/var/textureNumLayers/7f1937.wgsl index 7e843bd811..613436c7b0 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/7f1937.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/7f1937.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_7f1937() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_7f1937(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_7f1937(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_7f1937(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/7f1937.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLayers/7f1937.wgsl.expected.wgsl index 4450cebde7..27ba4129d0 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/7f1937.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/7f1937.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_7f1937() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_7f1937(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_7f1937(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_7f1937(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/85f980.wgsl b/test/tint/builtins/gen/var/textureNumLayers/85f980.wgsl index dc95da7630..b5ccfa1d4b 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/85f980.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/85f980.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_85f980() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_85f980(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_85f980(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_85f980(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/85f980.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLayers/85f980.wgsl.expected.wgsl index 4dc70c7371..5206f514f2 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/85f980.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/85f980.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_85f980() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_85f980(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_85f980(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_85f980(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/87953e.wgsl b/test/tint/builtins/gen/var/textureNumLayers/87953e.wgsl index 09bb3e89bd..47a80564f4 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/87953e.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/87953e.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_87953e() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_87953e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_87953e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_87953e(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/87953e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLayers/87953e.wgsl.expected.wgsl index 26f73eaa53..55d0f9de7c 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/87953e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/87953e.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_87953e() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_87953e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_87953e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_87953e(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/893e7c.wgsl b/test/tint/builtins/gen/var/textureNumLayers/893e7c.wgsl index 343198531f..d0931f8cbe 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/893e7c.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/893e7c.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_893e7c() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_893e7c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_893e7c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_893e7c(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/893e7c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLayers/893e7c.wgsl.expected.wgsl index 3cda54612f..1ef46100e7 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/893e7c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/893e7c.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_893e7c() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_893e7c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_893e7c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_893e7c(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/9700fb.wgsl b/test/tint/builtins/gen/var/textureNumLayers/9700fb.wgsl index 096b3e85ca..4966eb961b 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/9700fb.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/9700fb.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_9700fb() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_9700fb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_9700fb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_9700fb(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/9700fb.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLayers/9700fb.wgsl.expected.wgsl index ce6acab433..d260e369f8 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/9700fb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/9700fb.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_9700fb() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_9700fb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_9700fb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_9700fb(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/a216d2.wgsl b/test/tint/builtins/gen/var/textureNumLayers/a216d2.wgsl index 176205aac9..ec1a5b4d7c 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/a216d2.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/a216d2.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_a216d2() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_a216d2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_a216d2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_a216d2(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/a216d2.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLayers/a216d2.wgsl.expected.wgsl index 38fbc8960b..ef09e0ba34 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/a216d2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/a216d2.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_a216d2() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_a216d2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_a216d2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_a216d2(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/cd5dc8.wgsl b/test/tint/builtins/gen/var/textureNumLayers/cd5dc8.wgsl index f99e1181c3..3b24ead11d 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/cd5dc8.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/cd5dc8.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_cd5dc8() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_cd5dc8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_cd5dc8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_cd5dc8(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/cd5dc8.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLayers/cd5dc8.wgsl.expected.wgsl index 870778b6dd..7fa1228ac1 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/cd5dc8.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/cd5dc8.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_cd5dc8() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_cd5dc8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_cd5dc8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_cd5dc8(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/d5b228.wgsl b/test/tint/builtins/gen/var/textureNumLayers/d5b228.wgsl index ba8d85eb53..f9b9e4107f 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/d5b228.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/d5b228.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_d5b228() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_d5b228(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_d5b228(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_d5b228(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/d5b228.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLayers/d5b228.wgsl.expected.wgsl index 798b0a815f..9cf3683b7b 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/d5b228.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/d5b228.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_d5b228() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_d5b228(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_d5b228(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_d5b228(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/e31be1.wgsl b/test/tint/builtins/gen/var/textureNumLayers/e31be1.wgsl index fa0eed7b7f..dffc12ee83 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/e31be1.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/e31be1.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_e31be1() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_e31be1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_e31be1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_e31be1(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/e31be1.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLayers/e31be1.wgsl.expected.wgsl index e47d202e0d..c93038431e 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/e31be1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/e31be1.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_e31be1() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_e31be1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_e31be1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_e31be1(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/e653c0.wgsl b/test/tint/builtins/gen/var/textureNumLayers/e653c0.wgsl index 4ee178ccf8..83f7e9d548 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/e653c0.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/e653c0.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_e653c0() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_e653c0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_e653c0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_e653c0(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/e653c0.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLayers/e653c0.wgsl.expected.wgsl index 4adddfbea7..601ce1f3f0 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/e653c0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/e653c0.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_e653c0() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_e653c0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_e653c0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_e653c0(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/ee942f.wgsl b/test/tint/builtins/gen/var/textureNumLayers/ee942f.wgsl index ea1d4a8ac6..fbc2880569 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/ee942f.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/ee942f.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_ee942f() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_ee942f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_ee942f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_ee942f(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/ee942f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLayers/ee942f.wgsl.expected.wgsl index 4d48facccd..c6d26dd47e 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/ee942f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/ee942f.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_ee942f() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_ee942f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_ee942f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_ee942f(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/f33005.wgsl b/test/tint/builtins/gen/var/textureNumLayers/f33005.wgsl index 6445227a30..7deef09d5d 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/f33005.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/f33005.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_f33005() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_f33005(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_f33005(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_f33005(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/f33005.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLayers/f33005.wgsl.expected.wgsl index 35bd8cab44..8d7eee496d 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/f33005.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/f33005.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_f33005() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_f33005(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_f33005(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_f33005(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/fcec98.wgsl b/test/tint/builtins/gen/var/textureNumLayers/fcec98.wgsl index 0fef907a40..62b47453fe 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/fcec98.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/fcec98.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_fcec98() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_fcec98(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_fcec98(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_fcec98(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/fcec98.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLayers/fcec98.wgsl.expected.wgsl index 6a1723e7cf..1c1e1794f0 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/fcec98.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/fcec98.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_fcec98() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_fcec98(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_fcec98(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_fcec98(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/ff5e89.wgsl b/test/tint/builtins/gen/var/textureNumLayers/ff5e89.wgsl index f12ea65d97..7b340b2dc3 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/ff5e89.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/ff5e89.wgsl @@ -29,18 +29,18 @@ fn textureNumLayers_ff5e89() { var res: i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_ff5e89(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_ff5e89(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_ff5e89(); } diff --git a/test/tint/builtins/gen/var/textureNumLayers/ff5e89.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLayers/ff5e89.wgsl.expected.wgsl index cd8cb2d9c7..e7b51b4b46 100644 --- a/test/tint/builtins/gen/var/textureNumLayers/ff5e89.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLayers/ff5e89.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLayers_ff5e89() { var res : i32 = textureNumLayers(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLayers_ff5e89(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLayers_ff5e89(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLayers_ff5e89(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/076cb5.wgsl b/test/tint/builtins/gen/var/textureNumLevels/076cb5.wgsl index 96b8e96bc3..ba8ebfbe3d 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/076cb5.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/076cb5.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_076cb5() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_076cb5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_076cb5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_076cb5(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/076cb5.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLevels/076cb5.wgsl.expected.wgsl index c04d6e6144..0470c75a13 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/076cb5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/076cb5.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_076cb5() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_076cb5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_076cb5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_076cb5(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/080d95.wgsl b/test/tint/builtins/gen/var/textureNumLevels/080d95.wgsl index 172e090d78..4d73c90e18 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/080d95.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/080d95.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_080d95() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_080d95(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_080d95(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_080d95(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/080d95.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLevels/080d95.wgsl.expected.wgsl index 686c90849d..f6f058f938 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/080d95.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/080d95.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_080d95() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_080d95(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_080d95(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_080d95(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/09ddd0.wgsl b/test/tint/builtins/gen/var/textureNumLevels/09ddd0.wgsl index dea8f54612..c452b951dd 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/09ddd0.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/09ddd0.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_09ddd0() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_09ddd0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_09ddd0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_09ddd0(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/09ddd0.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLevels/09ddd0.wgsl.expected.wgsl index 7a4d344a1a..4cebcabb0a 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/09ddd0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/09ddd0.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_09ddd0() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_09ddd0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_09ddd0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_09ddd0(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/105988.wgsl b/test/tint/builtins/gen/var/textureNumLevels/105988.wgsl index 67775fb0b3..16c41a5e08 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/105988.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/105988.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_105988() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_105988(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_105988(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_105988(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/105988.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLevels/105988.wgsl.expected.wgsl index 1466976b06..8eb140d658 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/105988.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/105988.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_105988() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_105988(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_105988(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_105988(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/1e6f3b.wgsl b/test/tint/builtins/gen/var/textureNumLevels/1e6f3b.wgsl index a921b0cd80..59fc1e8d89 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/1e6f3b.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/1e6f3b.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_1e6f3b() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_1e6f3b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_1e6f3b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_1e6f3b(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/1e6f3b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLevels/1e6f3b.wgsl.expected.wgsl index 3643d3efef..58a28d75d5 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/1e6f3b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/1e6f3b.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_1e6f3b() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_1e6f3b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_1e6f3b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_1e6f3b(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/23f750.wgsl b/test/tint/builtins/gen/var/textureNumLevels/23f750.wgsl index c44baad85a..d66e8ad739 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/23f750.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/23f750.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_23f750() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_23f750(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_23f750(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_23f750(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/23f750.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLevels/23f750.wgsl.expected.wgsl index 86bf58889a..1ce13f7362 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/23f750.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/23f750.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_23f750() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_23f750(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_23f750(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_23f750(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/2c3575.wgsl b/test/tint/builtins/gen/var/textureNumLevels/2c3575.wgsl index e94cb62362..3a4bea5e20 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/2c3575.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/2c3575.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_2c3575() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_2c3575(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_2c3575(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_2c3575(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/2c3575.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLevels/2c3575.wgsl.expected.wgsl index 6f2f54dcfc..8e019602ec 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/2c3575.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/2c3575.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_2c3575() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_2c3575(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_2c3575(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_2c3575(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/32a0ae.wgsl b/test/tint/builtins/gen/var/textureNumLevels/32a0ae.wgsl index d7c7297fed..afa2c8463d 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/32a0ae.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/32a0ae.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_32a0ae() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_32a0ae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_32a0ae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_32a0ae(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/32a0ae.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLevels/32a0ae.wgsl.expected.wgsl index e5016ebb3f..13377ce7a3 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/32a0ae.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/32a0ae.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_32a0ae() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_32a0ae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_32a0ae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_32a0ae(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/5101cf.wgsl b/test/tint/builtins/gen/var/textureNumLevels/5101cf.wgsl index 371315a8e1..8264674c35 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/5101cf.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/5101cf.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_5101cf() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_5101cf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_5101cf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_5101cf(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/5101cf.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLevels/5101cf.wgsl.expected.wgsl index 694397b7ed..3425bb26c2 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/5101cf.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/5101cf.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_5101cf() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_5101cf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_5101cf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_5101cf(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/51b5bb.wgsl b/test/tint/builtins/gen/var/textureNumLevels/51b5bb.wgsl index de1c30b3c8..2193999097 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/51b5bb.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/51b5bb.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_51b5bb() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_51b5bb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_51b5bb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_51b5bb(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/51b5bb.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLevels/51b5bb.wgsl.expected.wgsl index 2ee7aa9d7d..71883b0571 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/51b5bb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/51b5bb.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_51b5bb() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_51b5bb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_51b5bb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_51b5bb(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/897aaf.wgsl b/test/tint/builtins/gen/var/textureNumLevels/897aaf.wgsl index b4559d89d2..e81c991f56 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/897aaf.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/897aaf.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_897aaf() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_897aaf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_897aaf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_897aaf(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/897aaf.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLevels/897aaf.wgsl.expected.wgsl index 97e927523f..473da66aa6 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/897aaf.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/897aaf.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_897aaf() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_897aaf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_897aaf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_897aaf(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/9da7a5.wgsl b/test/tint/builtins/gen/var/textureNumLevels/9da7a5.wgsl index 75623c2e98..e8bad4357a 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/9da7a5.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/9da7a5.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_9da7a5() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_9da7a5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_9da7a5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_9da7a5(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/9da7a5.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLevels/9da7a5.wgsl.expected.wgsl index 5980b48cae..13135d5d47 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/9da7a5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/9da7a5.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_9da7a5() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_9da7a5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_9da7a5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_9da7a5(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/a91c03.wgsl b/test/tint/builtins/gen/var/textureNumLevels/a91c03.wgsl index 1f9d9aeb88..fad908248c 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/a91c03.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/a91c03.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_a91c03() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_a91c03(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_a91c03(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_a91c03(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/a91c03.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLevels/a91c03.wgsl.expected.wgsl index 72128538a7..69e569b387 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/a91c03.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/a91c03.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_a91c03() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_a91c03(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_a91c03(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_a91c03(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/aee7c8.wgsl b/test/tint/builtins/gen/var/textureNumLevels/aee7c8.wgsl index f28913a539..c156037bd2 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/aee7c8.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/aee7c8.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_aee7c8() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_aee7c8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_aee7c8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_aee7c8(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/aee7c8.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLevels/aee7c8.wgsl.expected.wgsl index 32c8b5a215..a9336a0aa8 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/aee7c8.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/aee7c8.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_aee7c8() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_aee7c8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_aee7c8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_aee7c8(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/b1b12b.wgsl b/test/tint/builtins/gen/var/textureNumLevels/b1b12b.wgsl index a03922ce88..591d66b41f 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/b1b12b.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/b1b12b.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_b1b12b() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_b1b12b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_b1b12b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_b1b12b(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/b1b12b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLevels/b1b12b.wgsl.expected.wgsl index 97fd9a280c..cfb7e4b78d 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/b1b12b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/b1b12b.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_b1b12b() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_b1b12b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_b1b12b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_b1b12b(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/b4f5ea.wgsl b/test/tint/builtins/gen/var/textureNumLevels/b4f5ea.wgsl index 4d81449ae1..fe9bf4ff92 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/b4f5ea.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/b4f5ea.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_b4f5ea() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_b4f5ea(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_b4f5ea(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_b4f5ea(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/b4f5ea.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLevels/b4f5ea.wgsl.expected.wgsl index ff1823d064..d1f829abd8 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/b4f5ea.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/b4f5ea.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_b4f5ea() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_b4f5ea(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_b4f5ea(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_b4f5ea(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/d004a9.wgsl b/test/tint/builtins/gen/var/textureNumLevels/d004a9.wgsl index e191da8c9b..3a20c841cb 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/d004a9.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/d004a9.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_d004a9() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_d004a9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_d004a9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_d004a9(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/d004a9.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLevels/d004a9.wgsl.expected.wgsl index e6efa4a6b1..ce8d24dc31 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/d004a9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/d004a9.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_d004a9() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_d004a9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_d004a9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_d004a9(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/dca09e.wgsl b/test/tint/builtins/gen/var/textureNumLevels/dca09e.wgsl index a058700e18..a4af4a8e0a 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/dca09e.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/dca09e.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_dca09e() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_dca09e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_dca09e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_dca09e(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/dca09e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLevels/dca09e.wgsl.expected.wgsl index 81c2ed177f..d5e1e54ad9 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/dca09e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/dca09e.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_dca09e() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_dca09e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_dca09e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_dca09e(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/e67231.wgsl b/test/tint/builtins/gen/var/textureNumLevels/e67231.wgsl index 782d93a6e0..84299e987a 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/e67231.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/e67231.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_e67231() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_e67231(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_e67231(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_e67231(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/e67231.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLevels/e67231.wgsl.expected.wgsl index b9b5a95d56..a42349da60 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/e67231.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/e67231.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_e67231() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_e67231(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_e67231(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_e67231(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/ed078b.wgsl b/test/tint/builtins/gen/var/textureNumLevels/ed078b.wgsl index d3620a2b10..de4a0b22af 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/ed078b.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/ed078b.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_ed078b() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_ed078b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_ed078b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_ed078b(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/ed078b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLevels/ed078b.wgsl.expected.wgsl index 1eb3d87ad7..3a951308d5 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/ed078b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/ed078b.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_ed078b() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_ed078b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_ed078b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_ed078b(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/f46ec6.wgsl b/test/tint/builtins/gen/var/textureNumLevels/f46ec6.wgsl index 665436bef1..be5a946a0d 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/f46ec6.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/f46ec6.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_f46ec6() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_f46ec6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_f46ec6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_f46ec6(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/f46ec6.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLevels/f46ec6.wgsl.expected.wgsl index d380d9b72a..b1621389be 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/f46ec6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/f46ec6.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_f46ec6() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_f46ec6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_f46ec6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_f46ec6(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/f5828d.wgsl b/test/tint/builtins/gen/var/textureNumLevels/f5828d.wgsl index 0c000af8e8..69e15edb62 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/f5828d.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/f5828d.wgsl @@ -29,18 +29,18 @@ fn textureNumLevels_f5828d() { var res: i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_f5828d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_f5828d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_f5828d(); } diff --git a/test/tint/builtins/gen/var/textureNumLevels/f5828d.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumLevels/f5828d.wgsl.expected.wgsl index 501fe61734..02fdd80212 100644 --- a/test/tint/builtins/gen/var/textureNumLevels/f5828d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumLevels/f5828d.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumLevels_f5828d() { var res : i32 = textureNumLevels(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumLevels_f5828d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumLevels_f5828d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumLevels_f5828d(); } diff --git a/test/tint/builtins/gen/var/textureNumSamples/2c6f14.wgsl b/test/tint/builtins/gen/var/textureNumSamples/2c6f14.wgsl index 749d887c52..f99d30f182 100644 --- a/test/tint/builtins/gen/var/textureNumSamples/2c6f14.wgsl +++ b/test/tint/builtins/gen/var/textureNumSamples/2c6f14.wgsl @@ -29,18 +29,18 @@ fn textureNumSamples_2c6f14() { var res: i32 = textureNumSamples(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumSamples_2c6f14(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumSamples_2c6f14(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumSamples_2c6f14(); } diff --git a/test/tint/builtins/gen/var/textureNumSamples/2c6f14.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumSamples/2c6f14.wgsl.expected.wgsl index be4993462f..460b4e22b3 100644 --- a/test/tint/builtins/gen/var/textureNumSamples/2c6f14.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumSamples/2c6f14.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumSamples_2c6f14() { var res : i32 = textureNumSamples(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumSamples_2c6f14(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumSamples_2c6f14(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumSamples_2c6f14(); } diff --git a/test/tint/builtins/gen/var/textureNumSamples/42f8bb.wgsl b/test/tint/builtins/gen/var/textureNumSamples/42f8bb.wgsl index 429e2eb7c2..b78edc4961 100644 --- a/test/tint/builtins/gen/var/textureNumSamples/42f8bb.wgsl +++ b/test/tint/builtins/gen/var/textureNumSamples/42f8bb.wgsl @@ -29,18 +29,18 @@ fn textureNumSamples_42f8bb() { var res: i32 = textureNumSamples(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumSamples_42f8bb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumSamples_42f8bb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumSamples_42f8bb(); } diff --git a/test/tint/builtins/gen/var/textureNumSamples/42f8bb.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumSamples/42f8bb.wgsl.expected.wgsl index ef11b63656..e62f047750 100644 --- a/test/tint/builtins/gen/var/textureNumSamples/42f8bb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumSamples/42f8bb.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumSamples_42f8bb() { var res : i32 = textureNumSamples(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumSamples_42f8bb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumSamples_42f8bb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumSamples_42f8bb(); } diff --git a/test/tint/builtins/gen/var/textureNumSamples/449d23.wgsl b/test/tint/builtins/gen/var/textureNumSamples/449d23.wgsl index e5e5bafc0a..e685ba6969 100644 --- a/test/tint/builtins/gen/var/textureNumSamples/449d23.wgsl +++ b/test/tint/builtins/gen/var/textureNumSamples/449d23.wgsl @@ -29,18 +29,18 @@ fn textureNumSamples_449d23() { var res: i32 = textureNumSamples(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumSamples_449d23(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumSamples_449d23(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumSamples_449d23(); } diff --git a/test/tint/builtins/gen/var/textureNumSamples/449d23.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumSamples/449d23.wgsl.expected.wgsl index 9cab69e2c1..0c9fd1f110 100644 --- a/test/tint/builtins/gen/var/textureNumSamples/449d23.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumSamples/449d23.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumSamples_449d23() { var res : i32 = textureNumSamples(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumSamples_449d23(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumSamples_449d23(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumSamples_449d23(); } diff --git a/test/tint/builtins/gen/var/textureNumSamples/a3c8a0.wgsl b/test/tint/builtins/gen/var/textureNumSamples/a3c8a0.wgsl index 11df4fb6a4..1c4626cbe5 100644 --- a/test/tint/builtins/gen/var/textureNumSamples/a3c8a0.wgsl +++ b/test/tint/builtins/gen/var/textureNumSamples/a3c8a0.wgsl @@ -29,18 +29,18 @@ fn textureNumSamples_a3c8a0() { var res: i32 = textureNumSamples(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumSamples_a3c8a0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumSamples_a3c8a0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumSamples_a3c8a0(); } diff --git a/test/tint/builtins/gen/var/textureNumSamples/a3c8a0.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureNumSamples/a3c8a0.wgsl.expected.wgsl index 29a914ad8b..c78e10135f 100644 --- a/test/tint/builtins/gen/var/textureNumSamples/a3c8a0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureNumSamples/a3c8a0.wgsl.expected.wgsl @@ -4,18 +4,18 @@ fn textureNumSamples_a3c8a0() { var res : i32 = textureNumSamples(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureNumSamples_a3c8a0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureNumSamples_a3c8a0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureNumSamples_a3c8a0(); } diff --git a/test/tint/builtins/gen/var/textureSample/0dff6c.wgsl b/test/tint/builtins/gen/var/textureSample/0dff6c.wgsl index 0add540f49..add826922d 100644 --- a/test/tint/builtins/gen/var/textureSample/0dff6c.wgsl +++ b/test/tint/builtins/gen/var/textureSample/0dff6c.wgsl @@ -31,7 +31,7 @@ fn textureSample_0dff6c() { var res: f32 = textureSample(arg_0, arg_1, arg_2, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_0dff6c(); } diff --git a/test/tint/builtins/gen/var/textureSample/0dff6c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSample/0dff6c.wgsl.expected.wgsl index 20cb56fa3a..699d1c5f97 100644 --- a/test/tint/builtins/gen/var/textureSample/0dff6c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSample/0dff6c.wgsl.expected.wgsl @@ -7,7 +7,7 @@ fn textureSample_0dff6c() { var res : f32 = textureSample(arg_0, arg_1, arg_2, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_0dff6c(); } diff --git a/test/tint/builtins/gen/var/textureSample/17e988.wgsl b/test/tint/builtins/gen/var/textureSample/17e988.wgsl index 96fe6ec685..bb82187ccb 100644 --- a/test/tint/builtins/gen/var/textureSample/17e988.wgsl +++ b/test/tint/builtins/gen/var/textureSample/17e988.wgsl @@ -32,7 +32,7 @@ fn textureSample_17e988() { var res: vec4 = textureSample(arg_0, arg_1, arg_2, arg_3, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_17e988(); } diff --git a/test/tint/builtins/gen/var/textureSample/17e988.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSample/17e988.wgsl.expected.wgsl index f2733c2cea..1b022a5afe 100644 --- a/test/tint/builtins/gen/var/textureSample/17e988.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSample/17e988.wgsl.expected.wgsl @@ -8,7 +8,7 @@ fn textureSample_17e988() { var res : vec4 = textureSample(arg_0, arg_1, arg_2, arg_3, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_17e988(); } diff --git a/test/tint/builtins/gen/var/textureSample/2149ec.wgsl b/test/tint/builtins/gen/var/textureSample/2149ec.wgsl index 04300d36e7..212bff7c48 100644 --- a/test/tint/builtins/gen/var/textureSample/2149ec.wgsl +++ b/test/tint/builtins/gen/var/textureSample/2149ec.wgsl @@ -31,7 +31,7 @@ fn textureSample_2149ec() { var res: vec4 = textureSample(arg_0, arg_1, arg_2, vec3()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_2149ec(); } diff --git a/test/tint/builtins/gen/var/textureSample/2149ec.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSample/2149ec.wgsl.expected.wgsl index 8b881c36fd..8d3f05dd4c 100644 --- a/test/tint/builtins/gen/var/textureSample/2149ec.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSample/2149ec.wgsl.expected.wgsl @@ -7,7 +7,7 @@ fn textureSample_2149ec() { var res : vec4 = textureSample(arg_0, arg_1, arg_2, vec3()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_2149ec(); } diff --git a/test/tint/builtins/gen/var/textureSample/38bbb9.wgsl b/test/tint/builtins/gen/var/textureSample/38bbb9.wgsl index fc2182722f..77fda09d54 100644 --- a/test/tint/builtins/gen/var/textureSample/38bbb9.wgsl +++ b/test/tint/builtins/gen/var/textureSample/38bbb9.wgsl @@ -31,7 +31,7 @@ fn textureSample_38bbb9() { var res: f32 = textureSample(arg_0, arg_1, arg_2); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_38bbb9(); } diff --git a/test/tint/builtins/gen/var/textureSample/38bbb9.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSample/38bbb9.wgsl.expected.wgsl index b0e17c0df0..2d6c9d10d3 100644 --- a/test/tint/builtins/gen/var/textureSample/38bbb9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSample/38bbb9.wgsl.expected.wgsl @@ -7,7 +7,7 @@ fn textureSample_38bbb9() { var res : f32 = textureSample(arg_0, arg_1, arg_2); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_38bbb9(); } diff --git a/test/tint/builtins/gen/var/textureSample/3b50bd.wgsl b/test/tint/builtins/gen/var/textureSample/3b50bd.wgsl index 903d5409ea..74ae146710 100644 --- a/test/tint/builtins/gen/var/textureSample/3b50bd.wgsl +++ b/test/tint/builtins/gen/var/textureSample/3b50bd.wgsl @@ -31,7 +31,7 @@ fn textureSample_3b50bd() { var res: vec4 = textureSample(arg_0, arg_1, arg_2); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_3b50bd(); } diff --git a/test/tint/builtins/gen/var/textureSample/3b50bd.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSample/3b50bd.wgsl.expected.wgsl index 3c2755f88c..77b2588d34 100644 --- a/test/tint/builtins/gen/var/textureSample/3b50bd.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSample/3b50bd.wgsl.expected.wgsl @@ -7,7 +7,7 @@ fn textureSample_3b50bd() { var res : vec4 = textureSample(arg_0, arg_1, arg_2); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_3b50bd(); } diff --git a/test/tint/builtins/gen/var/textureSample/4dd1bf.wgsl b/test/tint/builtins/gen/var/textureSample/4dd1bf.wgsl index c4e81e9bb5..fe5133b886 100644 --- a/test/tint/builtins/gen/var/textureSample/4dd1bf.wgsl +++ b/test/tint/builtins/gen/var/textureSample/4dd1bf.wgsl @@ -32,7 +32,7 @@ fn textureSample_4dd1bf() { var res: vec4 = textureSample(arg_0, arg_1, arg_2, arg_3); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_4dd1bf(); } diff --git a/test/tint/builtins/gen/var/textureSample/4dd1bf.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSample/4dd1bf.wgsl.expected.wgsl index 8c622de88a..a496a7c957 100644 --- a/test/tint/builtins/gen/var/textureSample/4dd1bf.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSample/4dd1bf.wgsl.expected.wgsl @@ -8,7 +8,7 @@ fn textureSample_4dd1bf() { var res : vec4 = textureSample(arg_0, arg_1, arg_2, arg_3); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_4dd1bf(); } diff --git a/test/tint/builtins/gen/var/textureSample/51b514.wgsl b/test/tint/builtins/gen/var/textureSample/51b514.wgsl index 323375eea4..c0c4cdba13 100644 --- a/test/tint/builtins/gen/var/textureSample/51b514.wgsl +++ b/test/tint/builtins/gen/var/textureSample/51b514.wgsl @@ -31,7 +31,7 @@ fn textureSample_51b514() { var res: vec4 = textureSample(arg_0, arg_1, arg_2); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_51b514(); } diff --git a/test/tint/builtins/gen/var/textureSample/51b514.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSample/51b514.wgsl.expected.wgsl index 282e6eb5f7..23f0f360a1 100644 --- a/test/tint/builtins/gen/var/textureSample/51b514.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSample/51b514.wgsl.expected.wgsl @@ -7,7 +7,7 @@ fn textureSample_51b514() { var res : vec4 = textureSample(arg_0, arg_1, arg_2); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_51b514(); } diff --git a/test/tint/builtins/gen/var/textureSample/60bf45.wgsl b/test/tint/builtins/gen/var/textureSample/60bf45.wgsl index 93a8e2d087..fd5fc10982 100644 --- a/test/tint/builtins/gen/var/textureSample/60bf45.wgsl +++ b/test/tint/builtins/gen/var/textureSample/60bf45.wgsl @@ -32,7 +32,7 @@ fn textureSample_60bf45() { var res: f32 = textureSample(arg_0, arg_1, arg_2, arg_3, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_60bf45(); } diff --git a/test/tint/builtins/gen/var/textureSample/60bf45.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSample/60bf45.wgsl.expected.wgsl index dd2484a22f..b8950b61e3 100644 --- a/test/tint/builtins/gen/var/textureSample/60bf45.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSample/60bf45.wgsl.expected.wgsl @@ -8,7 +8,7 @@ fn textureSample_60bf45() { var res : f32 = textureSample(arg_0, arg_1, arg_2, arg_3, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_60bf45(); } diff --git a/test/tint/builtins/gen/var/textureSample/6717ca.wgsl b/test/tint/builtins/gen/var/textureSample/6717ca.wgsl index 26bab9497b..2b9336e605 100644 --- a/test/tint/builtins/gen/var/textureSample/6717ca.wgsl +++ b/test/tint/builtins/gen/var/textureSample/6717ca.wgsl @@ -32,7 +32,7 @@ fn textureSample_6717ca() { var res: vec4 = textureSample(arg_0, arg_1, arg_2, arg_3); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_6717ca(); } diff --git a/test/tint/builtins/gen/var/textureSample/6717ca.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSample/6717ca.wgsl.expected.wgsl index 0e18da9a3a..e9a77815c7 100644 --- a/test/tint/builtins/gen/var/textureSample/6717ca.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSample/6717ca.wgsl.expected.wgsl @@ -8,7 +8,7 @@ fn textureSample_6717ca() { var res : vec4 = textureSample(arg_0, arg_1, arg_2, arg_3); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_6717ca(); } diff --git a/test/tint/builtins/gen/var/textureSample/6e64fb.wgsl b/test/tint/builtins/gen/var/textureSample/6e64fb.wgsl index 8218caa7d5..f7908af59f 100644 --- a/test/tint/builtins/gen/var/textureSample/6e64fb.wgsl +++ b/test/tint/builtins/gen/var/textureSample/6e64fb.wgsl @@ -31,7 +31,7 @@ fn textureSample_6e64fb() { var res: vec4 = textureSample(arg_0, arg_1, arg_2); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_6e64fb(); } diff --git a/test/tint/builtins/gen/var/textureSample/6e64fb.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSample/6e64fb.wgsl.expected.wgsl index 77e51efabd..3e90df9724 100644 --- a/test/tint/builtins/gen/var/textureSample/6e64fb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSample/6e64fb.wgsl.expected.wgsl @@ -7,7 +7,7 @@ fn textureSample_6e64fb() { var res : vec4 = textureSample(arg_0, arg_1, arg_2); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_6e64fb(); } diff --git a/test/tint/builtins/gen/var/textureSample/7e9ffd.wgsl b/test/tint/builtins/gen/var/textureSample/7e9ffd.wgsl index b08991aaca..f61fb8f734 100644 --- a/test/tint/builtins/gen/var/textureSample/7e9ffd.wgsl +++ b/test/tint/builtins/gen/var/textureSample/7e9ffd.wgsl @@ -32,7 +32,7 @@ fn textureSample_7e9ffd() { var res: f32 = textureSample(arg_0, arg_1, arg_2, arg_3); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_7e9ffd(); } diff --git a/test/tint/builtins/gen/var/textureSample/7e9ffd.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSample/7e9ffd.wgsl.expected.wgsl index a2a7b82736..87713db128 100644 --- a/test/tint/builtins/gen/var/textureSample/7e9ffd.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSample/7e9ffd.wgsl.expected.wgsl @@ -8,7 +8,7 @@ fn textureSample_7e9ffd() { var res : f32 = textureSample(arg_0, arg_1, arg_2, arg_3); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_7e9ffd(); } diff --git a/test/tint/builtins/gen/var/textureSample/85c4ba.wgsl b/test/tint/builtins/gen/var/textureSample/85c4ba.wgsl index c32bd337ed..7abee782c5 100644 --- a/test/tint/builtins/gen/var/textureSample/85c4ba.wgsl +++ b/test/tint/builtins/gen/var/textureSample/85c4ba.wgsl @@ -31,7 +31,7 @@ fn textureSample_85c4ba() { var res: vec4 = textureSample(arg_0, arg_1, arg_2, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_85c4ba(); } diff --git a/test/tint/builtins/gen/var/textureSample/85c4ba.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSample/85c4ba.wgsl.expected.wgsl index 7d0cdcd20f..2694416b58 100644 --- a/test/tint/builtins/gen/var/textureSample/85c4ba.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSample/85c4ba.wgsl.expected.wgsl @@ -7,7 +7,7 @@ fn textureSample_85c4ba() { var res : vec4 = textureSample(arg_0, arg_1, arg_2, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_85c4ba(); } diff --git a/test/tint/builtins/gen/var/textureSample/c2f4e8.wgsl b/test/tint/builtins/gen/var/textureSample/c2f4e8.wgsl index 57133e0a3f..f29a750328 100644 --- a/test/tint/builtins/gen/var/textureSample/c2f4e8.wgsl +++ b/test/tint/builtins/gen/var/textureSample/c2f4e8.wgsl @@ -32,7 +32,7 @@ fn textureSample_c2f4e8() { var res: f32 = textureSample(arg_0, arg_1, arg_2, arg_3); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_c2f4e8(); } diff --git a/test/tint/builtins/gen/var/textureSample/c2f4e8.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSample/c2f4e8.wgsl.expected.wgsl index e80cfd071d..4698069191 100644 --- a/test/tint/builtins/gen/var/textureSample/c2f4e8.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSample/c2f4e8.wgsl.expected.wgsl @@ -8,7 +8,7 @@ fn textureSample_c2f4e8() { var res : f32 = textureSample(arg_0, arg_1, arg_2, arg_3); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_c2f4e8(); } diff --git a/test/tint/builtins/gen/var/textureSample/e53267.wgsl b/test/tint/builtins/gen/var/textureSample/e53267.wgsl index 2f1f3170b7..aaf645db04 100644 --- a/test/tint/builtins/gen/var/textureSample/e53267.wgsl +++ b/test/tint/builtins/gen/var/textureSample/e53267.wgsl @@ -31,7 +31,7 @@ fn textureSample_e53267() { var res: vec4 = textureSample(arg_0, arg_1, arg_2); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_e53267(); } diff --git a/test/tint/builtins/gen/var/textureSample/e53267.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSample/e53267.wgsl.expected.wgsl index 3b43395c1a..457d7c76f9 100644 --- a/test/tint/builtins/gen/var/textureSample/e53267.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSample/e53267.wgsl.expected.wgsl @@ -7,7 +7,7 @@ fn textureSample_e53267() { var res : vec4 = textureSample(arg_0, arg_1, arg_2); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_e53267(); } diff --git a/test/tint/builtins/gen/var/textureSample/ea7030.wgsl b/test/tint/builtins/gen/var/textureSample/ea7030.wgsl index 252c7d3dec..c2931b712a 100644 --- a/test/tint/builtins/gen/var/textureSample/ea7030.wgsl +++ b/test/tint/builtins/gen/var/textureSample/ea7030.wgsl @@ -31,7 +31,7 @@ fn textureSample_ea7030() { var res: f32 = textureSample(arg_0, arg_1, arg_2); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_ea7030(); } diff --git a/test/tint/builtins/gen/var/textureSample/ea7030.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSample/ea7030.wgsl.expected.wgsl index ad04cbf68f..db6574c48d 100644 --- a/test/tint/builtins/gen/var/textureSample/ea7030.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSample/ea7030.wgsl.expected.wgsl @@ -7,7 +7,7 @@ fn textureSample_ea7030() { var res : f32 = textureSample(arg_0, arg_1, arg_2); } -@stage(fragment) +@fragment fn fragment_main() { textureSample_ea7030(); } diff --git a/test/tint/builtins/gen/var/textureSampleBias/53b9f7.wgsl b/test/tint/builtins/gen/var/textureSampleBias/53b9f7.wgsl index f8e76aa282..645af1929a 100644 --- a/test/tint/builtins/gen/var/textureSampleBias/53b9f7.wgsl +++ b/test/tint/builtins/gen/var/textureSampleBias/53b9f7.wgsl @@ -32,7 +32,7 @@ fn textureSampleBias_53b9f7() { var res: vec4 = textureSampleBias(arg_0, arg_1, arg_2, arg_3); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_53b9f7(); } diff --git a/test/tint/builtins/gen/var/textureSampleBias/53b9f7.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleBias/53b9f7.wgsl.expected.wgsl index f83ff9a54c..38e14778d4 100644 --- a/test/tint/builtins/gen/var/textureSampleBias/53b9f7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleBias/53b9f7.wgsl.expected.wgsl @@ -8,7 +8,7 @@ fn textureSampleBias_53b9f7() { var res : vec4 = textureSampleBias(arg_0, arg_1, arg_2, arg_3); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_53b9f7(); } diff --git a/test/tint/builtins/gen/var/textureSampleBias/594824.wgsl b/test/tint/builtins/gen/var/textureSampleBias/594824.wgsl index 01130c7afa..7cbae0c50d 100644 --- a/test/tint/builtins/gen/var/textureSampleBias/594824.wgsl +++ b/test/tint/builtins/gen/var/textureSampleBias/594824.wgsl @@ -32,7 +32,7 @@ fn textureSampleBias_594824() { var res: vec4 = textureSampleBias(arg_0, arg_1, arg_2, arg_3, vec3()); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_594824(); } diff --git a/test/tint/builtins/gen/var/textureSampleBias/594824.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleBias/594824.wgsl.expected.wgsl index 3eecbf65d0..721b7f915b 100644 --- a/test/tint/builtins/gen/var/textureSampleBias/594824.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleBias/594824.wgsl.expected.wgsl @@ -8,7 +8,7 @@ fn textureSampleBias_594824() { var res : vec4 = textureSampleBias(arg_0, arg_1, arg_2, arg_3, vec3()); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_594824(); } diff --git a/test/tint/builtins/gen/var/textureSampleBias/6a9113.wgsl b/test/tint/builtins/gen/var/textureSampleBias/6a9113.wgsl index 25548f9405..18c4785fff 100644 --- a/test/tint/builtins/gen/var/textureSampleBias/6a9113.wgsl +++ b/test/tint/builtins/gen/var/textureSampleBias/6a9113.wgsl @@ -32,7 +32,7 @@ fn textureSampleBias_6a9113() { var res: vec4 = textureSampleBias(arg_0, arg_1, arg_2, arg_3); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_6a9113(); } diff --git a/test/tint/builtins/gen/var/textureSampleBias/6a9113.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleBias/6a9113.wgsl.expected.wgsl index 690d164356..6fadfbc713 100644 --- a/test/tint/builtins/gen/var/textureSampleBias/6a9113.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleBias/6a9113.wgsl.expected.wgsl @@ -8,7 +8,7 @@ fn textureSampleBias_6a9113() { var res : vec4 = textureSampleBias(arg_0, arg_1, arg_2, arg_3); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_6a9113(); } diff --git a/test/tint/builtins/gen/var/textureSampleBias/80e579.wgsl b/test/tint/builtins/gen/var/textureSampleBias/80e579.wgsl index 8e3b2d69b4..816c341f88 100644 --- a/test/tint/builtins/gen/var/textureSampleBias/80e579.wgsl +++ b/test/tint/builtins/gen/var/textureSampleBias/80e579.wgsl @@ -33,7 +33,7 @@ fn textureSampleBias_80e579() { var res: vec4 = textureSampleBias(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_80e579(); } diff --git a/test/tint/builtins/gen/var/textureSampleBias/80e579.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleBias/80e579.wgsl.expected.wgsl index 237a498e19..cffed38a1b 100644 --- a/test/tint/builtins/gen/var/textureSampleBias/80e579.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleBias/80e579.wgsl.expected.wgsl @@ -9,7 +9,7 @@ fn textureSampleBias_80e579() { var res : vec4 = textureSampleBias(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_80e579(); } diff --git a/test/tint/builtins/gen/var/textureSampleBias/9dbb51.wgsl b/test/tint/builtins/gen/var/textureSampleBias/9dbb51.wgsl index 939e2396db..219bc9c98b 100644 --- a/test/tint/builtins/gen/var/textureSampleBias/9dbb51.wgsl +++ b/test/tint/builtins/gen/var/textureSampleBias/9dbb51.wgsl @@ -33,7 +33,7 @@ fn textureSampleBias_9dbb51() { var res: vec4 = textureSampleBias(arg_0, arg_1, arg_2, arg_3, arg_4, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_9dbb51(); } diff --git a/test/tint/builtins/gen/var/textureSampleBias/9dbb51.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleBias/9dbb51.wgsl.expected.wgsl index 1498066dab..4575eb2fa7 100644 --- a/test/tint/builtins/gen/var/textureSampleBias/9dbb51.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleBias/9dbb51.wgsl.expected.wgsl @@ -9,7 +9,7 @@ fn textureSampleBias_9dbb51() { var res : vec4 = textureSampleBias(arg_0, arg_1, arg_2, arg_3, arg_4, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_9dbb51(); } diff --git a/test/tint/builtins/gen/var/textureSampleBias/a161cf.wgsl b/test/tint/builtins/gen/var/textureSampleBias/a161cf.wgsl index e84735c240..82ffc458f0 100644 --- a/test/tint/builtins/gen/var/textureSampleBias/a161cf.wgsl +++ b/test/tint/builtins/gen/var/textureSampleBias/a161cf.wgsl @@ -32,7 +32,7 @@ fn textureSampleBias_a161cf() { var res: vec4 = textureSampleBias(arg_0, arg_1, arg_2, arg_3, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_a161cf(); } diff --git a/test/tint/builtins/gen/var/textureSampleBias/a161cf.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleBias/a161cf.wgsl.expected.wgsl index 8ff74b5eb6..4c571694d5 100644 --- a/test/tint/builtins/gen/var/textureSampleBias/a161cf.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleBias/a161cf.wgsl.expected.wgsl @@ -8,7 +8,7 @@ fn textureSampleBias_a161cf() { var res : vec4 = textureSampleBias(arg_0, arg_1, arg_2, arg_3, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_a161cf(); } diff --git a/test/tint/builtins/gen/var/textureSampleBias/d3fa1b.wgsl b/test/tint/builtins/gen/var/textureSampleBias/d3fa1b.wgsl index 3a77dab76b..7948c4e886 100644 --- a/test/tint/builtins/gen/var/textureSampleBias/d3fa1b.wgsl +++ b/test/tint/builtins/gen/var/textureSampleBias/d3fa1b.wgsl @@ -32,7 +32,7 @@ fn textureSampleBias_d3fa1b() { var res: vec4 = textureSampleBias(arg_0, arg_1, arg_2, arg_3); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_d3fa1b(); } diff --git a/test/tint/builtins/gen/var/textureSampleBias/d3fa1b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleBias/d3fa1b.wgsl.expected.wgsl index 7c8dd12735..68b46a84f6 100644 --- a/test/tint/builtins/gen/var/textureSampleBias/d3fa1b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleBias/d3fa1b.wgsl.expected.wgsl @@ -8,7 +8,7 @@ fn textureSampleBias_d3fa1b() { var res : vec4 = textureSampleBias(arg_0, arg_1, arg_2, arg_3); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_d3fa1b(); } diff --git a/test/tint/builtins/gen/var/textureSampleBias/eed7c4.wgsl b/test/tint/builtins/gen/var/textureSampleBias/eed7c4.wgsl index 6e22d238d5..bf043ad815 100644 --- a/test/tint/builtins/gen/var/textureSampleBias/eed7c4.wgsl +++ b/test/tint/builtins/gen/var/textureSampleBias/eed7c4.wgsl @@ -33,7 +33,7 @@ fn textureSampleBias_eed7c4() { var res: vec4 = textureSampleBias(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_eed7c4(); } diff --git a/test/tint/builtins/gen/var/textureSampleBias/eed7c4.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleBias/eed7c4.wgsl.expected.wgsl index df368935f3..d31043ae4d 100644 --- a/test/tint/builtins/gen/var/textureSampleBias/eed7c4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleBias/eed7c4.wgsl.expected.wgsl @@ -9,7 +9,7 @@ fn textureSampleBias_eed7c4() { var res : vec4 = textureSampleBias(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleBias_eed7c4(); } diff --git a/test/tint/builtins/gen/var/textureSampleCompare/3a5923.wgsl b/test/tint/builtins/gen/var/textureSampleCompare/3a5923.wgsl index f8b96de4a2..738b5c5011 100644 --- a/test/tint/builtins/gen/var/textureSampleCompare/3a5923.wgsl +++ b/test/tint/builtins/gen/var/textureSampleCompare/3a5923.wgsl @@ -32,7 +32,7 @@ fn textureSampleCompare_3a5923() { var res: f32 = textureSampleCompare(arg_0, arg_1, arg_2, arg_3); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompare_3a5923(); } diff --git a/test/tint/builtins/gen/var/textureSampleCompare/3a5923.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleCompare/3a5923.wgsl.expected.wgsl index f2d1921b9e..18b43a2dff 100644 --- a/test/tint/builtins/gen/var/textureSampleCompare/3a5923.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleCompare/3a5923.wgsl.expected.wgsl @@ -8,7 +8,7 @@ fn textureSampleCompare_3a5923() { var res : f32 = textureSampleCompare(arg_0, arg_1, arg_2, arg_3); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompare_3a5923(); } diff --git a/test/tint/builtins/gen/var/textureSampleCompare/63fb83.wgsl b/test/tint/builtins/gen/var/textureSampleCompare/63fb83.wgsl index 04a8dde952..f7789d0640 100644 --- a/test/tint/builtins/gen/var/textureSampleCompare/63fb83.wgsl +++ b/test/tint/builtins/gen/var/textureSampleCompare/63fb83.wgsl @@ -32,7 +32,7 @@ fn textureSampleCompare_63fb83() { var res: f32 = textureSampleCompare(arg_0, arg_1, arg_2, arg_3); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompare_63fb83(); } diff --git a/test/tint/builtins/gen/var/textureSampleCompare/63fb83.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleCompare/63fb83.wgsl.expected.wgsl index 6763ef1196..da69864e7e 100644 --- a/test/tint/builtins/gen/var/textureSampleCompare/63fb83.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleCompare/63fb83.wgsl.expected.wgsl @@ -8,7 +8,7 @@ fn textureSampleCompare_63fb83() { var res : f32 = textureSampleCompare(arg_0, arg_1, arg_2, arg_3); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompare_63fb83(); } diff --git a/test/tint/builtins/gen/var/textureSampleCompare/a3ca7e.wgsl b/test/tint/builtins/gen/var/textureSampleCompare/a3ca7e.wgsl index b3b5cf0d41..e94690bc16 100644 --- a/test/tint/builtins/gen/var/textureSampleCompare/a3ca7e.wgsl +++ b/test/tint/builtins/gen/var/textureSampleCompare/a3ca7e.wgsl @@ -33,7 +33,7 @@ fn textureSampleCompare_a3ca7e() { var res: f32 = textureSampleCompare(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompare_a3ca7e(); } diff --git a/test/tint/builtins/gen/var/textureSampleCompare/a3ca7e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleCompare/a3ca7e.wgsl.expected.wgsl index 7d34be2536..c5574d9391 100644 --- a/test/tint/builtins/gen/var/textureSampleCompare/a3ca7e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleCompare/a3ca7e.wgsl.expected.wgsl @@ -9,7 +9,7 @@ fn textureSampleCompare_a3ca7e() { var res : f32 = textureSampleCompare(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompare_a3ca7e(); } diff --git a/test/tint/builtins/gen/var/textureSampleCompare/af1051.wgsl b/test/tint/builtins/gen/var/textureSampleCompare/af1051.wgsl index c61a1c1d92..9bf0514d62 100644 --- a/test/tint/builtins/gen/var/textureSampleCompare/af1051.wgsl +++ b/test/tint/builtins/gen/var/textureSampleCompare/af1051.wgsl @@ -33,7 +33,7 @@ fn textureSampleCompare_af1051() { var res: f32 = textureSampleCompare(arg_0, arg_1, arg_2, arg_3, arg_4, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompare_af1051(); } diff --git a/test/tint/builtins/gen/var/textureSampleCompare/af1051.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleCompare/af1051.wgsl.expected.wgsl index 6f34ddcc85..ac32534591 100644 --- a/test/tint/builtins/gen/var/textureSampleCompare/af1051.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleCompare/af1051.wgsl.expected.wgsl @@ -9,7 +9,7 @@ fn textureSampleCompare_af1051() { var res : f32 = textureSampleCompare(arg_0, arg_1, arg_2, arg_3, arg_4, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompare_af1051(); } diff --git a/test/tint/builtins/gen/var/textureSampleCompare/dd431d.wgsl b/test/tint/builtins/gen/var/textureSampleCompare/dd431d.wgsl index 287d827b61..aef2de2819 100644 --- a/test/tint/builtins/gen/var/textureSampleCompare/dd431d.wgsl +++ b/test/tint/builtins/gen/var/textureSampleCompare/dd431d.wgsl @@ -33,7 +33,7 @@ fn textureSampleCompare_dd431d() { var res: f32 = textureSampleCompare(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompare_dd431d(); } diff --git a/test/tint/builtins/gen/var/textureSampleCompare/dd431d.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleCompare/dd431d.wgsl.expected.wgsl index 762d558df8..d61a1af774 100644 --- a/test/tint/builtins/gen/var/textureSampleCompare/dd431d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleCompare/dd431d.wgsl.expected.wgsl @@ -9,7 +9,7 @@ fn textureSampleCompare_dd431d() { var res : f32 = textureSampleCompare(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompare_dd431d(); } diff --git a/test/tint/builtins/gen/var/textureSampleCompare/dec064.wgsl b/test/tint/builtins/gen/var/textureSampleCompare/dec064.wgsl index dd9d45ec17..63bb3cff75 100644 --- a/test/tint/builtins/gen/var/textureSampleCompare/dec064.wgsl +++ b/test/tint/builtins/gen/var/textureSampleCompare/dec064.wgsl @@ -32,7 +32,7 @@ fn textureSampleCompare_dec064() { var res: f32 = textureSampleCompare(arg_0, arg_1, arg_2, arg_3, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompare_dec064(); } diff --git a/test/tint/builtins/gen/var/textureSampleCompare/dec064.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleCompare/dec064.wgsl.expected.wgsl index a77c90f0ad..39fc916aae 100644 --- a/test/tint/builtins/gen/var/textureSampleCompare/dec064.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleCompare/dec064.wgsl.expected.wgsl @@ -8,7 +8,7 @@ fn textureSampleCompare_dec064() { var res : f32 = textureSampleCompare(arg_0, arg_1, arg_2, arg_3, vec2()); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompare_dec064(); } diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/1116ed.wgsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/1116ed.wgsl index d5f827a7d9..e5ccb7dce2 100644 --- a/test/tint/builtins/gen/var/textureSampleCompareLevel/1116ed.wgsl +++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/1116ed.wgsl @@ -33,18 +33,18 @@ fn textureSampleCompareLevel_1116ed() { var res: f32 = textureSampleCompareLevel(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleCompareLevel_1116ed(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompareLevel_1116ed(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleCompareLevel_1116ed(); } diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/1116ed.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/1116ed.wgsl.expected.wgsl index 87b42dde1a..494aa6ca30 100644 --- a/test/tint/builtins/gen/var/textureSampleCompareLevel/1116ed.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/1116ed.wgsl.expected.wgsl @@ -9,18 +9,18 @@ fn textureSampleCompareLevel_1116ed() { var res : f32 = textureSampleCompareLevel(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleCompareLevel_1116ed(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompareLevel_1116ed(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleCompareLevel_1116ed(); } diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/1568e3.wgsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/1568e3.wgsl index 3580ff66f3..3744becadd 100644 --- a/test/tint/builtins/gen/var/textureSampleCompareLevel/1568e3.wgsl +++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/1568e3.wgsl @@ -32,18 +32,18 @@ fn textureSampleCompareLevel_1568e3() { var res: f32 = textureSampleCompareLevel(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleCompareLevel_1568e3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompareLevel_1568e3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleCompareLevel_1568e3(); } diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/1568e3.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/1568e3.wgsl.expected.wgsl index 408a7daeeb..032fe41952 100644 --- a/test/tint/builtins/gen/var/textureSampleCompareLevel/1568e3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/1568e3.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureSampleCompareLevel_1568e3() { var res : f32 = textureSampleCompareLevel(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleCompareLevel_1568e3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompareLevel_1568e3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleCompareLevel_1568e3(); } diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/2ad2b1.wgsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/2ad2b1.wgsl index e97fbb7561..1e4501f5ab 100644 --- a/test/tint/builtins/gen/var/textureSampleCompareLevel/2ad2b1.wgsl +++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/2ad2b1.wgsl @@ -32,18 +32,18 @@ fn textureSampleCompareLevel_2ad2b1() { var res: f32 = textureSampleCompareLevel(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleCompareLevel_2ad2b1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompareLevel_2ad2b1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleCompareLevel_2ad2b1(); } diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/2ad2b1.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/2ad2b1.wgsl.expected.wgsl index 561b93631e..4f0e0f8ecd 100644 --- a/test/tint/builtins/gen/var/textureSampleCompareLevel/2ad2b1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/2ad2b1.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureSampleCompareLevel_2ad2b1() { var res : f32 = textureSampleCompareLevel(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleCompareLevel_2ad2b1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompareLevel_2ad2b1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleCompareLevel_2ad2b1(); } diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/4cf3a2.wgsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/4cf3a2.wgsl index 7b14c4724c..a4e3605625 100644 --- a/test/tint/builtins/gen/var/textureSampleCompareLevel/4cf3a2.wgsl +++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/4cf3a2.wgsl @@ -33,18 +33,18 @@ fn textureSampleCompareLevel_4cf3a2() { var res: f32 = textureSampleCompareLevel(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleCompareLevel_4cf3a2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompareLevel_4cf3a2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleCompareLevel_4cf3a2(); } diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/4cf3a2.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/4cf3a2.wgsl.expected.wgsl index d28a73116f..8ba2618bdb 100644 --- a/test/tint/builtins/gen/var/textureSampleCompareLevel/4cf3a2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/4cf3a2.wgsl.expected.wgsl @@ -9,18 +9,18 @@ fn textureSampleCompareLevel_4cf3a2() { var res : f32 = textureSampleCompareLevel(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleCompareLevel_4cf3a2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompareLevel_4cf3a2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleCompareLevel_4cf3a2(); } diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/7f2b9a.wgsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/7f2b9a.wgsl index a42e7beecd..7503fbedcc 100644 --- a/test/tint/builtins/gen/var/textureSampleCompareLevel/7f2b9a.wgsl +++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/7f2b9a.wgsl @@ -32,18 +32,18 @@ fn textureSampleCompareLevel_7f2b9a() { var res: f32 = textureSampleCompareLevel(arg_0, arg_1, arg_2, arg_3, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleCompareLevel_7f2b9a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompareLevel_7f2b9a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleCompareLevel_7f2b9a(); } diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/7f2b9a.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/7f2b9a.wgsl.expected.wgsl index 9b8be3bb9f..36f1122bb0 100644 --- a/test/tint/builtins/gen/var/textureSampleCompareLevel/7f2b9a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/7f2b9a.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureSampleCompareLevel_7f2b9a() { var res : f32 = textureSampleCompareLevel(arg_0, arg_1, arg_2, arg_3, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleCompareLevel_7f2b9a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompareLevel_7f2b9a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleCompareLevel_7f2b9a(); } diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/b6e47c.wgsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/b6e47c.wgsl index 477267244e..d8942b0e8b 100644 --- a/test/tint/builtins/gen/var/textureSampleCompareLevel/b6e47c.wgsl +++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/b6e47c.wgsl @@ -33,18 +33,18 @@ fn textureSampleCompareLevel_b6e47c() { var res: f32 = textureSampleCompareLevel(arg_0, arg_1, arg_2, arg_3, arg_4, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleCompareLevel_b6e47c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompareLevel_b6e47c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleCompareLevel_b6e47c(); } diff --git a/test/tint/builtins/gen/var/textureSampleCompareLevel/b6e47c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleCompareLevel/b6e47c.wgsl.expected.wgsl index 15f99569e5..3634251416 100644 --- a/test/tint/builtins/gen/var/textureSampleCompareLevel/b6e47c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleCompareLevel/b6e47c.wgsl.expected.wgsl @@ -9,18 +9,18 @@ fn textureSampleCompareLevel_b6e47c() { var res : f32 = textureSampleCompareLevel(arg_0, arg_1, arg_2, arg_3, arg_4, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleCompareLevel_b6e47c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleCompareLevel_b6e47c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleCompareLevel_b6e47c(); } diff --git a/test/tint/builtins/gen/var/textureSampleGrad/21402b.wgsl b/test/tint/builtins/gen/var/textureSampleGrad/21402b.wgsl index bd6e7a0ad5..cb2977c60e 100644 --- a/test/tint/builtins/gen/var/textureSampleGrad/21402b.wgsl +++ b/test/tint/builtins/gen/var/textureSampleGrad/21402b.wgsl @@ -33,18 +33,18 @@ fn textureSampleGrad_21402b() { var res: vec4 = textureSampleGrad(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_21402b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_21402b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_21402b(); } diff --git a/test/tint/builtins/gen/var/textureSampleGrad/21402b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleGrad/21402b.wgsl.expected.wgsl index 23170fb580..4df38281a8 100644 --- a/test/tint/builtins/gen/var/textureSampleGrad/21402b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleGrad/21402b.wgsl.expected.wgsl @@ -9,18 +9,18 @@ fn textureSampleGrad_21402b() { var res : vec4 = textureSampleGrad(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_21402b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_21402b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_21402b(); } diff --git a/test/tint/builtins/gen/var/textureSampleGrad/2ecd8f.wgsl b/test/tint/builtins/gen/var/textureSampleGrad/2ecd8f.wgsl index ae3e70fe17..e8ed4a2c66 100644 --- a/test/tint/builtins/gen/var/textureSampleGrad/2ecd8f.wgsl +++ b/test/tint/builtins/gen/var/textureSampleGrad/2ecd8f.wgsl @@ -34,18 +34,18 @@ fn textureSampleGrad_2ecd8f() { var res: vec4 = textureSampleGrad(arg_0, arg_1, arg_2, arg_3, arg_4, arg_5); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_2ecd8f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_2ecd8f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_2ecd8f(); } diff --git a/test/tint/builtins/gen/var/textureSampleGrad/2ecd8f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleGrad/2ecd8f.wgsl.expected.wgsl index f9434a9f8a..32c526c18f 100644 --- a/test/tint/builtins/gen/var/textureSampleGrad/2ecd8f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleGrad/2ecd8f.wgsl.expected.wgsl @@ -10,18 +10,18 @@ fn textureSampleGrad_2ecd8f() { var res : vec4 = textureSampleGrad(arg_0, arg_1, arg_2, arg_3, arg_4, arg_5); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_2ecd8f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_2ecd8f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_2ecd8f(); } diff --git a/test/tint/builtins/gen/var/textureSampleGrad/521263.wgsl b/test/tint/builtins/gen/var/textureSampleGrad/521263.wgsl index 66d675581c..49c13c81d3 100644 --- a/test/tint/builtins/gen/var/textureSampleGrad/521263.wgsl +++ b/test/tint/builtins/gen/var/textureSampleGrad/521263.wgsl @@ -33,18 +33,18 @@ fn textureSampleGrad_521263() { var res: vec4 = textureSampleGrad(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_521263(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_521263(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_521263(); } diff --git a/test/tint/builtins/gen/var/textureSampleGrad/521263.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleGrad/521263.wgsl.expected.wgsl index e229216d8b..25a38526f0 100644 --- a/test/tint/builtins/gen/var/textureSampleGrad/521263.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleGrad/521263.wgsl.expected.wgsl @@ -9,18 +9,18 @@ fn textureSampleGrad_521263() { var res : vec4 = textureSampleGrad(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_521263(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_521263(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_521263(); } diff --git a/test/tint/builtins/gen/var/textureSampleGrad/5312f4.wgsl b/test/tint/builtins/gen/var/textureSampleGrad/5312f4.wgsl index 7d6f633e4a..259aeca1f5 100644 --- a/test/tint/builtins/gen/var/textureSampleGrad/5312f4.wgsl +++ b/test/tint/builtins/gen/var/textureSampleGrad/5312f4.wgsl @@ -33,18 +33,18 @@ fn textureSampleGrad_5312f4() { var res: vec4 = textureSampleGrad(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_5312f4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_5312f4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_5312f4(); } diff --git a/test/tint/builtins/gen/var/textureSampleGrad/5312f4.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleGrad/5312f4.wgsl.expected.wgsl index badb6a104a..f4175ba165 100644 --- a/test/tint/builtins/gen/var/textureSampleGrad/5312f4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleGrad/5312f4.wgsl.expected.wgsl @@ -9,18 +9,18 @@ fn textureSampleGrad_5312f4() { var res : vec4 = textureSampleGrad(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_5312f4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_5312f4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_5312f4(); } diff --git a/test/tint/builtins/gen/var/textureSampleGrad/5884dd.wgsl b/test/tint/builtins/gen/var/textureSampleGrad/5884dd.wgsl index 993eb737c4..90beedcdbb 100644 --- a/test/tint/builtins/gen/var/textureSampleGrad/5884dd.wgsl +++ b/test/tint/builtins/gen/var/textureSampleGrad/5884dd.wgsl @@ -33,18 +33,18 @@ fn textureSampleGrad_5884dd() { var res: vec4 = textureSampleGrad(arg_0, arg_1, arg_2, arg_3, arg_4, vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_5884dd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_5884dd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_5884dd(); } diff --git a/test/tint/builtins/gen/var/textureSampleGrad/5884dd.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleGrad/5884dd.wgsl.expected.wgsl index cc0659497c..9e7449aa03 100644 --- a/test/tint/builtins/gen/var/textureSampleGrad/5884dd.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleGrad/5884dd.wgsl.expected.wgsl @@ -9,18 +9,18 @@ fn textureSampleGrad_5884dd() { var res : vec4 = textureSampleGrad(arg_0, arg_1, arg_2, arg_3, arg_4, vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_5884dd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_5884dd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_5884dd(); } diff --git a/test/tint/builtins/gen/var/textureSampleGrad/d4e3c5.wgsl b/test/tint/builtins/gen/var/textureSampleGrad/d4e3c5.wgsl index 6528fbf40a..6c2d0392ef 100644 --- a/test/tint/builtins/gen/var/textureSampleGrad/d4e3c5.wgsl +++ b/test/tint/builtins/gen/var/textureSampleGrad/d4e3c5.wgsl @@ -33,18 +33,18 @@ fn textureSampleGrad_d4e3c5() { var res: vec4 = textureSampleGrad(arg_0, arg_1, arg_2, arg_3, arg_4, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_d4e3c5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_d4e3c5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_d4e3c5(); } diff --git a/test/tint/builtins/gen/var/textureSampleGrad/d4e3c5.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleGrad/d4e3c5.wgsl.expected.wgsl index 65b1b2d247..c40b807de2 100644 --- a/test/tint/builtins/gen/var/textureSampleGrad/d4e3c5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleGrad/d4e3c5.wgsl.expected.wgsl @@ -9,18 +9,18 @@ fn textureSampleGrad_d4e3c5() { var res : vec4 = textureSampleGrad(arg_0, arg_1, arg_2, arg_3, arg_4, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_d4e3c5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_d4e3c5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_d4e3c5(); } diff --git a/test/tint/builtins/gen/var/textureSampleGrad/d65515.wgsl b/test/tint/builtins/gen/var/textureSampleGrad/d65515.wgsl index 5e91af750b..1e65772422 100644 --- a/test/tint/builtins/gen/var/textureSampleGrad/d65515.wgsl +++ b/test/tint/builtins/gen/var/textureSampleGrad/d65515.wgsl @@ -34,18 +34,18 @@ fn textureSampleGrad_d65515() { var res: vec4 = textureSampleGrad(arg_0, arg_1, arg_2, arg_3, arg_4, arg_5, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_d65515(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_d65515(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_d65515(); } diff --git a/test/tint/builtins/gen/var/textureSampleGrad/d65515.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleGrad/d65515.wgsl.expected.wgsl index b62881937e..349514e469 100644 --- a/test/tint/builtins/gen/var/textureSampleGrad/d65515.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleGrad/d65515.wgsl.expected.wgsl @@ -10,18 +10,18 @@ fn textureSampleGrad_d65515() { var res : vec4 = textureSampleGrad(arg_0, arg_1, arg_2, arg_3, arg_4, arg_5, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_d65515(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_d65515(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_d65515(); } diff --git a/test/tint/builtins/gen/var/textureSampleGrad/e383db.wgsl b/test/tint/builtins/gen/var/textureSampleGrad/e383db.wgsl index a39b52250e..113eb88c6d 100644 --- a/test/tint/builtins/gen/var/textureSampleGrad/e383db.wgsl +++ b/test/tint/builtins/gen/var/textureSampleGrad/e383db.wgsl @@ -34,18 +34,18 @@ fn textureSampleGrad_e383db() { var res: vec4 = textureSampleGrad(arg_0, arg_1, arg_2, arg_3, arg_4, arg_5); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_e383db(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_e383db(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_e383db(); } diff --git a/test/tint/builtins/gen/var/textureSampleGrad/e383db.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleGrad/e383db.wgsl.expected.wgsl index 0085daffd3..7271812142 100644 --- a/test/tint/builtins/gen/var/textureSampleGrad/e383db.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleGrad/e383db.wgsl.expected.wgsl @@ -10,18 +10,18 @@ fn textureSampleGrad_e383db() { var res : vec4 = textureSampleGrad(arg_0, arg_1, arg_2, arg_3, arg_4, arg_5); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleGrad_e383db(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleGrad_e383db(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleGrad_e383db(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/02be59.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/02be59.wgsl index 04c34b704d..2fde41fb67 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/02be59.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/02be59.wgsl @@ -32,18 +32,18 @@ fn textureSampleLevel_02be59() { var res: f32 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_02be59(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_02be59(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_02be59(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/02be59.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/02be59.wgsl.expected.wgsl index 22ba96499a..16b70a60af 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/02be59.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/02be59.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureSampleLevel_02be59() { var res : f32 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_02be59(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_02be59(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_02be59(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/0b0a1b.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/0b0a1b.wgsl index f73b6b70f5..7f847867a3 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/0b0a1b.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/0b0a1b.wgsl @@ -32,18 +32,18 @@ fn textureSampleLevel_0b0a1b() { var res: vec4 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_0b0a1b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_0b0a1b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_0b0a1b(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/0b0a1b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/0b0a1b.wgsl.expected.wgsl index 4924f7f1e6..8419b64cba 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/0b0a1b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/0b0a1b.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureSampleLevel_0b0a1b() { var res : vec4 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_0b0a1b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_0b0a1b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_0b0a1b(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/0bdd9a.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/0bdd9a.wgsl index 098737a5eb..ad28037e65 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/0bdd9a.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/0bdd9a.wgsl @@ -33,18 +33,18 @@ fn textureSampleLevel_0bdd9a() { var res: vec4 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_0bdd9a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_0bdd9a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_0bdd9a(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/0bdd9a.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/0bdd9a.wgsl.expected.wgsl index 39434a16f6..b9c8aa8edc 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/0bdd9a.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/0bdd9a.wgsl.expected.wgsl @@ -9,18 +9,18 @@ fn textureSampleLevel_0bdd9a() { var res : vec4 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_0bdd9a(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_0bdd9a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_0bdd9a(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl index db67e3ca4b..8e0f4c2bda 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl @@ -32,18 +32,18 @@ fn textureSampleLevel_1b0291() { var res: f32 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_1b0291(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_1b0291(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_1b0291(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl.expected.wgsl index 8a2bf5cb54..5bae229fb7 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureSampleLevel_1b0291() { var res : f32 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_1b0291(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_1b0291(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_1b0291(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl index 673604dfec..90ab7a9ee1 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl @@ -33,18 +33,18 @@ fn textureSampleLevel_1bf73e() { var res: f32 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_1bf73e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_1bf73e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_1bf73e(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.wgsl index 26332ba5fa..4cd09cb211 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.wgsl @@ -9,18 +9,18 @@ fn textureSampleLevel_1bf73e() { var res : f32 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_1bf73e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_1bf73e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_1bf73e(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/302be4.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/302be4.wgsl index 5797dbca60..0652834a4a 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/302be4.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/302be4.wgsl @@ -33,18 +33,18 @@ fn textureSampleLevel_302be4() { var res: vec4 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_302be4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_302be4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_302be4(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/302be4.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/302be4.wgsl.expected.wgsl index a31a4bc659..b106d3e2c4 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/302be4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/302be4.wgsl.expected.wgsl @@ -9,18 +9,18 @@ fn textureSampleLevel_302be4() { var res : vec4 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_302be4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_302be4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_302be4(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl index 5069204f1b..b7320fddcb 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl @@ -33,18 +33,18 @@ fn textureSampleLevel_36780e() { var res: f32 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3, arg_4, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_36780e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_36780e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_36780e(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.wgsl index affece6cad..8ccce18e84 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.wgsl @@ -9,18 +9,18 @@ fn textureSampleLevel_36780e() { var res : f32 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3, arg_4, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_36780e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_36780e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_36780e(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/749baf.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/749baf.wgsl index a64a9e9d1d..071639306e 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/749baf.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/749baf.wgsl @@ -32,18 +32,18 @@ fn textureSampleLevel_749baf() { var res: f32 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_749baf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_749baf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_749baf(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/749baf.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/749baf.wgsl.expected.wgsl index f6f7597571..534677f6dd 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/749baf.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/749baf.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureSampleLevel_749baf() { var res : f32 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_749baf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_749baf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_749baf(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/979816.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/979816.wgsl index fce2b831b7..448c3d535b 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/979816.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/979816.wgsl @@ -31,18 +31,18 @@ fn textureSampleLevel_979816() { var res: vec4 = textureSampleLevel(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_979816(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_979816(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_979816(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/979816.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/979816.wgsl.expected.wgsl index c22b080dfb..3c31778c28 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/979816.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/979816.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureSampleLevel_979816() { var res : vec4 = textureSampleLevel(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_979816(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_979816(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_979816(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/abfcc0.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/abfcc0.wgsl index 7df2fc7bb3..41c233a19b 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/abfcc0.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/abfcc0.wgsl @@ -32,18 +32,18 @@ fn textureSampleLevel_abfcc0() { var res: vec4 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_abfcc0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_abfcc0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_abfcc0(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/abfcc0.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/abfcc0.wgsl.expected.wgsl index 744d29cfe7..eccd808645 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/abfcc0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/abfcc0.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureSampleLevel_abfcc0() { var res : vec4 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_abfcc0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_abfcc0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_abfcc0(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/ae5e39.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/ae5e39.wgsl index 1a2708620e..1a0e1758ec 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/ae5e39.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/ae5e39.wgsl @@ -33,18 +33,18 @@ fn textureSampleLevel_ae5e39() { var res: f32 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_ae5e39(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_ae5e39(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_ae5e39(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/ae5e39.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/ae5e39.wgsl.expected.wgsl index b67993a7fc..730bdfdc52 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/ae5e39.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/ae5e39.wgsl.expected.wgsl @@ -9,18 +9,18 @@ fn textureSampleLevel_ae5e39() { var res : f32 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3, arg_4); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_ae5e39(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_ae5e39(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_ae5e39(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/b7c55c.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/b7c55c.wgsl index 6e68866cc7..ef80220033 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/b7c55c.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/b7c55c.wgsl @@ -33,18 +33,18 @@ fn textureSampleLevel_b7c55c() { var res: vec4 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3, arg_4, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_b7c55c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_b7c55c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_b7c55c(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/b7c55c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/b7c55c.wgsl.expected.wgsl index 06098f1fb7..9d7aaaf0b2 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/b7c55c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/b7c55c.wgsl.expected.wgsl @@ -9,18 +9,18 @@ fn textureSampleLevel_b7c55c() { var res : vec4 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3, arg_4, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_b7c55c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_b7c55c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_b7c55c(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/c32df7.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/c32df7.wgsl index 17882a1658..9b9b03db7e 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/c32df7.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/c32df7.wgsl @@ -32,18 +32,18 @@ fn textureSampleLevel_c32df7() { var res: vec4 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_c32df7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_c32df7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_c32df7(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/c32df7.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/c32df7.wgsl.expected.wgsl index 4920ce1acc..eca84cb707 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/c32df7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/c32df7.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureSampleLevel_c32df7() { var res : vec4 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_c32df7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_c32df7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_c32df7(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/c6aca6.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/c6aca6.wgsl index 5a7d65ccc2..384580d173 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/c6aca6.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/c6aca6.wgsl @@ -32,18 +32,18 @@ fn textureSampleLevel_c6aca6() { var res: vec4 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_c6aca6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_c6aca6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_c6aca6(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/c6aca6.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/c6aca6.wgsl.expected.wgsl index 670b79f971..1c88dae04c 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/c6aca6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/c6aca6.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureSampleLevel_c6aca6() { var res : vec4 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_c6aca6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_c6aca6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_c6aca6(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/dcbecb.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/dcbecb.wgsl index 944db01525..ed4c5561f9 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/dcbecb.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/dcbecb.wgsl @@ -32,18 +32,18 @@ fn textureSampleLevel_dcbecb() { var res: vec4 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3, vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_dcbecb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_dcbecb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_dcbecb(); } diff --git a/test/tint/builtins/gen/var/textureSampleLevel/dcbecb.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/dcbecb.wgsl.expected.wgsl index d527e5e697..62d461a0c8 100644 --- a/test/tint/builtins/gen/var/textureSampleLevel/dcbecb.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureSampleLevel/dcbecb.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn textureSampleLevel_dcbecb() { var res : vec4 = textureSampleLevel(arg_0, arg_1, arg_2, arg_3, vec3()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureSampleLevel_dcbecb(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureSampleLevel_dcbecb(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureSampleLevel_dcbecb(); } diff --git a/test/tint/builtins/gen/var/textureStore/05ce15.wgsl b/test/tint/builtins/gen/var/textureStore/05ce15.wgsl index 9b41c0c96f..2a57f260ca 100644 --- a/test/tint/builtins/gen/var/textureStore/05ce15.wgsl +++ b/test/tint/builtins/gen/var/textureStore/05ce15.wgsl @@ -31,18 +31,18 @@ fn textureStore_05ce15() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_05ce15(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_05ce15(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_05ce15(); } diff --git a/test/tint/builtins/gen/var/textureStore/05ce15.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/05ce15.wgsl.expected.wgsl index 70fbb974aa..85050b5e87 100644 --- a/test/tint/builtins/gen/var/textureStore/05ce15.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/05ce15.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_05ce15() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_05ce15(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_05ce15(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_05ce15(); } diff --git a/test/tint/builtins/gen/var/textureStore/064c7f.wgsl b/test/tint/builtins/gen/var/textureStore/064c7f.wgsl index 3ec416ef32..7c913a80fb 100644 --- a/test/tint/builtins/gen/var/textureStore/064c7f.wgsl +++ b/test/tint/builtins/gen/var/textureStore/064c7f.wgsl @@ -31,18 +31,18 @@ fn textureStore_064c7f() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_064c7f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_064c7f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_064c7f(); } diff --git a/test/tint/builtins/gen/var/textureStore/064c7f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/064c7f.wgsl.expected.wgsl index c560892531..ba056bcdc1 100644 --- a/test/tint/builtins/gen/var/textureStore/064c7f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/064c7f.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_064c7f() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_064c7f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_064c7f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_064c7f(); } diff --git a/test/tint/builtins/gen/var/textureStore/068641.wgsl b/test/tint/builtins/gen/var/textureStore/068641.wgsl index 70d00255f9..4db1985625 100644 --- a/test/tint/builtins/gen/var/textureStore/068641.wgsl +++ b/test/tint/builtins/gen/var/textureStore/068641.wgsl @@ -31,18 +31,18 @@ fn textureStore_068641() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_068641(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_068641(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_068641(); } diff --git a/test/tint/builtins/gen/var/textureStore/068641.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/068641.wgsl.expected.wgsl index 606252b19e..bad48dd022 100644 --- a/test/tint/builtins/gen/var/textureStore/068641.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/068641.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_068641() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_068641(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_068641(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_068641(); } diff --git a/test/tint/builtins/gen/var/textureStore/0af6b5.wgsl b/test/tint/builtins/gen/var/textureStore/0af6b5.wgsl index 0ba9d0a54a..e552389a00 100644 --- a/test/tint/builtins/gen/var/textureStore/0af6b5.wgsl +++ b/test/tint/builtins/gen/var/textureStore/0af6b5.wgsl @@ -31,18 +31,18 @@ fn textureStore_0af6b5() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_0af6b5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_0af6b5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_0af6b5(); } diff --git a/test/tint/builtins/gen/var/textureStore/0af6b5.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/0af6b5.wgsl.expected.wgsl index 51ba1644bf..cba9b0299d 100644 --- a/test/tint/builtins/gen/var/textureStore/0af6b5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/0af6b5.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_0af6b5() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_0af6b5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_0af6b5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_0af6b5(); } diff --git a/test/tint/builtins/gen/var/textureStore/0c3dff.wgsl b/test/tint/builtins/gen/var/textureStore/0c3dff.wgsl index 65800b7be7..b8725158dc 100644 --- a/test/tint/builtins/gen/var/textureStore/0c3dff.wgsl +++ b/test/tint/builtins/gen/var/textureStore/0c3dff.wgsl @@ -31,18 +31,18 @@ fn textureStore_0c3dff() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_0c3dff(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_0c3dff(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_0c3dff(); } diff --git a/test/tint/builtins/gen/var/textureStore/0c3dff.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/0c3dff.wgsl.expected.wgsl index 3ec0971f51..3da20f2e56 100644 --- a/test/tint/builtins/gen/var/textureStore/0c3dff.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/0c3dff.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_0c3dff() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_0c3dff(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_0c3dff(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_0c3dff(); } diff --git a/test/tint/builtins/gen/var/textureStore/102722.wgsl b/test/tint/builtins/gen/var/textureStore/102722.wgsl index 7399cd7873..6b6d4c7547 100644 --- a/test/tint/builtins/gen/var/textureStore/102722.wgsl +++ b/test/tint/builtins/gen/var/textureStore/102722.wgsl @@ -31,18 +31,18 @@ fn textureStore_102722() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_102722(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_102722(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_102722(); } diff --git a/test/tint/builtins/gen/var/textureStore/102722.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/102722.wgsl.expected.wgsl index 6f998c286d..6abacf8be8 100644 --- a/test/tint/builtins/gen/var/textureStore/102722.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/102722.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_102722() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_102722(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_102722(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_102722(); } diff --git a/test/tint/builtins/gen/var/textureStore/1bbd08.wgsl b/test/tint/builtins/gen/var/textureStore/1bbd08.wgsl index 4be5f7fefe..beac71a676 100644 --- a/test/tint/builtins/gen/var/textureStore/1bbd08.wgsl +++ b/test/tint/builtins/gen/var/textureStore/1bbd08.wgsl @@ -31,18 +31,18 @@ fn textureStore_1bbd08() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_1bbd08(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_1bbd08(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_1bbd08(); } diff --git a/test/tint/builtins/gen/var/textureStore/1bbd08.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/1bbd08.wgsl.expected.wgsl index dc34b23ba7..7043ee1847 100644 --- a/test/tint/builtins/gen/var/textureStore/1bbd08.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/1bbd08.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_1bbd08() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_1bbd08(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_1bbd08(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_1bbd08(); } diff --git a/test/tint/builtins/gen/var/textureStore/1c02e7.wgsl b/test/tint/builtins/gen/var/textureStore/1c02e7.wgsl index 7773d7c98e..34d8589d3b 100644 --- a/test/tint/builtins/gen/var/textureStore/1c02e7.wgsl +++ b/test/tint/builtins/gen/var/textureStore/1c02e7.wgsl @@ -32,18 +32,18 @@ fn textureStore_1c02e7() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_1c02e7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_1c02e7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_1c02e7(); } diff --git a/test/tint/builtins/gen/var/textureStore/1c02e7.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/1c02e7.wgsl.expected.wgsl index 2c24651548..d1665ea0f2 100644 --- a/test/tint/builtins/gen/var/textureStore/1c02e7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/1c02e7.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureStore_1c02e7() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_1c02e7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_1c02e7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_1c02e7(); } diff --git a/test/tint/builtins/gen/var/textureStore/22d955.wgsl b/test/tint/builtins/gen/var/textureStore/22d955.wgsl index 09cc1000f6..995279078c 100644 --- a/test/tint/builtins/gen/var/textureStore/22d955.wgsl +++ b/test/tint/builtins/gen/var/textureStore/22d955.wgsl @@ -32,18 +32,18 @@ fn textureStore_22d955() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_22d955(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_22d955(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_22d955(); } diff --git a/test/tint/builtins/gen/var/textureStore/22d955.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/22d955.wgsl.expected.wgsl index ca3080a743..d46610c035 100644 --- a/test/tint/builtins/gen/var/textureStore/22d955.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/22d955.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureStore_22d955() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_22d955(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_22d955(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_22d955(); } diff --git a/test/tint/builtins/gen/var/textureStore/26bf70.wgsl b/test/tint/builtins/gen/var/textureStore/26bf70.wgsl index cc953f36a7..8709f6cd0f 100644 --- a/test/tint/builtins/gen/var/textureStore/26bf70.wgsl +++ b/test/tint/builtins/gen/var/textureStore/26bf70.wgsl @@ -31,18 +31,18 @@ fn textureStore_26bf70() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_26bf70(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_26bf70(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_26bf70(); } diff --git a/test/tint/builtins/gen/var/textureStore/26bf70.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/26bf70.wgsl.expected.wgsl index f2ef696ef6..9585cafc5b 100644 --- a/test/tint/builtins/gen/var/textureStore/26bf70.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/26bf70.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_26bf70() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_26bf70(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_26bf70(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_26bf70(); } diff --git a/test/tint/builtins/gen/var/textureStore/2796b4.wgsl b/test/tint/builtins/gen/var/textureStore/2796b4.wgsl index 43d4c05947..ecc7e27af0 100644 --- a/test/tint/builtins/gen/var/textureStore/2796b4.wgsl +++ b/test/tint/builtins/gen/var/textureStore/2796b4.wgsl @@ -31,18 +31,18 @@ fn textureStore_2796b4() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_2796b4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_2796b4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_2796b4(); } diff --git a/test/tint/builtins/gen/var/textureStore/2796b4.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/2796b4.wgsl.expected.wgsl index 73dfab1ccf..00dfc5d60c 100644 --- a/test/tint/builtins/gen/var/textureStore/2796b4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/2796b4.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_2796b4() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_2796b4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_2796b4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_2796b4(); } diff --git a/test/tint/builtins/gen/var/textureStore/2ac6c7.wgsl b/test/tint/builtins/gen/var/textureStore/2ac6c7.wgsl index bd92a3dff2..a7383fd26c 100644 --- a/test/tint/builtins/gen/var/textureStore/2ac6c7.wgsl +++ b/test/tint/builtins/gen/var/textureStore/2ac6c7.wgsl @@ -31,18 +31,18 @@ fn textureStore_2ac6c7() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_2ac6c7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_2ac6c7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_2ac6c7(); } diff --git a/test/tint/builtins/gen/var/textureStore/2ac6c7.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/2ac6c7.wgsl.expected.wgsl index 07686ddb36..c370053ba8 100644 --- a/test/tint/builtins/gen/var/textureStore/2ac6c7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/2ac6c7.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_2ac6c7() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_2ac6c7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_2ac6c7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_2ac6c7(); } diff --git a/test/tint/builtins/gen/var/textureStore/2eb2a4.wgsl b/test/tint/builtins/gen/var/textureStore/2eb2a4.wgsl index 6896dde1ab..5a4034037b 100644 --- a/test/tint/builtins/gen/var/textureStore/2eb2a4.wgsl +++ b/test/tint/builtins/gen/var/textureStore/2eb2a4.wgsl @@ -31,18 +31,18 @@ fn textureStore_2eb2a4() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_2eb2a4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_2eb2a4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_2eb2a4(); } diff --git a/test/tint/builtins/gen/var/textureStore/2eb2a4.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/2eb2a4.wgsl.expected.wgsl index fd737252c8..ed6ea1f703 100644 --- a/test/tint/builtins/gen/var/textureStore/2eb2a4.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/2eb2a4.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_2eb2a4() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_2eb2a4(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_2eb2a4(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_2eb2a4(); } diff --git a/test/tint/builtins/gen/var/textureStore/2ed2a3.wgsl b/test/tint/builtins/gen/var/textureStore/2ed2a3.wgsl index f1e001e7c7..d76dca14da 100644 --- a/test/tint/builtins/gen/var/textureStore/2ed2a3.wgsl +++ b/test/tint/builtins/gen/var/textureStore/2ed2a3.wgsl @@ -31,18 +31,18 @@ fn textureStore_2ed2a3() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_2ed2a3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_2ed2a3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_2ed2a3(); } diff --git a/test/tint/builtins/gen/var/textureStore/2ed2a3.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/2ed2a3.wgsl.expected.wgsl index db9ce1b901..811df1cdf6 100644 --- a/test/tint/builtins/gen/var/textureStore/2ed2a3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/2ed2a3.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_2ed2a3() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_2ed2a3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_2ed2a3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_2ed2a3(); } diff --git a/test/tint/builtins/gen/var/textureStore/31745b.wgsl b/test/tint/builtins/gen/var/textureStore/31745b.wgsl index 7a0e83a2d0..6b1632a6f0 100644 --- a/test/tint/builtins/gen/var/textureStore/31745b.wgsl +++ b/test/tint/builtins/gen/var/textureStore/31745b.wgsl @@ -31,18 +31,18 @@ fn textureStore_31745b() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_31745b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_31745b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_31745b(); } diff --git a/test/tint/builtins/gen/var/textureStore/31745b.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/31745b.wgsl.expected.wgsl index 2cbbb067cf..03ffd0b2a9 100644 --- a/test/tint/builtins/gen/var/textureStore/31745b.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/31745b.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_31745b() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_31745b(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_31745b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_31745b(); } diff --git a/test/tint/builtins/gen/var/textureStore/32f368.wgsl b/test/tint/builtins/gen/var/textureStore/32f368.wgsl index 769031f3ca..79b47d22e0 100644 --- a/test/tint/builtins/gen/var/textureStore/32f368.wgsl +++ b/test/tint/builtins/gen/var/textureStore/32f368.wgsl @@ -32,18 +32,18 @@ fn textureStore_32f368() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_32f368(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_32f368(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_32f368(); } diff --git a/test/tint/builtins/gen/var/textureStore/32f368.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/32f368.wgsl.expected.wgsl index 7cf40ced55..4e57641c60 100644 --- a/test/tint/builtins/gen/var/textureStore/32f368.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/32f368.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureStore_32f368() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_32f368(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_32f368(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_32f368(); } diff --git a/test/tint/builtins/gen/var/textureStore/331aee.wgsl b/test/tint/builtins/gen/var/textureStore/331aee.wgsl index f317f4d8aa..c3f42bc7a0 100644 --- a/test/tint/builtins/gen/var/textureStore/331aee.wgsl +++ b/test/tint/builtins/gen/var/textureStore/331aee.wgsl @@ -31,18 +31,18 @@ fn textureStore_331aee() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_331aee(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_331aee(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_331aee(); } diff --git a/test/tint/builtins/gen/var/textureStore/331aee.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/331aee.wgsl.expected.wgsl index af9f52bbd5..97cea3bf30 100644 --- a/test/tint/builtins/gen/var/textureStore/331aee.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/331aee.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_331aee() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_331aee(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_331aee(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_331aee(); } diff --git a/test/tint/builtins/gen/var/textureStore/38e8d7.wgsl b/test/tint/builtins/gen/var/textureStore/38e8d7.wgsl index 7309e183b7..2da4aa4ccc 100644 --- a/test/tint/builtins/gen/var/textureStore/38e8d7.wgsl +++ b/test/tint/builtins/gen/var/textureStore/38e8d7.wgsl @@ -32,18 +32,18 @@ fn textureStore_38e8d7() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_38e8d7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_38e8d7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_38e8d7(); } diff --git a/test/tint/builtins/gen/var/textureStore/38e8d7.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/38e8d7.wgsl.expected.wgsl index 650afb8455..2ae4af0511 100644 --- a/test/tint/builtins/gen/var/textureStore/38e8d7.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/38e8d7.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureStore_38e8d7() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_38e8d7(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_38e8d7(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_38e8d7(); } diff --git a/test/tint/builtins/gen/var/textureStore/3a52ac.wgsl b/test/tint/builtins/gen/var/textureStore/3a52ac.wgsl index 022d92b142..dd97290851 100644 --- a/test/tint/builtins/gen/var/textureStore/3a52ac.wgsl +++ b/test/tint/builtins/gen/var/textureStore/3a52ac.wgsl @@ -32,18 +32,18 @@ fn textureStore_3a52ac() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_3a52ac(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_3a52ac(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_3a52ac(); } diff --git a/test/tint/builtins/gen/var/textureStore/3a52ac.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/3a52ac.wgsl.expected.wgsl index ec27918ce7..b213fc0509 100644 --- a/test/tint/builtins/gen/var/textureStore/3a52ac.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/3a52ac.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureStore_3a52ac() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_3a52ac(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_3a52ac(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_3a52ac(); } diff --git a/test/tint/builtins/gen/var/textureStore/3bb7a1.wgsl b/test/tint/builtins/gen/var/textureStore/3bb7a1.wgsl index 959aa09956..6d894abaca 100644 --- a/test/tint/builtins/gen/var/textureStore/3bb7a1.wgsl +++ b/test/tint/builtins/gen/var/textureStore/3bb7a1.wgsl @@ -32,18 +32,18 @@ fn textureStore_3bb7a1() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_3bb7a1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_3bb7a1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_3bb7a1(); } diff --git a/test/tint/builtins/gen/var/textureStore/3bb7a1.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/3bb7a1.wgsl.expected.wgsl index d79be5d1c5..e8a6e50305 100644 --- a/test/tint/builtins/gen/var/textureStore/3bb7a1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/3bb7a1.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureStore_3bb7a1() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_3bb7a1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_3bb7a1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_3bb7a1(); } diff --git a/test/tint/builtins/gen/var/textureStore/3bec15.wgsl b/test/tint/builtins/gen/var/textureStore/3bec15.wgsl index b271e2cb15..fa805a90b2 100644 --- a/test/tint/builtins/gen/var/textureStore/3bec15.wgsl +++ b/test/tint/builtins/gen/var/textureStore/3bec15.wgsl @@ -31,18 +31,18 @@ fn textureStore_3bec15() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_3bec15(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_3bec15(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_3bec15(); } diff --git a/test/tint/builtins/gen/var/textureStore/3bec15.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/3bec15.wgsl.expected.wgsl index 63f1025196..3b320e3cef 100644 --- a/test/tint/builtins/gen/var/textureStore/3bec15.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/3bec15.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_3bec15() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_3bec15(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_3bec15(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_3bec15(); } diff --git a/test/tint/builtins/gen/var/textureStore/441ba8.wgsl b/test/tint/builtins/gen/var/textureStore/441ba8.wgsl index 73f8b3b924..18bbc623fe 100644 --- a/test/tint/builtins/gen/var/textureStore/441ba8.wgsl +++ b/test/tint/builtins/gen/var/textureStore/441ba8.wgsl @@ -31,18 +31,18 @@ fn textureStore_441ba8() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_441ba8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_441ba8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_441ba8(); } diff --git a/test/tint/builtins/gen/var/textureStore/441ba8.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/441ba8.wgsl.expected.wgsl index 77c1fef041..773999aa38 100644 --- a/test/tint/builtins/gen/var/textureStore/441ba8.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/441ba8.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_441ba8() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_441ba8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_441ba8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_441ba8(); } diff --git a/test/tint/builtins/gen/var/textureStore/4fc057.wgsl b/test/tint/builtins/gen/var/textureStore/4fc057.wgsl index b1433f55fa..6bc3eab934 100644 --- a/test/tint/builtins/gen/var/textureStore/4fc057.wgsl +++ b/test/tint/builtins/gen/var/textureStore/4fc057.wgsl @@ -32,18 +32,18 @@ fn textureStore_4fc057() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_4fc057(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_4fc057(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_4fc057(); } diff --git a/test/tint/builtins/gen/var/textureStore/4fc057.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/4fc057.wgsl.expected.wgsl index 5721e0306c..4cd0bf7b8d 100644 --- a/test/tint/builtins/gen/var/textureStore/4fc057.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/4fc057.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureStore_4fc057() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_4fc057(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_4fc057(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_4fc057(); } diff --git a/test/tint/builtins/gen/var/textureStore/5a2f8f.wgsl b/test/tint/builtins/gen/var/textureStore/5a2f8f.wgsl index 90117ce765..174416bebf 100644 --- a/test/tint/builtins/gen/var/textureStore/5a2f8f.wgsl +++ b/test/tint/builtins/gen/var/textureStore/5a2f8f.wgsl @@ -31,18 +31,18 @@ fn textureStore_5a2f8f() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_5a2f8f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_5a2f8f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_5a2f8f(); } diff --git a/test/tint/builtins/gen/var/textureStore/5a2f8f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/5a2f8f.wgsl.expected.wgsl index b2470f5ad6..26334c9808 100644 --- a/test/tint/builtins/gen/var/textureStore/5a2f8f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/5a2f8f.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_5a2f8f() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_5a2f8f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_5a2f8f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_5a2f8f(); } diff --git a/test/tint/builtins/gen/var/textureStore/60975f.wgsl b/test/tint/builtins/gen/var/textureStore/60975f.wgsl index c4a94b6524..60439cb26e 100644 --- a/test/tint/builtins/gen/var/textureStore/60975f.wgsl +++ b/test/tint/builtins/gen/var/textureStore/60975f.wgsl @@ -32,18 +32,18 @@ fn textureStore_60975f() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_60975f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_60975f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_60975f(); } diff --git a/test/tint/builtins/gen/var/textureStore/60975f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/60975f.wgsl.expected.wgsl index 78911cc18b..896fd6378e 100644 --- a/test/tint/builtins/gen/var/textureStore/60975f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/60975f.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureStore_60975f() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_60975f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_60975f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_60975f(); } diff --git a/test/tint/builtins/gen/var/textureStore/682fd6.wgsl b/test/tint/builtins/gen/var/textureStore/682fd6.wgsl index 5be4263777..40562008cc 100644 --- a/test/tint/builtins/gen/var/textureStore/682fd6.wgsl +++ b/test/tint/builtins/gen/var/textureStore/682fd6.wgsl @@ -31,18 +31,18 @@ fn textureStore_682fd6() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_682fd6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_682fd6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_682fd6(); } diff --git a/test/tint/builtins/gen/var/textureStore/682fd6.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/682fd6.wgsl.expected.wgsl index 8539d14d09..a7d1e078f8 100644 --- a/test/tint/builtins/gen/var/textureStore/682fd6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/682fd6.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_682fd6() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_682fd6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_682fd6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_682fd6(); } diff --git a/test/tint/builtins/gen/var/textureStore/6b75c3.wgsl b/test/tint/builtins/gen/var/textureStore/6b75c3.wgsl index aac4b66cdc..72f4786be7 100644 --- a/test/tint/builtins/gen/var/textureStore/6b75c3.wgsl +++ b/test/tint/builtins/gen/var/textureStore/6b75c3.wgsl @@ -31,18 +31,18 @@ fn textureStore_6b75c3() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_6b75c3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_6b75c3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_6b75c3(); } diff --git a/test/tint/builtins/gen/var/textureStore/6b75c3.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/6b75c3.wgsl.expected.wgsl index 8cc3cbd919..37dfe80df4 100644 --- a/test/tint/builtins/gen/var/textureStore/6b75c3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/6b75c3.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_6b75c3() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_6b75c3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_6b75c3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_6b75c3(); } diff --git a/test/tint/builtins/gen/var/textureStore/6b80d2.wgsl b/test/tint/builtins/gen/var/textureStore/6b80d2.wgsl index 6579162a9d..407bce7005 100644 --- a/test/tint/builtins/gen/var/textureStore/6b80d2.wgsl +++ b/test/tint/builtins/gen/var/textureStore/6b80d2.wgsl @@ -31,18 +31,18 @@ fn textureStore_6b80d2() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_6b80d2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_6b80d2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_6b80d2(); } diff --git a/test/tint/builtins/gen/var/textureStore/6b80d2.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/6b80d2.wgsl.expected.wgsl index 857f14248d..84625decdf 100644 --- a/test/tint/builtins/gen/var/textureStore/6b80d2.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/6b80d2.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_6b80d2() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_6b80d2(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_6b80d2(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_6b80d2(); } diff --git a/test/tint/builtins/gen/var/textureStore/6cff2e.wgsl b/test/tint/builtins/gen/var/textureStore/6cff2e.wgsl index b675a270dc..f02c8578ab 100644 --- a/test/tint/builtins/gen/var/textureStore/6cff2e.wgsl +++ b/test/tint/builtins/gen/var/textureStore/6cff2e.wgsl @@ -31,18 +31,18 @@ fn textureStore_6cff2e() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_6cff2e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_6cff2e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_6cff2e(); } diff --git a/test/tint/builtins/gen/var/textureStore/6cff2e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/6cff2e.wgsl.expected.wgsl index 2278e2ca7f..37ba249a35 100644 --- a/test/tint/builtins/gen/var/textureStore/6cff2e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/6cff2e.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_6cff2e() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_6cff2e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_6cff2e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_6cff2e(); } diff --git a/test/tint/builtins/gen/var/textureStore/6da692.wgsl b/test/tint/builtins/gen/var/textureStore/6da692.wgsl index a2738e3be5..e9c9a24984 100644 --- a/test/tint/builtins/gen/var/textureStore/6da692.wgsl +++ b/test/tint/builtins/gen/var/textureStore/6da692.wgsl @@ -32,18 +32,18 @@ fn textureStore_6da692() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_6da692(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_6da692(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_6da692(); } diff --git a/test/tint/builtins/gen/var/textureStore/6da692.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/6da692.wgsl.expected.wgsl index 9c99fa7865..c54b75ba61 100644 --- a/test/tint/builtins/gen/var/textureStore/6da692.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/6da692.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureStore_6da692() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_6da692(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_6da692(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_6da692(); } diff --git a/test/tint/builtins/gen/var/textureStore/731349.wgsl b/test/tint/builtins/gen/var/textureStore/731349.wgsl index 513104fc22..baee8b2663 100644 --- a/test/tint/builtins/gen/var/textureStore/731349.wgsl +++ b/test/tint/builtins/gen/var/textureStore/731349.wgsl @@ -31,18 +31,18 @@ fn textureStore_731349() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_731349(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_731349(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_731349(); } diff --git a/test/tint/builtins/gen/var/textureStore/731349.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/731349.wgsl.expected.wgsl index 6e8011a4a9..eb1aa14f46 100644 --- a/test/tint/builtins/gen/var/textureStore/731349.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/731349.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_731349() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_731349(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_731349(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_731349(); } diff --git a/test/tint/builtins/gen/var/textureStore/752da6.wgsl b/test/tint/builtins/gen/var/textureStore/752da6.wgsl index 7d568bef02..bbd9b523f9 100644 --- a/test/tint/builtins/gen/var/textureStore/752da6.wgsl +++ b/test/tint/builtins/gen/var/textureStore/752da6.wgsl @@ -31,18 +31,18 @@ fn textureStore_752da6() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_752da6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_752da6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_752da6(); } diff --git a/test/tint/builtins/gen/var/textureStore/752da6.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/752da6.wgsl.expected.wgsl index 7a2a16b73c..5ec1d8d7df 100644 --- a/test/tint/builtins/gen/var/textureStore/752da6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/752da6.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_752da6() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_752da6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_752da6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_752da6(); } diff --git a/test/tint/builtins/gen/var/textureStore/77c0ae.wgsl b/test/tint/builtins/gen/var/textureStore/77c0ae.wgsl index b68362e760..c418d625bb 100644 --- a/test/tint/builtins/gen/var/textureStore/77c0ae.wgsl +++ b/test/tint/builtins/gen/var/textureStore/77c0ae.wgsl @@ -31,18 +31,18 @@ fn textureStore_77c0ae() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_77c0ae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_77c0ae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_77c0ae(); } diff --git a/test/tint/builtins/gen/var/textureStore/77c0ae.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/77c0ae.wgsl.expected.wgsl index 6be0361cce..28994fc19b 100644 --- a/test/tint/builtins/gen/var/textureStore/77c0ae.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/77c0ae.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_77c0ae() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_77c0ae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_77c0ae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_77c0ae(); } diff --git a/test/tint/builtins/gen/var/textureStore/7cec8d.wgsl b/test/tint/builtins/gen/var/textureStore/7cec8d.wgsl index 8dd0b94893..ee25e7b0c7 100644 --- a/test/tint/builtins/gen/var/textureStore/7cec8d.wgsl +++ b/test/tint/builtins/gen/var/textureStore/7cec8d.wgsl @@ -32,18 +32,18 @@ fn textureStore_7cec8d() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_7cec8d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_7cec8d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_7cec8d(); } diff --git a/test/tint/builtins/gen/var/textureStore/7cec8d.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/7cec8d.wgsl.expected.wgsl index 56e1988bf5..2d60abcd5e 100644 --- a/test/tint/builtins/gen/var/textureStore/7cec8d.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/7cec8d.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureStore_7cec8d() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_7cec8d(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_7cec8d(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_7cec8d(); } diff --git a/test/tint/builtins/gen/var/textureStore/7f7fae.wgsl b/test/tint/builtins/gen/var/textureStore/7f7fae.wgsl index e1ac747c4e..a83cb08449 100644 --- a/test/tint/builtins/gen/var/textureStore/7f7fae.wgsl +++ b/test/tint/builtins/gen/var/textureStore/7f7fae.wgsl @@ -31,18 +31,18 @@ fn textureStore_7f7fae() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_7f7fae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_7f7fae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_7f7fae(); } diff --git a/test/tint/builtins/gen/var/textureStore/7f7fae.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/7f7fae.wgsl.expected.wgsl index 0c41e78672..accb7c0e70 100644 --- a/test/tint/builtins/gen/var/textureStore/7f7fae.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/7f7fae.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_7f7fae() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_7f7fae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_7f7fae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_7f7fae(); } diff --git a/test/tint/builtins/gen/var/textureStore/804942.wgsl b/test/tint/builtins/gen/var/textureStore/804942.wgsl index 47d4ac7ceb..1b01bfa8a3 100644 --- a/test/tint/builtins/gen/var/textureStore/804942.wgsl +++ b/test/tint/builtins/gen/var/textureStore/804942.wgsl @@ -31,18 +31,18 @@ fn textureStore_804942() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_804942(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_804942(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_804942(); } diff --git a/test/tint/builtins/gen/var/textureStore/804942.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/804942.wgsl.expected.wgsl index 12e178d4a1..171f2496e5 100644 --- a/test/tint/builtins/gen/var/textureStore/804942.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/804942.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_804942() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_804942(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_804942(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_804942(); } diff --git a/test/tint/builtins/gen/var/textureStore/805dae.wgsl b/test/tint/builtins/gen/var/textureStore/805dae.wgsl index edab8e5319..c035708bdd 100644 --- a/test/tint/builtins/gen/var/textureStore/805dae.wgsl +++ b/test/tint/builtins/gen/var/textureStore/805dae.wgsl @@ -31,18 +31,18 @@ fn textureStore_805dae() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_805dae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_805dae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_805dae(); } diff --git a/test/tint/builtins/gen/var/textureStore/805dae.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/805dae.wgsl.expected.wgsl index d2ce87cbca..3e6f446db3 100644 --- a/test/tint/builtins/gen/var/textureStore/805dae.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/805dae.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_805dae() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_805dae(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_805dae(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_805dae(); } diff --git a/test/tint/builtins/gen/var/textureStore/83bcc1.wgsl b/test/tint/builtins/gen/var/textureStore/83bcc1.wgsl index d44459af5e..1f609d4cf6 100644 --- a/test/tint/builtins/gen/var/textureStore/83bcc1.wgsl +++ b/test/tint/builtins/gen/var/textureStore/83bcc1.wgsl @@ -31,18 +31,18 @@ fn textureStore_83bcc1() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_83bcc1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_83bcc1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_83bcc1(); } diff --git a/test/tint/builtins/gen/var/textureStore/83bcc1.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/83bcc1.wgsl.expected.wgsl index ba0a1d8289..32662db119 100644 --- a/test/tint/builtins/gen/var/textureStore/83bcc1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/83bcc1.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_83bcc1() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_83bcc1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_83bcc1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_83bcc1(); } diff --git a/test/tint/builtins/gen/var/textureStore/872747.wgsl b/test/tint/builtins/gen/var/textureStore/872747.wgsl index 67d6535709..d0bd3e5ebb 100644 --- a/test/tint/builtins/gen/var/textureStore/872747.wgsl +++ b/test/tint/builtins/gen/var/textureStore/872747.wgsl @@ -31,18 +31,18 @@ fn textureStore_872747() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_872747(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_872747(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_872747(); } diff --git a/test/tint/builtins/gen/var/textureStore/872747.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/872747.wgsl.expected.wgsl index a3090874f8..f1ce50d71f 100644 --- a/test/tint/builtins/gen/var/textureStore/872747.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/872747.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_872747() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_872747(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_872747(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_872747(); } diff --git a/test/tint/builtins/gen/var/textureStore/8e0479.wgsl b/test/tint/builtins/gen/var/textureStore/8e0479.wgsl index 857a68801f..e7de1063c2 100644 --- a/test/tint/builtins/gen/var/textureStore/8e0479.wgsl +++ b/test/tint/builtins/gen/var/textureStore/8e0479.wgsl @@ -32,18 +32,18 @@ fn textureStore_8e0479() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_8e0479(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_8e0479(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_8e0479(); } diff --git a/test/tint/builtins/gen/var/textureStore/8e0479.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/8e0479.wgsl.expected.wgsl index 7a726a22da..1543d39c29 100644 --- a/test/tint/builtins/gen/var/textureStore/8e0479.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/8e0479.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureStore_8e0479() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_8e0479(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_8e0479(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_8e0479(); } diff --git a/test/tint/builtins/gen/var/textureStore/8f71a1.wgsl b/test/tint/builtins/gen/var/textureStore/8f71a1.wgsl index 8d2c6b9418..010be986ae 100644 --- a/test/tint/builtins/gen/var/textureStore/8f71a1.wgsl +++ b/test/tint/builtins/gen/var/textureStore/8f71a1.wgsl @@ -31,18 +31,18 @@ fn textureStore_8f71a1() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_8f71a1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_8f71a1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_8f71a1(); } diff --git a/test/tint/builtins/gen/var/textureStore/8f71a1.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/8f71a1.wgsl.expected.wgsl index c031e90f5b..709f78ea49 100644 --- a/test/tint/builtins/gen/var/textureStore/8f71a1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/8f71a1.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_8f71a1() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_8f71a1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_8f71a1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_8f71a1(); } diff --git a/test/tint/builtins/gen/var/textureStore/969534.wgsl b/test/tint/builtins/gen/var/textureStore/969534.wgsl index a37d5b8ce0..eca050dfdc 100644 --- a/test/tint/builtins/gen/var/textureStore/969534.wgsl +++ b/test/tint/builtins/gen/var/textureStore/969534.wgsl @@ -31,18 +31,18 @@ fn textureStore_969534() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_969534(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_969534(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_969534(); } diff --git a/test/tint/builtins/gen/var/textureStore/969534.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/969534.wgsl.expected.wgsl index 0b2dbba4bb..c83ec9523d 100644 --- a/test/tint/builtins/gen/var/textureStore/969534.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/969534.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_969534() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_969534(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_969534(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_969534(); } diff --git a/test/tint/builtins/gen/var/textureStore/9a3ecc.wgsl b/test/tint/builtins/gen/var/textureStore/9a3ecc.wgsl index 57062ce348..4bbfe82143 100644 --- a/test/tint/builtins/gen/var/textureStore/9a3ecc.wgsl +++ b/test/tint/builtins/gen/var/textureStore/9a3ecc.wgsl @@ -31,18 +31,18 @@ fn textureStore_9a3ecc() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_9a3ecc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_9a3ecc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_9a3ecc(); } diff --git a/test/tint/builtins/gen/var/textureStore/9a3ecc.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/9a3ecc.wgsl.expected.wgsl index 2c723c016c..04f9424c83 100644 --- a/test/tint/builtins/gen/var/textureStore/9a3ecc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/9a3ecc.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_9a3ecc() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_9a3ecc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_9a3ecc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_9a3ecc(); } diff --git a/test/tint/builtins/gen/var/textureStore/9d9cd5.wgsl b/test/tint/builtins/gen/var/textureStore/9d9cd5.wgsl index 6e7832e87d..f9bb1a487b 100644 --- a/test/tint/builtins/gen/var/textureStore/9d9cd5.wgsl +++ b/test/tint/builtins/gen/var/textureStore/9d9cd5.wgsl @@ -32,18 +32,18 @@ fn textureStore_9d9cd5() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_9d9cd5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_9d9cd5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_9d9cd5(); } diff --git a/test/tint/builtins/gen/var/textureStore/9d9cd5.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/9d9cd5.wgsl.expected.wgsl index b2a600b0e8..b0dbf55d70 100644 --- a/test/tint/builtins/gen/var/textureStore/9d9cd5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/9d9cd5.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureStore_9d9cd5() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_9d9cd5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_9d9cd5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_9d9cd5(); } diff --git a/test/tint/builtins/gen/var/textureStore/9e3ec5.wgsl b/test/tint/builtins/gen/var/textureStore/9e3ec5.wgsl index 7e1d29aa7f..fa78e53a13 100644 --- a/test/tint/builtins/gen/var/textureStore/9e3ec5.wgsl +++ b/test/tint/builtins/gen/var/textureStore/9e3ec5.wgsl @@ -31,18 +31,18 @@ fn textureStore_9e3ec5() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_9e3ec5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_9e3ec5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_9e3ec5(); } diff --git a/test/tint/builtins/gen/var/textureStore/9e3ec5.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/9e3ec5.wgsl.expected.wgsl index d024cb7e06..a8259239b9 100644 --- a/test/tint/builtins/gen/var/textureStore/9e3ec5.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/9e3ec5.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_9e3ec5() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_9e3ec5(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_9e3ec5(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_9e3ec5(); } diff --git a/test/tint/builtins/gen/var/textureStore/ac67aa.wgsl b/test/tint/builtins/gen/var/textureStore/ac67aa.wgsl index 0ecf9586f9..1ee0592d05 100644 --- a/test/tint/builtins/gen/var/textureStore/ac67aa.wgsl +++ b/test/tint/builtins/gen/var/textureStore/ac67aa.wgsl @@ -31,18 +31,18 @@ fn textureStore_ac67aa() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_ac67aa(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_ac67aa(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_ac67aa(); } diff --git a/test/tint/builtins/gen/var/textureStore/ac67aa.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/ac67aa.wgsl.expected.wgsl index 9dd770c619..2145e3ae82 100644 --- a/test/tint/builtins/gen/var/textureStore/ac67aa.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/ac67aa.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_ac67aa() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_ac67aa(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_ac67aa(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_ac67aa(); } diff --git a/test/tint/builtins/gen/var/textureStore/b706b1.wgsl b/test/tint/builtins/gen/var/textureStore/b706b1.wgsl index 200a8315d8..ca6abce2ee 100644 --- a/test/tint/builtins/gen/var/textureStore/b706b1.wgsl +++ b/test/tint/builtins/gen/var/textureStore/b706b1.wgsl @@ -31,18 +31,18 @@ fn textureStore_b706b1() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_b706b1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_b706b1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_b706b1(); } diff --git a/test/tint/builtins/gen/var/textureStore/b706b1.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/b706b1.wgsl.expected.wgsl index 4e5ab39c45..42775a482a 100644 --- a/test/tint/builtins/gen/var/textureStore/b706b1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/b706b1.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_b706b1() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_b706b1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_b706b1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_b706b1(); } diff --git a/test/tint/builtins/gen/var/textureStore/bbcb7f.wgsl b/test/tint/builtins/gen/var/textureStore/bbcb7f.wgsl index 58d83e457f..300a096afa 100644 --- a/test/tint/builtins/gen/var/textureStore/bbcb7f.wgsl +++ b/test/tint/builtins/gen/var/textureStore/bbcb7f.wgsl @@ -31,18 +31,18 @@ fn textureStore_bbcb7f() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_bbcb7f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_bbcb7f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_bbcb7f(); } diff --git a/test/tint/builtins/gen/var/textureStore/bbcb7f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/bbcb7f.wgsl.expected.wgsl index 87d0a02ffd..1bf17d91d7 100644 --- a/test/tint/builtins/gen/var/textureStore/bbcb7f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/bbcb7f.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_bbcb7f() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_bbcb7f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_bbcb7f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_bbcb7f(); } diff --git a/test/tint/builtins/gen/var/textureStore/be6e30.wgsl b/test/tint/builtins/gen/var/textureStore/be6e30.wgsl index e0293cc995..293d9b46ef 100644 --- a/test/tint/builtins/gen/var/textureStore/be6e30.wgsl +++ b/test/tint/builtins/gen/var/textureStore/be6e30.wgsl @@ -31,18 +31,18 @@ fn textureStore_be6e30() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_be6e30(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_be6e30(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_be6e30(); } diff --git a/test/tint/builtins/gen/var/textureStore/be6e30.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/be6e30.wgsl.expected.wgsl index 259fa2bd98..3fa9fde298 100644 --- a/test/tint/builtins/gen/var/textureStore/be6e30.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/be6e30.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_be6e30() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_be6e30(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_be6e30(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_be6e30(); } diff --git a/test/tint/builtins/gen/var/textureStore/bf775c.wgsl b/test/tint/builtins/gen/var/textureStore/bf775c.wgsl index f6147df0d3..d1c107af0c 100644 --- a/test/tint/builtins/gen/var/textureStore/bf775c.wgsl +++ b/test/tint/builtins/gen/var/textureStore/bf775c.wgsl @@ -31,18 +31,18 @@ fn textureStore_bf775c() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_bf775c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_bf775c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_bf775c(); } diff --git a/test/tint/builtins/gen/var/textureStore/bf775c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/bf775c.wgsl.expected.wgsl index cdf9966845..b2fae4d556 100644 --- a/test/tint/builtins/gen/var/textureStore/bf775c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/bf775c.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_bf775c() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_bf775c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_bf775c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_bf775c(); } diff --git a/test/tint/builtins/gen/var/textureStore/c5af1e.wgsl b/test/tint/builtins/gen/var/textureStore/c5af1e.wgsl index db992bcd5d..2d65ba5235 100644 --- a/test/tint/builtins/gen/var/textureStore/c5af1e.wgsl +++ b/test/tint/builtins/gen/var/textureStore/c5af1e.wgsl @@ -31,18 +31,18 @@ fn textureStore_c5af1e() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_c5af1e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_c5af1e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_c5af1e(); } diff --git a/test/tint/builtins/gen/var/textureStore/c5af1e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/c5af1e.wgsl.expected.wgsl index 1054a7700e..cc2c9d11da 100644 --- a/test/tint/builtins/gen/var/textureStore/c5af1e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/c5af1e.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_c5af1e() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_c5af1e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_c5af1e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_c5af1e(); } diff --git a/test/tint/builtins/gen/var/textureStore/c863be.wgsl b/test/tint/builtins/gen/var/textureStore/c863be.wgsl index dead2acbee..f2c8c98b18 100644 --- a/test/tint/builtins/gen/var/textureStore/c863be.wgsl +++ b/test/tint/builtins/gen/var/textureStore/c863be.wgsl @@ -32,18 +32,18 @@ fn textureStore_c863be() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_c863be(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_c863be(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_c863be(); } diff --git a/test/tint/builtins/gen/var/textureStore/c863be.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/c863be.wgsl.expected.wgsl index a6ba2427d2..daa524bcbd 100644 --- a/test/tint/builtins/gen/var/textureStore/c863be.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/c863be.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureStore_c863be() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_c863be(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_c863be(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_c863be(); } diff --git a/test/tint/builtins/gen/var/textureStore/d73b5c.wgsl b/test/tint/builtins/gen/var/textureStore/d73b5c.wgsl index 1b25bc437c..5a6930fff2 100644 --- a/test/tint/builtins/gen/var/textureStore/d73b5c.wgsl +++ b/test/tint/builtins/gen/var/textureStore/d73b5c.wgsl @@ -31,18 +31,18 @@ fn textureStore_d73b5c() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_d73b5c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_d73b5c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_d73b5c(); } diff --git a/test/tint/builtins/gen/var/textureStore/d73b5c.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/d73b5c.wgsl.expected.wgsl index 6c5f4cb090..9025a3e20c 100644 --- a/test/tint/builtins/gen/var/textureStore/d73b5c.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/d73b5c.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_d73b5c() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_d73b5c(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_d73b5c(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_d73b5c(); } diff --git a/test/tint/builtins/gen/var/textureStore/dd7d81.wgsl b/test/tint/builtins/gen/var/textureStore/dd7d81.wgsl index 3c44ab4d9f..5cefc67e74 100644 --- a/test/tint/builtins/gen/var/textureStore/dd7d81.wgsl +++ b/test/tint/builtins/gen/var/textureStore/dd7d81.wgsl @@ -31,18 +31,18 @@ fn textureStore_dd7d81() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_dd7d81(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_dd7d81(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_dd7d81(); } diff --git a/test/tint/builtins/gen/var/textureStore/dd7d81.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/dd7d81.wgsl.expected.wgsl index 5aa55d7343..812587cc6a 100644 --- a/test/tint/builtins/gen/var/textureStore/dd7d81.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/dd7d81.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_dd7d81() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_dd7d81(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_dd7d81(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_dd7d81(); } diff --git a/test/tint/builtins/gen/var/textureStore/dde364.wgsl b/test/tint/builtins/gen/var/textureStore/dde364.wgsl index 13f1d5942a..247f438bf0 100644 --- a/test/tint/builtins/gen/var/textureStore/dde364.wgsl +++ b/test/tint/builtins/gen/var/textureStore/dde364.wgsl @@ -32,18 +32,18 @@ fn textureStore_dde364() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_dde364(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_dde364(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_dde364(); } diff --git a/test/tint/builtins/gen/var/textureStore/dde364.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/dde364.wgsl.expected.wgsl index 61c414056b..8719ec97cf 100644 --- a/test/tint/builtins/gen/var/textureStore/dde364.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/dde364.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureStore_dde364() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_dde364(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_dde364(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_dde364(); } diff --git a/test/tint/builtins/gen/var/textureStore/e885e8.wgsl b/test/tint/builtins/gen/var/textureStore/e885e8.wgsl index dc7a9afd90..b0d314a400 100644 --- a/test/tint/builtins/gen/var/textureStore/e885e8.wgsl +++ b/test/tint/builtins/gen/var/textureStore/e885e8.wgsl @@ -31,18 +31,18 @@ fn textureStore_e885e8() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_e885e8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_e885e8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_e885e8(); } diff --git a/test/tint/builtins/gen/var/textureStore/e885e8.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/e885e8.wgsl.expected.wgsl index 27bd62e700..4b1b9acf83 100644 --- a/test/tint/builtins/gen/var/textureStore/e885e8.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/e885e8.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_e885e8() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_e885e8(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_e885e8(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_e885e8(); } diff --git a/test/tint/builtins/gen/var/textureStore/eb702f.wgsl b/test/tint/builtins/gen/var/textureStore/eb702f.wgsl index bee128311b..b3e494d35b 100644 --- a/test/tint/builtins/gen/var/textureStore/eb702f.wgsl +++ b/test/tint/builtins/gen/var/textureStore/eb702f.wgsl @@ -31,18 +31,18 @@ fn textureStore_eb702f() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_eb702f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_eb702f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_eb702f(); } diff --git a/test/tint/builtins/gen/var/textureStore/eb702f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/eb702f.wgsl.expected.wgsl index dcb0776c50..bc8a259f79 100644 --- a/test/tint/builtins/gen/var/textureStore/eb702f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/eb702f.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_eb702f() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_eb702f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_eb702f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_eb702f(); } diff --git a/test/tint/builtins/gen/var/textureStore/eb78b9.wgsl b/test/tint/builtins/gen/var/textureStore/eb78b9.wgsl index 564a7b13a1..d1a714c6a4 100644 --- a/test/tint/builtins/gen/var/textureStore/eb78b9.wgsl +++ b/test/tint/builtins/gen/var/textureStore/eb78b9.wgsl @@ -31,18 +31,18 @@ fn textureStore_eb78b9() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_eb78b9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_eb78b9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_eb78b9(); } diff --git a/test/tint/builtins/gen/var/textureStore/eb78b9.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/eb78b9.wgsl.expected.wgsl index a19c531b12..2d7e63513b 100644 --- a/test/tint/builtins/gen/var/textureStore/eb78b9.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/eb78b9.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_eb78b9() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_eb78b9(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_eb78b9(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_eb78b9(); } diff --git a/test/tint/builtins/gen/var/textureStore/ee6acc.wgsl b/test/tint/builtins/gen/var/textureStore/ee6acc.wgsl index 5dd4ca3ea4..6748aa08fc 100644 --- a/test/tint/builtins/gen/var/textureStore/ee6acc.wgsl +++ b/test/tint/builtins/gen/var/textureStore/ee6acc.wgsl @@ -31,18 +31,18 @@ fn textureStore_ee6acc() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_ee6acc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_ee6acc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_ee6acc(); } diff --git a/test/tint/builtins/gen/var/textureStore/ee6acc.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/ee6acc.wgsl.expected.wgsl index aec0e264bc..8ba6d40420 100644 --- a/test/tint/builtins/gen/var/textureStore/ee6acc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/ee6acc.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_ee6acc() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_ee6acc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_ee6acc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_ee6acc(); } diff --git a/test/tint/builtins/gen/var/textureStore/ef9f2f.wgsl b/test/tint/builtins/gen/var/textureStore/ef9f2f.wgsl index 988c3a7667..f94b1f188b 100644 --- a/test/tint/builtins/gen/var/textureStore/ef9f2f.wgsl +++ b/test/tint/builtins/gen/var/textureStore/ef9f2f.wgsl @@ -31,18 +31,18 @@ fn textureStore_ef9f2f() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_ef9f2f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_ef9f2f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_ef9f2f(); } diff --git a/test/tint/builtins/gen/var/textureStore/ef9f2f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/ef9f2f.wgsl.expected.wgsl index 596115c241..1045a895fa 100644 --- a/test/tint/builtins/gen/var/textureStore/ef9f2f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/ef9f2f.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_ef9f2f() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_ef9f2f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_ef9f2f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_ef9f2f(); } diff --git a/test/tint/builtins/gen/var/textureStore/f8dead.wgsl b/test/tint/builtins/gen/var/textureStore/f8dead.wgsl index afc180084e..ddfdd946e2 100644 --- a/test/tint/builtins/gen/var/textureStore/f8dead.wgsl +++ b/test/tint/builtins/gen/var/textureStore/f8dead.wgsl @@ -31,18 +31,18 @@ fn textureStore_f8dead() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_f8dead(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_f8dead(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_f8dead(); } diff --git a/test/tint/builtins/gen/var/textureStore/f8dead.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/f8dead.wgsl.expected.wgsl index 4ba27c6a26..52a1d3e12c 100644 --- a/test/tint/builtins/gen/var/textureStore/f8dead.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/f8dead.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_f8dead() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_f8dead(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_f8dead(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_f8dead(); } diff --git a/test/tint/builtins/gen/var/textureStore/f9be83.wgsl b/test/tint/builtins/gen/var/textureStore/f9be83.wgsl index fe6e874441..7598ae810a 100644 --- a/test/tint/builtins/gen/var/textureStore/f9be83.wgsl +++ b/test/tint/builtins/gen/var/textureStore/f9be83.wgsl @@ -32,18 +32,18 @@ fn textureStore_f9be83() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_f9be83(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_f9be83(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_f9be83(); } diff --git a/test/tint/builtins/gen/var/textureStore/f9be83.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/f9be83.wgsl.expected.wgsl index b5ade7c184..f3601ae9e1 100644 --- a/test/tint/builtins/gen/var/textureStore/f9be83.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/f9be83.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureStore_f9be83() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_f9be83(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_f9be83(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_f9be83(); } diff --git a/test/tint/builtins/gen/var/textureStore/fb9a8f.wgsl b/test/tint/builtins/gen/var/textureStore/fb9a8f.wgsl index 08f79474cc..3172e73bc3 100644 --- a/test/tint/builtins/gen/var/textureStore/fb9a8f.wgsl +++ b/test/tint/builtins/gen/var/textureStore/fb9a8f.wgsl @@ -31,18 +31,18 @@ fn textureStore_fb9a8f() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_fb9a8f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_fb9a8f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_fb9a8f(); } diff --git a/test/tint/builtins/gen/var/textureStore/fb9a8f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/fb9a8f.wgsl.expected.wgsl index 63241f2471..0d6561b21c 100644 --- a/test/tint/builtins/gen/var/textureStore/fb9a8f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/fb9a8f.wgsl.expected.wgsl @@ -6,18 +6,18 @@ fn textureStore_fb9a8f() { textureStore(arg_0, arg_1, arg_2); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_fb9a8f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_fb9a8f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_fb9a8f(); } diff --git a/test/tint/builtins/gen/var/textureStore/fbf53f.wgsl b/test/tint/builtins/gen/var/textureStore/fbf53f.wgsl index 388220d720..cd7e249b51 100644 --- a/test/tint/builtins/gen/var/textureStore/fbf53f.wgsl +++ b/test/tint/builtins/gen/var/textureStore/fbf53f.wgsl @@ -32,18 +32,18 @@ fn textureStore_fbf53f() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_fbf53f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_fbf53f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_fbf53f(); } diff --git a/test/tint/builtins/gen/var/textureStore/fbf53f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/textureStore/fbf53f.wgsl.expected.wgsl index e1d54f5c6b..fd79a14f18 100644 --- a/test/tint/builtins/gen/var/textureStore/fbf53f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/textureStore/fbf53f.wgsl.expected.wgsl @@ -7,18 +7,18 @@ fn textureStore_fbf53f() { textureStore(arg_0, arg_1, arg_2, arg_3); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { textureStore_fbf53f(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { textureStore_fbf53f(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { textureStore_fbf53f(); } diff --git a/test/tint/builtins/gen/var/transpose/2585cd.wgsl b/test/tint/builtins/gen/var/transpose/2585cd.wgsl index 4c3b60af7c..4655c32305 100644 --- a/test/tint/builtins/gen/var/transpose/2585cd.wgsl +++ b/test/tint/builtins/gen/var/transpose/2585cd.wgsl @@ -29,18 +29,18 @@ fn transpose_2585cd() { var res: mat3x4 = transpose(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_2585cd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_2585cd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_2585cd(); } diff --git a/test/tint/builtins/gen/var/transpose/2585cd.wgsl.expected.wgsl b/test/tint/builtins/gen/var/transpose/2585cd.wgsl.expected.wgsl index 52f8c693d3..3d7c445f60 100644 --- a/test/tint/builtins/gen/var/transpose/2585cd.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/transpose/2585cd.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn transpose_2585cd() { var res : mat3x4 = transpose(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_2585cd(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_2585cd(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_2585cd(); } diff --git a/test/tint/builtins/gen/var/transpose/31d679.wgsl b/test/tint/builtins/gen/var/transpose/31d679.wgsl index c94a0ac7cd..67f159cd5f 100644 --- a/test/tint/builtins/gen/var/transpose/31d679.wgsl +++ b/test/tint/builtins/gen/var/transpose/31d679.wgsl @@ -29,18 +29,18 @@ fn transpose_31d679() { var res: mat2x2 = transpose(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_31d679(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_31d679(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_31d679(); } diff --git a/test/tint/builtins/gen/var/transpose/31d679.wgsl.expected.wgsl b/test/tint/builtins/gen/var/transpose/31d679.wgsl.expected.wgsl index f40121a9b6..797c093606 100644 --- a/test/tint/builtins/gen/var/transpose/31d679.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/transpose/31d679.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn transpose_31d679() { var res : mat2x2 = transpose(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_31d679(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_31d679(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_31d679(); } diff --git a/test/tint/builtins/gen/var/transpose/31e37e.wgsl b/test/tint/builtins/gen/var/transpose/31e37e.wgsl index a7b48bfee3..194e650f52 100644 --- a/test/tint/builtins/gen/var/transpose/31e37e.wgsl +++ b/test/tint/builtins/gen/var/transpose/31e37e.wgsl @@ -29,18 +29,18 @@ fn transpose_31e37e() { var res: mat2x4 = transpose(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_31e37e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_31e37e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_31e37e(); } diff --git a/test/tint/builtins/gen/var/transpose/31e37e.wgsl.expected.wgsl b/test/tint/builtins/gen/var/transpose/31e37e.wgsl.expected.wgsl index 4215819720..f80f91d540 100644 --- a/test/tint/builtins/gen/var/transpose/31e37e.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/transpose/31e37e.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn transpose_31e37e() { var res : mat2x4 = transpose(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_31e37e(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_31e37e(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_31e37e(); } diff --git a/test/tint/builtins/gen/var/transpose/4ce359.wgsl b/test/tint/builtins/gen/var/transpose/4ce359.wgsl index a4d84b47c3..9f65afb38b 100644 --- a/test/tint/builtins/gen/var/transpose/4ce359.wgsl +++ b/test/tint/builtins/gen/var/transpose/4ce359.wgsl @@ -29,18 +29,18 @@ fn transpose_4ce359() { var res: mat4x2 = transpose(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_4ce359(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_4ce359(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_4ce359(); } diff --git a/test/tint/builtins/gen/var/transpose/4ce359.wgsl.expected.wgsl b/test/tint/builtins/gen/var/transpose/4ce359.wgsl.expected.wgsl index bf5218542f..80670b0d91 100644 --- a/test/tint/builtins/gen/var/transpose/4ce359.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/transpose/4ce359.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn transpose_4ce359() { var res : mat4x2 = transpose(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_4ce359(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_4ce359(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_4ce359(); } diff --git a/test/tint/builtins/gen/var/transpose/4dc9a1.wgsl b/test/tint/builtins/gen/var/transpose/4dc9a1.wgsl index bd7be8cbeb..85bf493c7f 100644 --- a/test/tint/builtins/gen/var/transpose/4dc9a1.wgsl +++ b/test/tint/builtins/gen/var/transpose/4dc9a1.wgsl @@ -29,18 +29,18 @@ fn transpose_4dc9a1() { var res: mat3x2 = transpose(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_4dc9a1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_4dc9a1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_4dc9a1(); } diff --git a/test/tint/builtins/gen/var/transpose/4dc9a1.wgsl.expected.wgsl b/test/tint/builtins/gen/var/transpose/4dc9a1.wgsl.expected.wgsl index 817b4f2092..03a7290122 100644 --- a/test/tint/builtins/gen/var/transpose/4dc9a1.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/transpose/4dc9a1.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn transpose_4dc9a1() { var res : mat3x2 = transpose(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_4dc9a1(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_4dc9a1(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_4dc9a1(); } diff --git a/test/tint/builtins/gen/var/transpose/854336.wgsl b/test/tint/builtins/gen/var/transpose/854336.wgsl index 3158b4f471..83540d0477 100644 --- a/test/tint/builtins/gen/var/transpose/854336.wgsl +++ b/test/tint/builtins/gen/var/transpose/854336.wgsl @@ -29,18 +29,18 @@ fn transpose_854336() { var res: mat3x3 = transpose(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_854336(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_854336(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_854336(); } diff --git a/test/tint/builtins/gen/var/transpose/854336.wgsl.expected.wgsl b/test/tint/builtins/gen/var/transpose/854336.wgsl.expected.wgsl index 4321df3929..1a0b25f212 100644 --- a/test/tint/builtins/gen/var/transpose/854336.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/transpose/854336.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn transpose_854336() { var res : mat3x3 = transpose(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_854336(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_854336(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_854336(); } diff --git a/test/tint/builtins/gen/var/transpose/c1b600.wgsl b/test/tint/builtins/gen/var/transpose/c1b600.wgsl index 64a03ea692..8433736cf3 100644 --- a/test/tint/builtins/gen/var/transpose/c1b600.wgsl +++ b/test/tint/builtins/gen/var/transpose/c1b600.wgsl @@ -29,18 +29,18 @@ fn transpose_c1b600() { var res: mat4x4 = transpose(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_c1b600(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_c1b600(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_c1b600(); } diff --git a/test/tint/builtins/gen/var/transpose/c1b600.wgsl.expected.wgsl b/test/tint/builtins/gen/var/transpose/c1b600.wgsl.expected.wgsl index bca96211cc..8dca67037b 100644 --- a/test/tint/builtins/gen/var/transpose/c1b600.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/transpose/c1b600.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn transpose_c1b600() { var res : mat4x4 = transpose(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_c1b600(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_c1b600(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_c1b600(); } diff --git a/test/tint/builtins/gen/var/transpose/d8f8ba.wgsl b/test/tint/builtins/gen/var/transpose/d8f8ba.wgsl index 6abd82fcf2..4e68e117e1 100644 --- a/test/tint/builtins/gen/var/transpose/d8f8ba.wgsl +++ b/test/tint/builtins/gen/var/transpose/d8f8ba.wgsl @@ -29,18 +29,18 @@ fn transpose_d8f8ba() { var res: mat4x3 = transpose(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_d8f8ba(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_d8f8ba(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_d8f8ba(); } diff --git a/test/tint/builtins/gen/var/transpose/d8f8ba.wgsl.expected.wgsl b/test/tint/builtins/gen/var/transpose/d8f8ba.wgsl.expected.wgsl index 14f91f09e7..3fa2d48ffb 100644 --- a/test/tint/builtins/gen/var/transpose/d8f8ba.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/transpose/d8f8ba.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn transpose_d8f8ba() { var res : mat4x3 = transpose(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_d8f8ba(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_d8f8ba(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_d8f8ba(); } diff --git a/test/tint/builtins/gen/var/transpose/ed4bdc.wgsl b/test/tint/builtins/gen/var/transpose/ed4bdc.wgsl index ed30d846f5..9e6edda074 100644 --- a/test/tint/builtins/gen/var/transpose/ed4bdc.wgsl +++ b/test/tint/builtins/gen/var/transpose/ed4bdc.wgsl @@ -29,18 +29,18 @@ fn transpose_ed4bdc() { var res: mat2x3 = transpose(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_ed4bdc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_ed4bdc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_ed4bdc(); } diff --git a/test/tint/builtins/gen/var/transpose/ed4bdc.wgsl.expected.wgsl b/test/tint/builtins/gen/var/transpose/ed4bdc.wgsl.expected.wgsl index bdc221e436..f744685e2e 100644 --- a/test/tint/builtins/gen/var/transpose/ed4bdc.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/transpose/ed4bdc.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn transpose_ed4bdc() { var res : mat2x3 = transpose(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { transpose_ed4bdc(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { transpose_ed4bdc(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { transpose_ed4bdc(); } diff --git a/test/tint/builtins/gen/var/trunc/562d05.wgsl b/test/tint/builtins/gen/var/trunc/562d05.wgsl index d805032b28..053f2d36d7 100644 --- a/test/tint/builtins/gen/var/trunc/562d05.wgsl +++ b/test/tint/builtins/gen/var/trunc/562d05.wgsl @@ -29,18 +29,18 @@ fn trunc_562d05() { var res: vec3 = trunc(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { trunc_562d05(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { trunc_562d05(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { trunc_562d05(); } diff --git a/test/tint/builtins/gen/var/trunc/562d05.wgsl.expected.wgsl b/test/tint/builtins/gen/var/trunc/562d05.wgsl.expected.wgsl index 44ace1320d..0d53d82b83 100644 --- a/test/tint/builtins/gen/var/trunc/562d05.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/trunc/562d05.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn trunc_562d05() { var res : vec3 = trunc(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { trunc_562d05(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { trunc_562d05(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { trunc_562d05(); } diff --git a/test/tint/builtins/gen/var/trunc/e183aa.wgsl b/test/tint/builtins/gen/var/trunc/e183aa.wgsl index d6f67ed9d8..a272d15be4 100644 --- a/test/tint/builtins/gen/var/trunc/e183aa.wgsl +++ b/test/tint/builtins/gen/var/trunc/e183aa.wgsl @@ -29,18 +29,18 @@ fn trunc_e183aa() { var res: vec4 = trunc(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { trunc_e183aa(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { trunc_e183aa(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { trunc_e183aa(); } diff --git a/test/tint/builtins/gen/var/trunc/e183aa.wgsl.expected.wgsl b/test/tint/builtins/gen/var/trunc/e183aa.wgsl.expected.wgsl index 6e1a9a4251..4ab39edf46 100644 --- a/test/tint/builtins/gen/var/trunc/e183aa.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/trunc/e183aa.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn trunc_e183aa() { var res : vec4 = trunc(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { trunc_e183aa(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { trunc_e183aa(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { trunc_e183aa(); } diff --git a/test/tint/builtins/gen/var/trunc/eb83df.wgsl b/test/tint/builtins/gen/var/trunc/eb83df.wgsl index 6b375b7556..7cbbe9686b 100644 --- a/test/tint/builtins/gen/var/trunc/eb83df.wgsl +++ b/test/tint/builtins/gen/var/trunc/eb83df.wgsl @@ -29,18 +29,18 @@ fn trunc_eb83df() { var res: f32 = trunc(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { trunc_eb83df(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { trunc_eb83df(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { trunc_eb83df(); } diff --git a/test/tint/builtins/gen/var/trunc/eb83df.wgsl.expected.wgsl b/test/tint/builtins/gen/var/trunc/eb83df.wgsl.expected.wgsl index 183abed6f9..e85b1b2767 100644 --- a/test/tint/builtins/gen/var/trunc/eb83df.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/trunc/eb83df.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn trunc_eb83df() { var res : f32 = trunc(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { trunc_eb83df(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { trunc_eb83df(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { trunc_eb83df(); } diff --git a/test/tint/builtins/gen/var/trunc/f370d3.wgsl b/test/tint/builtins/gen/var/trunc/f370d3.wgsl index a5e40b46b1..291e95b773 100644 --- a/test/tint/builtins/gen/var/trunc/f370d3.wgsl +++ b/test/tint/builtins/gen/var/trunc/f370d3.wgsl @@ -29,18 +29,18 @@ fn trunc_f370d3() { var res: vec2 = trunc(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { trunc_f370d3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { trunc_f370d3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { trunc_f370d3(); } diff --git a/test/tint/builtins/gen/var/trunc/f370d3.wgsl.expected.wgsl b/test/tint/builtins/gen/var/trunc/f370d3.wgsl.expected.wgsl index 8f0468b65a..3a179a8be9 100644 --- a/test/tint/builtins/gen/var/trunc/f370d3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/trunc/f370d3.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn trunc_f370d3() { var res : vec2 = trunc(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { trunc_f370d3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { trunc_f370d3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { trunc_f370d3(); } diff --git a/test/tint/builtins/gen/var/unpack2x16float/32a5cf.wgsl b/test/tint/builtins/gen/var/unpack2x16float/32a5cf.wgsl index c4a57a09e5..c89ddf84fa 100644 --- a/test/tint/builtins/gen/var/unpack2x16float/32a5cf.wgsl +++ b/test/tint/builtins/gen/var/unpack2x16float/32a5cf.wgsl @@ -29,18 +29,18 @@ fn unpack2x16float_32a5cf() { var res: vec2 = unpack2x16float(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { unpack2x16float_32a5cf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { unpack2x16float_32a5cf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { unpack2x16float_32a5cf(); } diff --git a/test/tint/builtins/gen/var/unpack2x16float/32a5cf.wgsl.expected.wgsl b/test/tint/builtins/gen/var/unpack2x16float/32a5cf.wgsl.expected.wgsl index 1e475e3842..98598a4a4e 100644 --- a/test/tint/builtins/gen/var/unpack2x16float/32a5cf.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/unpack2x16float/32a5cf.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn unpack2x16float_32a5cf() { var res : vec2 = unpack2x16float(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { unpack2x16float_32a5cf(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { unpack2x16float_32a5cf(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { unpack2x16float_32a5cf(); } diff --git a/test/tint/builtins/gen/var/unpack2x16snorm/b4aea6.wgsl b/test/tint/builtins/gen/var/unpack2x16snorm/b4aea6.wgsl index ca0db328fe..efc5eadedf 100644 --- a/test/tint/builtins/gen/var/unpack2x16snorm/b4aea6.wgsl +++ b/test/tint/builtins/gen/var/unpack2x16snorm/b4aea6.wgsl @@ -29,18 +29,18 @@ fn unpack2x16snorm_b4aea6() { var res: vec2 = unpack2x16snorm(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { unpack2x16snorm_b4aea6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { unpack2x16snorm_b4aea6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { unpack2x16snorm_b4aea6(); } diff --git a/test/tint/builtins/gen/var/unpack2x16snorm/b4aea6.wgsl.expected.wgsl b/test/tint/builtins/gen/var/unpack2x16snorm/b4aea6.wgsl.expected.wgsl index f27c905170..fbff51dca0 100644 --- a/test/tint/builtins/gen/var/unpack2x16snorm/b4aea6.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/unpack2x16snorm/b4aea6.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn unpack2x16snorm_b4aea6() { var res : vec2 = unpack2x16snorm(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { unpack2x16snorm_b4aea6(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { unpack2x16snorm_b4aea6(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { unpack2x16snorm_b4aea6(); } diff --git a/test/tint/builtins/gen/var/unpack2x16unorm/7699c0.wgsl b/test/tint/builtins/gen/var/unpack2x16unorm/7699c0.wgsl index 382b2d65c7..b0554acfe6 100644 --- a/test/tint/builtins/gen/var/unpack2x16unorm/7699c0.wgsl +++ b/test/tint/builtins/gen/var/unpack2x16unorm/7699c0.wgsl @@ -29,18 +29,18 @@ fn unpack2x16unorm_7699c0() { var res: vec2 = unpack2x16unorm(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { unpack2x16unorm_7699c0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { unpack2x16unorm_7699c0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { unpack2x16unorm_7699c0(); } diff --git a/test/tint/builtins/gen/var/unpack2x16unorm/7699c0.wgsl.expected.wgsl b/test/tint/builtins/gen/var/unpack2x16unorm/7699c0.wgsl.expected.wgsl index 15f75059fa..893e4db52d 100644 --- a/test/tint/builtins/gen/var/unpack2x16unorm/7699c0.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/unpack2x16unorm/7699c0.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn unpack2x16unorm_7699c0() { var res : vec2 = unpack2x16unorm(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { unpack2x16unorm_7699c0(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { unpack2x16unorm_7699c0(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { unpack2x16unorm_7699c0(); } diff --git a/test/tint/builtins/gen/var/unpack4x8snorm/523fb3.wgsl b/test/tint/builtins/gen/var/unpack4x8snorm/523fb3.wgsl index eda71e05c6..1bfc56a3c5 100644 --- a/test/tint/builtins/gen/var/unpack4x8snorm/523fb3.wgsl +++ b/test/tint/builtins/gen/var/unpack4x8snorm/523fb3.wgsl @@ -29,18 +29,18 @@ fn unpack4x8snorm_523fb3() { var res: vec4 = unpack4x8snorm(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { unpack4x8snorm_523fb3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { unpack4x8snorm_523fb3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { unpack4x8snorm_523fb3(); } diff --git a/test/tint/builtins/gen/var/unpack4x8snorm/523fb3.wgsl.expected.wgsl b/test/tint/builtins/gen/var/unpack4x8snorm/523fb3.wgsl.expected.wgsl index 5cb2171818..14ff067904 100644 --- a/test/tint/builtins/gen/var/unpack4x8snorm/523fb3.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/unpack4x8snorm/523fb3.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn unpack4x8snorm_523fb3() { var res : vec4 = unpack4x8snorm(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { unpack4x8snorm_523fb3(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { unpack4x8snorm_523fb3(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { unpack4x8snorm_523fb3(); } diff --git a/test/tint/builtins/gen/var/unpack4x8unorm/750c74.wgsl b/test/tint/builtins/gen/var/unpack4x8unorm/750c74.wgsl index be79632c96..73325b2c7b 100644 --- a/test/tint/builtins/gen/var/unpack4x8unorm/750c74.wgsl +++ b/test/tint/builtins/gen/var/unpack4x8unorm/750c74.wgsl @@ -29,18 +29,18 @@ fn unpack4x8unorm_750c74() { var res: vec4 = unpack4x8unorm(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { unpack4x8unorm_750c74(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { unpack4x8unorm_750c74(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { unpack4x8unorm_750c74(); } diff --git a/test/tint/builtins/gen/var/unpack4x8unorm/750c74.wgsl.expected.wgsl b/test/tint/builtins/gen/var/unpack4x8unorm/750c74.wgsl.expected.wgsl index ad2faae0af..70c798000d 100644 --- a/test/tint/builtins/gen/var/unpack4x8unorm/750c74.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/unpack4x8unorm/750c74.wgsl.expected.wgsl @@ -3,18 +3,18 @@ fn unpack4x8unorm_750c74() { var res : vec4 = unpack4x8unorm(arg_0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { unpack4x8unorm_750c74(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { unpack4x8unorm_750c74(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { unpack4x8unorm_750c74(); } diff --git a/test/tint/builtins/gen/var/workgroupBarrier/a17f7f.wgsl b/test/tint/builtins/gen/var/workgroupBarrier/a17f7f.wgsl index 3b3f3272a3..c19b983ba1 100644 --- a/test/tint/builtins/gen/var/workgroupBarrier/a17f7f.wgsl +++ b/test/tint/builtins/gen/var/workgroupBarrier/a17f7f.wgsl @@ -28,7 +28,7 @@ fn workgroupBarrier_a17f7f() { workgroupBarrier(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { workgroupBarrier_a17f7f(); } diff --git a/test/tint/builtins/gen/var/workgroupBarrier/a17f7f.wgsl.expected.wgsl b/test/tint/builtins/gen/var/workgroupBarrier/a17f7f.wgsl.expected.wgsl index 34db6c85a0..377a35e3e8 100644 --- a/test/tint/builtins/gen/var/workgroupBarrier/a17f7f.wgsl.expected.wgsl +++ b/test/tint/builtins/gen/var/workgroupBarrier/a17f7f.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn workgroupBarrier_a17f7f() { workgroupBarrier(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { workgroupBarrier_a17f7f(); } diff --git a/test/tint/builtins/insertBits/scalar/i32.spvasm.expected.wgsl b/test/tint/builtins/insertBits/scalar/i32.spvasm.expected.wgsl index d2859bc1c8..b10742e8d9 100644 --- a/test/tint/builtins/insertBits/scalar/i32.spvasm.expected.wgsl +++ b/test/tint/builtins/insertBits/scalar/i32.spvasm.expected.wgsl @@ -11,7 +11,7 @@ fn f_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn f() { f_1(); } diff --git a/test/tint/builtins/insertBits/scalar/u32.spvasm.expected.wgsl b/test/tint/builtins/insertBits/scalar/u32.spvasm.expected.wgsl index 78bbda0326..b10c69d299 100644 --- a/test/tint/builtins/insertBits/scalar/u32.spvasm.expected.wgsl +++ b/test/tint/builtins/insertBits/scalar/u32.spvasm.expected.wgsl @@ -11,7 +11,7 @@ fn f_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn f() { f_1(); } diff --git a/test/tint/builtins/insertBits/vec3/i32.spvasm.expected.wgsl b/test/tint/builtins/insertBits/vec3/i32.spvasm.expected.wgsl index b5c54ca98b..ecacd5f395 100644 --- a/test/tint/builtins/insertBits/vec3/i32.spvasm.expected.wgsl +++ b/test/tint/builtins/insertBits/vec3/i32.spvasm.expected.wgsl @@ -11,7 +11,7 @@ fn f_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn f() { f_1(); } diff --git a/test/tint/builtins/insertBits/vec3/u32.spvasm.expected.wgsl b/test/tint/builtins/insertBits/vec3/u32.spvasm.expected.wgsl index 69dd715a5f..23b4e7fa3b 100644 --- a/test/tint/builtins/insertBits/vec3/u32.spvasm.expected.wgsl +++ b/test/tint/builtins/insertBits/vec3/u32.spvasm.expected.wgsl @@ -11,7 +11,7 @@ fn f_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn f() { f_1(); } diff --git a/test/tint/builtins/modf.wgsl b/test/tint/builtins/modf.wgsl index 6991b74f30..c96821a333 100644 --- a/test/tint/builtins/modf.wgsl +++ b/test/tint/builtins/modf.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let res = modf(1.23); let fract : f32 = res.fract; diff --git a/test/tint/builtins/modf.wgsl.expected.wgsl b/test/tint/builtins/modf.wgsl.expected.wgsl index 8e95d07f81..a0f85b816c 100644 --- a/test/tint/builtins/modf.wgsl.expected.wgsl +++ b/test/tint/builtins/modf.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let res = modf(1.230000019); let fract : f32 = res.fract; diff --git a/test/tint/builtins/radians.spvasm.expected.wgsl b/test/tint/builtins/radians.spvasm.expected.wgsl index 72b3e06cb2..a3de69200f 100644 --- a/test/tint/builtins/radians.spvasm.expected.wgsl +++ b/test/tint/builtins/radians.spvasm.expected.wgsl @@ -7,7 +7,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main() { main_1(); } diff --git a/test/tint/builtins/repeated_use.wgsl b/test/tint/builtins/repeated_use.wgsl index 511968d0f2..026e183153 100644 --- a/test/tint/builtins/repeated_use.wgsl +++ b/test/tint/builtins/repeated_use.wgsl @@ -1,6 +1,6 @@ // Check that for backends that generate builtin helpers, repeated use of the // same builtin overload results in single helper being generated. -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = degrees(vec4()); _ = degrees(vec4(1.)); diff --git a/test/tint/builtins/repeated_use.wgsl.expected.wgsl b/test/tint/builtins/repeated_use.wgsl.expected.wgsl index 7b270c734e..7f848c6491 100644 --- a/test/tint/builtins/repeated_use.wgsl.expected.wgsl +++ b/test/tint/builtins/repeated_use.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = degrees(vec4()); _ = degrees(vec4(1.0)); diff --git a/test/tint/builtins/textureDimensions/depth_ms.spvasm.expected.wgsl b/test/tint/builtins/textureDimensions/depth_ms.spvasm.expected.wgsl index 3a370a18fc..078ede8547 100644 --- a/test/tint/builtins/textureDimensions/depth_ms.spvasm.expected.wgsl +++ b/test/tint/builtins/textureDimensions/depth_ms.spvasm.expected.wgsl @@ -25,7 +25,7 @@ struct vertex_main_out { tint_symbol_1_1 : vec4, } -@stage(vertex) +@vertex fn vertex_main() -> vertex_main_out { vertex_main_1(); return vertex_main_out(tint_symbol_1); @@ -36,7 +36,7 @@ fn fragment_main_1() { return; } -@stage(fragment) +@fragment fn fragment_main() { fragment_main_1(); } @@ -46,7 +46,7 @@ fn compute_main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn compute_main() { compute_main_1(); } diff --git a/test/tint/builtins/textureGather/f32/alpha.wgsl b/test/tint/builtins/textureGather/f32/alpha.wgsl index 1336988542..2b3eac525f 100644 --- a/test/tint/builtins/textureGather/f32/alpha.wgsl +++ b/test/tint/builtins/textureGather/f32/alpha.wgsl @@ -1,7 +1,7 @@ @group(1) @binding(0) var t : texture_2d; @group(1) @binding(1) var s : sampler; -@stage(fragment) +@fragment fn main() { var res : vec4 = textureGather(3, t, s, vec2()); } diff --git a/test/tint/builtins/textureGather/f32/alpha.wgsl.expected.wgsl b/test/tint/builtins/textureGather/f32/alpha.wgsl.expected.wgsl index 3cf1392938..57049afb99 100644 --- a/test/tint/builtins/textureGather/f32/alpha.wgsl.expected.wgsl +++ b/test/tint/builtins/textureGather/f32/alpha.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(1) @binding(1) var s : sampler; -@stage(fragment) +@fragment fn main() { var res : vec4 = textureGather(3, t, s, vec2()); } diff --git a/test/tint/builtins/textureGather/f32/blue.wgsl b/test/tint/builtins/textureGather/f32/blue.wgsl index f31387b1cd..fc3054de6d 100644 --- a/test/tint/builtins/textureGather/f32/blue.wgsl +++ b/test/tint/builtins/textureGather/f32/blue.wgsl @@ -1,7 +1,7 @@ @group(1) @binding(0) var t : texture_2d; @group(1) @binding(1) var s : sampler; -@stage(fragment) +@fragment fn main() { var res : vec4 = textureGather(2, t, s, vec2()); } diff --git a/test/tint/builtins/textureGather/f32/blue.wgsl.expected.wgsl b/test/tint/builtins/textureGather/f32/blue.wgsl.expected.wgsl index 2512919ec6..e7ddb12a0b 100644 --- a/test/tint/builtins/textureGather/f32/blue.wgsl.expected.wgsl +++ b/test/tint/builtins/textureGather/f32/blue.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(1) @binding(1) var s : sampler; -@stage(fragment) +@fragment fn main() { var res : vec4 = textureGather(2, t, s, vec2()); } diff --git a/test/tint/builtins/textureGather/f32/green.wgsl b/test/tint/builtins/textureGather/f32/green.wgsl index c0574ca628..9f3b06709c 100644 --- a/test/tint/builtins/textureGather/f32/green.wgsl +++ b/test/tint/builtins/textureGather/f32/green.wgsl @@ -1,7 +1,7 @@ @group(1) @binding(0) var t : texture_2d; @group(1) @binding(1) var s : sampler; -@stage(fragment) +@fragment fn main() { var res : vec4 = textureGather(1, t, s, vec2()); } diff --git a/test/tint/builtins/textureGather/f32/green.wgsl.expected.wgsl b/test/tint/builtins/textureGather/f32/green.wgsl.expected.wgsl index 524c0c4efb..ea2c87f108 100644 --- a/test/tint/builtins/textureGather/f32/green.wgsl.expected.wgsl +++ b/test/tint/builtins/textureGather/f32/green.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(1) @binding(1) var s : sampler; -@stage(fragment) +@fragment fn main() { var res : vec4 = textureGather(1, t, s, vec2()); } diff --git a/test/tint/builtins/textureGather/f32/red.wgsl b/test/tint/builtins/textureGather/f32/red.wgsl index 4eb8c60275..abcb93a72b 100644 --- a/test/tint/builtins/textureGather/f32/red.wgsl +++ b/test/tint/builtins/textureGather/f32/red.wgsl @@ -1,7 +1,7 @@ @group(1) @binding(0) var t : texture_2d; @group(1) @binding(1) var s : sampler; -@stage(fragment) +@fragment fn main() { var res : vec4 = textureGather(0, t, s, vec2()); } diff --git a/test/tint/builtins/textureGather/f32/red.wgsl.expected.wgsl b/test/tint/builtins/textureGather/f32/red.wgsl.expected.wgsl index 05244292d2..cb29a4c646 100644 --- a/test/tint/builtins/textureGather/f32/red.wgsl.expected.wgsl +++ b/test/tint/builtins/textureGather/f32/red.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(1) @binding(1) var s : sampler; -@stage(fragment) +@fragment fn main() { var res : vec4 = textureGather(0, t, s, vec2()); } diff --git a/test/tint/builtins/textureGather/i32/alpha.wgsl b/test/tint/builtins/textureGather/i32/alpha.wgsl index 42133c99aa..88813ac8b7 100644 --- a/test/tint/builtins/textureGather/i32/alpha.wgsl +++ b/test/tint/builtins/textureGather/i32/alpha.wgsl @@ -1,7 +1,7 @@ @group(1) @binding(0) var t : texture_2d; @group(1) @binding(1) var s : sampler; -@stage(fragment) +@fragment fn main() { var res : vec4 = textureGather(3, t, s, vec2()); } diff --git a/test/tint/builtins/textureGather/i32/alpha.wgsl.expected.wgsl b/test/tint/builtins/textureGather/i32/alpha.wgsl.expected.wgsl index 35d727c4b4..60cd449f96 100644 --- a/test/tint/builtins/textureGather/i32/alpha.wgsl.expected.wgsl +++ b/test/tint/builtins/textureGather/i32/alpha.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(1) @binding(1) var s : sampler; -@stage(fragment) +@fragment fn main() { var res : vec4 = textureGather(3, t, s, vec2()); } diff --git a/test/tint/builtins/textureGather/i32/blue.wgsl b/test/tint/builtins/textureGather/i32/blue.wgsl index 396dd5204a..43406d3edc 100644 --- a/test/tint/builtins/textureGather/i32/blue.wgsl +++ b/test/tint/builtins/textureGather/i32/blue.wgsl @@ -1,7 +1,7 @@ @group(1) @binding(0) var t : texture_2d; @group(1) @binding(1) var s : sampler; -@stage(fragment) +@fragment fn main() { var res : vec4 = textureGather(2, t, s, vec2()); } diff --git a/test/tint/builtins/textureGather/i32/blue.wgsl.expected.wgsl b/test/tint/builtins/textureGather/i32/blue.wgsl.expected.wgsl index 116439f117..1df66ddc13 100644 --- a/test/tint/builtins/textureGather/i32/blue.wgsl.expected.wgsl +++ b/test/tint/builtins/textureGather/i32/blue.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(1) @binding(1) var s : sampler; -@stage(fragment) +@fragment fn main() { var res : vec4 = textureGather(2, t, s, vec2()); } diff --git a/test/tint/builtins/textureGather/i32/green.wgsl b/test/tint/builtins/textureGather/i32/green.wgsl index ee162d149f..ed02d1f71f 100644 --- a/test/tint/builtins/textureGather/i32/green.wgsl +++ b/test/tint/builtins/textureGather/i32/green.wgsl @@ -1,7 +1,7 @@ @group(1) @binding(0) var t : texture_2d; @group(1) @binding(1) var s : sampler; -@stage(fragment) +@fragment fn main() { var res : vec4 = textureGather(1, t, s, vec2()); } diff --git a/test/tint/builtins/textureGather/i32/green.wgsl.expected.wgsl b/test/tint/builtins/textureGather/i32/green.wgsl.expected.wgsl index 6f7512284d..60c563c132 100644 --- a/test/tint/builtins/textureGather/i32/green.wgsl.expected.wgsl +++ b/test/tint/builtins/textureGather/i32/green.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(1) @binding(1) var s : sampler; -@stage(fragment) +@fragment fn main() { var res : vec4 = textureGather(1, t, s, vec2()); } diff --git a/test/tint/builtins/textureGather/i32/red.wgsl b/test/tint/builtins/textureGather/i32/red.wgsl index 60117f7d8b..3545c1ce75 100644 --- a/test/tint/builtins/textureGather/i32/red.wgsl +++ b/test/tint/builtins/textureGather/i32/red.wgsl @@ -1,7 +1,7 @@ @group(1) @binding(0) var t : texture_2d; @group(1) @binding(1) var s : sampler; -@stage(fragment) +@fragment fn main() { var res : vec4 = textureGather(0, t, s, vec2()); } diff --git a/test/tint/builtins/textureGather/i32/red.wgsl.expected.wgsl b/test/tint/builtins/textureGather/i32/red.wgsl.expected.wgsl index c2552b0717..3793b29291 100644 --- a/test/tint/builtins/textureGather/i32/red.wgsl.expected.wgsl +++ b/test/tint/builtins/textureGather/i32/red.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(1) @binding(1) var s : sampler; -@stage(fragment) +@fragment fn main() { var res : vec4 = textureGather(0, t, s, vec2()); } diff --git a/test/tint/builtins/textureGather/u32/alpha.wgsl b/test/tint/builtins/textureGather/u32/alpha.wgsl index adcc5fd950..51f05de251 100644 --- a/test/tint/builtins/textureGather/u32/alpha.wgsl +++ b/test/tint/builtins/textureGather/u32/alpha.wgsl @@ -1,7 +1,7 @@ @group(1) @binding(0) var t : texture_2d; @group(1) @binding(1) var s : sampler; -@stage(fragment) +@fragment fn main() { var res : vec4 = textureGather(3, t, s, vec2()); } diff --git a/test/tint/builtins/textureGather/u32/alpha.wgsl.expected.wgsl b/test/tint/builtins/textureGather/u32/alpha.wgsl.expected.wgsl index 496586d125..966ca54015 100644 --- a/test/tint/builtins/textureGather/u32/alpha.wgsl.expected.wgsl +++ b/test/tint/builtins/textureGather/u32/alpha.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(1) @binding(1) var s : sampler; -@stage(fragment) +@fragment fn main() { var res : vec4 = textureGather(3, t, s, vec2()); } diff --git a/test/tint/builtins/textureGather/u32/blue.wgsl b/test/tint/builtins/textureGather/u32/blue.wgsl index 30e266c9e8..06727a6002 100644 --- a/test/tint/builtins/textureGather/u32/blue.wgsl +++ b/test/tint/builtins/textureGather/u32/blue.wgsl @@ -1,7 +1,7 @@ @group(1) @binding(0) var t : texture_2d; @group(1) @binding(1) var s : sampler; -@stage(fragment) +@fragment fn main() { var res : vec4 = textureGather(2, t, s, vec2()); } diff --git a/test/tint/builtins/textureGather/u32/blue.wgsl.expected.wgsl b/test/tint/builtins/textureGather/u32/blue.wgsl.expected.wgsl index eb2c3e1300..41aab9e528 100644 --- a/test/tint/builtins/textureGather/u32/blue.wgsl.expected.wgsl +++ b/test/tint/builtins/textureGather/u32/blue.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(1) @binding(1) var s : sampler; -@stage(fragment) +@fragment fn main() { var res : vec4 = textureGather(2, t, s, vec2()); } diff --git a/test/tint/builtins/textureGather/u32/green.wgsl b/test/tint/builtins/textureGather/u32/green.wgsl index 5b9ae18526..9012bad64e 100644 --- a/test/tint/builtins/textureGather/u32/green.wgsl +++ b/test/tint/builtins/textureGather/u32/green.wgsl @@ -1,7 +1,7 @@ @group(1) @binding(0) var t : texture_2d; @group(1) @binding(1) var s : sampler; -@stage(fragment) +@fragment fn main() { var res : vec4 = textureGather(1, t, s, vec2()); } diff --git a/test/tint/builtins/textureGather/u32/green.wgsl.expected.wgsl b/test/tint/builtins/textureGather/u32/green.wgsl.expected.wgsl index 935c1e255f..2c60e956a8 100644 --- a/test/tint/builtins/textureGather/u32/green.wgsl.expected.wgsl +++ b/test/tint/builtins/textureGather/u32/green.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(1) @binding(1) var s : sampler; -@stage(fragment) +@fragment fn main() { var res : vec4 = textureGather(1, t, s, vec2()); } diff --git a/test/tint/builtins/textureGather/u32/red.wgsl b/test/tint/builtins/textureGather/u32/red.wgsl index 70ec158f37..70a9c65092 100644 --- a/test/tint/builtins/textureGather/u32/red.wgsl +++ b/test/tint/builtins/textureGather/u32/red.wgsl @@ -1,7 +1,7 @@ @group(1) @binding(0) var t : texture_2d; @group(1) @binding(1) var s : sampler; -@stage(fragment) +@fragment fn main() { var res : vec4 = textureGather(0, t, s, vec2()); } diff --git a/test/tint/builtins/textureGather/u32/red.wgsl.expected.wgsl b/test/tint/builtins/textureGather/u32/red.wgsl.expected.wgsl index 528958dc87..a5c334cea1 100644 --- a/test/tint/builtins/textureGather/u32/red.wgsl.expected.wgsl +++ b/test/tint/builtins/textureGather/u32/red.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(1) @binding(1) var s : sampler; -@stage(fragment) +@fragment fn main() { var res : vec4 = textureGather(0, t, s, vec2()); } diff --git a/test/tint/builtins/textureLoad/depth_ms.spvasm.expected.wgsl b/test/tint/builtins/textureLoad/depth_ms.spvasm.expected.wgsl index f494c7776f..ca431c7d06 100644 --- a/test/tint/builtins/textureLoad/depth_ms.spvasm.expected.wgsl +++ b/test/tint/builtins/textureLoad/depth_ms.spvasm.expected.wgsl @@ -25,7 +25,7 @@ struct vertex_main_out { tint_symbol_1_1 : vec4, } -@stage(vertex) +@vertex fn vertex_main() -> vertex_main_out { vertex_main_1(); return vertex_main_out(tint_symbol_1); @@ -36,7 +36,7 @@ fn fragment_main_1() { return; } -@stage(fragment) +@fragment fn fragment_main() { fragment_main_1(); } @@ -46,7 +46,7 @@ fn compute_main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn compute_main() { compute_main_1(); } diff --git a/test/tint/builtins/textureLoad/texture_external_param.wgsl b/test/tint/builtins/textureLoad/texture_external_param.wgsl index 4a8edf8f8e..b246fe2274 100644 --- a/test/tint/builtins/textureLoad/texture_external_param.wgsl +++ b/test/tint/builtins/textureLoad/texture_external_param.wgsl @@ -8,18 +8,18 @@ fn doTextureLoad() { var res: vec4 = textureLoad2d(arg_0, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { doTextureLoad(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { doTextureLoad(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { doTextureLoad(); } diff --git a/test/tint/builtins/textureLoad/texture_external_param.wgsl.expected.wgsl b/test/tint/builtins/textureLoad/texture_external_param.wgsl.expected.wgsl index edba45dc64..cb2c13099e 100644 --- a/test/tint/builtins/textureLoad/texture_external_param.wgsl.expected.wgsl +++ b/test/tint/builtins/textureLoad/texture_external_param.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn doTextureLoad() { var res : vec4 = textureLoad2d(arg_0, vec2()); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { doTextureLoad(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { doTextureLoad(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { doTextureLoad(); } diff --git a/test/tint/builtins/textureLoad/texture_param.wgsl b/test/tint/builtins/textureLoad/texture_param.wgsl index 81f359ea41..e51ece0198 100644 --- a/test/tint/builtins/textureLoad/texture_param.wgsl +++ b/test/tint/builtins/textureLoad/texture_param.wgsl @@ -8,18 +8,18 @@ fn doTextureLoad() { var res: vec4 = textureLoad2d(arg_0, vec2(), 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { doTextureLoad(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { doTextureLoad(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { doTextureLoad(); } diff --git a/test/tint/builtins/textureLoad/texture_param.wgsl.expected.wgsl b/test/tint/builtins/textureLoad/texture_param.wgsl.expected.wgsl index 13f6d82c09..02138475f2 100644 --- a/test/tint/builtins/textureLoad/texture_param.wgsl.expected.wgsl +++ b/test/tint/builtins/textureLoad/texture_param.wgsl.expected.wgsl @@ -8,18 +8,18 @@ fn doTextureLoad() { var res : vec4 = textureLoad2d(arg_0, vec2(), 0); } -@stage(vertex) +@vertex fn vertex_main() -> @builtin(position) vec4 { doTextureLoad(); return vec4(); } -@stage(fragment) +@fragment fn fragment_main() { doTextureLoad(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn compute_main() { doTextureLoad(); } diff --git a/test/tint/builtins/textureNumSamples/depth_ms.spvasm.expected.wgsl b/test/tint/builtins/textureNumSamples/depth_ms.spvasm.expected.wgsl index 455889a908..b2c5a8de51 100644 --- a/test/tint/builtins/textureNumSamples/depth_ms.spvasm.expected.wgsl +++ b/test/tint/builtins/textureNumSamples/depth_ms.spvasm.expected.wgsl @@ -25,7 +25,7 @@ struct vertex_main_out { tint_symbol_1_1 : vec4, } -@stage(vertex) +@vertex fn vertex_main() -> vertex_main_out { vertex_main_1(); return vertex_main_out(tint_symbol_1); @@ -36,7 +36,7 @@ fn fragment_main_1() { return; } -@stage(fragment) +@fragment fn fragment_main() { fragment_main_1(); } @@ -46,7 +46,7 @@ fn compute_main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn compute_main() { compute_main_1(); } diff --git a/test/tint/expressions/binary/add/mat3x3-mat3x3/f32.wgsl b/test/tint/expressions/binary/add/mat3x3-mat3x3/f32.wgsl index eac9ef652e..0e214f6795 100644 --- a/test/tint/expressions/binary/add/mat3x3-mat3x3/f32.wgsl +++ b/test/tint/expressions/binary/add/mat3x3-mat3x3/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = mat3x3(vec3( 1., 2., 3.), vec3( 4., 5., 6.), vec3( 7., 8., 9.)); let b = mat3x3(vec3(-1., -2., -3.), vec3(-4., -5., -6.), vec3(-7., -8., -9.)); diff --git a/test/tint/expressions/binary/add/mat3x3-mat3x3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/add/mat3x3-mat3x3/f32.wgsl.expected.wgsl index 2dfb7c8232..8aa0a4c3f6 100644 --- a/test/tint/expressions/binary/add/mat3x3-mat3x3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/add/mat3x3-mat3x3/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = mat3x3(vec3(1.0, 2.0, 3.0), vec3(4.0, 5.0, 6.0), vec3(7.0, 8.0, 9.0)); let b = mat3x3(vec3(-1.0, -2.0, -3.0), vec3(-4.0, -5.0, -6.0), vec3(-7.0, -8.0, -9.0)); diff --git a/test/tint/expressions/binary/add/scalar-scalar/f32.wgsl b/test/tint/expressions/binary/add/scalar-scalar/f32.wgsl index 6dcc6537a1..348f59e916 100644 --- a/test/tint/expressions/binary/add/scalar-scalar/f32.wgsl +++ b/test/tint/expressions/binary/add/scalar-scalar/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1.; let b = 2.; diff --git a/test/tint/expressions/binary/add/scalar-scalar/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/add/scalar-scalar/f32.wgsl.expected.wgsl index 0997a1a1c7..a8dbf32b57 100644 --- a/test/tint/expressions/binary/add/scalar-scalar/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/add/scalar-scalar/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1.0; let b = 2.0; diff --git a/test/tint/expressions/binary/add/scalar-scalar/i32.wgsl b/test/tint/expressions/binary/add/scalar-scalar/i32.wgsl index 93e8a35d6e..e772c347ff 100644 --- a/test/tint/expressions/binary/add/scalar-scalar/i32.wgsl +++ b/test/tint/expressions/binary/add/scalar-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 2; diff --git a/test/tint/expressions/binary/add/scalar-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/add/scalar-scalar/i32.wgsl.expected.wgsl index 46fe066d2d..417ace5679 100644 --- a/test/tint/expressions/binary/add/scalar-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/add/scalar-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 2; diff --git a/test/tint/expressions/binary/add/scalar-scalar/u32.wgsl b/test/tint/expressions/binary/add/scalar-scalar/u32.wgsl index cf3c56d14a..a55df641b3 100644 --- a/test/tint/expressions/binary/add/scalar-scalar/u32.wgsl +++ b/test/tint/expressions/binary/add/scalar-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1u; let b = 2u; diff --git a/test/tint/expressions/binary/add/scalar-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/add/scalar-scalar/u32.wgsl.expected.wgsl index c052925ebd..ca5acd2f68 100644 --- a/test/tint/expressions/binary/add/scalar-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/add/scalar-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1u; let b = 2u; diff --git a/test/tint/expressions/binary/add/scalar-vec3/f32.wgsl b/test/tint/expressions/binary/add/scalar-vec3/f32.wgsl index 8467ba6183..4bd9fdf2d7 100644 --- a/test/tint/expressions/binary/add/scalar-vec3/f32.wgsl +++ b/test/tint/expressions/binary/add/scalar-vec3/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4.; let b = vec3(1., 2., 3.); diff --git a/test/tint/expressions/binary/add/scalar-vec3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/add/scalar-vec3/f32.wgsl.expected.wgsl index 95a584bab1..160e0f3359 100644 --- a/test/tint/expressions/binary/add/scalar-vec3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/add/scalar-vec3/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4.0; let b = vec3(1.0, 2.0, 3.0); diff --git a/test/tint/expressions/binary/add/scalar-vec3/i32.wgsl b/test/tint/expressions/binary/add/scalar-vec3/i32.wgsl index a61cd74957..849fab26f5 100644 --- a/test/tint/expressions/binary/add/scalar-vec3/i32.wgsl +++ b/test/tint/expressions/binary/add/scalar-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4; let b = vec3(1, 2, 3); diff --git a/test/tint/expressions/binary/add/scalar-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/add/scalar-vec3/i32.wgsl.expected.wgsl index c1193c60a6..2d9c3f82d0 100644 --- a/test/tint/expressions/binary/add/scalar-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/add/scalar-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4; let b = vec3(1, 2, 3); diff --git a/test/tint/expressions/binary/add/scalar-vec3/u32.wgsl b/test/tint/expressions/binary/add/scalar-vec3/u32.wgsl index 0fb18d4c6e..a37afa7209 100644 --- a/test/tint/expressions/binary/add/scalar-vec3/u32.wgsl +++ b/test/tint/expressions/binary/add/scalar-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4u; let b = vec3(1u, 2u, 3u); diff --git a/test/tint/expressions/binary/add/scalar-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/add/scalar-vec3/u32.wgsl.expected.wgsl index 2ec05952c2..0ece2c3244 100644 --- a/test/tint/expressions/binary/add/scalar-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/add/scalar-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4u; let b = vec3(1u, 2u, 3u); diff --git a/test/tint/expressions/binary/add/vec3-scalar/f32.wgsl b/test/tint/expressions/binary/add/vec3-scalar/f32.wgsl index 38320af7d7..d7234dbe30 100644 --- a/test/tint/expressions/binary/add/vec3-scalar/f32.wgsl +++ b/test/tint/expressions/binary/add/vec3-scalar/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1., 2., 3.); let b = 4.; diff --git a/test/tint/expressions/binary/add/vec3-scalar/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/add/vec3-scalar/f32.wgsl.expected.wgsl index 86904e569a..bdc58ee8f2 100644 --- a/test/tint/expressions/binary/add/vec3-scalar/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/add/vec3-scalar/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1.0, 2.0, 3.0); let b = 4.0; diff --git a/test/tint/expressions/binary/add/vec3-scalar/i32.wgsl b/test/tint/expressions/binary/add/vec3-scalar/i32.wgsl index eacbc3be21..10ad527bca 100644 --- a/test/tint/expressions/binary/add/vec3-scalar/i32.wgsl +++ b/test/tint/expressions/binary/add/vec3-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = 4; diff --git a/test/tint/expressions/binary/add/vec3-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/add/vec3-scalar/i32.wgsl.expected.wgsl index e4775e1498..29a003d453 100644 --- a/test/tint/expressions/binary/add/vec3-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/add/vec3-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = 4; diff --git a/test/tint/expressions/binary/add/vec3-scalar/u32.wgsl b/test/tint/expressions/binary/add/vec3-scalar/u32.wgsl index 50ceeadb00..603bce20e6 100644 --- a/test/tint/expressions/binary/add/vec3-scalar/u32.wgsl +++ b/test/tint/expressions/binary/add/vec3-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = 4u; diff --git a/test/tint/expressions/binary/add/vec3-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/add/vec3-scalar/u32.wgsl.expected.wgsl index 8f0116ae17..d5a5ddd960 100644 --- a/test/tint/expressions/binary/add/vec3-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/add/vec3-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = 4u; diff --git a/test/tint/expressions/binary/add/vec3-vec3/f32.wgsl b/test/tint/expressions/binary/add/vec3-vec3/f32.wgsl index 5658e4e9ed..86573beef6 100644 --- a/test/tint/expressions/binary/add/vec3-vec3/f32.wgsl +++ b/test/tint/expressions/binary/add/vec3-vec3/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1., 2., 3.); let b = vec3(4., 5., 6.); diff --git a/test/tint/expressions/binary/add/vec3-vec3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/add/vec3-vec3/f32.wgsl.expected.wgsl index b18ded4bfe..635bd4888a 100644 --- a/test/tint/expressions/binary/add/vec3-vec3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/add/vec3-vec3/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1.0, 2.0, 3.0); let b = vec3(4.0, 5.0, 6.0); diff --git a/test/tint/expressions/binary/add/vec3-vec3/i32.wgsl b/test/tint/expressions/binary/add/vec3-vec3/i32.wgsl index 98ca5c24f2..b9ef4839f7 100644 --- a/test/tint/expressions/binary/add/vec3-vec3/i32.wgsl +++ b/test/tint/expressions/binary/add/vec3-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = vec3(4, 5, 6); diff --git a/test/tint/expressions/binary/add/vec3-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/add/vec3-vec3/i32.wgsl.expected.wgsl index 58712eaeca..a5d4297e30 100644 --- a/test/tint/expressions/binary/add/vec3-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/add/vec3-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = vec3(4, 5, 6); diff --git a/test/tint/expressions/binary/add/vec3-vec3/u32.wgsl b/test/tint/expressions/binary/add/vec3-vec3/u32.wgsl index f6d72ce47a..50400c7e1f 100644 --- a/test/tint/expressions/binary/add/vec3-vec3/u32.wgsl +++ b/test/tint/expressions/binary/add/vec3-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = vec3(4u, 5u, 6u); diff --git a/test/tint/expressions/binary/add/vec3-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/add/vec3-vec3/u32.wgsl.expected.wgsl index db61dda135..1569266283 100644 --- a/test/tint/expressions/binary/add/vec3-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/add/vec3-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = vec3(4u, 5u, 6u); diff --git a/test/tint/expressions/binary/bit-and/scalar-scalar/bool.wgsl b/test/tint/expressions/binary/bit-and/scalar-scalar/bool.wgsl index ffe06b24de..4c3b55d92e 100644 --- a/test/tint/expressions/binary/bit-and/scalar-scalar/bool.wgsl +++ b/test/tint/expressions/binary/bit-and/scalar-scalar/bool.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = true; let b = false; diff --git a/test/tint/expressions/binary/bit-and/scalar-scalar/bool.wgsl.expected.wgsl b/test/tint/expressions/binary/bit-and/scalar-scalar/bool.wgsl.expected.wgsl index 0c1fb6bf5c..cd359b787b 100644 --- a/test/tint/expressions/binary/bit-and/scalar-scalar/bool.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/bit-and/scalar-scalar/bool.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = true; let b = false; diff --git a/test/tint/expressions/binary/bit-and/scalar-scalar/i32.wgsl b/test/tint/expressions/binary/bit-and/scalar-scalar/i32.wgsl index e4d1a8650f..2b7c554b9f 100644 --- a/test/tint/expressions/binary/bit-and/scalar-scalar/i32.wgsl +++ b/test/tint/expressions/binary/bit-and/scalar-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 2; diff --git a/test/tint/expressions/binary/bit-and/scalar-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/bit-and/scalar-scalar/i32.wgsl.expected.wgsl index 24bab02372..7d7e9b7a09 100644 --- a/test/tint/expressions/binary/bit-and/scalar-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/bit-and/scalar-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 2; diff --git a/test/tint/expressions/binary/bit-and/scalar-scalar/u32.wgsl b/test/tint/expressions/binary/bit-and/scalar-scalar/u32.wgsl index c297f9d0f2..3485fa7db2 100644 --- a/test/tint/expressions/binary/bit-and/scalar-scalar/u32.wgsl +++ b/test/tint/expressions/binary/bit-and/scalar-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1u; let b = 2u; diff --git a/test/tint/expressions/binary/bit-and/scalar-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/bit-and/scalar-scalar/u32.wgsl.expected.wgsl index a158e4c2b0..b83374b906 100644 --- a/test/tint/expressions/binary/bit-and/scalar-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/bit-and/scalar-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1u; let b = 2u; diff --git a/test/tint/expressions/binary/bit-and/vec3-vec3/bool.wgsl b/test/tint/expressions/binary/bit-and/vec3-vec3/bool.wgsl index a463c0ed0d..bc65645e16 100644 --- a/test/tint/expressions/binary/bit-and/vec3-vec3/bool.wgsl +++ b/test/tint/expressions/binary/bit-and/vec3-vec3/bool.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(true, true, false); let b = vec3(true, false, true); diff --git a/test/tint/expressions/binary/bit-and/vec3-vec3/bool.wgsl.expected.wgsl b/test/tint/expressions/binary/bit-and/vec3-vec3/bool.wgsl.expected.wgsl index 6610d13dae..d1e9a774c0 100644 --- a/test/tint/expressions/binary/bit-and/vec3-vec3/bool.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/bit-and/vec3-vec3/bool.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(true, true, false); let b = vec3(true, false, true); diff --git a/test/tint/expressions/binary/bit-and/vec3-vec3/i32.wgsl b/test/tint/expressions/binary/bit-and/vec3-vec3/i32.wgsl index c2be41dc2f..78641a7112 100644 --- a/test/tint/expressions/binary/bit-and/vec3-vec3/i32.wgsl +++ b/test/tint/expressions/binary/bit-and/vec3-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = vec3(4, 5, 6); diff --git a/test/tint/expressions/binary/bit-and/vec3-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/bit-and/vec3-vec3/i32.wgsl.expected.wgsl index 334474a744..36203aef16 100644 --- a/test/tint/expressions/binary/bit-and/vec3-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/bit-and/vec3-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = vec3(4, 5, 6); diff --git a/test/tint/expressions/binary/bit-and/vec3-vec3/u32.wgsl b/test/tint/expressions/binary/bit-and/vec3-vec3/u32.wgsl index 8383a869a6..5bdc140159 100644 --- a/test/tint/expressions/binary/bit-and/vec3-vec3/u32.wgsl +++ b/test/tint/expressions/binary/bit-and/vec3-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = vec3(4u, 5u, 6u); diff --git a/test/tint/expressions/binary/bit-and/vec3-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/bit-and/vec3-vec3/u32.wgsl.expected.wgsl index 7a95503d5e..169e15c63f 100644 --- a/test/tint/expressions/binary/bit-and/vec3-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/bit-and/vec3-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = vec3(4u, 5u, 6u); diff --git a/test/tint/expressions/binary/bit-or/scalar-scalar/i32.wgsl b/test/tint/expressions/binary/bit-or/scalar-scalar/i32.wgsl index e0c227d39d..a5390dffe7 100644 --- a/test/tint/expressions/binary/bit-or/scalar-scalar/i32.wgsl +++ b/test/tint/expressions/binary/bit-or/scalar-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 2; diff --git a/test/tint/expressions/binary/bit-or/scalar-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/bit-or/scalar-scalar/i32.wgsl.expected.wgsl index 65617cb426..19fd9837a7 100644 --- a/test/tint/expressions/binary/bit-or/scalar-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/bit-or/scalar-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 2; diff --git a/test/tint/expressions/binary/bit-or/scalar-scalar/u32.wgsl b/test/tint/expressions/binary/bit-or/scalar-scalar/u32.wgsl index c8d425742c..d16a8b2414 100644 --- a/test/tint/expressions/binary/bit-or/scalar-scalar/u32.wgsl +++ b/test/tint/expressions/binary/bit-or/scalar-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1u; let b = 2u; diff --git a/test/tint/expressions/binary/bit-or/scalar-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/bit-or/scalar-scalar/u32.wgsl.expected.wgsl index 3c9bed31d4..19d671e877 100644 --- a/test/tint/expressions/binary/bit-or/scalar-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/bit-or/scalar-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1u; let b = 2u; diff --git a/test/tint/expressions/binary/bit-or/vec3-vec3/i32.wgsl b/test/tint/expressions/binary/bit-or/vec3-vec3/i32.wgsl index d5f60366b8..0f2f83b2c5 100644 --- a/test/tint/expressions/binary/bit-or/vec3-vec3/i32.wgsl +++ b/test/tint/expressions/binary/bit-or/vec3-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = vec3(4, 5, 6); diff --git a/test/tint/expressions/binary/bit-or/vec3-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/bit-or/vec3-vec3/i32.wgsl.expected.wgsl index ffc87a095f..54093a0a25 100644 --- a/test/tint/expressions/binary/bit-or/vec3-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/bit-or/vec3-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = vec3(4, 5, 6); diff --git a/test/tint/expressions/binary/bit-or/vec3-vec3/u32.wgsl b/test/tint/expressions/binary/bit-or/vec3-vec3/u32.wgsl index cac160f452..43f1e9d075 100644 --- a/test/tint/expressions/binary/bit-or/vec3-vec3/u32.wgsl +++ b/test/tint/expressions/binary/bit-or/vec3-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = vec3(4u, 5u, 6u); diff --git a/test/tint/expressions/binary/bit-or/vec3-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/bit-or/vec3-vec3/u32.wgsl.expected.wgsl index 580a328f4f..acdd66ee7b 100644 --- a/test/tint/expressions/binary/bit-or/vec3-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/bit-or/vec3-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = vec3(4u, 5u, 6u); diff --git a/test/tint/expressions/binary/bit-xor/scalar-scalar/i32.wgsl b/test/tint/expressions/binary/bit-xor/scalar-scalar/i32.wgsl index 9844c807d5..eb53f2416b 100644 --- a/test/tint/expressions/binary/bit-xor/scalar-scalar/i32.wgsl +++ b/test/tint/expressions/binary/bit-xor/scalar-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 2; diff --git a/test/tint/expressions/binary/bit-xor/scalar-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/bit-xor/scalar-scalar/i32.wgsl.expected.wgsl index dc73ec6312..1de88f20fe 100644 --- a/test/tint/expressions/binary/bit-xor/scalar-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/bit-xor/scalar-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 2; diff --git a/test/tint/expressions/binary/bit-xor/scalar-scalar/u32.wgsl b/test/tint/expressions/binary/bit-xor/scalar-scalar/u32.wgsl index f0f7a54255..712ecddc22 100644 --- a/test/tint/expressions/binary/bit-xor/scalar-scalar/u32.wgsl +++ b/test/tint/expressions/binary/bit-xor/scalar-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1u; let b = 2u; diff --git a/test/tint/expressions/binary/bit-xor/scalar-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/bit-xor/scalar-scalar/u32.wgsl.expected.wgsl index 930b21f2cd..e4d519b208 100644 --- a/test/tint/expressions/binary/bit-xor/scalar-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/bit-xor/scalar-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1u; let b = 2u; diff --git a/test/tint/expressions/binary/bit-xor/vec3-vec3/i32.wgsl b/test/tint/expressions/binary/bit-xor/vec3-vec3/i32.wgsl index 0a5f1c22ff..f3267097f0 100644 --- a/test/tint/expressions/binary/bit-xor/vec3-vec3/i32.wgsl +++ b/test/tint/expressions/binary/bit-xor/vec3-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = vec3(4, 5, 6); diff --git a/test/tint/expressions/binary/bit-xor/vec3-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/bit-xor/vec3-vec3/i32.wgsl.expected.wgsl index de62f80ce8..4dc949afb4 100644 --- a/test/tint/expressions/binary/bit-xor/vec3-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/bit-xor/vec3-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = vec3(4, 5, 6); diff --git a/test/tint/expressions/binary/bit-xor/vec3-vec3/u32.wgsl b/test/tint/expressions/binary/bit-xor/vec3-vec3/u32.wgsl index ce705f6b44..7296b3c193 100644 --- a/test/tint/expressions/binary/bit-xor/vec3-vec3/u32.wgsl +++ b/test/tint/expressions/binary/bit-xor/vec3-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = vec3(4u, 5u, 6u); diff --git a/test/tint/expressions/binary/bit-xor/vec3-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/bit-xor/vec3-vec3/u32.wgsl.expected.wgsl index 044e1389c4..998a81b046 100644 --- a/test/tint/expressions/binary/bit-xor/vec3-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/bit-xor/vec3-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = vec3(4u, 5u, 6u); diff --git a/test/tint/expressions/binary/div/scalar-scalar/f32.wgsl b/test/tint/expressions/binary/div/scalar-scalar/f32.wgsl index 025664dc36..af5a2c3886 100644 --- a/test/tint/expressions/binary/div/scalar-scalar/f32.wgsl +++ b/test/tint/expressions/binary/div/scalar-scalar/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1.; let b = 2.; diff --git a/test/tint/expressions/binary/div/scalar-scalar/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/div/scalar-scalar/f32.wgsl.expected.wgsl index 4f2fc18f9e..39150b5e75 100644 --- a/test/tint/expressions/binary/div/scalar-scalar/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div/scalar-scalar/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1.0; let b = 2.0; diff --git a/test/tint/expressions/binary/div/scalar-scalar/i32.wgsl b/test/tint/expressions/binary/div/scalar-scalar/i32.wgsl index cba5901387..78571fe61c 100644 --- a/test/tint/expressions/binary/div/scalar-scalar/i32.wgsl +++ b/test/tint/expressions/binary/div/scalar-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 2; diff --git a/test/tint/expressions/binary/div/scalar-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/div/scalar-scalar/i32.wgsl.expected.wgsl index 8f7e574c6c..783dd121ef 100644 --- a/test/tint/expressions/binary/div/scalar-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div/scalar-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 2; diff --git a/test/tint/expressions/binary/div/scalar-scalar/u32.wgsl b/test/tint/expressions/binary/div/scalar-scalar/u32.wgsl index 441f376df6..9e9fc5c6b2 100644 --- a/test/tint/expressions/binary/div/scalar-scalar/u32.wgsl +++ b/test/tint/expressions/binary/div/scalar-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1u; let b = 2u; diff --git a/test/tint/expressions/binary/div/scalar-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/div/scalar-scalar/u32.wgsl.expected.wgsl index cff0385af8..b73c90af7f 100644 --- a/test/tint/expressions/binary/div/scalar-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div/scalar-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1u; let b = 2u; diff --git a/test/tint/expressions/binary/div/scalar-vec3/f32.wgsl b/test/tint/expressions/binary/div/scalar-vec3/f32.wgsl index f43e97cad4..8025d7d967 100644 --- a/test/tint/expressions/binary/div/scalar-vec3/f32.wgsl +++ b/test/tint/expressions/binary/div/scalar-vec3/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4.; let b = vec3(1., 2., 3.); diff --git a/test/tint/expressions/binary/div/scalar-vec3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/div/scalar-vec3/f32.wgsl.expected.wgsl index b8f74f4b4c..e8d13f2a52 100644 --- a/test/tint/expressions/binary/div/scalar-vec3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div/scalar-vec3/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4.0; let b = vec3(1.0, 2.0, 3.0); diff --git a/test/tint/expressions/binary/div/scalar-vec3/i32.wgsl b/test/tint/expressions/binary/div/scalar-vec3/i32.wgsl index 071efcf6a4..dd35284888 100644 --- a/test/tint/expressions/binary/div/scalar-vec3/i32.wgsl +++ b/test/tint/expressions/binary/div/scalar-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4; let b = vec3(1, 2, 3); diff --git a/test/tint/expressions/binary/div/scalar-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/div/scalar-vec3/i32.wgsl.expected.wgsl index 1a8cb05f25..a6dd21a9ea 100644 --- a/test/tint/expressions/binary/div/scalar-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div/scalar-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4; let b = vec3(1, 2, 3); diff --git a/test/tint/expressions/binary/div/scalar-vec3/u32.wgsl b/test/tint/expressions/binary/div/scalar-vec3/u32.wgsl index 5ad53ee09e..1694f6e327 100644 --- a/test/tint/expressions/binary/div/scalar-vec3/u32.wgsl +++ b/test/tint/expressions/binary/div/scalar-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4u; let b = vec3(1u, 2u, 3u); diff --git a/test/tint/expressions/binary/div/scalar-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/div/scalar-vec3/u32.wgsl.expected.wgsl index ffe64127a1..e278d29254 100644 --- a/test/tint/expressions/binary/div/scalar-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div/scalar-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4u; let b = vec3(1u, 2u, 3u); diff --git a/test/tint/expressions/binary/div/vec3-scalar/f32.wgsl b/test/tint/expressions/binary/div/vec3-scalar/f32.wgsl index 087c0d30af..f1c3d76971 100644 --- a/test/tint/expressions/binary/div/vec3-scalar/f32.wgsl +++ b/test/tint/expressions/binary/div/vec3-scalar/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1., 2., 3.); let b = 4.; diff --git a/test/tint/expressions/binary/div/vec3-scalar/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/div/vec3-scalar/f32.wgsl.expected.wgsl index 70432dbc6d..79851b8c7e 100644 --- a/test/tint/expressions/binary/div/vec3-scalar/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div/vec3-scalar/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1.0, 2.0, 3.0); let b = 4.0; diff --git a/test/tint/expressions/binary/div/vec3-scalar/i32.wgsl b/test/tint/expressions/binary/div/vec3-scalar/i32.wgsl index 890b12551b..fdc8002747 100644 --- a/test/tint/expressions/binary/div/vec3-scalar/i32.wgsl +++ b/test/tint/expressions/binary/div/vec3-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = 4; diff --git a/test/tint/expressions/binary/div/vec3-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/div/vec3-scalar/i32.wgsl.expected.wgsl index f3a1164d8f..f664fcee0f 100644 --- a/test/tint/expressions/binary/div/vec3-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div/vec3-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = 4; diff --git a/test/tint/expressions/binary/div/vec3-scalar/u32.wgsl b/test/tint/expressions/binary/div/vec3-scalar/u32.wgsl index 7ab6dd501e..4a68b5e3c8 100644 --- a/test/tint/expressions/binary/div/vec3-scalar/u32.wgsl +++ b/test/tint/expressions/binary/div/vec3-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = 4u; diff --git a/test/tint/expressions/binary/div/vec3-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/div/vec3-scalar/u32.wgsl.expected.wgsl index 2f64dd9b14..20dcced044 100644 --- a/test/tint/expressions/binary/div/vec3-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div/vec3-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = 4u; diff --git a/test/tint/expressions/binary/div/vec3-vec3/f32.wgsl b/test/tint/expressions/binary/div/vec3-vec3/f32.wgsl index 1f253ea991..9d9071bdbf 100644 --- a/test/tint/expressions/binary/div/vec3-vec3/f32.wgsl +++ b/test/tint/expressions/binary/div/vec3-vec3/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1., 2., 3.); let b = vec3(4., 5., 6.); diff --git a/test/tint/expressions/binary/div/vec3-vec3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/div/vec3-vec3/f32.wgsl.expected.wgsl index c3129a964d..0946de88a5 100644 --- a/test/tint/expressions/binary/div/vec3-vec3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div/vec3-vec3/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1.0, 2.0, 3.0); let b = vec3(4.0, 5.0, 6.0); diff --git a/test/tint/expressions/binary/div/vec3-vec3/i32.wgsl b/test/tint/expressions/binary/div/vec3-vec3/i32.wgsl index 68d844f8ae..daa29b5e41 100644 --- a/test/tint/expressions/binary/div/vec3-vec3/i32.wgsl +++ b/test/tint/expressions/binary/div/vec3-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = vec3(4, 5, 6); diff --git a/test/tint/expressions/binary/div/vec3-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/div/vec3-vec3/i32.wgsl.expected.wgsl index a601fa0bfe..fef75fb6e4 100644 --- a/test/tint/expressions/binary/div/vec3-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div/vec3-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = vec3(4, 5, 6); diff --git a/test/tint/expressions/binary/div/vec3-vec3/u32.wgsl b/test/tint/expressions/binary/div/vec3-vec3/u32.wgsl index 9215590e7c..318abf1465 100644 --- a/test/tint/expressions/binary/div/vec3-vec3/u32.wgsl +++ b/test/tint/expressions/binary/div/vec3-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = vec3(4u, 5u, 6u); diff --git a/test/tint/expressions/binary/div/vec3-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/div/vec3-vec3/u32.wgsl.expected.wgsl index 66261d5cbb..2b03205a4b 100644 --- a/test/tint/expressions/binary/div/vec3-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div/vec3-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = vec3(4u, 5u, 6u); diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f32.wgsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f32.wgsl index 9503e44304..c892171298 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1.; let b = 0.; diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.wgsl index 8036fce278..d1acaebcbc 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1.0; let b = 0.0; diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl index 73f03b7e40..7df831e9fe 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 0; diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.wgsl index 5284d7d16f..a5c138528c 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 0; diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/u32.wgsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/u32.wgsl index 38b3d2493a..be8b480d28 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/u32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1u; let b = 0u; diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.wgsl index 8c8f7ae0fd..ddaf341dfd 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1u; let b = 0u; diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl index 0db5465133..79419333ce 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4.; let b = vec3(0., 2., 0.); diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl.expected.wgsl index 24d6132667..606020072d 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4.0; let b = vec3(0.0, 2.0, 0.0); diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl index 2b6ef483fa..756562b58a 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4; let b = vec3(0, 2, 0); diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.wgsl index 58c1887622..f627163dd8 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4; let b = vec3(0, 2, 0); diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl index a0a8fe6c34..6aa885ba62 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4u; let b = vec3(0u, 2u, 0u); diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.wgsl index bb436e1c72..309e490b97 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4u; let b = vec3(0u, 2u, 0u); diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl index b83333f920..c4c0d016a8 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1., 2., 3.); let b = 0.; diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl.expected.wgsl index f48af63db1..43f2400608 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1.0, 2.0, 3.0); let b = 0.0; diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl index f9291d5385..946579726f 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = 0; diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.wgsl index c7f11a180c..9c2f12f16a 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = 0; diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl index 5446b2a145..bebd1d8fa6 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = 0u; diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.wgsl index 5ead9830c8..a0bc135359 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = 0u; diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl index 6db41a47bd..b2706abe77 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1., 2., 3.); let b = vec3(0., 5., 0.); diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.wgsl index 6f4aa8c57a..ec8b4ed2a9 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1.0, 2.0, 3.0); let b = vec3(0.0, 5.0, 0.0); diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl index 5d583e65d2..963fbc7b0d 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = vec3(0, 5, 0); diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.wgsl index 76bf812cf7..401f1e52e7 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = vec3(0, 5, 0); diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl index 16a0dd08bb..13e9f8fe22 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = vec3(0u, 5u, 0u); diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.wgsl index eb849bdccd..4212c52d2f 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = vec3(0u, 5u, 0u); diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/f32.wgsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/f32.wgsl index 55c73c5c1d..886a8488bd 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/f32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 1.; var b = 0.; diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.wgsl index 8b3d931bfe..278a02a1aa 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 1.0; var b = 0.0; diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/i32.wgsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/i32.wgsl index 016e7a81df..7d196fb67f 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/i32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 1; var b = 0; diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.wgsl index c762d02ff5..d258b8a7a3 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 1; var b = 0; diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/u32.wgsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/u32.wgsl index a265dd0d2a..42c1872f21 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/u32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 1u; var b = 0u; diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.wgsl index ad82462488..f60cdb5bb1 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 1u; var b = 0u; diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/f32.wgsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/f32.wgsl index ba92b627b7..986c1b13b1 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/f32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 4.; var b = vec3(0., 2., 0.); diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/f32.wgsl.expected.wgsl index c7a6ac1d75..d3495356a9 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 4.0; var b = vec3(0.0, 2.0, 0.0); diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/i32.wgsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/i32.wgsl index 9dc07d5d5d..ed13271d84 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/i32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 4; var b = vec3(0, 2, 0); diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.wgsl index e4dd4b4264..c92fad82ae 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 4; var b = vec3(0, 2, 0); diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/u32.wgsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/u32.wgsl index 0547691f07..628a77852d 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/u32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 4u; var b = vec3(0u, 2u, 0u); diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.wgsl index 9f103fba29..647e299481 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 4u; var b = vec3(0u, 2u, 0u); diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/f32.wgsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/f32.wgsl index 98ff5f0ca3..a0b8b9bdb7 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/f32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1., 2., 3.); var b = 0.; diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/f32.wgsl.expected.wgsl index f0df1be843..01272da464 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1.0, 2.0, 3.0); var b = 0.0; diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/i32.wgsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/i32.wgsl index b792c3ac19..6ccbded465 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/i32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1, 2, 3); var b = 0; diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.wgsl index 6bbc51bf35..82ce280991 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1, 2, 3); var b = 0; diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/u32.wgsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/u32.wgsl index 4e4eacba24..3adbb4fc5f 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/u32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1u, 2u, 3u); var b = 0u; diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.wgsl index 238736409e..0d57402a0c 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1u, 2u, 3u); var b = 0u; diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/f32.wgsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/f32.wgsl index 69761db539..1c1d54e33b 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/f32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1., 2., 3.); var b = vec3(0., 5., 0.); diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.wgsl index 2e518af2ec..b3998ed113 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1.0, 2.0, 3.0); var b = vec3(0.0, 5.0, 0.0); diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/i32.wgsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/i32.wgsl index 65e13dcd86..d858603ad9 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/i32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1, 2, 3); var b = vec3(0, 5, 0); diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.wgsl index 3700b5723d..baeed85f13 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1, 2, 3); var b = vec3(0, 5, 0); diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/u32.wgsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/u32.wgsl index d2e0417e85..bb71e4b633 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/u32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1u, 2u, 3u); var b = vec3(0u, 5u, 0u); diff --git a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.wgsl index ab03350d49..247bd29a5c 100644 --- a/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1u, 2u, 3u); var b = vec3(0u, 5u, 0u); diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f32.wgsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f32.wgsl index 2084ec5d35..ed45e70fd0 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 1.; var b = 0.; diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.wgsl index d616f9b4e9..f0f32597f6 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 1.0; var b = 0.0; diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/i32.wgsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/i32.wgsl index b693c7c17c..96bcdf1d69 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/i32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 1; var b = 0; diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.wgsl index da1a3c44a9..ed24ae4a21 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 1; var b = 0; diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/u32.wgsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/u32.wgsl index 7cab8cf39a..e78d08cef7 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/u32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 1u; var b = 0u; diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.wgsl index 7ac2a45d0c..8000ade357 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 1u; var b = 0u; diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f32.wgsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f32.wgsl index 62267d4e3b..21f3a0b500 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 4.; var b = vec3(0., 2., 0.); diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f32.wgsl.expected.wgsl index 538b208d21..b41f23d323 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 4.0; var b = vec3(0.0, 2.0, 0.0); diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/i32.wgsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/i32.wgsl index c2e1627e66..f2cabd4eb7 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/i32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 4; var b = vec3(0, 2, 0); diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.wgsl index c29283ed5b..d73824b692 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 4; var b = vec3(0, 2, 0); diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/u32.wgsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/u32.wgsl index 6810e9a61e..2af672a5ab 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/u32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 4u; var b = vec3(0u, 2u, 0u); diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.wgsl index 286538ad2d..d1137a8cce 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 4u; var b = vec3(0u, 2u, 0u); diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f32.wgsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f32.wgsl index 71b747421f..21d2173ac3 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1., 2., 3.); var b = 0.; diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f32.wgsl.expected.wgsl index 8caf79ea42..42d30fedd4 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1.0, 2.0, 3.0); var b = 0.0; diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/i32.wgsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/i32.wgsl index 27fea3220c..75167b3bb9 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/i32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1, 2, 3); var b = 0; diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.wgsl index f11c30ed51..2a49d07371 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1, 2, 3); var b = 0; diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/u32.wgsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/u32.wgsl index ea02f5cb5b..11c34c3f10 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/u32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1u, 2u, 3u); var b = 0u; diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.wgsl index 0154b03910..79a08bc795 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1u, 2u, 3u); var b = 0u; diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f32.wgsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f32.wgsl index fdcbb747c1..a7ab819d4c 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1., 2., 3.); var b = vec3(0., 5., 0.); diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.wgsl index d37119ad20..35a6ea9184 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1.0, 2.0, 3.0); var b = vec3(0.0, 5.0, 0.0); diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/i32.wgsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/i32.wgsl index bb4bda306e..ca2fa9890f 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/i32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1, 2, 3); var b = vec3(0, 5, 0); diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.wgsl index 17e72b3430..42f945beb4 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1, 2, 3); var b = vec3(0, 5, 0); diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/u32.wgsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/u32.wgsl index 26097c9692..ef07fe2b31 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/u32.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1u, 2u, 3u); var b = vec3(0u, 5u, 0u); diff --git a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.wgsl index f2206eec05..8cae1a4148 100644 --- a/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/div_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1u, 2u, 3u); var b = vec3(0u, 5u, 0u); diff --git a/test/tint/expressions/binary/left-shift/scalar-scalar/i32.wgsl b/test/tint/expressions/binary/left-shift/scalar-scalar/i32.wgsl index 1779cb0b24..9798d4a7c5 100644 --- a/test/tint/expressions/binary/left-shift/scalar-scalar/i32.wgsl +++ b/test/tint/expressions/binary/left-shift/scalar-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 2u; diff --git a/test/tint/expressions/binary/left-shift/scalar-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/left-shift/scalar-scalar/i32.wgsl.expected.wgsl index 69143dd6df..4339485357 100644 --- a/test/tint/expressions/binary/left-shift/scalar-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/left-shift/scalar-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 2u; diff --git a/test/tint/expressions/binary/left-shift/scalar-scalar/u32.wgsl b/test/tint/expressions/binary/left-shift/scalar-scalar/u32.wgsl index 9638b83037..05ea9539c9 100644 --- a/test/tint/expressions/binary/left-shift/scalar-scalar/u32.wgsl +++ b/test/tint/expressions/binary/left-shift/scalar-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1u; let b = 2u; diff --git a/test/tint/expressions/binary/left-shift/scalar-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/left-shift/scalar-scalar/u32.wgsl.expected.wgsl index 39595c9ec0..19d9671519 100644 --- a/test/tint/expressions/binary/left-shift/scalar-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/left-shift/scalar-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1u; let b = 2u; diff --git a/test/tint/expressions/binary/left-shift/vector-vector/i32.wgsl b/test/tint/expressions/binary/left-shift/vector-vector/i32.wgsl index fd21fb4abb..268f0a01e8 100644 --- a/test/tint/expressions/binary/left-shift/vector-vector/i32.wgsl +++ b/test/tint/expressions/binary/left-shift/vector-vector/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = vec3(4u, 5u, 6u); diff --git a/test/tint/expressions/binary/left-shift/vector-vector/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/left-shift/vector-vector/i32.wgsl.expected.wgsl index 43d4d00a1f..f062d946ce 100644 --- a/test/tint/expressions/binary/left-shift/vector-vector/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/left-shift/vector-vector/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = vec3(4u, 5u, 6u); diff --git a/test/tint/expressions/binary/left-shift/vector-vector/u32.wgsl b/test/tint/expressions/binary/left-shift/vector-vector/u32.wgsl index 7e0db01dcb..903a83c088 100644 --- a/test/tint/expressions/binary/left-shift/vector-vector/u32.wgsl +++ b/test/tint/expressions/binary/left-shift/vector-vector/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = vec3(4u, 5u, 6u); diff --git a/test/tint/expressions/binary/left-shift/vector-vector/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/left-shift/vector-vector/u32.wgsl.expected.wgsl index 12a5cde094..12bd7b82be 100644 --- a/test/tint/expressions/binary/left-shift/vector-vector/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/left-shift/vector-vector/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = vec3(4u, 5u, 6u); diff --git a/test/tint/expressions/binary/mod/scalar-scalar/f32.wgsl b/test/tint/expressions/binary/mod/scalar-scalar/f32.wgsl index 20513e7770..1988f9d763 100644 --- a/test/tint/expressions/binary/mod/scalar-scalar/f32.wgsl +++ b/test/tint/expressions/binary/mod/scalar-scalar/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1.; let b = 2.; diff --git a/test/tint/expressions/binary/mod/scalar-scalar/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod/scalar-scalar/f32.wgsl.expected.wgsl index eebb252da0..5a085a412d 100644 --- a/test/tint/expressions/binary/mod/scalar-scalar/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod/scalar-scalar/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1.0; let b = 2.0; diff --git a/test/tint/expressions/binary/mod/scalar-scalar/i32.wgsl b/test/tint/expressions/binary/mod/scalar-scalar/i32.wgsl index 12a7c72d9c..eac3d53130 100644 --- a/test/tint/expressions/binary/mod/scalar-scalar/i32.wgsl +++ b/test/tint/expressions/binary/mod/scalar-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 2; diff --git a/test/tint/expressions/binary/mod/scalar-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod/scalar-scalar/i32.wgsl.expected.wgsl index 549140ec4d..1b9c716cc4 100644 --- a/test/tint/expressions/binary/mod/scalar-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod/scalar-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 2; diff --git a/test/tint/expressions/binary/mod/scalar-scalar/u32.wgsl b/test/tint/expressions/binary/mod/scalar-scalar/u32.wgsl index 96042bd249..6102f347ad 100644 --- a/test/tint/expressions/binary/mod/scalar-scalar/u32.wgsl +++ b/test/tint/expressions/binary/mod/scalar-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1u; let b = 2u; diff --git a/test/tint/expressions/binary/mod/scalar-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod/scalar-scalar/u32.wgsl.expected.wgsl index d3835edd12..793dded342 100644 --- a/test/tint/expressions/binary/mod/scalar-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod/scalar-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1u; let b = 2u; diff --git a/test/tint/expressions/binary/mod/scalar-vec3/f32.wgsl b/test/tint/expressions/binary/mod/scalar-vec3/f32.wgsl index 55a3accb00..f8ffb239f7 100644 --- a/test/tint/expressions/binary/mod/scalar-vec3/f32.wgsl +++ b/test/tint/expressions/binary/mod/scalar-vec3/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4.; let b = vec3(1., 2., 3.); diff --git a/test/tint/expressions/binary/mod/scalar-vec3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod/scalar-vec3/f32.wgsl.expected.wgsl index 7bfc341cc4..25b0d9b6aa 100644 --- a/test/tint/expressions/binary/mod/scalar-vec3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod/scalar-vec3/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4.0; let b = vec3(1.0, 2.0, 3.0); diff --git a/test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl b/test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl index 9e874a51a3..051d509593 100644 --- a/test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl +++ b/test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4; let b = vec3(1, 2, 3); diff --git a/test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl.expected.wgsl index 6b76bbbd91..d0ba74fa12 100644 --- a/test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4; let b = vec3(1, 2, 3); diff --git a/test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl b/test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl index e4d45cab8b..879c95c057 100644 --- a/test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl +++ b/test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4u; let b = vec3(1u, 2u, 3u); diff --git a/test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl.expected.wgsl index 309c295d3b..180e6e19e9 100644 --- a/test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4u; let b = vec3(1u, 2u, 3u); diff --git a/test/tint/expressions/binary/mod/vec3-scalar/f32.wgsl b/test/tint/expressions/binary/mod/vec3-scalar/f32.wgsl index 7a9cd13e14..30586c46e7 100644 --- a/test/tint/expressions/binary/mod/vec3-scalar/f32.wgsl +++ b/test/tint/expressions/binary/mod/vec3-scalar/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1., 2., 3.); let b = 4.; diff --git a/test/tint/expressions/binary/mod/vec3-scalar/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod/vec3-scalar/f32.wgsl.expected.wgsl index 31c0bbd3c1..e8cfd804df 100644 --- a/test/tint/expressions/binary/mod/vec3-scalar/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod/vec3-scalar/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1.0, 2.0, 3.0); let b = 4.0; diff --git a/test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl b/test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl index e06a539b82..3c223e7169 100644 --- a/test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl +++ b/test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = 4; diff --git a/test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl.expected.wgsl index afa5ad72d2..6b8644ee19 100644 --- a/test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = 4; diff --git a/test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl b/test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl index af3a204bce..57a94c5636 100644 --- a/test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl +++ b/test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = 4u; diff --git a/test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl.expected.wgsl index 3c97f77b6c..3f59fa11d6 100644 --- a/test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = 4u; diff --git a/test/tint/expressions/binary/mod/vec3-vec3/f32.wgsl b/test/tint/expressions/binary/mod/vec3-vec3/f32.wgsl index 815fb66077..7b228609a9 100644 --- a/test/tint/expressions/binary/mod/vec3-vec3/f32.wgsl +++ b/test/tint/expressions/binary/mod/vec3-vec3/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1., 2., 3.); let b = vec3(4., 5., 6.); diff --git a/test/tint/expressions/binary/mod/vec3-vec3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod/vec3-vec3/f32.wgsl.expected.wgsl index d37c9d959d..abb9bd1de9 100644 --- a/test/tint/expressions/binary/mod/vec3-vec3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod/vec3-vec3/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1.0, 2.0, 3.0); let b = vec3(4.0, 5.0, 6.0); diff --git a/test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl b/test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl index 55bfa49eb5..39c41ea603 100644 --- a/test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl +++ b/test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = vec3(4, 5, 6); diff --git a/test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.wgsl index 17693869af..b3877c7a77 100644 --- a/test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = vec3(4, 5, 6); diff --git a/test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl b/test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl index 02f1eeaf66..7ecdd67934 100644 --- a/test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl +++ b/test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = vec3(4u, 5u, 6u); diff --git a/test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.wgsl index 36fa71e020..198cfaf129 100644 --- a/test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = vec3(4u, 5u, 6u); diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f32.wgsl index 6d014b8a38..a4e2a3fcda 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1.; let b = 0.; diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.wgsl index 542a2e7420..26f004c0a4 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1.0; let b = 0.0; diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl index 4c05b0ea38..bf5c46c3bb 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 0; diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.wgsl index e63b37dfa1..fd3cc284a3 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 0; diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/u32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/u32.wgsl index a63ca8fb1b..dc8e4d5bc6 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/u32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1u; let b = 0u; diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.wgsl index 02a078b252..58946be617 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1u; let b = 0u; diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl index b319205019..f48f0b4d46 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4; let b = vec3(0, 2, 0); diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.wgsl index 5b99aeabe9..7b02ef6f37 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4; let b = vec3(0, 2, 0); diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl index 94494c3d78..9ec296c5b0 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4u; let b = vec3(0u, 2u, 0u); diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.wgsl index 0aca8c0a0e..1056273ff5 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4u; let b = vec3(0u, 2u, 0u); diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl index 0a0f4d4fdd..d99c708aa4 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = 0; diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.wgsl index 8cc8abe910..8dcffb772e 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = 0; diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl index 796e15f8dc..b03befca33 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = 0u; diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.wgsl index 98c4523b2d..f75f0cd271 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = 0u; diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl index 64fc4d5dfa..b420076284 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1., 2., 3.); let b = vec3(0., 5., 0.); diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.wgsl index 227a070b13..9bd9c985cc 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1.0, 2.0, 3.0); let b = vec3(0.0, 5.0, 0.0); diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl index 9e64d49d33..63144cd563 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = vec3(0, 5, 0); diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.wgsl index b6fc8c0a3e..a5a8a27f8e 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = vec3(0, 5, 0); diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl index 6724d92d86..a4d1eed0c1 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = vec3(0u, 5u, 0u); diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.wgsl index 24d48be0f4..42e75d86af 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = vec3(0u, 5u, 0u); diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f32.wgsl index 820231bc7c..0f6e3e42ff 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 1.; var b = 0.; diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.wgsl index 019d543f00..a52447eb62 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 1.0; var b = 0.0; diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/i32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/i32.wgsl index 949d0fe8a1..9489c9a877 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/i32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 1; var b = 0; diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.wgsl index 74888f2ec0..d626886f93 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 1; var b = 0; diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/u32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/u32.wgsl index caf8b51ac0..d1d8910159 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/u32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 1u; var b = 0u; diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.wgsl index a75275dcfc..1a4bb6e307 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 1u; var b = 0u; diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/i32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/i32.wgsl index d3415885a3..052a71133c 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/i32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 4; var b = vec3(0, 2, 0); diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.wgsl index 1cff64c91a..226235f6bf 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 4; var b = vec3(0, 2, 0); diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/u32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/u32.wgsl index bbe0ada976..028da4a024 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/u32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 4u; var b = vec3(0u, 2u, 0u); diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.wgsl index c292b7baf6..3ad73087f1 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/scalar-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 4u; var b = vec3(0u, 2u, 0u); diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/i32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/i32.wgsl index 732dff413b..26792f79f3 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/i32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1, 2, 3); var b = 0; diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.wgsl index 0aaa1a256a..f5cc2da922 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1, 2, 3); var b = 0; diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/u32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/u32.wgsl index 87c0466968..4456979b15 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/u32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1u, 2u, 3u); var b = 0u; diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.wgsl index 9433a5a0c9..c8ca7501d4 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1u, 2u, 3u); var b = 0u; diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f32.wgsl index 6a67f5463e..e060e571af 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1., 2., 3.); var b = vec3(0., 5., 0.); diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.wgsl index 965767fa89..512708fdd2 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1.0, 2.0, 3.0); var b = vec3(0.0, 5.0, 0.0); diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/i32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/i32.wgsl index 6996804f7e..60f69ff9fa 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/i32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1, 2, 3); var b = vec3(0, 5, 0); diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.wgsl index b327a60b91..1aad41efc1 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1, 2, 3); var b = vec3(0, 5, 0); diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/u32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/u32.wgsl index 769ce16204..9dc5c6cb6f 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/u32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1u, 2u, 3u); var b = vec3(0u, 5u, 0u); diff --git a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.wgsl index cdc78486af..822cec2c6a 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_expression/vec3-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1u, 2u, 3u); var b = vec3(0u, 5u, 0u); diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f32.wgsl index ec5cc7d701..6ee4fca418 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 1.; var b = 0.; diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.wgsl index 37faeaa333..1fe8662427 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 1.0; var b = 0.0; diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/i32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/i32.wgsl index 3f673f95d5..a089a587a3 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/i32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 1; var b = 0; diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.wgsl index 241e4c3ff9..88b9efdfea 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 1; var b = 0; diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/u32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/u32.wgsl index 19f6c04147..38f86449ab 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/u32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 1u; var b = 0u; diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.wgsl index 8d6291b4b8..333e9e0b5c 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 1u; var b = 0u; diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/i32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/i32.wgsl index ac029c5f9c..3980b9db6b 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/i32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 4; var b = vec3(0, 2, 0); diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.wgsl index 30bdb80d53..449c6c3290 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 4; var b = vec3(0, 2, 0); diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/u32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/u32.wgsl index 74885a7296..3c490d9e44 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/u32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 4u; var b = vec3(0u, 2u, 0u); diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.wgsl index 0abb9dce56..00bf43bab5 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/scalar-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = 4u; var b = vec3(0u, 2u, 0u); diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/i32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/i32.wgsl index 8ceeb13d89..3071db9e93 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/i32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1, 2, 3); var b = 0; diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.wgsl index b9f853c89d..f0b54fd504 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1, 2, 3); var b = 0; diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/u32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/u32.wgsl index aa6b581249..2ff8b8a8d9 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/u32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1u, 2u, 3u); var b = 0u; diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.wgsl index d79da42260..2625b9b791 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1u, 2u, 3u); var b = 0u; diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f32.wgsl index f5d27d5092..eacb9ea021 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1., 2., 3.); var b = vec3(0., 5., 0.); diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.wgsl index c178fab3eb..3dfb44cd34 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1.0, 2.0, 3.0); var b = vec3(0.0, 5.0, 0.0); diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/i32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/i32.wgsl index 129d4b011c..f899ffaed7 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/i32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1, 2, 3); var b = vec3(0, 5, 0); diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.wgsl index 96c95e91a0..4183cc4d0e 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1, 2, 3); var b = vec3(0, 5, 0); diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/u32.wgsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/u32.wgsl index b6be872f19..fb5ab3901b 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/u32.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1u, 2u, 3u); var b = vec3(0u, 5u, 0u); diff --git a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.wgsl index de150e4a41..36d0e2d83f 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mod_by_zero/by_identifier/vec3-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var a = vec3(1u, 2u, 3u); var b = vec3(0u, 5u, 0u); diff --git a/test/tint/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl b/test/tint/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl index d9e43313e1..452713d078 100644 --- a/test/tint/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl +++ b/test/tint/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = mat2x4(vec4(1., 2., 3., 4.), vec4(5., 6., 7., 8.)); let b = mat4x2(vec2(-1., -2.), vec2(-3., -4.), vec2(-5., -6.), vec2(-7., -8.)); diff --git a/test/tint/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl.expected.wgsl index 2bdcf998e2..46edcc4cfc 100644 --- a/test/tint/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = mat2x4(vec4(1.0, 2.0, 3.0, 4.0), vec4(5.0, 6.0, 7.0, 8.0)); let b = mat4x2(vec2(-1.0, -2.0), vec2(-3.0, -4.0), vec2(-5.0, -6.0), vec2(-7.0, -8.0)); diff --git a/test/tint/expressions/binary/mul/mat3x2-vec3/f32.wgsl b/test/tint/expressions/binary/mul/mat3x2-vec3/f32.wgsl index c05600b78b..c367e0ffa6 100644 --- a/test/tint/expressions/binary/mul/mat3x2-vec3/f32.wgsl +++ b/test/tint/expressions/binary/mul/mat3x2-vec3/f32.wgsl @@ -4,7 +4,7 @@ struct S { }; @group(0) @binding(0) var data: S; -@stage(fragment) +@fragment fn main() { let x = data.matrix * data.vector; } diff --git a/test/tint/expressions/binary/mul/mat3x2-vec3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/mul/mat3x2-vec3/f32.wgsl.expected.wgsl index 3c5744ea07..edaba0514c 100644 --- a/test/tint/expressions/binary/mul/mat3x2-vec3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mul/mat3x2-vec3/f32.wgsl.expected.wgsl @@ -5,7 +5,7 @@ struct S { @group(0) @binding(0) var data : S; -@stage(fragment) +@fragment fn main() { let x = (data.matrix * data.vector); } diff --git a/test/tint/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl b/test/tint/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl index 693b097da9..2b50d02841 100644 --- a/test/tint/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl +++ b/test/tint/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = mat3x3(vec3( 1., 2., 3.), vec3( 4., 5., 6.), vec3( 7., 8., 9.)); let b = mat3x3(vec3(-1., -2., -3.), vec3(-4., -5., -6.), vec3(-7., -8., -9.)); diff --git a/test/tint/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl.expected.wgsl index 872ec3d080..32653664f6 100644 --- a/test/tint/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = mat3x3(vec3(1.0, 2.0, 3.0), vec3(4.0, 5.0, 6.0), vec3(7.0, 8.0, 9.0)); let b = mat3x3(vec3(-1.0, -2.0, -3.0), vec3(-4.0, -5.0, -6.0), vec3(-7.0, -8.0, -9.0)); diff --git a/test/tint/expressions/binary/mul/mat3x3-vec3/f32.wgsl b/test/tint/expressions/binary/mul/mat3x3-vec3/f32.wgsl index 2c0c966b8f..adf19ee960 100644 --- a/test/tint/expressions/binary/mul/mat3x3-vec3/f32.wgsl +++ b/test/tint/expressions/binary/mul/mat3x3-vec3/f32.wgsl @@ -4,7 +4,7 @@ struct S { }; @group(0) @binding(0) var data: S; -@stage(fragment) +@fragment fn main() { let x = data.matrix * data.vector; } diff --git a/test/tint/expressions/binary/mul/mat3x3-vec3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/mul/mat3x3-vec3/f32.wgsl.expected.wgsl index 9c51fa6f6d..777ccc01e4 100644 --- a/test/tint/expressions/binary/mul/mat3x3-vec3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mul/mat3x3-vec3/f32.wgsl.expected.wgsl @@ -5,7 +5,7 @@ struct S { @group(0) @binding(0) var data : S; -@stage(fragment) +@fragment fn main() { let x = (data.matrix * data.vector); } diff --git a/test/tint/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl b/test/tint/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl index 76e4db22d4..bddcda1b04 100644 --- a/test/tint/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl +++ b/test/tint/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = mat4x2(vec2(-1., -2.), vec2(-3., -4.), vec2(-5., -6.), vec2(-7., -8.)); let b = mat2x4(vec4(1., 2., 3., 4.), vec4(5., 6., 7., 8.)); diff --git a/test/tint/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl.expected.wgsl index cc6bf09931..0e59163060 100644 --- a/test/tint/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = mat4x2(vec2(-1.0, -2.0), vec2(-3.0, -4.0), vec2(-5.0, -6.0), vec2(-7.0, -8.0)); let b = mat2x4(vec4(1.0, 2.0, 3.0, 4.0), vec4(5.0, 6.0, 7.0, 8.0)); diff --git a/test/tint/expressions/binary/mul/scalar-scalar/f32.wgsl b/test/tint/expressions/binary/mul/scalar-scalar/f32.wgsl index 7c3a49412f..3d0778576f 100644 --- a/test/tint/expressions/binary/mul/scalar-scalar/f32.wgsl +++ b/test/tint/expressions/binary/mul/scalar-scalar/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1.; let b = 2.; diff --git a/test/tint/expressions/binary/mul/scalar-scalar/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/mul/scalar-scalar/f32.wgsl.expected.wgsl index 1308e5a1b9..ea04f10f56 100644 --- a/test/tint/expressions/binary/mul/scalar-scalar/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mul/scalar-scalar/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1.0; let b = 2.0; diff --git a/test/tint/expressions/binary/mul/scalar-scalar/i32.wgsl b/test/tint/expressions/binary/mul/scalar-scalar/i32.wgsl index 841429e890..5e55d6673c 100644 --- a/test/tint/expressions/binary/mul/scalar-scalar/i32.wgsl +++ b/test/tint/expressions/binary/mul/scalar-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 2; diff --git a/test/tint/expressions/binary/mul/scalar-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/mul/scalar-scalar/i32.wgsl.expected.wgsl index e0189a5e0d..03fe7ce3d6 100644 --- a/test/tint/expressions/binary/mul/scalar-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mul/scalar-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 2; diff --git a/test/tint/expressions/binary/mul/scalar-scalar/u32.wgsl b/test/tint/expressions/binary/mul/scalar-scalar/u32.wgsl index 4998346224..c943b96b87 100644 --- a/test/tint/expressions/binary/mul/scalar-scalar/u32.wgsl +++ b/test/tint/expressions/binary/mul/scalar-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1u; let b = 2u; diff --git a/test/tint/expressions/binary/mul/scalar-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/mul/scalar-scalar/u32.wgsl.expected.wgsl index 3dda0e08d8..1a4cfcb703 100644 --- a/test/tint/expressions/binary/mul/scalar-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mul/scalar-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1u; let b = 2u; diff --git a/test/tint/expressions/binary/mul/scalar-vec3/f32.wgsl b/test/tint/expressions/binary/mul/scalar-vec3/f32.wgsl index 62560cb8ac..745133422e 100644 --- a/test/tint/expressions/binary/mul/scalar-vec3/f32.wgsl +++ b/test/tint/expressions/binary/mul/scalar-vec3/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4.; let b = vec3(1., 2., 3.); diff --git a/test/tint/expressions/binary/mul/scalar-vec3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/mul/scalar-vec3/f32.wgsl.expected.wgsl index f2cf6c497c..d61b5165c6 100644 --- a/test/tint/expressions/binary/mul/scalar-vec3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mul/scalar-vec3/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4.0; let b = vec3(1.0, 2.0, 3.0); diff --git a/test/tint/expressions/binary/mul/scalar-vec3/i32.wgsl b/test/tint/expressions/binary/mul/scalar-vec3/i32.wgsl index 8f8d3e437c..e5424b3bf9 100644 --- a/test/tint/expressions/binary/mul/scalar-vec3/i32.wgsl +++ b/test/tint/expressions/binary/mul/scalar-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4; let b = vec3(1, 2, 3); diff --git a/test/tint/expressions/binary/mul/scalar-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/mul/scalar-vec3/i32.wgsl.expected.wgsl index 85f39b5049..2531599554 100644 --- a/test/tint/expressions/binary/mul/scalar-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mul/scalar-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4; let b = vec3(1, 2, 3); diff --git a/test/tint/expressions/binary/mul/scalar-vec3/u32.wgsl b/test/tint/expressions/binary/mul/scalar-vec3/u32.wgsl index 5c9260f078..a48bd99513 100644 --- a/test/tint/expressions/binary/mul/scalar-vec3/u32.wgsl +++ b/test/tint/expressions/binary/mul/scalar-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4u; let b = vec3(1u, 2u, 3u); diff --git a/test/tint/expressions/binary/mul/scalar-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/mul/scalar-vec3/u32.wgsl.expected.wgsl index 9fc3bffa95..df4670734a 100644 --- a/test/tint/expressions/binary/mul/scalar-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mul/scalar-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4u; let b = vec3(1u, 2u, 3u); diff --git a/test/tint/expressions/binary/mul/vec3-mat3x3/f32.wgsl b/test/tint/expressions/binary/mul/vec3-mat3x3/f32.wgsl index 6f7e5df351..f2fb487f5f 100644 --- a/test/tint/expressions/binary/mul/vec3-mat3x3/f32.wgsl +++ b/test/tint/expressions/binary/mul/vec3-mat3x3/f32.wgsl @@ -4,7 +4,7 @@ struct S { }; @group(0) @binding(0) var data: S; -@stage(fragment) +@fragment fn main() { let x = data.vector * data.matrix; } diff --git a/test/tint/expressions/binary/mul/vec3-mat3x3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/mul/vec3-mat3x3/f32.wgsl.expected.wgsl index 6aa7aac1a3..f0923a777b 100644 --- a/test/tint/expressions/binary/mul/vec3-mat3x3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mul/vec3-mat3x3/f32.wgsl.expected.wgsl @@ -5,7 +5,7 @@ struct S { @group(0) @binding(0) var data : S; -@stage(fragment) +@fragment fn main() { let x = (data.vector * data.matrix); } diff --git a/test/tint/expressions/binary/mul/vec3-mat4x3/f32.wgsl b/test/tint/expressions/binary/mul/vec3-mat4x3/f32.wgsl index be83514680..0165011501 100644 --- a/test/tint/expressions/binary/mul/vec3-mat4x3/f32.wgsl +++ b/test/tint/expressions/binary/mul/vec3-mat4x3/f32.wgsl @@ -4,7 +4,7 @@ struct S { }; @group(0) @binding(0) var data: S; -@stage(fragment) +@fragment fn main() { let x = data.vector * data.matrix; } diff --git a/test/tint/expressions/binary/mul/vec3-mat4x3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/mul/vec3-mat4x3/f32.wgsl.expected.wgsl index cf6fffd2b3..961743023f 100644 --- a/test/tint/expressions/binary/mul/vec3-mat4x3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mul/vec3-mat4x3/f32.wgsl.expected.wgsl @@ -5,7 +5,7 @@ struct S { @group(0) @binding(0) var data : S; -@stage(fragment) +@fragment fn main() { let x = (data.vector * data.matrix); } diff --git a/test/tint/expressions/binary/mul/vec3-scalar/f32.wgsl b/test/tint/expressions/binary/mul/vec3-scalar/f32.wgsl index 10f72ae41e..3a346e6b87 100644 --- a/test/tint/expressions/binary/mul/vec3-scalar/f32.wgsl +++ b/test/tint/expressions/binary/mul/vec3-scalar/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1., 2., 3.); let b = 4.; diff --git a/test/tint/expressions/binary/mul/vec3-scalar/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/mul/vec3-scalar/f32.wgsl.expected.wgsl index b3acece835..2d7356b484 100644 --- a/test/tint/expressions/binary/mul/vec3-scalar/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mul/vec3-scalar/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1.0, 2.0, 3.0); let b = 4.0; diff --git a/test/tint/expressions/binary/mul/vec3-scalar/i32.wgsl b/test/tint/expressions/binary/mul/vec3-scalar/i32.wgsl index d4d06787ac..fb5627284b 100644 --- a/test/tint/expressions/binary/mul/vec3-scalar/i32.wgsl +++ b/test/tint/expressions/binary/mul/vec3-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = 4; diff --git a/test/tint/expressions/binary/mul/vec3-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/mul/vec3-scalar/i32.wgsl.expected.wgsl index a72729454a..55b9f6ff23 100644 --- a/test/tint/expressions/binary/mul/vec3-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mul/vec3-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = 4; diff --git a/test/tint/expressions/binary/mul/vec3-scalar/u32.wgsl b/test/tint/expressions/binary/mul/vec3-scalar/u32.wgsl index 03a79ac1aa..162083fbf2 100644 --- a/test/tint/expressions/binary/mul/vec3-scalar/u32.wgsl +++ b/test/tint/expressions/binary/mul/vec3-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = 4u; diff --git a/test/tint/expressions/binary/mul/vec3-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/mul/vec3-scalar/u32.wgsl.expected.wgsl index fc7e60dd3a..33bd16a995 100644 --- a/test/tint/expressions/binary/mul/vec3-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mul/vec3-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = 4u; diff --git a/test/tint/expressions/binary/mul/vec3-vec3/f32.wgsl b/test/tint/expressions/binary/mul/vec3-vec3/f32.wgsl index 6d0e2111ea..5b4b11afb7 100644 --- a/test/tint/expressions/binary/mul/vec3-vec3/f32.wgsl +++ b/test/tint/expressions/binary/mul/vec3-vec3/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1., 2., 3.); let b = vec3(4., 5., 6.); diff --git a/test/tint/expressions/binary/mul/vec3-vec3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/mul/vec3-vec3/f32.wgsl.expected.wgsl index a0dd1f7745..30c7e0cb0e 100644 --- a/test/tint/expressions/binary/mul/vec3-vec3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mul/vec3-vec3/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1.0, 2.0, 3.0); let b = vec3(4.0, 5.0, 6.0); diff --git a/test/tint/expressions/binary/mul/vec3-vec3/i32.wgsl b/test/tint/expressions/binary/mul/vec3-vec3/i32.wgsl index 32ae83f005..d8c64e655b 100644 --- a/test/tint/expressions/binary/mul/vec3-vec3/i32.wgsl +++ b/test/tint/expressions/binary/mul/vec3-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = vec3(4, 5, 6); diff --git a/test/tint/expressions/binary/mul/vec3-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/mul/vec3-vec3/i32.wgsl.expected.wgsl index 20121b5913..a6ff5b4936 100644 --- a/test/tint/expressions/binary/mul/vec3-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mul/vec3-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = vec3(4, 5, 6); diff --git a/test/tint/expressions/binary/mul/vec3-vec3/u32.wgsl b/test/tint/expressions/binary/mul/vec3-vec3/u32.wgsl index 39e1db491f..76c46b5d28 100644 --- a/test/tint/expressions/binary/mul/vec3-vec3/u32.wgsl +++ b/test/tint/expressions/binary/mul/vec3-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = vec3(4u, 5u, 6u); diff --git a/test/tint/expressions/binary/mul/vec3-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/mul/vec3-vec3/u32.wgsl.expected.wgsl index a910c86463..1e40fe76c1 100644 --- a/test/tint/expressions/binary/mul/vec3-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/mul/vec3-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = vec3(4u, 5u, 6u); diff --git a/test/tint/expressions/binary/right-shift/scalar-scalar/i32.wgsl b/test/tint/expressions/binary/right-shift/scalar-scalar/i32.wgsl index 54eda6d516..6f4dadce9d 100644 --- a/test/tint/expressions/binary/right-shift/scalar-scalar/i32.wgsl +++ b/test/tint/expressions/binary/right-shift/scalar-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 2u; diff --git a/test/tint/expressions/binary/right-shift/scalar-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/right-shift/scalar-scalar/i32.wgsl.expected.wgsl index 57f33c8958..054f0efb71 100644 --- a/test/tint/expressions/binary/right-shift/scalar-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/right-shift/scalar-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 2u; diff --git a/test/tint/expressions/binary/right-shift/scalar-scalar/u32.wgsl b/test/tint/expressions/binary/right-shift/scalar-scalar/u32.wgsl index 4cf2a84532..ae28e96080 100644 --- a/test/tint/expressions/binary/right-shift/scalar-scalar/u32.wgsl +++ b/test/tint/expressions/binary/right-shift/scalar-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1u; let b = 2u; diff --git a/test/tint/expressions/binary/right-shift/scalar-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/right-shift/scalar-scalar/u32.wgsl.expected.wgsl index 827e23f748..633685a75b 100644 --- a/test/tint/expressions/binary/right-shift/scalar-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/right-shift/scalar-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1u; let b = 2u; diff --git a/test/tint/expressions/binary/right-shift/vector-vector/i32.wgsl b/test/tint/expressions/binary/right-shift/vector-vector/i32.wgsl index 366c8c440f..b59067a825 100644 --- a/test/tint/expressions/binary/right-shift/vector-vector/i32.wgsl +++ b/test/tint/expressions/binary/right-shift/vector-vector/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = vec3(4u, 5u, 6u); diff --git a/test/tint/expressions/binary/right-shift/vector-vector/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/right-shift/vector-vector/i32.wgsl.expected.wgsl index 96e088f710..3fd119e3b4 100644 --- a/test/tint/expressions/binary/right-shift/vector-vector/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/right-shift/vector-vector/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = vec3(4u, 5u, 6u); diff --git a/test/tint/expressions/binary/right-shift/vector-vector/u32.wgsl b/test/tint/expressions/binary/right-shift/vector-vector/u32.wgsl index a70095deb5..e4214f3172 100644 --- a/test/tint/expressions/binary/right-shift/vector-vector/u32.wgsl +++ b/test/tint/expressions/binary/right-shift/vector-vector/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = vec3(4u, 5u, 6u); diff --git a/test/tint/expressions/binary/right-shift/vector-vector/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/right-shift/vector-vector/u32.wgsl.expected.wgsl index 4b44e73d76..f7073ef9d3 100644 --- a/test/tint/expressions/binary/right-shift/vector-vector/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/right-shift/vector-vector/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = vec3(4u, 5u, 6u); diff --git a/test/tint/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl b/test/tint/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl index 1d90779f42..fbe5639535 100644 --- a/test/tint/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl +++ b/test/tint/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = mat3x3(vec3( 1., 2., 3.), vec3( 4., 5., 6.), vec3( 7., 8., 9.)); let b = mat3x3(vec3(-1., -2., -3.), vec3(-4., -5., -6.), vec3(-7., -8., -9.)); diff --git a/test/tint/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl.expected.wgsl index d54c2dcc11..014521028f 100644 --- a/test/tint/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = mat3x3(vec3(1.0, 2.0, 3.0), vec3(4.0, 5.0, 6.0), vec3(7.0, 8.0, 9.0)); let b = mat3x3(vec3(-1.0, -2.0, -3.0), vec3(-4.0, -5.0, -6.0), vec3(-7.0, -8.0, -9.0)); diff --git a/test/tint/expressions/binary/sub/scalar-scalar/f32.wgsl b/test/tint/expressions/binary/sub/scalar-scalar/f32.wgsl index 7aec1fe56c..9dff5710ad 100644 --- a/test/tint/expressions/binary/sub/scalar-scalar/f32.wgsl +++ b/test/tint/expressions/binary/sub/scalar-scalar/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1.; let b = 2.; diff --git a/test/tint/expressions/binary/sub/scalar-scalar/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/sub/scalar-scalar/f32.wgsl.expected.wgsl index 7639858eaa..9362f39ed8 100644 --- a/test/tint/expressions/binary/sub/scalar-scalar/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/sub/scalar-scalar/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1.0; let b = 2.0; diff --git a/test/tint/expressions/binary/sub/scalar-scalar/i32.wgsl b/test/tint/expressions/binary/sub/scalar-scalar/i32.wgsl index 93fb7e057d..a8fb3a1036 100644 --- a/test/tint/expressions/binary/sub/scalar-scalar/i32.wgsl +++ b/test/tint/expressions/binary/sub/scalar-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 2; diff --git a/test/tint/expressions/binary/sub/scalar-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/sub/scalar-scalar/i32.wgsl.expected.wgsl index 9aa9bf3ed2..50a769f1e7 100644 --- a/test/tint/expressions/binary/sub/scalar-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/sub/scalar-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1; let b = 2; diff --git a/test/tint/expressions/binary/sub/scalar-scalar/u32.wgsl b/test/tint/expressions/binary/sub/scalar-scalar/u32.wgsl index fa75c67a4c..c93a3428b8 100644 --- a/test/tint/expressions/binary/sub/scalar-scalar/u32.wgsl +++ b/test/tint/expressions/binary/sub/scalar-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1u; let b = 2u; diff --git a/test/tint/expressions/binary/sub/scalar-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/sub/scalar-scalar/u32.wgsl.expected.wgsl index 81cbedda57..32a886943d 100644 --- a/test/tint/expressions/binary/sub/scalar-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/sub/scalar-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 1u; let b = 2u; diff --git a/test/tint/expressions/binary/sub/scalar-vec3/f32.wgsl b/test/tint/expressions/binary/sub/scalar-vec3/f32.wgsl index 8a4a112ee0..25d44e6a49 100644 --- a/test/tint/expressions/binary/sub/scalar-vec3/f32.wgsl +++ b/test/tint/expressions/binary/sub/scalar-vec3/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4.; let b = vec3(1., 2., 3.); diff --git a/test/tint/expressions/binary/sub/scalar-vec3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/sub/scalar-vec3/f32.wgsl.expected.wgsl index 14046957cc..ed0afe4474 100644 --- a/test/tint/expressions/binary/sub/scalar-vec3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/sub/scalar-vec3/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4.0; let b = vec3(1.0, 2.0, 3.0); diff --git a/test/tint/expressions/binary/sub/scalar-vec3/i32.wgsl b/test/tint/expressions/binary/sub/scalar-vec3/i32.wgsl index 8b31299bfb..de161621fb 100644 --- a/test/tint/expressions/binary/sub/scalar-vec3/i32.wgsl +++ b/test/tint/expressions/binary/sub/scalar-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4; let b = vec3(1, 2, 3); diff --git a/test/tint/expressions/binary/sub/scalar-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/sub/scalar-vec3/i32.wgsl.expected.wgsl index bec3a199d7..e3d4493dff 100644 --- a/test/tint/expressions/binary/sub/scalar-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/sub/scalar-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4; let b = vec3(1, 2, 3); diff --git a/test/tint/expressions/binary/sub/scalar-vec3/u32.wgsl b/test/tint/expressions/binary/sub/scalar-vec3/u32.wgsl index 562719f9cc..d138510cdc 100644 --- a/test/tint/expressions/binary/sub/scalar-vec3/u32.wgsl +++ b/test/tint/expressions/binary/sub/scalar-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4u; let b = vec3(1u, 2u, 3u); diff --git a/test/tint/expressions/binary/sub/scalar-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/sub/scalar-vec3/u32.wgsl.expected.wgsl index 4e1bca98a9..2e003d4812 100644 --- a/test/tint/expressions/binary/sub/scalar-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/sub/scalar-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = 4u; let b = vec3(1u, 2u, 3u); diff --git a/test/tint/expressions/binary/sub/vec3-scalar/f32.wgsl b/test/tint/expressions/binary/sub/vec3-scalar/f32.wgsl index 4b4aced691..5e151fd95d 100644 --- a/test/tint/expressions/binary/sub/vec3-scalar/f32.wgsl +++ b/test/tint/expressions/binary/sub/vec3-scalar/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1., 2., 3.); let b = 4.; diff --git a/test/tint/expressions/binary/sub/vec3-scalar/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/sub/vec3-scalar/f32.wgsl.expected.wgsl index 169e9db17b..b9470ecce4 100644 --- a/test/tint/expressions/binary/sub/vec3-scalar/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/sub/vec3-scalar/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1.0, 2.0, 3.0); let b = 4.0; diff --git a/test/tint/expressions/binary/sub/vec3-scalar/i32.wgsl b/test/tint/expressions/binary/sub/vec3-scalar/i32.wgsl index e12a2bae2a..d2f30e4c68 100644 --- a/test/tint/expressions/binary/sub/vec3-scalar/i32.wgsl +++ b/test/tint/expressions/binary/sub/vec3-scalar/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = 4; diff --git a/test/tint/expressions/binary/sub/vec3-scalar/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/sub/vec3-scalar/i32.wgsl.expected.wgsl index 003acfab8f..bc52104045 100644 --- a/test/tint/expressions/binary/sub/vec3-scalar/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/sub/vec3-scalar/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = 4; diff --git a/test/tint/expressions/binary/sub/vec3-scalar/u32.wgsl b/test/tint/expressions/binary/sub/vec3-scalar/u32.wgsl index f5e4e5adad..37dce9c6db 100644 --- a/test/tint/expressions/binary/sub/vec3-scalar/u32.wgsl +++ b/test/tint/expressions/binary/sub/vec3-scalar/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = 4u; diff --git a/test/tint/expressions/binary/sub/vec3-scalar/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/sub/vec3-scalar/u32.wgsl.expected.wgsl index 9b9c0de2d3..5daa30077c 100644 --- a/test/tint/expressions/binary/sub/vec3-scalar/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/sub/vec3-scalar/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = 4u; diff --git a/test/tint/expressions/binary/sub/vec3-vec3/f32.wgsl b/test/tint/expressions/binary/sub/vec3-vec3/f32.wgsl index cea0bb7a8c..b2967b6509 100644 --- a/test/tint/expressions/binary/sub/vec3-vec3/f32.wgsl +++ b/test/tint/expressions/binary/sub/vec3-vec3/f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1., 2., 3.); let b = vec3(4., 5., 6.); diff --git a/test/tint/expressions/binary/sub/vec3-vec3/f32.wgsl.expected.wgsl b/test/tint/expressions/binary/sub/vec3-vec3/f32.wgsl.expected.wgsl index 60754052c5..e3e32b1cda 100644 --- a/test/tint/expressions/binary/sub/vec3-vec3/f32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/sub/vec3-vec3/f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1.0, 2.0, 3.0); let b = vec3(4.0, 5.0, 6.0); diff --git a/test/tint/expressions/binary/sub/vec3-vec3/i32.wgsl b/test/tint/expressions/binary/sub/vec3-vec3/i32.wgsl index 2ab7275dad..f1b01446e8 100644 --- a/test/tint/expressions/binary/sub/vec3-vec3/i32.wgsl +++ b/test/tint/expressions/binary/sub/vec3-vec3/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = vec3(4, 5, 6); diff --git a/test/tint/expressions/binary/sub/vec3-vec3/i32.wgsl.expected.wgsl b/test/tint/expressions/binary/sub/vec3-vec3/i32.wgsl.expected.wgsl index a5b306b812..474ada031c 100644 --- a/test/tint/expressions/binary/sub/vec3-vec3/i32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/sub/vec3-vec3/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1, 2, 3); let b = vec3(4, 5, 6); diff --git a/test/tint/expressions/binary/sub/vec3-vec3/u32.wgsl b/test/tint/expressions/binary/sub/vec3-vec3/u32.wgsl index cb59c1fd56..2dfe12e00c 100644 --- a/test/tint/expressions/binary/sub/vec3-vec3/u32.wgsl +++ b/test/tint/expressions/binary/sub/vec3-vec3/u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = vec3(4u, 5u, 6u); diff --git a/test/tint/expressions/binary/sub/vec3-vec3/u32.wgsl.expected.wgsl b/test/tint/expressions/binary/sub/vec3-vec3/u32.wgsl.expected.wgsl index dea4cfe84d..83f2ec2c39 100644 --- a/test/tint/expressions/binary/sub/vec3-vec3/u32.wgsl.expected.wgsl +++ b/test/tint/expressions/binary/sub/vec3-vec3/u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a = vec3(1u, 2u, 3u); let b = vec3(4u, 5u, 6u); diff --git a/test/tint/expressions/bitcast/scalar/f32-f32.wgsl b/test/tint/expressions/bitcast/scalar/f32-f32.wgsl index 0e7b8ba5c7..5243db2cf0 100644 --- a/test/tint/expressions/bitcast/scalar/f32-f32.wgsl +++ b/test/tint/expressions/bitcast/scalar/f32-f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : f32 = 1.; let b : f32 = bitcast(a); diff --git a/test/tint/expressions/bitcast/scalar/f32-f32.wgsl.expected.wgsl b/test/tint/expressions/bitcast/scalar/f32-f32.wgsl.expected.wgsl index ac6a874d8a..2cd540505e 100644 --- a/test/tint/expressions/bitcast/scalar/f32-f32.wgsl.expected.wgsl +++ b/test/tint/expressions/bitcast/scalar/f32-f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : f32 = 1.0; let b : f32 = bitcast(a); diff --git a/test/tint/expressions/bitcast/scalar/f32-i32.wgsl b/test/tint/expressions/bitcast/scalar/f32-i32.wgsl index 91c3d8f2f0..40d370f7dc 100644 --- a/test/tint/expressions/bitcast/scalar/f32-i32.wgsl +++ b/test/tint/expressions/bitcast/scalar/f32-i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : f32 = 1.; let b : i32 = bitcast(a); diff --git a/test/tint/expressions/bitcast/scalar/f32-i32.wgsl.expected.wgsl b/test/tint/expressions/bitcast/scalar/f32-i32.wgsl.expected.wgsl index 81e6fa61ef..20807eb324 100644 --- a/test/tint/expressions/bitcast/scalar/f32-i32.wgsl.expected.wgsl +++ b/test/tint/expressions/bitcast/scalar/f32-i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : f32 = 1.0; let b : i32 = bitcast(a); diff --git a/test/tint/expressions/bitcast/scalar/f32-u32.wgsl b/test/tint/expressions/bitcast/scalar/f32-u32.wgsl index 6f33d5adc8..9cf72ec8dc 100644 --- a/test/tint/expressions/bitcast/scalar/f32-u32.wgsl +++ b/test/tint/expressions/bitcast/scalar/f32-u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : f32 = 1.; let b : u32 = bitcast(a); diff --git a/test/tint/expressions/bitcast/scalar/f32-u32.wgsl.expected.wgsl b/test/tint/expressions/bitcast/scalar/f32-u32.wgsl.expected.wgsl index c230fb888c..3850451c2b 100644 --- a/test/tint/expressions/bitcast/scalar/f32-u32.wgsl.expected.wgsl +++ b/test/tint/expressions/bitcast/scalar/f32-u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : f32 = 1.0; let b : u32 = bitcast(a); diff --git a/test/tint/expressions/bitcast/scalar/i32-f32.wgsl b/test/tint/expressions/bitcast/scalar/i32-f32.wgsl index 00a8099ce8..272043823b 100644 --- a/test/tint/expressions/bitcast/scalar/i32-f32.wgsl +++ b/test/tint/expressions/bitcast/scalar/i32-f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : i32 = 1; let b : f32 = bitcast(a); diff --git a/test/tint/expressions/bitcast/scalar/i32-f32.wgsl.expected.wgsl b/test/tint/expressions/bitcast/scalar/i32-f32.wgsl.expected.wgsl index 1aae69a801..16f86b24f7 100644 --- a/test/tint/expressions/bitcast/scalar/i32-f32.wgsl.expected.wgsl +++ b/test/tint/expressions/bitcast/scalar/i32-f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : i32 = 1; let b : f32 = bitcast(a); diff --git a/test/tint/expressions/bitcast/scalar/i32-i32.wgsl b/test/tint/expressions/bitcast/scalar/i32-i32.wgsl index 282e2183fc..ca5e70f712 100644 --- a/test/tint/expressions/bitcast/scalar/i32-i32.wgsl +++ b/test/tint/expressions/bitcast/scalar/i32-i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : i32 = 1; let b : i32 = bitcast(a); diff --git a/test/tint/expressions/bitcast/scalar/i32-i32.wgsl.expected.wgsl b/test/tint/expressions/bitcast/scalar/i32-i32.wgsl.expected.wgsl index 9ecbee506d..94c44a972e 100644 --- a/test/tint/expressions/bitcast/scalar/i32-i32.wgsl.expected.wgsl +++ b/test/tint/expressions/bitcast/scalar/i32-i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : i32 = 1; let b : i32 = bitcast(a); diff --git a/test/tint/expressions/bitcast/scalar/i32-u32.wgsl b/test/tint/expressions/bitcast/scalar/i32-u32.wgsl index ebb81b4d91..4a34de6d05 100644 --- a/test/tint/expressions/bitcast/scalar/i32-u32.wgsl +++ b/test/tint/expressions/bitcast/scalar/i32-u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : i32 = 1; let b : u32 = bitcast(a); diff --git a/test/tint/expressions/bitcast/scalar/i32-u32.wgsl.expected.wgsl b/test/tint/expressions/bitcast/scalar/i32-u32.wgsl.expected.wgsl index cb8e316d19..28a65c9d8d 100644 --- a/test/tint/expressions/bitcast/scalar/i32-u32.wgsl.expected.wgsl +++ b/test/tint/expressions/bitcast/scalar/i32-u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : i32 = 1; let b : u32 = bitcast(a); diff --git a/test/tint/expressions/bitcast/scalar/i32min-u32.wgsl b/test/tint/expressions/bitcast/scalar/i32min-u32.wgsl index de5778872b..374110c184 100644 --- a/test/tint/expressions/bitcast/scalar/i32min-u32.wgsl +++ b/test/tint/expressions/bitcast/scalar/i32min-u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let b : u32 = bitcast(-2147483648); } diff --git a/test/tint/expressions/bitcast/scalar/i32min-u32.wgsl.expected.wgsl b/test/tint/expressions/bitcast/scalar/i32min-u32.wgsl.expected.wgsl index de5778872b..374110c184 100644 --- a/test/tint/expressions/bitcast/scalar/i32min-u32.wgsl.expected.wgsl +++ b/test/tint/expressions/bitcast/scalar/i32min-u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let b : u32 = bitcast(-2147483648); } diff --git a/test/tint/expressions/bitcast/scalar/u32-f32.wgsl b/test/tint/expressions/bitcast/scalar/u32-f32.wgsl index c196d83133..3905040f72 100644 --- a/test/tint/expressions/bitcast/scalar/u32-f32.wgsl +++ b/test/tint/expressions/bitcast/scalar/u32-f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : u32 = 1u; let b : f32 = bitcast(a); diff --git a/test/tint/expressions/bitcast/scalar/u32-f32.wgsl.expected.wgsl b/test/tint/expressions/bitcast/scalar/u32-f32.wgsl.expected.wgsl index 7c0cb22da5..4873e26b04 100644 --- a/test/tint/expressions/bitcast/scalar/u32-f32.wgsl.expected.wgsl +++ b/test/tint/expressions/bitcast/scalar/u32-f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : u32 = 1u; let b : f32 = bitcast(a); diff --git a/test/tint/expressions/bitcast/scalar/u32-i32.wgsl b/test/tint/expressions/bitcast/scalar/u32-i32.wgsl index 9d6785a46d..c5028312c4 100644 --- a/test/tint/expressions/bitcast/scalar/u32-i32.wgsl +++ b/test/tint/expressions/bitcast/scalar/u32-i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : u32 = 1u; let b : i32 = bitcast(a); diff --git a/test/tint/expressions/bitcast/scalar/u32-i32.wgsl.expected.wgsl b/test/tint/expressions/bitcast/scalar/u32-i32.wgsl.expected.wgsl index 4d8f585d66..e07225eb95 100644 --- a/test/tint/expressions/bitcast/scalar/u32-i32.wgsl.expected.wgsl +++ b/test/tint/expressions/bitcast/scalar/u32-i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : u32 = 1u; let b : i32 = bitcast(a); diff --git a/test/tint/expressions/bitcast/scalar/u32-u32.wgsl b/test/tint/expressions/bitcast/scalar/u32-u32.wgsl index 35f0a23af2..c1a4aede35 100644 --- a/test/tint/expressions/bitcast/scalar/u32-u32.wgsl +++ b/test/tint/expressions/bitcast/scalar/u32-u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : u32 = 1u; let b : u32 = bitcast(a); diff --git a/test/tint/expressions/bitcast/scalar/u32-u32.wgsl.expected.wgsl b/test/tint/expressions/bitcast/scalar/u32-u32.wgsl.expected.wgsl index 45c6de7c33..ad7e55b77b 100644 --- a/test/tint/expressions/bitcast/scalar/u32-u32.wgsl.expected.wgsl +++ b/test/tint/expressions/bitcast/scalar/u32-u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : u32 = 1u; let b : u32 = bitcast(a); diff --git a/test/tint/expressions/bitcast/vector/f32-f32.wgsl b/test/tint/expressions/bitcast/vector/f32-f32.wgsl index 8842275cc3..a8f1759202 100644 --- a/test/tint/expressions/bitcast/vector/f32-f32.wgsl +++ b/test/tint/expressions/bitcast/vector/f32-f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : vec3 = vec3(1., 2., 3.); let b : vec3 = bitcast>(a); diff --git a/test/tint/expressions/bitcast/vector/f32-f32.wgsl.expected.wgsl b/test/tint/expressions/bitcast/vector/f32-f32.wgsl.expected.wgsl index 1af19c7ba3..452705cf09 100644 --- a/test/tint/expressions/bitcast/vector/f32-f32.wgsl.expected.wgsl +++ b/test/tint/expressions/bitcast/vector/f32-f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : vec3 = vec3(1.0, 2.0, 3.0); let b : vec3 = bitcast>(a); diff --git a/test/tint/expressions/bitcast/vector/f32-i32.wgsl b/test/tint/expressions/bitcast/vector/f32-i32.wgsl index 69a8ee6a4e..8a818f0ad8 100644 --- a/test/tint/expressions/bitcast/vector/f32-i32.wgsl +++ b/test/tint/expressions/bitcast/vector/f32-i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : vec3 = vec3(1., 2., 3.); let b : vec3 = bitcast>(a); diff --git a/test/tint/expressions/bitcast/vector/f32-i32.wgsl.expected.wgsl b/test/tint/expressions/bitcast/vector/f32-i32.wgsl.expected.wgsl index 6f7c20ec6d..3971ac84fa 100644 --- a/test/tint/expressions/bitcast/vector/f32-i32.wgsl.expected.wgsl +++ b/test/tint/expressions/bitcast/vector/f32-i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : vec3 = vec3(1.0, 2.0, 3.0); let b : vec3 = bitcast>(a); diff --git a/test/tint/expressions/bitcast/vector/f32-u32.wgsl b/test/tint/expressions/bitcast/vector/f32-u32.wgsl index c478dc8b0e..962f4f92aa 100644 --- a/test/tint/expressions/bitcast/vector/f32-u32.wgsl +++ b/test/tint/expressions/bitcast/vector/f32-u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : vec3 = vec3(1., 2., 3.); let b : vec3 = bitcast>(a); diff --git a/test/tint/expressions/bitcast/vector/f32-u32.wgsl.expected.wgsl b/test/tint/expressions/bitcast/vector/f32-u32.wgsl.expected.wgsl index d47bade91a..a4acebceb6 100644 --- a/test/tint/expressions/bitcast/vector/f32-u32.wgsl.expected.wgsl +++ b/test/tint/expressions/bitcast/vector/f32-u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : vec3 = vec3(1.0, 2.0, 3.0); let b : vec3 = bitcast>(a); diff --git a/test/tint/expressions/bitcast/vector/i32-f32.wgsl b/test/tint/expressions/bitcast/vector/i32-f32.wgsl index 7fa9e52851..b71ae34585 100644 --- a/test/tint/expressions/bitcast/vector/i32-f32.wgsl +++ b/test/tint/expressions/bitcast/vector/i32-f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : vec3 = vec3(1, 2, 3); let b : vec3 = bitcast>(a); diff --git a/test/tint/expressions/bitcast/vector/i32-f32.wgsl.expected.wgsl b/test/tint/expressions/bitcast/vector/i32-f32.wgsl.expected.wgsl index 424988de59..0026268a58 100644 --- a/test/tint/expressions/bitcast/vector/i32-f32.wgsl.expected.wgsl +++ b/test/tint/expressions/bitcast/vector/i32-f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : vec3 = vec3(1, 2, 3); let b : vec3 = bitcast>(a); diff --git a/test/tint/expressions/bitcast/vector/i32-i32.wgsl b/test/tint/expressions/bitcast/vector/i32-i32.wgsl index 1b332c6636..2becdf5e5a 100644 --- a/test/tint/expressions/bitcast/vector/i32-i32.wgsl +++ b/test/tint/expressions/bitcast/vector/i32-i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : vec3 = vec3(1, 2, 3); let b : vec3 = bitcast>(a); diff --git a/test/tint/expressions/bitcast/vector/i32-i32.wgsl.expected.wgsl b/test/tint/expressions/bitcast/vector/i32-i32.wgsl.expected.wgsl index b77a8bfd48..888cba48d1 100644 --- a/test/tint/expressions/bitcast/vector/i32-i32.wgsl.expected.wgsl +++ b/test/tint/expressions/bitcast/vector/i32-i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : vec3 = vec3(1, 2, 3); let b : vec3 = bitcast>(a); diff --git a/test/tint/expressions/bitcast/vector/i32-u32.wgsl b/test/tint/expressions/bitcast/vector/i32-u32.wgsl index f60a90455c..b0bbe463be 100644 --- a/test/tint/expressions/bitcast/vector/i32-u32.wgsl +++ b/test/tint/expressions/bitcast/vector/i32-u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : vec3 = vec3(1, 2, 3); let b : vec3 = bitcast>(a); diff --git a/test/tint/expressions/bitcast/vector/i32-u32.wgsl.expected.wgsl b/test/tint/expressions/bitcast/vector/i32-u32.wgsl.expected.wgsl index a0d6f73acc..eed5e13cb7 100644 --- a/test/tint/expressions/bitcast/vector/i32-u32.wgsl.expected.wgsl +++ b/test/tint/expressions/bitcast/vector/i32-u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : vec3 = vec3(1, 2, 3); let b : vec3 = bitcast>(a); diff --git a/test/tint/expressions/bitcast/vector/u32-f32.wgsl b/test/tint/expressions/bitcast/vector/u32-f32.wgsl index 76adfdddf8..362773c38f 100644 --- a/test/tint/expressions/bitcast/vector/u32-f32.wgsl +++ b/test/tint/expressions/bitcast/vector/u32-f32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : vec3 = vec3(1u, 2u, 3u); let b : vec3 = bitcast>(a); diff --git a/test/tint/expressions/bitcast/vector/u32-f32.wgsl.expected.wgsl b/test/tint/expressions/bitcast/vector/u32-f32.wgsl.expected.wgsl index dd4b3a348f..c4954a8086 100644 --- a/test/tint/expressions/bitcast/vector/u32-f32.wgsl.expected.wgsl +++ b/test/tint/expressions/bitcast/vector/u32-f32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : vec3 = vec3(1u, 2u, 3u); let b : vec3 = bitcast>(a); diff --git a/test/tint/expressions/bitcast/vector/u32-i32.wgsl b/test/tint/expressions/bitcast/vector/u32-i32.wgsl index 9ae5c29240..a3f6d262a1 100644 --- a/test/tint/expressions/bitcast/vector/u32-i32.wgsl +++ b/test/tint/expressions/bitcast/vector/u32-i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : vec3 = vec3(1u, 2u, 3u); let b : vec3 = bitcast>(a); diff --git a/test/tint/expressions/bitcast/vector/u32-i32.wgsl.expected.wgsl b/test/tint/expressions/bitcast/vector/u32-i32.wgsl.expected.wgsl index 7291adea9e..7539435982 100644 --- a/test/tint/expressions/bitcast/vector/u32-i32.wgsl.expected.wgsl +++ b/test/tint/expressions/bitcast/vector/u32-i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : vec3 = vec3(1u, 2u, 3u); let b : vec3 = bitcast>(a); diff --git a/test/tint/expressions/bitcast/vector/u32-u32.wgsl b/test/tint/expressions/bitcast/vector/u32-u32.wgsl index 277597db2d..9ee4e82da4 100644 --- a/test/tint/expressions/bitcast/vector/u32-u32.wgsl +++ b/test/tint/expressions/bitcast/vector/u32-u32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : vec3 = vec3(1u, 2u, 3u); let b : vec3 = bitcast>(a); diff --git a/test/tint/expressions/bitcast/vector/u32-u32.wgsl.expected.wgsl b/test/tint/expressions/bitcast/vector/u32-u32.wgsl.expected.wgsl index 86d926565f..3296a7abc0 100644 --- a/test/tint/expressions/bitcast/vector/u32-u32.wgsl.expected.wgsl +++ b/test/tint/expressions/bitcast/vector/u32-u32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let a : vec3 = vec3(1u, 2u, 3u); let b : vec3 = bitcast>(a); diff --git a/test/tint/expressions/literals/-inf.spvasm.expected.wgsl b/test/tint/expressions/literals/-inf.spvasm.expected.wgsl index eb85662ac3..2e063cec22 100644 --- a/test/tint/expressions/literals/-inf.spvasm.expected.wgsl +++ b/test/tint/expressions/literals/-inf.spvasm.expected.wgsl @@ -10,7 +10,7 @@ struct main_out { out_var_SV_TARGET_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(out_var_SV_TARGET); diff --git a/test/tint/expressions/literals/inf.spvasm.expected.wgsl b/test/tint/expressions/literals/inf.spvasm.expected.wgsl index 6f8467c721..dea7b3bc7e 100644 --- a/test/tint/expressions/literals/inf.spvasm.expected.wgsl +++ b/test/tint/expressions/literals/inf.spvasm.expected.wgsl @@ -10,7 +10,7 @@ struct main_out { out_var_SV_TARGET_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(out_var_SV_TARGET); diff --git a/test/tint/expressions/literals/nan.spvasm.expected.wgsl b/test/tint/expressions/literals/nan.spvasm.expected.wgsl index 0909a0f125..922572a034 100644 --- a/test/tint/expressions/literals/nan.spvasm.expected.wgsl +++ b/test/tint/expressions/literals/nan.spvasm.expected.wgsl @@ -10,7 +10,7 @@ struct main_out { out_var_SV_TARGET_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(out_var_SV_TARGET); diff --git a/test/tint/extensions/parsing/basic.wgsl b/test/tint/extensions/parsing/basic.wgsl index d1d3017ddd..f7b6bd5ab7 100644 --- a/test/tint/extensions/parsing/basic.wgsl +++ b/test/tint/extensions/parsing/basic.wgsl @@ -1,7 +1,7 @@ // Enable a void internal extension enable f16; -@stage(fragment) +@fragment fn main() -> @location(0) vec4 { return vec4(0.1, 0.2, 0.3, 0.4); } diff --git a/test/tint/extensions/parsing/basic.wgsl.expected.wgsl b/test/tint/extensions/parsing/basic.wgsl.expected.wgsl index c084b23263..f8bd65ac7f 100644 --- a/test/tint/extensions/parsing/basic.wgsl.expected.wgsl +++ b/test/tint/extensions/parsing/basic.wgsl.expected.wgsl @@ -1,6 +1,6 @@ enable f16; -@stage(fragment) +@fragment fn main() -> @location(0) vec4 { return vec4(0.100000001, 0.200000003, 0.300000012, 0.400000006); } diff --git a/test/tint/extensions/parsing/duplicated_extensions.wgsl b/test/tint/extensions/parsing/duplicated_extensions.wgsl index d72f18de62..b90bbcf65f 100644 --- a/test/tint/extensions/parsing/duplicated_extensions.wgsl +++ b/test/tint/extensions/parsing/duplicated_extensions.wgsl @@ -3,7 +3,7 @@ enable f16; enable f16; enable f16; -@stage(fragment) +@fragment fn main() -> @location(0) vec4 { return vec4(0.1, 0.2, 0.3, 0.4); } diff --git a/test/tint/extensions/parsing/duplicated_extensions.wgsl.expected.wgsl b/test/tint/extensions/parsing/duplicated_extensions.wgsl.expected.wgsl index be5f381a0f..b20c55fb12 100644 --- a/test/tint/extensions/parsing/duplicated_extensions.wgsl.expected.wgsl +++ b/test/tint/extensions/parsing/duplicated_extensions.wgsl.expected.wgsl @@ -2,7 +2,7 @@ enable f16; enable f16; enable f16; -@stage(fragment) +@fragment fn main() -> @location(0) vec4 { return vec4(0.100000001, 0.200000003, 0.300000012, 0.400000006); } diff --git a/test/tint/layout/storage/mat2x2/f32.wgsl b/test/tint/layout/storage/mat2x2/f32.wgsl index 67afba01ca..7b9cfa8918 100644 --- a/test/tint/layout/storage/mat2x2/f32.wgsl +++ b/test/tint/layout/storage/mat2x2/f32.wgsl @@ -3,7 +3,7 @@ struct SSBO { }; @group(0) @binding(0) var ssbo : SSBO; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let v = ssbo.m; ssbo.m = v; diff --git a/test/tint/layout/storage/mat2x2/f32.wgsl.expected.wgsl b/test/tint/layout/storage/mat2x2/f32.wgsl.expected.wgsl index 0a3e9970a3..b73757845f 100644 --- a/test/tint/layout/storage/mat2x2/f32.wgsl.expected.wgsl +++ b/test/tint/layout/storage/mat2x2/f32.wgsl.expected.wgsl @@ -4,7 +4,7 @@ struct SSBO { @group(0) @binding(0) var ssbo : SSBO; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { let v = ssbo.m; ssbo.m = v; diff --git a/test/tint/layout/storage/mat2x2/stride/16.spvasm.expected.wgsl b/test/tint/layout/storage/mat2x2/stride/16.spvasm.expected.wgsl index 119ede2a86..488d5301a5 100644 --- a/test/tint/layout/storage/mat2x2/stride/16.spvasm.expected.wgsl +++ b/test/tint/layout/storage/mat2x2/stride/16.spvasm.expected.wgsl @@ -23,7 +23,7 @@ fn f_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn f() { f_1(); } diff --git a/test/tint/let/global/global.wgsl b/test/tint/let/global/global.wgsl index 9f4597ba4f..6639d5df73 100644 --- a/test/tint/let/global/global.wgsl +++ b/test/tint/let/global/global.wgsl @@ -18,7 +18,7 @@ let v7 = mat3x3(vec3(1.0, 1.0, 1.0), vec3(1.0, 1.0, 1.0), vec3 @location(0) vec4 { return vec4(0.0,0.0,0.0,0.0); } diff --git a/test/tint/let/global/global.wgsl.expected.wgsl b/test/tint/let/global/global.wgsl.expected.wgsl index b1e4d6ed5b..8f76f49c5a 100644 --- a/test/tint/let/global/global.wgsl.expected.wgsl +++ b/test/tint/let/global/global.wgsl.expected.wgsl @@ -22,7 +22,7 @@ let v8 = MyStruct(); let v9 = MyArray(); -@stage(fragment) +@fragment fn main() -> @location(0) vec4 { return vec4(0.0, 0.0, 0.0, 0.0); } diff --git a/test/tint/let/inferred/function.wgsl b/test/tint/let/inferred/function.wgsl index 48ab6f034b..b436f469de 100644 --- a/test/tint/let/inferred/function.wgsl +++ b/test/tint/let/inferred/function.wgsl @@ -33,7 +33,7 @@ fn let_decls() { let v15 = ret_MyArray(); } -@stage(fragment) +@fragment fn main() -> @location(0) vec4 { return vec4(0.0,0.0,0.0,0.0); } diff --git a/test/tint/let/inferred/function.wgsl.expected.wgsl b/test/tint/let/inferred/function.wgsl.expected.wgsl index 34c18ffec4..82654aad27 100644 --- a/test/tint/let/inferred/function.wgsl.expected.wgsl +++ b/test/tint/let/inferred/function.wgsl.expected.wgsl @@ -42,7 +42,7 @@ fn let_decls() { let v15 = ret_MyArray(); } -@stage(fragment) +@fragment fn main() -> @location(0) vec4 { return vec4(0.0, 0.0, 0.0, 0.0); } diff --git a/test/tint/loops/continue_in_switch.wgsl b/test/tint/loops/continue_in_switch.wgsl index b523874c31..475964a20e 100644 --- a/test/tint/loops/continue_in_switch.wgsl +++ b/test/tint/loops/continue_in_switch.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { for (var i : i32 = 0; i < 4; i = i + 1) { switch(i) { diff --git a/test/tint/loops/continue_in_switch.wgsl.expected.wgsl b/test/tint/loops/continue_in_switch.wgsl.expected.wgsl index ab9a0295e2..46be659452 100644 --- a/test/tint/loops/continue_in_switch.wgsl.expected.wgsl +++ b/test/tint/loops/continue_in_switch.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { for(var i : i32 = 0; (i < 4); i = (i + 1)) { switch(i) { diff --git a/test/tint/out_of_order_decls/alias/alias.wgsl b/test/tint/out_of_order_decls/alias/alias.wgsl index b1c9e66246..ab6644655c 100644 --- a/test/tint/out_of_order_decls/alias/alias.wgsl +++ b/test/tint/out_of_order_decls/alias/alias.wgsl @@ -1,7 +1,7 @@ type T1 = T2; type T2 = i32; -@stage(fragment) +@fragment fn f() { var v : T1; } diff --git a/test/tint/out_of_order_decls/alias/alias.wgsl.expected.wgsl b/test/tint/out_of_order_decls/alias/alias.wgsl.expected.wgsl index ca3ee03d48..fbb0dd4f96 100644 --- a/test/tint/out_of_order_decls/alias/alias.wgsl.expected.wgsl +++ b/test/tint/out_of_order_decls/alias/alias.wgsl.expected.wgsl @@ -2,7 +2,7 @@ type T1 = T2; type T2 = i32; -@stage(fragment) +@fragment fn f() { var v : T1; } diff --git a/test/tint/out_of_order_decls/alias/struct.wgsl b/test/tint/out_of_order_decls/alias/struct.wgsl index 923353b723..f736800c32 100644 --- a/test/tint/out_of_order_decls/alias/struct.wgsl +++ b/test/tint/out_of_order_decls/alias/struct.wgsl @@ -4,7 +4,7 @@ struct S { m : i32, } -@stage(fragment) +@fragment fn f() { var v : T; } diff --git a/test/tint/out_of_order_decls/alias/struct.wgsl.expected.wgsl b/test/tint/out_of_order_decls/alias/struct.wgsl.expected.wgsl index 923353b723..f736800c32 100644 --- a/test/tint/out_of_order_decls/alias/struct.wgsl.expected.wgsl +++ b/test/tint/out_of_order_decls/alias/struct.wgsl.expected.wgsl @@ -4,7 +4,7 @@ struct S { m : i32, } -@stage(fragment) +@fragment fn f() { var v : T; } diff --git a/test/tint/out_of_order_decls/array/alias.wgsl b/test/tint/out_of_order_decls/array/alias.wgsl index 95cec5aee3..d7c7835611 100644 --- a/test/tint/out_of_order_decls/array/alias.wgsl +++ b/test/tint/out_of_order_decls/array/alias.wgsl @@ -1,7 +1,7 @@ var A : array; type T = i32; -@stage(fragment) +@fragment fn f() { A[0] = 1; } diff --git a/test/tint/out_of_order_decls/array/alias.wgsl.expected.wgsl b/test/tint/out_of_order_decls/array/alias.wgsl.expected.wgsl index 1e581e047f..5d17f7b0f8 100644 --- a/test/tint/out_of_order_decls/array/alias.wgsl.expected.wgsl +++ b/test/tint/out_of_order_decls/array/alias.wgsl.expected.wgsl @@ -2,7 +2,7 @@ var A : array; type T = i32; -@stage(fragment) +@fragment fn f() { A[0] = 1; } diff --git a/test/tint/out_of_order_decls/array/struct.wgsl b/test/tint/out_of_order_decls/array/struct.wgsl index 70d1560b0a..47495d9bd7 100644 --- a/test/tint/out_of_order_decls/array/struct.wgsl +++ b/test/tint/out_of_order_decls/array/struct.wgsl @@ -3,7 +3,7 @@ struct S { m : i32, }; -@stage(fragment) +@fragment fn f() { A[0] = S(1); } diff --git a/test/tint/out_of_order_decls/array/struct.wgsl.expected.wgsl b/test/tint/out_of_order_decls/array/struct.wgsl.expected.wgsl index 30d0f58006..92a79ac69c 100644 --- a/test/tint/out_of_order_decls/array/struct.wgsl.expected.wgsl +++ b/test/tint/out_of_order_decls/array/struct.wgsl.expected.wgsl @@ -4,7 +4,7 @@ struct S { m : i32, } -@stage(fragment) +@fragment fn f() { A[0] = S(1); } diff --git a/test/tint/out_of_order_decls/func/func.wgsl b/test/tint/out_of_order_decls/func/func.wgsl index 1a0f2129cd..20032c4a4f 100644 --- a/test/tint/out_of_order_decls/func/func.wgsl +++ b/test/tint/out_of_order_decls/func/func.wgsl @@ -1,4 +1,4 @@ -@stage(fragment) +@fragment fn f1() { f2(); } diff --git a/test/tint/out_of_order_decls/func/func.wgsl.expected.wgsl b/test/tint/out_of_order_decls/func/func.wgsl.expected.wgsl index 1a0f2129cd..20032c4a4f 100644 --- a/test/tint/out_of_order_decls/func/func.wgsl.expected.wgsl +++ b/test/tint/out_of_order_decls/func/func.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(fragment) +@fragment fn f1() { f2(); } diff --git a/test/tint/out_of_order_decls/func/let.wgsl b/test/tint/out_of_order_decls/func/let.wgsl index 25a56c629b..6498fe721d 100644 --- a/test/tint/out_of_order_decls/func/let.wgsl +++ b/test/tint/out_of_order_decls/func/let.wgsl @@ -1,4 +1,4 @@ -@stage(fragment) +@fragment fn f() { let b = a; } diff --git a/test/tint/out_of_order_decls/func/let.wgsl.expected.wgsl b/test/tint/out_of_order_decls/func/let.wgsl.expected.wgsl index 25a56c629b..6498fe721d 100644 --- a/test/tint/out_of_order_decls/func/let.wgsl.expected.wgsl +++ b/test/tint/out_of_order_decls/func/let.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(fragment) +@fragment fn f() { let b = a; } diff --git a/test/tint/out_of_order_decls/func/type.wgsl b/test/tint/out_of_order_decls/func/type.wgsl index 4810fc1639..596ac2cc64 100644 --- a/test/tint/out_of_order_decls/func/type.wgsl +++ b/test/tint/out_of_order_decls/func/type.wgsl @@ -1,4 +1,4 @@ -@stage(fragment) +@fragment fn f() { var b : T; } diff --git a/test/tint/out_of_order_decls/func/type.wgsl.expected.wgsl b/test/tint/out_of_order_decls/func/type.wgsl.expected.wgsl index 4810fc1639..596ac2cc64 100644 --- a/test/tint/out_of_order_decls/func/type.wgsl.expected.wgsl +++ b/test/tint/out_of_order_decls/func/type.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(fragment) +@fragment fn f() { var b : T; } diff --git a/test/tint/out_of_order_decls/func/var.wgsl b/test/tint/out_of_order_decls/func/var.wgsl index d77a968c7a..4635429d4d 100644 --- a/test/tint/out_of_order_decls/func/var.wgsl +++ b/test/tint/out_of_order_decls/func/var.wgsl @@ -1,4 +1,4 @@ -@stage(fragment) +@fragment fn f() { let b = a; } diff --git a/test/tint/out_of_order_decls/func/var.wgsl.expected.wgsl b/test/tint/out_of_order_decls/func/var.wgsl.expected.wgsl index d77a968c7a..4635429d4d 100644 --- a/test/tint/out_of_order_decls/func/var.wgsl.expected.wgsl +++ b/test/tint/out_of_order_decls/func/var.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(fragment) +@fragment fn f() { let b = a; } diff --git a/test/tint/out_of_order_decls/struct/alias.wgsl b/test/tint/out_of_order_decls/struct/alias.wgsl index 57dd249b7b..84f867976d 100644 --- a/test/tint/out_of_order_decls/struct/alias.wgsl +++ b/test/tint/out_of_order_decls/struct/alias.wgsl @@ -4,7 +4,7 @@ struct S { type T = i32; -@stage(fragment) +@fragment fn f() { var v : S; } diff --git a/test/tint/out_of_order_decls/struct/alias.wgsl.expected.wgsl b/test/tint/out_of_order_decls/struct/alias.wgsl.expected.wgsl index 57dd249b7b..84f867976d 100644 --- a/test/tint/out_of_order_decls/struct/alias.wgsl.expected.wgsl +++ b/test/tint/out_of_order_decls/struct/alias.wgsl.expected.wgsl @@ -4,7 +4,7 @@ struct S { type T = i32; -@stage(fragment) +@fragment fn f() { var v : S; } diff --git a/test/tint/out_of_order_decls/struct/struct.wgsl b/test/tint/out_of_order_decls/struct/struct.wgsl index 44e20301db..3c7857950b 100644 --- a/test/tint/out_of_order_decls/struct/struct.wgsl +++ b/test/tint/out_of_order_decls/struct/struct.wgsl @@ -6,7 +6,7 @@ struct S2 { m : i32, } -@stage(fragment) +@fragment fn f() { var v : S1; } diff --git a/test/tint/out_of_order_decls/struct/struct.wgsl.expected.wgsl b/test/tint/out_of_order_decls/struct/struct.wgsl.expected.wgsl index 44e20301db..3c7857950b 100644 --- a/test/tint/out_of_order_decls/struct/struct.wgsl.expected.wgsl +++ b/test/tint/out_of_order_decls/struct/struct.wgsl.expected.wgsl @@ -6,7 +6,7 @@ struct S2 { m : i32, } -@stage(fragment) +@fragment fn f() { var v : S1; } diff --git a/test/tint/ptr_ref/access/matrix.spvasm.expected.wgsl b/test/tint/ptr_ref/access/matrix.spvasm.expected.wgsl index c5e748eda0..b91370980a 100644 --- a/test/tint/ptr_ref/access/matrix.spvasm.expected.wgsl +++ b/test/tint/ptr_ref/access/matrix.spvasm.expected.wgsl @@ -5,7 +5,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main() { main_1(); } diff --git a/test/tint/ptr_ref/access/matrix.wgsl b/test/tint/ptr_ref/access/matrix.wgsl index a085846214..de714c896c 100644 --- a/test/tint/ptr_ref/access/matrix.wgsl +++ b/test/tint/ptr_ref/access/matrix.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var m : mat3x3 = mat3x3(vec3(1., 2., 3.), vec3(4., 5., 6.), vec3(7., 8., 9.)); let v : ptr> = &m[1]; diff --git a/test/tint/ptr_ref/access/matrix.wgsl.expected.wgsl b/test/tint/ptr_ref/access/matrix.wgsl.expected.wgsl index 110e6e6f2e..4f9a3540e0 100644 --- a/test/tint/ptr_ref/access/matrix.wgsl.expected.wgsl +++ b/test/tint/ptr_ref/access/matrix.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var m : mat3x3 = mat3x3(vec3(1.0, 2.0, 3.0), vec3(4.0, 5.0, 6.0), vec3(7.0, 8.0, 9.0)); let v : ptr> = &(m[1]); diff --git a/test/tint/ptr_ref/copy/ptr_copy.spvasm.expected.wgsl b/test/tint/ptr_ref/copy/ptr_copy.spvasm.expected.wgsl index ca43748aa7..a063457ab4 100644 --- a/test/tint/ptr_ref/copy/ptr_copy.spvasm.expected.wgsl +++ b/test/tint/ptr_ref/copy/ptr_copy.spvasm.expected.wgsl @@ -3,7 +3,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main() { main_1(); } diff --git a/test/tint/ptr_ref/load/global/i32.spvasm.expected.wgsl b/test/tint/ptr_ref/load/global/i32.spvasm.expected.wgsl index 24b4dd516e..52e0e8a9fd 100644 --- a/test/tint/ptr_ref/load/global/i32.spvasm.expected.wgsl +++ b/test/tint/ptr_ref/load/global/i32.spvasm.expected.wgsl @@ -6,7 +6,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main() { main_1(); } diff --git a/test/tint/ptr_ref/load/global/i32.wgsl b/test/tint/ptr_ref/load/global/i32.wgsl index 4f620cf709..75bebb92e6 100644 --- a/test/tint/ptr_ref/load/global/i32.wgsl +++ b/test/tint/ptr_ref/load/global/i32.wgsl @@ -1,6 +1,6 @@ var I : i32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let i : i32 = I; let use : i32 = i + 1; diff --git a/test/tint/ptr_ref/load/global/i32.wgsl.expected.wgsl b/test/tint/ptr_ref/load/global/i32.wgsl.expected.wgsl index 5e1feeac37..0ac1cf86b8 100644 --- a/test/tint/ptr_ref/load/global/i32.wgsl.expected.wgsl +++ b/test/tint/ptr_ref/load/global/i32.wgsl.expected.wgsl @@ -1,6 +1,6 @@ var I : i32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let i : i32 = I; let use : i32 = (i + 1); diff --git a/test/tint/ptr_ref/load/global/struct_field.spvasm.expected.wgsl b/test/tint/ptr_ref/load/global/struct_field.spvasm.expected.wgsl index e3c0fd1e89..477c131115 100644 --- a/test/tint/ptr_ref/load/global/struct_field.spvasm.expected.wgsl +++ b/test/tint/ptr_ref/load/global/struct_field.spvasm.expected.wgsl @@ -11,7 +11,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main() { main_1(); } diff --git a/test/tint/ptr_ref/load/global/struct_field.wgsl b/test/tint/ptr_ref/load/global/struct_field.wgsl index 071ef62be9..949a6082b8 100644 --- a/test/tint/ptr_ref/load/global/struct_field.wgsl +++ b/test/tint/ptr_ref/load/global/struct_field.wgsl @@ -4,7 +4,7 @@ struct S { var V : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let i : i32 = V.i; } diff --git a/test/tint/ptr_ref/load/global/struct_field.wgsl.expected.wgsl b/test/tint/ptr_ref/load/global/struct_field.wgsl.expected.wgsl index 4813b5aaa8..a53018707e 100644 --- a/test/tint/ptr_ref/load/global/struct_field.wgsl.expected.wgsl +++ b/test/tint/ptr_ref/load/global/struct_field.wgsl.expected.wgsl @@ -4,7 +4,7 @@ struct S { var V : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let i : i32 = V.i; } diff --git a/test/tint/ptr_ref/load/local/i32.spvasm.expected.wgsl b/test/tint/ptr_ref/load/local/i32.spvasm.expected.wgsl index 6ffac578e4..e576470d59 100644 --- a/test/tint/ptr_ref/load/local/i32.spvasm.expected.wgsl +++ b/test/tint/ptr_ref/load/local/i32.spvasm.expected.wgsl @@ -6,7 +6,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main() { main_1(); } diff --git a/test/tint/ptr_ref/load/local/i32.wgsl b/test/tint/ptr_ref/load/local/i32.wgsl index 6c30f81ee2..efbe993ea9 100644 --- a/test/tint/ptr_ref/load/local/i32.wgsl +++ b/test/tint/ptr_ref/load/local/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var i : i32 = 123; let use : i32 = i + 1; diff --git a/test/tint/ptr_ref/load/local/i32.wgsl.expected.wgsl b/test/tint/ptr_ref/load/local/i32.wgsl.expected.wgsl index 587375ef98..f6f1306bf7 100644 --- a/test/tint/ptr_ref/load/local/i32.wgsl.expected.wgsl +++ b/test/tint/ptr_ref/load/local/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var i : i32 = 123; let use : i32 = (i + 1); diff --git a/test/tint/ptr_ref/load/local/ptr_function.wgsl b/test/tint/ptr_ref/load/local/ptr_function.wgsl index ddaafb2c15..7406eabcdf 100644 --- a/test/tint/ptr_ref/load/local/ptr_function.wgsl +++ b/test/tint/ptr_ref/load/local/ptr_function.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var i : i32 = 123; let p : ptr = &i; diff --git a/test/tint/ptr_ref/load/local/ptr_function.wgsl.expected.wgsl b/test/tint/ptr_ref/load/local/ptr_function.wgsl.expected.wgsl index e29289c7e9..fee777f6b0 100644 --- a/test/tint/ptr_ref/load/local/ptr_function.wgsl.expected.wgsl +++ b/test/tint/ptr_ref/load/local/ptr_function.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var i : i32 = 123; let p : ptr = &(i); diff --git a/test/tint/ptr_ref/load/local/ptr_private.wgsl b/test/tint/ptr_ref/load/local/ptr_private.wgsl index 0f59ad5946..96030aceea 100644 --- a/test/tint/ptr_ref/load/local/ptr_private.wgsl +++ b/test/tint/ptr_ref/load/local/ptr_private.wgsl @@ -1,6 +1,6 @@ var i : i32 = 123; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let p : ptr = &i; let use : i32 = *p + 1; diff --git a/test/tint/ptr_ref/load/local/ptr_private.wgsl.expected.wgsl b/test/tint/ptr_ref/load/local/ptr_private.wgsl.expected.wgsl index 9b77f46346..4ee69c8161 100644 --- a/test/tint/ptr_ref/load/local/ptr_private.wgsl.expected.wgsl +++ b/test/tint/ptr_ref/load/local/ptr_private.wgsl.expected.wgsl @@ -1,6 +1,6 @@ var i : i32 = 123; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let p : ptr = &(i); let use : i32 = (*(p) + 1); diff --git a/test/tint/ptr_ref/load/local/ptr_storage.wgsl b/test/tint/ptr_ref/load/local/ptr_storage.wgsl index b760937c93..f1bdec08b7 100644 --- a/test/tint/ptr_ref/load/local/ptr_storage.wgsl +++ b/test/tint/ptr_ref/load/local/ptr_storage.wgsl @@ -5,7 +5,7 @@ struct S { @group(0) @binding(0) var v : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let p : ptr = &v.a; let use : i32 = *p + 1; diff --git a/test/tint/ptr_ref/load/local/ptr_storage.wgsl.expected.wgsl b/test/tint/ptr_ref/load/local/ptr_storage.wgsl.expected.wgsl index 248519ad8d..8a71ac950c 100644 --- a/test/tint/ptr_ref/load/local/ptr_storage.wgsl.expected.wgsl +++ b/test/tint/ptr_ref/load/local/ptr_storage.wgsl.expected.wgsl @@ -4,7 +4,7 @@ struct S { @group(0) @binding(0) var v : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let p : ptr = &(v.a); let use : i32 = (*(p) + 1); diff --git a/test/tint/ptr_ref/load/local/ptr_uniform.wgsl b/test/tint/ptr_ref/load/local/ptr_uniform.wgsl index 749a6e826a..4f3c392b3d 100644 --- a/test/tint/ptr_ref/load/local/ptr_uniform.wgsl +++ b/test/tint/ptr_ref/load/local/ptr_uniform.wgsl @@ -5,7 +5,7 @@ struct S { @group(0) @binding(0) var v : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let p : ptr = &v.a; let use : i32 = *p + 1; diff --git a/test/tint/ptr_ref/load/local/ptr_uniform.wgsl.expected.wgsl b/test/tint/ptr_ref/load/local/ptr_uniform.wgsl.expected.wgsl index e8af559b5e..97a1b7b53b 100644 --- a/test/tint/ptr_ref/load/local/ptr_uniform.wgsl.expected.wgsl +++ b/test/tint/ptr_ref/load/local/ptr_uniform.wgsl.expected.wgsl @@ -4,7 +4,7 @@ struct S { @group(0) @binding(0) var v : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let p : ptr = &(v.a); let use : i32 = (*(p) + 1); diff --git a/test/tint/ptr_ref/load/local/ptr_workgroup.wgsl b/test/tint/ptr_ref/load/local/ptr_workgroup.wgsl index 269caa5259..d0957f2627 100644 --- a/test/tint/ptr_ref/load/local/ptr_workgroup.wgsl +++ b/test/tint/ptr_ref/load/local/ptr_workgroup.wgsl @@ -1,6 +1,6 @@ var i : i32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { i = 123; let p : ptr = &i; diff --git a/test/tint/ptr_ref/load/local/ptr_workgroup.wgsl.expected.wgsl b/test/tint/ptr_ref/load/local/ptr_workgroup.wgsl.expected.wgsl index 39ea1f58a1..4591a96cc4 100644 --- a/test/tint/ptr_ref/load/local/ptr_workgroup.wgsl.expected.wgsl +++ b/test/tint/ptr_ref/load/local/ptr_workgroup.wgsl.expected.wgsl @@ -1,6 +1,6 @@ var i : i32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { i = 123; let p : ptr = &(i); diff --git a/test/tint/ptr_ref/load/local/struct_field.spvasm.expected.wgsl b/test/tint/ptr_ref/load/local/struct_field.spvasm.expected.wgsl index 9a273cd745..2e0efd8d05 100644 --- a/test/tint/ptr_ref/load/local/struct_field.spvasm.expected.wgsl +++ b/test/tint/ptr_ref/load/local/struct_field.spvasm.expected.wgsl @@ -10,7 +10,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main() { main_1(); } diff --git a/test/tint/ptr_ref/load/local/struct_field.wgsl b/test/tint/ptr_ref/load/local/struct_field.wgsl index e2a02fbc78..1187babbfe 100644 --- a/test/tint/ptr_ref/load/local/struct_field.wgsl +++ b/test/tint/ptr_ref/load/local/struct_field.wgsl @@ -2,7 +2,7 @@ struct S { i : i32, }; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var V : S; var i : i32 = V.i; diff --git a/test/tint/ptr_ref/load/local/struct_field.wgsl.expected.wgsl b/test/tint/ptr_ref/load/local/struct_field.wgsl.expected.wgsl index 03fab9e24e..07b85a339e 100644 --- a/test/tint/ptr_ref/load/local/struct_field.wgsl.expected.wgsl +++ b/test/tint/ptr_ref/load/local/struct_field.wgsl.expected.wgsl @@ -2,7 +2,7 @@ struct S { i : i32, } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var V : S; var i : i32 = V.i; diff --git a/test/tint/ptr_ref/load/param/ptr.spvasm.expected.wgsl b/test/tint/ptr_ref/load/param/ptr.spvasm.expected.wgsl index 5c5849a2b8..7a2d592cda 100644 --- a/test/tint/ptr_ref/load/param/ptr.spvasm.expected.wgsl +++ b/test/tint/ptr_ref/load/param/ptr.spvasm.expected.wgsl @@ -11,7 +11,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main() { main_1(); } diff --git a/test/tint/ptr_ref/load/param/ptr.wgsl b/test/tint/ptr_ref/load/param/ptr.wgsl index 1dfc928153..655582063b 100644 --- a/test/tint/ptr_ref/load/param/ptr.wgsl +++ b/test/tint/ptr_ref/load/param/ptr.wgsl @@ -2,7 +2,7 @@ fn func(value : i32, pointer : ptr) -> i32 { return value + *pointer; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var i : i32 = 123; let r : i32 = func(i, &i); diff --git a/test/tint/ptr_ref/load/param/ptr.wgsl.expected.wgsl b/test/tint/ptr_ref/load/param/ptr.wgsl.expected.wgsl index 68c51dba9a..0901cad619 100644 --- a/test/tint/ptr_ref/load/param/ptr.wgsl.expected.wgsl +++ b/test/tint/ptr_ref/load/param/ptr.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn func(value : i32, pointer : ptr) -> i32 { return (value + *(pointer)); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var i : i32 = 123; let r : i32 = func(i, &(i)); diff --git a/test/tint/ptr_ref/store/global/i32.spvasm.expected.wgsl b/test/tint/ptr_ref/store/global/i32.spvasm.expected.wgsl index 949f6c1548..6db2c9655b 100644 --- a/test/tint/ptr_ref/store/global/i32.spvasm.expected.wgsl +++ b/test/tint/ptr_ref/store/global/i32.spvasm.expected.wgsl @@ -6,7 +6,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main() { main_1(); } diff --git a/test/tint/ptr_ref/store/global/i32.wgsl b/test/tint/ptr_ref/store/global/i32.wgsl index 3a5c72eb66..df189a0e58 100644 --- a/test/tint/ptr_ref/store/global/i32.wgsl +++ b/test/tint/ptr_ref/store/global/i32.wgsl @@ -1,6 +1,6 @@ var I : i32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { I = 123; // constant I = 100 + 20 + 3; // dynamic diff --git a/test/tint/ptr_ref/store/global/i32.wgsl.expected.wgsl b/test/tint/ptr_ref/store/global/i32.wgsl.expected.wgsl index 807c1cde7d..2d376fe14b 100644 --- a/test/tint/ptr_ref/store/global/i32.wgsl.expected.wgsl +++ b/test/tint/ptr_ref/store/global/i32.wgsl.expected.wgsl @@ -1,6 +1,6 @@ var I : i32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { I = 123; I = ((100 + 20) + 3); diff --git a/test/tint/ptr_ref/store/global/struct_field.spvasm.expected.wgsl b/test/tint/ptr_ref/store/global/struct_field.spvasm.expected.wgsl index b366fde6bd..e86942067b 100644 --- a/test/tint/ptr_ref/store/global/struct_field.spvasm.expected.wgsl +++ b/test/tint/ptr_ref/store/global/struct_field.spvasm.expected.wgsl @@ -9,7 +9,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main() { main_1(); } diff --git a/test/tint/ptr_ref/store/local/i32.spvasm.expected.wgsl b/test/tint/ptr_ref/store/local/i32.spvasm.expected.wgsl index e75e83bba8..1fce2c9e83 100644 --- a/test/tint/ptr_ref/store/local/i32.spvasm.expected.wgsl +++ b/test/tint/ptr_ref/store/local/i32.spvasm.expected.wgsl @@ -6,7 +6,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main() { main_1(); } diff --git a/test/tint/ptr_ref/store/local/i32.wgsl b/test/tint/ptr_ref/store/local/i32.wgsl index ea390b9171..c193f14cba 100644 --- a/test/tint/ptr_ref/store/local/i32.wgsl +++ b/test/tint/ptr_ref/store/local/i32.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var i : i32 = 123; let p : ptr = &i; diff --git a/test/tint/ptr_ref/store/local/i32.wgsl.expected.wgsl b/test/tint/ptr_ref/store/local/i32.wgsl.expected.wgsl index c5f03d5742..a39176de1d 100644 --- a/test/tint/ptr_ref/store/local/i32.wgsl.expected.wgsl +++ b/test/tint/ptr_ref/store/local/i32.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var i : i32 = 123; let p : ptr = &(i); diff --git a/test/tint/ptr_ref/store/local/struct_field.spvasm.expected.wgsl b/test/tint/ptr_ref/store/local/struct_field.spvasm.expected.wgsl index 6cf6789ca4..56ca420d35 100644 --- a/test/tint/ptr_ref/store/local/struct_field.spvasm.expected.wgsl +++ b/test/tint/ptr_ref/store/local/struct_field.spvasm.expected.wgsl @@ -8,7 +8,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main() { main_1(); } diff --git a/test/tint/ptr_ref/store/param/ptr.spvasm.expected.wgsl b/test/tint/ptr_ref/store/param/ptr.spvasm.expected.wgsl index 1ecd3293e5..0a80e4bf67 100644 --- a/test/tint/ptr_ref/store/param/ptr.spvasm.expected.wgsl +++ b/test/tint/ptr_ref/store/param/ptr.spvasm.expected.wgsl @@ -10,7 +10,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1i, 1i, 1i) +@compute @workgroup_size(1i, 1i, 1i) fn main() { main_1(); } diff --git a/test/tint/ptr_ref/store/param/ptr.wgsl b/test/tint/ptr_ref/store/param/ptr.wgsl index b23ad6f144..9adc2c6ba2 100644 --- a/test/tint/ptr_ref/store/param/ptr.wgsl +++ b/test/tint/ptr_ref/store/param/ptr.wgsl @@ -2,7 +2,7 @@ fn func(value : i32, pointer : ptr) { *pointer = value; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var i : i32 = 123; func(123, &i); diff --git a/test/tint/ptr_ref/store/param/ptr.wgsl.expected.wgsl b/test/tint/ptr_ref/store/param/ptr.wgsl.expected.wgsl index d9d6dbbe58..2955c9b0ed 100644 --- a/test/tint/ptr_ref/store/param/ptr.wgsl.expected.wgsl +++ b/test/tint/ptr_ref/store/param/ptr.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn func(value : i32, pointer : ptr) { *(pointer) = value; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var i : i32 = 123; func(123, &(i)); diff --git a/test/tint/samples/compute_boids.wgsl b/test/tint/samples/compute_boids.wgsl index fdb9386fcb..e8515a2205 100644 --- a/test/tint/samples/compute_boids.wgsl +++ b/test/tint/samples/compute_boids.wgsl @@ -14,7 +14,7 @@ // vertex shader -@stage(vertex) +@vertex fn vert_main(@location(0) a_particlePos : vec2, @location(1) a_particleVel : vec2, @location(2) a_pos : vec2) @@ -28,7 +28,7 @@ fn vert_main(@location(0) a_particlePos : vec2, // fragment shader -@stage(fragment) +@fragment fn frag_main() -> @location(0) vec4 { return vec4(1.0, 1.0, 1.0, 1.0); } @@ -58,7 +58,7 @@ struct Particle { @binding(2) @group(0) var particlesB : Particles; // https://github.com/austinEng/Project6-Vulkan-Flocking/blob/master/data/shaders/computeparticles/particle.comp -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main( @builtin(global_invocation_id) gl_GlobalInvocationID : vec3) { var index : u32 = gl_GlobalInvocationID.x; diff --git a/test/tint/samples/compute_boids.wgsl.expected.wgsl b/test/tint/samples/compute_boids.wgsl.expected.wgsl index 45ef30bae7..b41ba8cd6e 100644 --- a/test/tint/samples/compute_boids.wgsl.expected.wgsl +++ b/test/tint/samples/compute_boids.wgsl.expected.wgsl @@ -1,11 +1,11 @@ -@stage(vertex) +@vertex fn vert_main(@location(0) a_particlePos : vec2, @location(1) a_particleVel : vec2, @location(2) a_pos : vec2) -> @builtin(position) vec4 { var angle : f32 = -(atan2(a_particleVel.x, a_particleVel.y)); var pos : vec2 = vec2(((a_pos.x * cos(angle)) - (a_pos.y * sin(angle))), ((a_pos.x * sin(angle)) + (a_pos.y * cos(angle)))); return vec4((pos + a_particlePos), 0.0, 1.0); } -@stage(fragment) +@fragment fn frag_main() -> @location(0) vec4 { return vec4(1.0, 1.0, 1.0, 1.0); } @@ -35,7 +35,7 @@ struct Particles { @binding(2) @group(0) var particlesB : Particles; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn comp_main(@builtin(global_invocation_id) gl_GlobalInvocationID : vec3) { var index : u32 = gl_GlobalInvocationID.x; if ((index >= 5u)) { diff --git a/test/tint/samples/cube.wgsl b/test/tint/samples/cube.wgsl index a894a2fe05..0a93ac633b 100644 --- a/test/tint/samples/cube.wgsl +++ b/test/tint/samples/cube.wgsl @@ -29,7 +29,7 @@ struct VertexOutput { @builtin(position) Position : vec4, }; -@stage(vertex) +@vertex fn vtx_main(input : VertexInput) -> VertexOutput { var output : VertexOutput; output.Position = uniforms.modelViewProjectionMatrix * input.cur_position; @@ -39,7 +39,7 @@ fn vtx_main(input : VertexInput) -> VertexOutput { // Fragment shader -@stage(fragment) +@fragment fn frag_main(@location(0) fragColor : vec4) -> @location(0) vec4 { return fragColor; diff --git a/test/tint/samples/cube.wgsl.expected.wgsl b/test/tint/samples/cube.wgsl.expected.wgsl index 4014881329..6c36853ff5 100644 --- a/test/tint/samples/cube.wgsl.expected.wgsl +++ b/test/tint/samples/cube.wgsl.expected.wgsl @@ -18,7 +18,7 @@ struct VertexOutput { Position : vec4, } -@stage(vertex) +@vertex fn vtx_main(input : VertexInput) -> VertexOutput { var output : VertexOutput; output.Position = (uniforms.modelViewProjectionMatrix * input.cur_position); @@ -26,7 +26,7 @@ fn vtx_main(input : VertexInput) -> VertexOutput { return output; } -@stage(fragment) +@fragment fn frag_main(@location(0) fragColor : vec4) -> @location(0) vec4 { return fragColor; } diff --git a/test/tint/samples/function.wgsl b/test/tint/samples/function.wgsl index 92ffb04a0a..1987a5f4c6 100644 --- a/test/tint/samples/function.wgsl +++ b/test/tint/samples/function.wgsl @@ -16,6 +16,6 @@ fn main() -> f32 { return ((2. * 3.) - 4.) / 5.; } -@stage(compute) @workgroup_size(2) +@compute @workgroup_size(2) fn ep() { } diff --git a/test/tint/samples/function.wgsl.expected.wgsl b/test/tint/samples/function.wgsl.expected.wgsl index 5a3a80c47a..23b97bba60 100644 --- a/test/tint/samples/function.wgsl.expected.wgsl +++ b/test/tint/samples/function.wgsl.expected.wgsl @@ -2,6 +2,6 @@ fn main() -> f32 { return (((2.0 * 3.0) - 4.0) / 5.0); } -@stage(compute) @workgroup_size(2) +@compute @workgroup_size(2) fn ep() { } diff --git a/test/tint/samples/simple.wgsl b/test/tint/samples/simple.wgsl index d30b8a0792..28522e86be 100644 --- a/test/tint/samples/simple.wgsl +++ b/test/tint/samples/simple.wgsl @@ -15,7 +15,7 @@ fn bar() { } -@stage(fragment) +@fragment fn main() -> @location(0) vec4 { var a : vec2 = vec2(); bar(); diff --git a/test/tint/samples/simple.wgsl.expected.wgsl b/test/tint/samples/simple.wgsl.expected.wgsl index 83388f8899..0c37a6567d 100644 --- a/test/tint/samples/simple.wgsl.expected.wgsl +++ b/test/tint/samples/simple.wgsl.expected.wgsl @@ -1,7 +1,7 @@ fn bar() { } -@stage(fragment) +@fragment fn main() -> @location(0) vec4 { var a : vec2 = vec2(); bar(); diff --git a/test/tint/samples/simple_vertex.spvasm.expected.wgsl b/test/tint/samples/simple_vertex.spvasm.expected.wgsl index ece46723d9..773ef6451f 100644 --- a/test/tint/samples/simple_vertex.spvasm.expected.wgsl +++ b/test/tint/samples/simple_vertex.spvasm.expected.wgsl @@ -10,7 +10,7 @@ struct main_out { gl_Position : vec4, } -@stage(vertex) +@vertex fn main() -> main_out { main_1(); return main_out(gl_Position); diff --git a/test/tint/samples/triangle.wgsl b/test/tint/samples/triangle.wgsl index 69d22818db..8c6afbdd5a 100644 --- a/test/tint/samples/triangle.wgsl +++ b/test/tint/samples/triangle.wgsl @@ -18,14 +18,14 @@ let pos : array, 3> = array, 3>( vec2(-0.5, -0.5), vec2(0.5, -0.5)); -@stage(vertex) +@vertex fn vtx_main(@builtin(vertex_index) VertexIndex : u32) -> @builtin(position) vec4 { return vec4(pos[VertexIndex], 0.0, 1.0); } // Fragment shader -@stage(fragment) +@fragment fn frag_main() -> @location(0) vec4 { return vec4(1.0, 0.0, 0.0, 1.0); } diff --git a/test/tint/samples/triangle.wgsl.expected.wgsl b/test/tint/samples/triangle.wgsl.expected.wgsl index c92f0a6141..84af3b256b 100644 --- a/test/tint/samples/triangle.wgsl.expected.wgsl +++ b/test/tint/samples/triangle.wgsl.expected.wgsl @@ -1,11 +1,11 @@ let pos : array, 3> = array, 3>(vec2(0.0, 0.5), vec2(-0.5, -0.5), vec2(0.5, -0.5)); -@stage(vertex) +@vertex fn vtx_main(@builtin(vertex_index) VertexIndex : u32) -> @builtin(position) vec4 { return vec4(pos[VertexIndex], 0.0, 1.0); } -@stage(fragment) +@fragment fn frag_main() -> @location(0) vec4 { return vec4(1.0, 0.0, 0.0, 1.0); } diff --git a/test/tint/shader_io/compute_input_builtins.wgsl.expected.wgsl b/test/tint/shader_io/compute_input_builtins.wgsl.expected.wgsl index a1d31636c5..96c52bff89 100644 --- a/test/tint/shader_io/compute_input_builtins.wgsl.expected.wgsl +++ b/test/tint/shader_io/compute_input_builtins.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(@builtin(local_invocation_id) local_invocation_id : vec3, @builtin(local_invocation_index) local_invocation_index : u32, @builtin(global_invocation_id) global_invocation_id : vec3, @builtin(workgroup_id) workgroup_id : vec3, @builtin(num_workgroups) num_workgroups : vec3) { let foo : u32 = ((((local_invocation_id.x + local_invocation_index) + global_invocation_id.x) + workgroup_id.x) + num_workgroups.x); } diff --git a/test/tint/shader_io/compute_input_builtins_struct.wgsl b/test/tint/shader_io/compute_input_builtins_struct.wgsl index 336e82265e..fccdff0654 100644 --- a/test/tint/shader_io/compute_input_builtins_struct.wgsl +++ b/test/tint/shader_io/compute_input_builtins_struct.wgsl @@ -6,7 +6,7 @@ struct ComputeInputs { @builtin(num_workgroups) num_workgroups : vec3, }; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(inputs : ComputeInputs) { let foo : u32 = inputs.local_invocation_id.x + diff --git a/test/tint/shader_io/compute_input_builtins_struct.wgsl.expected.wgsl b/test/tint/shader_io/compute_input_builtins_struct.wgsl.expected.wgsl index da12569cf0..84c1a1a1f4 100644 --- a/test/tint/shader_io/compute_input_builtins_struct.wgsl.expected.wgsl +++ b/test/tint/shader_io/compute_input_builtins_struct.wgsl.expected.wgsl @@ -11,7 +11,7 @@ struct ComputeInputs { num_workgroups : vec3, } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(inputs : ComputeInputs) { let foo : u32 = ((((inputs.local_invocation_id.x + inputs.local_invocation_index) + inputs.global_invocation_id.x) + inputs.workgroup_id.x) + inputs.num_workgroups.x); } diff --git a/test/tint/shader_io/compute_input_mixed.wgsl b/test/tint/shader_io/compute_input_mixed.wgsl index 7142431abb..8b5b9c7aa3 100644 --- a/test/tint/shader_io/compute_input_mixed.wgsl +++ b/test/tint/shader_io/compute_input_mixed.wgsl @@ -5,7 +5,7 @@ struct ComputeInputs1 { @builtin(workgroup_id) workgroup_id : vec3, }; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main( inputs0 : ComputeInputs0, @builtin(local_invocation_index) local_invocation_index : u32, diff --git a/test/tint/shader_io/compute_input_mixed.wgsl.expected.wgsl b/test/tint/shader_io/compute_input_mixed.wgsl.expected.wgsl index b84448ab22..9368e0978e 100644 --- a/test/tint/shader_io/compute_input_mixed.wgsl.expected.wgsl +++ b/test/tint/shader_io/compute_input_mixed.wgsl.expected.wgsl @@ -8,7 +8,7 @@ struct ComputeInputs1 { workgroup_id : vec3, } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main(inputs0 : ComputeInputs0, @builtin(local_invocation_index) local_invocation_index : u32, @builtin(global_invocation_id) global_invocation_id : vec3, inputs1 : ComputeInputs1) { let foo : u32 = (((inputs0.local_invocation_id.x + local_invocation_index) + global_invocation_id.x) + inputs1.workgroup_id.x); } diff --git a/test/tint/shader_io/fragment_input_builtins.wgsl b/test/tint/shader_io/fragment_input_builtins.wgsl index db717eb8e4..5e4acd4e6c 100644 --- a/test/tint/shader_io/fragment_input_builtins.wgsl +++ b/test/tint/shader_io/fragment_input_builtins.wgsl @@ -1,4 +1,4 @@ -@stage(fragment) +@fragment fn main( @builtin(position) position : vec4, @builtin(front_facing) front_facing : bool, diff --git a/test/tint/shader_io/fragment_input_builtins.wgsl.expected.wgsl b/test/tint/shader_io/fragment_input_builtins.wgsl.expected.wgsl index 92dfb414b3..d2bd785b74 100644 --- a/test/tint/shader_io/fragment_input_builtins.wgsl.expected.wgsl +++ b/test/tint/shader_io/fragment_input_builtins.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(fragment) +@fragment fn main(@builtin(position) position : vec4, @builtin(front_facing) front_facing : bool, @builtin(sample_index) sample_index : u32, @builtin(sample_mask) sample_mask : u32) { if (front_facing) { let foo : vec4 = position; diff --git a/test/tint/shader_io/fragment_input_builtins_struct.wgsl b/test/tint/shader_io/fragment_input_builtins_struct.wgsl index abaa641dd6..e05a5225a9 100644 --- a/test/tint/shader_io/fragment_input_builtins_struct.wgsl +++ b/test/tint/shader_io/fragment_input_builtins_struct.wgsl @@ -5,7 +5,7 @@ struct FragmentInputs { @builtin(sample_mask) sample_mask : u32, }; -@stage(fragment) +@fragment fn main(inputs : FragmentInputs) { if (inputs.front_facing) { let foo : vec4 = inputs.position; diff --git a/test/tint/shader_io/fragment_input_builtins_struct.wgsl.expected.wgsl b/test/tint/shader_io/fragment_input_builtins_struct.wgsl.expected.wgsl index 2084cac303..157c2e2f35 100644 --- a/test/tint/shader_io/fragment_input_builtins_struct.wgsl.expected.wgsl +++ b/test/tint/shader_io/fragment_input_builtins_struct.wgsl.expected.wgsl @@ -9,7 +9,7 @@ struct FragmentInputs { sample_mask : u32, } -@stage(fragment) +@fragment fn main(inputs : FragmentInputs) { if (inputs.front_facing) { let foo : vec4 = inputs.position; diff --git a/test/tint/shader_io/fragment_input_locations.wgsl b/test/tint/shader_io/fragment_input_locations.wgsl index b33cfe4d8c..117c697ef3 100644 --- a/test/tint/shader_io/fragment_input_locations.wgsl +++ b/test/tint/shader_io/fragment_input_locations.wgsl @@ -1,4 +1,4 @@ -@stage(fragment) +@fragment fn main( @location(0) @interpolate(flat) loc0 : i32, @location(1) @interpolate(flat) loc1 : u32, diff --git a/test/tint/shader_io/fragment_input_locations.wgsl.expected.wgsl b/test/tint/shader_io/fragment_input_locations.wgsl.expected.wgsl index a4cd5026ca..15cf856ae8 100644 --- a/test/tint/shader_io/fragment_input_locations.wgsl.expected.wgsl +++ b/test/tint/shader_io/fragment_input_locations.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(fragment) +@fragment fn main(@location(0) @interpolate(flat) loc0 : i32, @location(1) @interpolate(flat) loc1 : u32, @location(2) loc2 : f32, @location(3) loc3 : vec4) { let i : i32 = loc0; let u : u32 = loc1; diff --git a/test/tint/shader_io/fragment_input_locations_struct.wgsl b/test/tint/shader_io/fragment_input_locations_struct.wgsl index 50fb1f7e34..fe3bd0622c 100644 --- a/test/tint/shader_io/fragment_input_locations_struct.wgsl +++ b/test/tint/shader_io/fragment_input_locations_struct.wgsl @@ -5,7 +5,7 @@ struct FragmentInputs { @location(3) loc3 : vec4, }; -@stage(fragment) +@fragment fn main(inputs : FragmentInputs) { let i : i32 = inputs.loc0; let u : u32 = inputs.loc1; diff --git a/test/tint/shader_io/fragment_input_locations_struct.wgsl.expected.wgsl b/test/tint/shader_io/fragment_input_locations_struct.wgsl.expected.wgsl index 4cbe8003cb..fc508cee33 100644 --- a/test/tint/shader_io/fragment_input_locations_struct.wgsl.expected.wgsl +++ b/test/tint/shader_io/fragment_input_locations_struct.wgsl.expected.wgsl @@ -9,7 +9,7 @@ struct FragmentInputs { loc3 : vec4, } -@stage(fragment) +@fragment fn main(inputs : FragmentInputs) { let i : i32 = inputs.loc0; let u : u32 = inputs.loc1; diff --git a/test/tint/shader_io/fragment_input_mixed.wgsl b/test/tint/shader_io/fragment_input_mixed.wgsl index 8a8c8e26d6..1fb20a76a6 100644 --- a/test/tint/shader_io/fragment_input_mixed.wgsl +++ b/test/tint/shader_io/fragment_input_mixed.wgsl @@ -7,7 +7,7 @@ struct FragmentInputs1 { @builtin(sample_mask) sample_mask : u32, }; -@stage(fragment) +@fragment fn main( inputs0 : FragmentInputs0, @builtin(front_facing) front_facing : bool, diff --git a/test/tint/shader_io/fragment_input_mixed.wgsl.expected.wgsl b/test/tint/shader_io/fragment_input_mixed.wgsl.expected.wgsl index 1734452fbb..8625a412f8 100644 --- a/test/tint/shader_io/fragment_input_mixed.wgsl.expected.wgsl +++ b/test/tint/shader_io/fragment_input_mixed.wgsl.expected.wgsl @@ -12,7 +12,7 @@ struct FragmentInputs1 { sample_mask : u32, } -@stage(fragment) +@fragment fn main(inputs0 : FragmentInputs0, @builtin(front_facing) front_facing : bool, @location(1) @interpolate(flat) loc1 : u32, @builtin(sample_index) sample_index : u32, inputs1 : FragmentInputs1, @location(2) loc2 : f32) { if (front_facing) { let foo : vec4 = inputs0.position; diff --git a/test/tint/shader_io/fragment_output_builtins.wgsl b/test/tint/shader_io/fragment_output_builtins.wgsl index 914cbad9e3..4dd4d68aeb 100644 --- a/test/tint/shader_io/fragment_output_builtins.wgsl +++ b/test/tint/shader_io/fragment_output_builtins.wgsl @@ -1,9 +1,9 @@ -@stage(fragment) +@fragment fn main1() -> @builtin(frag_depth) f32 { return 1.0; } -@stage(fragment) +@fragment fn main2() -> @builtin(sample_mask) u32 { return 1u; } diff --git a/test/tint/shader_io/fragment_output_builtins.wgsl.expected.wgsl b/test/tint/shader_io/fragment_output_builtins.wgsl.expected.wgsl index 914cbad9e3..4dd4d68aeb 100644 --- a/test/tint/shader_io/fragment_output_builtins.wgsl.expected.wgsl +++ b/test/tint/shader_io/fragment_output_builtins.wgsl.expected.wgsl @@ -1,9 +1,9 @@ -@stage(fragment) +@fragment fn main1() -> @builtin(frag_depth) f32 { return 1.0; } -@stage(fragment) +@fragment fn main2() -> @builtin(sample_mask) u32 { return 1u; } diff --git a/test/tint/shader_io/fragment_output_builtins_struct.wgsl b/test/tint/shader_io/fragment_output_builtins_struct.wgsl index 8ef212d0e3..117859c042 100644 --- a/test/tint/shader_io/fragment_output_builtins_struct.wgsl +++ b/test/tint/shader_io/fragment_output_builtins_struct.wgsl @@ -3,7 +3,7 @@ struct FragmentOutputs { @builtin(sample_mask) sample_mask : u32, }; -@stage(fragment) +@fragment fn main() -> FragmentOutputs { return FragmentOutputs(1.0, 1u); } diff --git a/test/tint/shader_io/fragment_output_builtins_struct.wgsl.expected.wgsl b/test/tint/shader_io/fragment_output_builtins_struct.wgsl.expected.wgsl index 500a094b45..b81cf4788a 100644 --- a/test/tint/shader_io/fragment_output_builtins_struct.wgsl.expected.wgsl +++ b/test/tint/shader_io/fragment_output_builtins_struct.wgsl.expected.wgsl @@ -5,7 +5,7 @@ struct FragmentOutputs { sample_mask : u32, } -@stage(fragment) +@fragment fn main() -> FragmentOutputs { return FragmentOutputs(1.0, 1u); } diff --git a/test/tint/shader_io/fragment_output_locations.wgsl b/test/tint/shader_io/fragment_output_locations.wgsl index 239589d57d..632fc4249e 100644 --- a/test/tint/shader_io/fragment_output_locations.wgsl +++ b/test/tint/shader_io/fragment_output_locations.wgsl @@ -1,19 +1,19 @@ -@stage(fragment) +@fragment fn main0() -> @location(0) i32 { return 1; } -@stage(fragment) +@fragment fn main1() -> @location(1) u32 { return 1u; } -@stage(fragment) +@fragment fn main2() -> @location(2) f32 { return 1.0; } -@stage(fragment) +@fragment fn main3() -> @location(3) vec4 { return vec4(1.0, 2.0, 3.0, 4.0); } diff --git a/test/tint/shader_io/fragment_output_locations.wgsl.expected.wgsl b/test/tint/shader_io/fragment_output_locations.wgsl.expected.wgsl index 239589d57d..632fc4249e 100644 --- a/test/tint/shader_io/fragment_output_locations.wgsl.expected.wgsl +++ b/test/tint/shader_io/fragment_output_locations.wgsl.expected.wgsl @@ -1,19 +1,19 @@ -@stage(fragment) +@fragment fn main0() -> @location(0) i32 { return 1; } -@stage(fragment) +@fragment fn main1() -> @location(1) u32 { return 1u; } -@stage(fragment) +@fragment fn main2() -> @location(2) f32 { return 1.0; } -@stage(fragment) +@fragment fn main3() -> @location(3) vec4 { return vec4(1.0, 2.0, 3.0, 4.0); } diff --git a/test/tint/shader_io/fragment_output_locations_struct.wgsl b/test/tint/shader_io/fragment_output_locations_struct.wgsl index 440a4ad901..5d51299bb5 100644 --- a/test/tint/shader_io/fragment_output_locations_struct.wgsl +++ b/test/tint/shader_io/fragment_output_locations_struct.wgsl @@ -5,7 +5,7 @@ struct FragmentOutputs { @location(3) loc3 : vec4, }; -@stage(fragment) +@fragment fn main() -> FragmentOutputs { return FragmentOutputs(1, 1u, 1.0, vec4(1.0, 2.0, 3.0, 4.0)); } diff --git a/test/tint/shader_io/fragment_output_locations_struct.wgsl.expected.wgsl b/test/tint/shader_io/fragment_output_locations_struct.wgsl.expected.wgsl index b1eee07f85..0ec8340493 100644 --- a/test/tint/shader_io/fragment_output_locations_struct.wgsl.expected.wgsl +++ b/test/tint/shader_io/fragment_output_locations_struct.wgsl.expected.wgsl @@ -9,7 +9,7 @@ struct FragmentOutputs { loc3 : vec4, } -@stage(fragment) +@fragment fn main() -> FragmentOutputs { return FragmentOutputs(1, 1u, 1.0, vec4(1.0, 2.0, 3.0, 4.0)); } diff --git a/test/tint/shader_io/fragment_output_mixed.wgsl b/test/tint/shader_io/fragment_output_mixed.wgsl index 49180ffba7..80af48dacc 100644 --- a/test/tint/shader_io/fragment_output_mixed.wgsl +++ b/test/tint/shader_io/fragment_output_mixed.wgsl @@ -7,7 +7,7 @@ struct FragmentOutputs { @location(3) loc3 : vec4, }; -@stage(fragment) +@fragment fn main() -> FragmentOutputs { return FragmentOutputs(1, 2.0, 1u, 1.0, 2u, vec4(1.0, 2.0, 3.0, 4.0)); } diff --git a/test/tint/shader_io/fragment_output_mixed.wgsl.expected.wgsl b/test/tint/shader_io/fragment_output_mixed.wgsl.expected.wgsl index b622a1657d..0177394e22 100644 --- a/test/tint/shader_io/fragment_output_mixed.wgsl.expected.wgsl +++ b/test/tint/shader_io/fragment_output_mixed.wgsl.expected.wgsl @@ -13,7 +13,7 @@ struct FragmentOutputs { loc3 : vec4, } -@stage(fragment) +@fragment fn main() -> FragmentOutputs { return FragmentOutputs(1, 2.0, 1u, 1.0, 2u, vec4(1.0, 2.0, 3.0, 4.0)); } diff --git a/test/tint/shader_io/interpolate_input_parameters.wgsl b/test/tint/shader_io/interpolate_input_parameters.wgsl index 3e350ea55a..599fe9c883 100644 --- a/test/tint/shader_io/interpolate_input_parameters.wgsl +++ b/test/tint/shader_io/interpolate_input_parameters.wgsl @@ -1,4 +1,4 @@ -@stage(fragment) +@fragment fn main( @location(0) none : f32, @location(1) @interpolate(flat) flat : f32, diff --git a/test/tint/shader_io/interpolate_input_parameters.wgsl.expected.wgsl b/test/tint/shader_io/interpolate_input_parameters.wgsl.expected.wgsl index 8dbd5b19ed..df06a212c2 100644 --- a/test/tint/shader_io/interpolate_input_parameters.wgsl.expected.wgsl +++ b/test/tint/shader_io/interpolate_input_parameters.wgsl.expected.wgsl @@ -1,3 +1,3 @@ -@stage(fragment) +@fragment fn main(@location(0) none : f32, @location(1) @interpolate(flat) flat : f32, @location(2) @interpolate(perspective, center) perspective_center : f32, @location(3) @interpolate(perspective, centroid) perspective_centroid : f32, @location(4) @interpolate(perspective, sample) perspective_sample : f32, @location(5) @interpolate(linear, center) linear_center : f32, @location(6) @interpolate(linear, centroid) linear_centroid : f32, @location(7) @interpolate(linear, sample) linear_sample : f32) { } diff --git a/test/tint/shader_io/interpolate_input_struct.wgsl b/test/tint/shader_io/interpolate_input_struct.wgsl index 46546a4f70..93cfec8944 100644 --- a/test/tint/shader_io/interpolate_input_struct.wgsl +++ b/test/tint/shader_io/interpolate_input_struct.wgsl @@ -9,6 +9,6 @@ struct In { @location(7) @interpolate(linear, sample) linear_sample : f32, }; -@stage(fragment) +@fragment fn main(in : In) { } diff --git a/test/tint/shader_io/interpolate_input_struct.wgsl.expected.wgsl b/test/tint/shader_io/interpolate_input_struct.wgsl.expected.wgsl index d1b2b5250d..d6f2f045dd 100644 --- a/test/tint/shader_io/interpolate_input_struct.wgsl.expected.wgsl +++ b/test/tint/shader_io/interpolate_input_struct.wgsl.expected.wgsl @@ -17,6 +17,6 @@ struct In { linear_sample : f32, } -@stage(fragment) +@fragment fn main(in : In) { } diff --git a/test/tint/shader_io/interpolate_integers.wgsl b/test/tint/shader_io/interpolate_integers.wgsl index 2d93727de7..bad4d854e2 100644 --- a/test/tint/shader_io/interpolate_integers.wgsl +++ b/test/tint/shader_io/interpolate_integers.wgsl @@ -6,12 +6,12 @@ struct Interface { @builtin(position) pos : vec4, }; -@stage(vertex) +@vertex fn vert_main() -> Interface { return Interface(); } -@stage(fragment) +@fragment fn frag_main(inputs : Interface) -> @location(0) i32 { return inputs.i; } diff --git a/test/tint/shader_io/interpolate_integers.wgsl.expected.wgsl b/test/tint/shader_io/interpolate_integers.wgsl.expected.wgsl index 65f15f976a..fd38b42c42 100644 --- a/test/tint/shader_io/interpolate_integers.wgsl.expected.wgsl +++ b/test/tint/shader_io/interpolate_integers.wgsl.expected.wgsl @@ -11,12 +11,12 @@ struct Interface { pos : vec4, } -@stage(vertex) +@vertex fn vert_main() -> Interface { return Interface(); } -@stage(fragment) +@fragment fn frag_main(inputs : Interface) -> @location(0) i32 { return inputs.i; } diff --git a/test/tint/shader_io/interpolate_return_struct.wgsl b/test/tint/shader_io/interpolate_return_struct.wgsl index b5c67403ad..966d0b7718 100644 --- a/test/tint/shader_io/interpolate_return_struct.wgsl +++ b/test/tint/shader_io/interpolate_return_struct.wgsl @@ -10,7 +10,7 @@ struct Out { @location(7) @interpolate(linear, sample) linear_sample : f32, }; -@stage(vertex) +@vertex fn main() -> Out { return Out(); } diff --git a/test/tint/shader_io/interpolate_return_struct.wgsl.expected.wgsl b/test/tint/shader_io/interpolate_return_struct.wgsl.expected.wgsl index d224352fa1..a9f9705814 100644 --- a/test/tint/shader_io/interpolate_return_struct.wgsl.expected.wgsl +++ b/test/tint/shader_io/interpolate_return_struct.wgsl.expected.wgsl @@ -19,7 +19,7 @@ struct Out { linear_sample : f32, } -@stage(vertex) +@vertex fn main() -> Out { return Out(); } diff --git a/test/tint/shader_io/invariant.wgsl b/test/tint/shader_io/invariant.wgsl index 9abbc940d5..534c2f05b6 100644 --- a/test/tint/shader_io/invariant.wgsl +++ b/test/tint/shader_io/invariant.wgsl @@ -1,4 +1,4 @@ -@stage(vertex) +@vertex fn main() -> @builtin(position) @invariant vec4 { return vec4(); } diff --git a/test/tint/shader_io/invariant.wgsl.expected.wgsl b/test/tint/shader_io/invariant.wgsl.expected.wgsl index 9abbc940d5..534c2f05b6 100644 --- a/test/tint/shader_io/invariant.wgsl.expected.wgsl +++ b/test/tint/shader_io/invariant.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(vertex) +@vertex fn main() -> @builtin(position) @invariant vec4 { return vec4(); } diff --git a/test/tint/shader_io/invariant_struct_member.wgsl b/test/tint/shader_io/invariant_struct_member.wgsl index 64f32cef5b..fc58fd39a8 100644 --- a/test/tint/shader_io/invariant_struct_member.wgsl +++ b/test/tint/shader_io/invariant_struct_member.wgsl @@ -2,7 +2,7 @@ struct Out { @builtin(position) @invariant pos : vec4, }; -@stage(vertex) +@vertex fn main() -> Out { return Out(); } diff --git a/test/tint/shader_io/invariant_struct_member.wgsl.expected.wgsl b/test/tint/shader_io/invariant_struct_member.wgsl.expected.wgsl index aa9543136d..e3247ddb6f 100644 --- a/test/tint/shader_io/invariant_struct_member.wgsl.expected.wgsl +++ b/test/tint/shader_io/invariant_struct_member.wgsl.expected.wgsl @@ -3,7 +3,7 @@ struct Out { pos : vec4, } -@stage(vertex) +@vertex fn main() -> Out { return Out(); } diff --git a/test/tint/shader_io/shared_struct_different_stages.wgsl b/test/tint/shader_io/shared_struct_different_stages.wgsl index fc2e7ff24d..3d9feaf1c9 100644 --- a/test/tint/shader_io/shared_struct_different_stages.wgsl +++ b/test/tint/shader_io/shared_struct_different_stages.wgsl @@ -4,12 +4,12 @@ struct Interface { @builtin(position) pos : vec4, }; -@stage(vertex) +@vertex fn vert_main() -> Interface { return Interface(0.4, 0.6, vec4()); } -@stage(fragment) +@fragment fn frag_main(colors : Interface) { let r : f32 = colors.col1; let g : f32 = colors.col2; diff --git a/test/tint/shader_io/shared_struct_different_stages.wgsl.expected.wgsl b/test/tint/shader_io/shared_struct_different_stages.wgsl.expected.wgsl index ebf8b86943..4c3967d332 100644 --- a/test/tint/shader_io/shared_struct_different_stages.wgsl.expected.wgsl +++ b/test/tint/shader_io/shared_struct_different_stages.wgsl.expected.wgsl @@ -7,12 +7,12 @@ struct Interface { pos : vec4, } -@stage(vertex) +@vertex fn vert_main() -> Interface { return Interface(0.400000006, 0.600000024, vec4()); } -@stage(fragment) +@fragment fn frag_main(colors : Interface) { let r : f32 = colors.col1; let g : f32 = colors.col2; diff --git a/test/tint/shader_io/shared_struct_helper_function.wgsl b/test/tint/shader_io/shared_struct_helper_function.wgsl index c6bc37b1cb..2dbc8afe70 100644 --- a/test/tint/shader_io/shared_struct_helper_function.wgsl +++ b/test/tint/shader_io/shared_struct_helper_function.wgsl @@ -7,12 +7,12 @@ fn foo(x : f32) -> VertexOutput { return VertexOutput(vec4(x, x, x, 1.0), 42); } -@stage(vertex) +@vertex fn vert_main1() -> VertexOutput { return foo(0.5); } -@stage(vertex) +@vertex fn vert_main2() -> VertexOutput { return foo(0.25); } diff --git a/test/tint/shader_io/shared_struct_helper_function.wgsl.expected.wgsl b/test/tint/shader_io/shared_struct_helper_function.wgsl.expected.wgsl index 57e1e1b0a5..fe18db55ac 100644 --- a/test/tint/shader_io/shared_struct_helper_function.wgsl.expected.wgsl +++ b/test/tint/shader_io/shared_struct_helper_function.wgsl.expected.wgsl @@ -9,12 +9,12 @@ fn foo(x : f32) -> VertexOutput { return VertexOutput(vec4(x, x, x, 1.0), 42); } -@stage(vertex) +@vertex fn vert_main1() -> VertexOutput { return foo(0.5); } -@stage(vertex) +@vertex fn vert_main2() -> VertexOutput { return foo(0.25); } diff --git a/test/tint/shader_io/shared_struct_storage_buffer.wgsl b/test/tint/shader_io/shared_struct_storage_buffer.wgsl index d54736564d..d5f239a620 100644 --- a/test/tint/shader_io/shared_struct_storage_buffer.wgsl +++ b/test/tint/shader_io/shared_struct_storage_buffer.wgsl @@ -7,7 +7,7 @@ struct S { @group(0) @binding(0) var output : S; -@stage(fragment) +@fragment fn frag_main(input : S) { let f : f32 = input.f; let u : u32 = input.u; diff --git a/test/tint/shader_io/shared_struct_storage_buffer.wgsl.expected.wgsl b/test/tint/shader_io/shared_struct_storage_buffer.wgsl.expected.wgsl index d8c3ad7c5c..38fe6ef54d 100644 --- a/test/tint/shader_io/shared_struct_storage_buffer.wgsl.expected.wgsl +++ b/test/tint/shader_io/shared_struct_storage_buffer.wgsl.expected.wgsl @@ -9,7 +9,7 @@ struct S { @group(0) @binding(0) var output : S; -@stage(fragment) +@fragment fn frag_main(input : S) { let f : f32 = input.f; let u : u32 = input.u; diff --git a/test/tint/shader_io/vertex_input_builtins.wgsl b/test/tint/shader_io/vertex_input_builtins.wgsl index a73ae88b9e..8043581b61 100644 --- a/test/tint/shader_io/vertex_input_builtins.wgsl +++ b/test/tint/shader_io/vertex_input_builtins.wgsl @@ -1,4 +1,4 @@ -@stage(vertex) +@vertex fn main( @builtin(vertex_index) vertex_index : u32, @builtin(instance_index) instance_index : u32, diff --git a/test/tint/shader_io/vertex_input_builtins.wgsl.expected.wgsl b/test/tint/shader_io/vertex_input_builtins.wgsl.expected.wgsl index 9955c16160..0b45ee725a 100644 --- a/test/tint/shader_io/vertex_input_builtins.wgsl.expected.wgsl +++ b/test/tint/shader_io/vertex_input_builtins.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(vertex) +@vertex fn main(@builtin(vertex_index) vertex_index : u32, @builtin(instance_index) instance_index : u32) -> @builtin(position) vec4 { let foo : u32 = (vertex_index + instance_index); return vec4(); diff --git a/test/tint/shader_io/vertex_input_builtins_struct.wgsl b/test/tint/shader_io/vertex_input_builtins_struct.wgsl index ceeab778ed..0db20a5015 100644 --- a/test/tint/shader_io/vertex_input_builtins_struct.wgsl +++ b/test/tint/shader_io/vertex_input_builtins_struct.wgsl @@ -3,7 +3,7 @@ struct VertexInputs { @builtin(instance_index) instance_index : u32, }; -@stage(vertex) +@vertex fn main(inputs : VertexInputs) -> @builtin(position) vec4 { let foo : u32 = inputs.vertex_index + inputs.instance_index; return vec4(); diff --git a/test/tint/shader_io/vertex_input_builtins_struct.wgsl.expected.wgsl b/test/tint/shader_io/vertex_input_builtins_struct.wgsl.expected.wgsl index 579d914220..71175a858f 100644 --- a/test/tint/shader_io/vertex_input_builtins_struct.wgsl.expected.wgsl +++ b/test/tint/shader_io/vertex_input_builtins_struct.wgsl.expected.wgsl @@ -5,7 +5,7 @@ struct VertexInputs { instance_index : u32, } -@stage(vertex) +@vertex fn main(inputs : VertexInputs) -> @builtin(position) vec4 { let foo : u32 = (inputs.vertex_index + inputs.instance_index); return vec4(); diff --git a/test/tint/shader_io/vertex_input_locations.wgsl b/test/tint/shader_io/vertex_input_locations.wgsl index 3627e13212..0bf249fa6a 100644 --- a/test/tint/shader_io/vertex_input_locations.wgsl +++ b/test/tint/shader_io/vertex_input_locations.wgsl @@ -1,4 +1,4 @@ -@stage(vertex) +@vertex fn main( @location(0) loc0 : i32, @location(1) loc1 : u32, diff --git a/test/tint/shader_io/vertex_input_locations.wgsl.expected.wgsl b/test/tint/shader_io/vertex_input_locations.wgsl.expected.wgsl index 4964dc78c1..af986ac1ec 100644 --- a/test/tint/shader_io/vertex_input_locations.wgsl.expected.wgsl +++ b/test/tint/shader_io/vertex_input_locations.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(vertex) +@vertex fn main(@location(0) loc0 : i32, @location(1) loc1 : u32, @location(2) loc2 : f32, @location(3) loc3 : vec4) -> @builtin(position) vec4 { let i : i32 = loc0; let u : u32 = loc1; diff --git a/test/tint/shader_io/vertex_input_locations_struct.wgsl b/test/tint/shader_io/vertex_input_locations_struct.wgsl index d2afb8cc46..16c86b16dc 100644 --- a/test/tint/shader_io/vertex_input_locations_struct.wgsl +++ b/test/tint/shader_io/vertex_input_locations_struct.wgsl @@ -5,7 +5,7 @@ struct VertexInputs { @location(3) loc3 : vec4, }; -@stage(vertex) +@vertex fn main(inputs : VertexInputs) -> @builtin(position) vec4 { let i : i32 = inputs.loc0; let u : u32 = inputs.loc1; diff --git a/test/tint/shader_io/vertex_input_locations_struct.wgsl.expected.wgsl b/test/tint/shader_io/vertex_input_locations_struct.wgsl.expected.wgsl index 7cf656dab2..5ccc7d244a 100644 --- a/test/tint/shader_io/vertex_input_locations_struct.wgsl.expected.wgsl +++ b/test/tint/shader_io/vertex_input_locations_struct.wgsl.expected.wgsl @@ -9,7 +9,7 @@ struct VertexInputs { loc3 : vec4, } -@stage(vertex) +@vertex fn main(inputs : VertexInputs) -> @builtin(position) vec4 { let i : i32 = inputs.loc0; let u : u32 = inputs.loc1; diff --git a/test/tint/shader_io/vertex_input_mixed.wgsl b/test/tint/shader_io/vertex_input_mixed.wgsl index 5c60fa220e..0014192623 100644 --- a/test/tint/shader_io/vertex_input_mixed.wgsl +++ b/test/tint/shader_io/vertex_input_mixed.wgsl @@ -7,7 +7,7 @@ struct VertexInputs1 { @location(3) loc3 : vec4, }; -@stage(vertex) +@vertex fn main( inputs0 : VertexInputs0, @location(1) loc1 : u32, diff --git a/test/tint/shader_io/vertex_input_mixed.wgsl.expected.wgsl b/test/tint/shader_io/vertex_input_mixed.wgsl.expected.wgsl index fc2b4d6aef..931404b372 100644 --- a/test/tint/shader_io/vertex_input_mixed.wgsl.expected.wgsl +++ b/test/tint/shader_io/vertex_input_mixed.wgsl.expected.wgsl @@ -12,7 +12,7 @@ struct VertexInputs1 { loc3 : vec4, } -@stage(vertex) +@vertex fn main(inputs0 : VertexInputs0, @location(1) loc1 : u32, @builtin(instance_index) instance_index : u32, inputs1 : VertexInputs1) -> @builtin(position) vec4 { let foo : u32 = (inputs0.vertex_index + instance_index); let i : i32 = inputs0.loc0; diff --git a/test/tint/shader_io/vertex_output_builtins.wgsl b/test/tint/shader_io/vertex_output_builtins.wgsl index d606b44910..3aca32e445 100644 --- a/test/tint/shader_io/vertex_output_builtins.wgsl +++ b/test/tint/shader_io/vertex_output_builtins.wgsl @@ -1,4 +1,4 @@ -@stage(vertex) +@vertex fn main() -> @builtin(position) vec4 { return vec4(1.0, 2.0, 3.0, 4.0); } diff --git a/test/tint/shader_io/vertex_output_builtins.wgsl.expected.wgsl b/test/tint/shader_io/vertex_output_builtins.wgsl.expected.wgsl index d606b44910..3aca32e445 100644 --- a/test/tint/shader_io/vertex_output_builtins.wgsl.expected.wgsl +++ b/test/tint/shader_io/vertex_output_builtins.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(vertex) +@vertex fn main() -> @builtin(position) vec4 { return vec4(1.0, 2.0, 3.0, 4.0); } diff --git a/test/tint/shader_io/vertex_output_builtins_struct.wgsl b/test/tint/shader_io/vertex_output_builtins_struct.wgsl index 7f5d2a7f0d..906a0ef9a9 100644 --- a/test/tint/shader_io/vertex_output_builtins_struct.wgsl +++ b/test/tint/shader_io/vertex_output_builtins_struct.wgsl @@ -2,7 +2,7 @@ struct VertexOutputs { @builtin(position) position : vec4, }; -@stage(vertex) +@vertex fn main() -> VertexOutputs { return VertexOutputs(vec4(1.0, 2.0, 3.0, 4.0)); } diff --git a/test/tint/shader_io/vertex_output_builtins_struct.wgsl.expected.wgsl b/test/tint/shader_io/vertex_output_builtins_struct.wgsl.expected.wgsl index 5fe2d8f9b1..85ac952748 100644 --- a/test/tint/shader_io/vertex_output_builtins_struct.wgsl.expected.wgsl +++ b/test/tint/shader_io/vertex_output_builtins_struct.wgsl.expected.wgsl @@ -3,7 +3,7 @@ struct VertexOutputs { position : vec4, } -@stage(vertex) +@vertex fn main() -> VertexOutputs { return VertexOutputs(vec4(1.0, 2.0, 3.0, 4.0)); } diff --git a/test/tint/shader_io/vertex_output_locations_struct.wgsl b/test/tint/shader_io/vertex_output_locations_struct.wgsl index a13fd72b69..0fcdbfb0be 100644 --- a/test/tint/shader_io/vertex_output_locations_struct.wgsl +++ b/test/tint/shader_io/vertex_output_locations_struct.wgsl @@ -6,7 +6,7 @@ struct VertexOutputs { @builtin(position) position : vec4, }; -@stage(vertex) +@vertex fn main() -> VertexOutputs { return VertexOutputs(1, 1u, 1.0, vec4(1.0, 2.0, 3.0, 4.0), vec4()); } diff --git a/test/tint/shader_io/vertex_output_locations_struct.wgsl.expected.wgsl b/test/tint/shader_io/vertex_output_locations_struct.wgsl.expected.wgsl index b117eccc5d..65ffd0aa8c 100644 --- a/test/tint/shader_io/vertex_output_locations_struct.wgsl.expected.wgsl +++ b/test/tint/shader_io/vertex_output_locations_struct.wgsl.expected.wgsl @@ -11,7 +11,7 @@ struct VertexOutputs { position : vec4, } -@stage(vertex) +@vertex fn main() -> VertexOutputs { return VertexOutputs(1, 1u, 1.0, vec4(1.0, 2.0, 3.0, 4.0), vec4()); } diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_body.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_body.wgsl index 3535da95ff..5f45701401 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_body.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_body.wgsl @@ -12,7 +12,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_body.wgsl.expected.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_body.wgsl.expected.wgsl index 55968e24d3..7a6a4068b2 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_body.wgsl.expected.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_body.wgsl.expected.wgsl @@ -12,7 +12,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_continuing.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_continuing.wgsl index 2e4d57b7d6..13774ab9f0 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_continuing.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_continuing.wgsl @@ -12,7 +12,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_continuing.wgsl.expected.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_continuing.wgsl.expected.wgsl index 9e3319d693..38fa45c35a 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_continuing.wgsl.expected.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_continuing.wgsl.expected.wgsl @@ -12,7 +12,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_init.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_init.wgsl index c2f9b7f7b3..337a5c39fb 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_init.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_init.wgsl @@ -12,7 +12,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_init.wgsl.expected.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_init.wgsl.expected.wgsl index 6efc2590d0..ef5ab682bf 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_init.wgsl.expected.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/in_for_loop_init.wgsl.expected.wgsl @@ -12,7 +12,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/indexing_with_side_effect_func.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/indexing_with_side_effect_func.wgsl index 6bd7876f8b..42c6cd02eb 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/indexing_with_side_effect_func.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/indexing_with_side_effect_func.wgsl @@ -23,7 +23,7 @@ fn getNextIndex() -> u32 { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s : OuterS; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/indexing_with_side_effect_func.wgsl.expected.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/indexing_with_side_effect_func.wgsl.expected.wgsl index 00f96caf2d..11d871ecce 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/indexing_with_side_effect_func.wgsl.expected.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/indexing_with_side_effect_func.wgsl.expected.wgsl @@ -24,7 +24,7 @@ fn getNextIndex() -> u32 { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s : OuterS; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array.wgsl index 32f96032fb..6e98f33d3e 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array.wgsl @@ -12,7 +12,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array.wgsl.expected.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array.wgsl.expected.wgsl index 9599c41ea0..bb5dd3ac7a 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array.wgsl.expected.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array.wgsl.expected.wgsl @@ -12,7 +12,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_array.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_array.wgsl index 76bed78f81..b4cb7ab780 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_array.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_array.wgsl @@ -13,7 +13,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_array.wgsl.expected.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_array.wgsl.expected.wgsl index db8818346f..6da6de056c 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_array.wgsl.expected.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_array.wgsl.expected.wgsl @@ -13,7 +13,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct.wgsl index ea9bdb3fa7..31a2fa1c2f 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct.wgsl @@ -16,7 +16,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct.wgsl.expected.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct.wgsl.expected.wgsl index 820aee6406..6315970d42 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct.wgsl.expected.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct.wgsl.expected.wgsl @@ -16,7 +16,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct_array.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct_array.wgsl index feadd47c29..b9f558bdb8 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct_array.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct_array.wgsl @@ -17,7 +17,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s : OuterS; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct_array.wgsl.expected.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct_array.wgsl.expected.wgsl index da8bd0f150..e77fa87d7f 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct_array.wgsl.expected.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_array_struct_array.wgsl.expected.wgsl @@ -17,7 +17,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s : OuterS; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array.wgsl index 82aaf7f320..12f615b11b 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array.wgsl @@ -13,7 +13,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; @binding(0) @group(0) var s1 : OuterS; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; s1.a1[uniforms.i] = v; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array.wgsl.expected.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array.wgsl.expected.wgsl index ad1319f802..75b704d1b5 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array.wgsl.expected.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array.wgsl.expected.wgsl @@ -14,7 +14,7 @@ struct OuterS { @binding(0) @group(0) var s1 : OuterS; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; s1.a1[uniforms.i] = v; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array_struct_array.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array_struct_array.wgsl index 639acf24b3..be7cf3d850 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array_struct_array.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array_struct_array.wgsl @@ -18,7 +18,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; @binding(0) @group(0) var s : OuterS; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; s.a1[uniforms.i].a2[uniforms.j] = v; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array_struct_array.wgsl.expected.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array_struct_array.wgsl.expected.wgsl index 7c2bd053f6..8935d5339b 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array_struct_array.wgsl.expected.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_dynamic_array_struct_array.wgsl.expected.wgsl @@ -19,7 +19,7 @@ struct OuterS { @binding(0) @group(0) var s : OuterS; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; s.a1[uniforms.i].a2[uniforms.j] = v; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl index 5065ae43cc..9a024e410d 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl @@ -8,7 +8,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var s1 : OuterS; s1.m1[uniforms.i] = vec4(1.0); diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl.expected.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl.expected.wgsl index f24bd46bc3..7e843846f7 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl.expected.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl.expected.wgsl @@ -8,7 +8,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var s1 : OuterS; s1.m1[uniforms.i] = vec4(1.0); diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_multiple_arrays.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_multiple_arrays.wgsl index 8e838306ab..713d9100a4 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_multiple_arrays.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_multiple_arrays.wgsl @@ -13,7 +13,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_multiple_arrays.wgsl.expected.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_multiple_arrays.wgsl.expected.wgsl index 63096f13fd..d988487492 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_multiple_arrays.wgsl.expected.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_multiple_arrays.wgsl.expected.wgsl @@ -13,7 +13,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_struct_array.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_struct_array.wgsl index f782c62b00..fa749e8ac5 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_struct_array.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_struct_array.wgsl @@ -16,7 +16,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_struct_array.wgsl.expected.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_struct_array.wgsl.expected.wgsl index 1d27da44fa..71085072fe 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_struct_array.wgsl.expected.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_struct_array.wgsl.expected.wgsl @@ -16,7 +16,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_vector.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_vector.wgsl index 99c85a995d..1cb39fb097 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_vector.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_vector.wgsl @@ -8,7 +8,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var s1 : OuterS; s1.v1[uniforms.i] = 1.0; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_vector.wgsl.expected.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_vector.wgsl.expected.wgsl index 13a4ebc5de..5f4da8ce01 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_vector.wgsl.expected.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_vector.wgsl.expected.wgsl @@ -8,7 +8,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var s1 : OuterS; s1.v1[uniforms.i] = 1.0; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/vector_assign.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/vector_assign.wgsl index 639300ee79..225d858079 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/vector_assign.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/vector_assign.wgsl @@ -12,7 +12,7 @@ fn f(i: u32) -> u32 { return i + 1u; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var s1 : OuterS; var v : vec3; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/vector_assign.wgsl.expected.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/vector_assign.wgsl.expected.wgsl index 47d2e7b2e8..9282fd06e6 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/vector_assign.wgsl.expected.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/vector_assign.wgsl.expected.wgsl @@ -12,7 +12,7 @@ fn f(i : u32) -> u32 { return (i + 1u); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var s1 : OuterS; var v : vec3; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer.wgsl index 7776cd23c3..278ed92cd4 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer.wgsl @@ -12,7 +12,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer.wgsl.expected.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer.wgsl.expected.wgsl index acd635d5eb..3db9dea741 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer.wgsl.expected.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer.wgsl.expected.wgsl @@ -12,7 +12,7 @@ struct OuterS { @group(1) @binding(4) var uniforms : Uniforms; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : InnerS; var s1 : OuterS; diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer_arg.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer_arg.wgsl index fa1ad43fec..950f267b64 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer_arg.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer_arg.wgsl @@ -14,7 +14,7 @@ fn f(p : ptr) { (*p).a1[uniforms.i] = v; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var s1 : OuterS; f(&s1); diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer_arg.wgsl.expected.wgsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer_arg.wgsl.expected.wgsl index cebf11274b..8e8c553a45 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer_arg.wgsl.expected.wgsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/via_pointer_arg.wgsl.expected.wgsl @@ -17,7 +17,7 @@ fn f(p : ptr) { (*(p)).a1[uniforms.i] = v; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var s1 : OuterS; f(&(s1)); diff --git a/test/tint/statements/assign/phony/addr_of_non_constructable.wgsl b/test/tint/statements/assign/phony/addr_of_non_constructable.wgsl index 0b07b795d6..601a023a1e 100644 --- a/test/tint/statements/assign/phony/addr_of_non_constructable.wgsl +++ b/test/tint/statements/assign/phony/addr_of_non_constructable.wgsl @@ -4,7 +4,7 @@ struct S { @binding(0) @group(0) var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = &s; } diff --git a/test/tint/statements/assign/phony/addr_of_non_constructable.wgsl.expected.wgsl b/test/tint/statements/assign/phony/addr_of_non_constructable.wgsl.expected.wgsl index 4bb4719e1a..0f263ac63e 100644 --- a/test/tint/statements/assign/phony/addr_of_non_constructable.wgsl.expected.wgsl +++ b/test/tint/statements/assign/phony/addr_of_non_constructable.wgsl.expected.wgsl @@ -4,7 +4,7 @@ struct S { @binding(0) @group(0) var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = &(s); } diff --git a/test/tint/statements/assign/phony/addr_of_runtime_array.wgsl b/test/tint/statements/assign/phony/addr_of_runtime_array.wgsl index 4d7a31985c..b83a8f9e77 100644 --- a/test/tint/statements/assign/phony/addr_of_runtime_array.wgsl +++ b/test/tint/statements/assign/phony/addr_of_runtime_array.wgsl @@ -4,7 +4,7 @@ struct S { @binding(0) @group(0) var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = &s.arr; } diff --git a/test/tint/statements/assign/phony/addr_of_runtime_array.wgsl.expected.wgsl b/test/tint/statements/assign/phony/addr_of_runtime_array.wgsl.expected.wgsl index d16ffd29ab..a7509e08f1 100644 --- a/test/tint/statements/assign/phony/addr_of_runtime_array.wgsl.expected.wgsl +++ b/test/tint/statements/assign/phony/addr_of_runtime_array.wgsl.expected.wgsl @@ -4,7 +4,7 @@ struct S { @binding(0) @group(0) var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = &(s.arr); } diff --git a/test/tint/statements/assign/phony/call.wgsl b/test/tint/statements/assign/phony/call.wgsl index 5f44585890..133e3d5f16 100644 --- a/test/tint/statements/assign/phony/call.wgsl +++ b/test/tint/statements/assign/phony/call.wgsl @@ -2,7 +2,7 @@ fn f(a: i32, b: i32, c: i32) -> i32 { return a * b + c; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = f(1, 2, 3); } diff --git a/test/tint/statements/assign/phony/call.wgsl.expected.wgsl b/test/tint/statements/assign/phony/call.wgsl.expected.wgsl index cef5c5f1eb..5c3d1f7932 100644 --- a/test/tint/statements/assign/phony/call.wgsl.expected.wgsl +++ b/test/tint/statements/assign/phony/call.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn f(a : i32, b : i32, c : i32) -> i32 { return ((a * b) + c); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = f(1, 2, 3); } diff --git a/test/tint/statements/assign/phony/multiple_side_effects.wgsl b/test/tint/statements/assign/phony/multiple_side_effects.wgsl index da2faf8f35..61abe471ae 100644 --- a/test/tint/statements/assign/phony/multiple_side_effects.wgsl +++ b/test/tint/statements/assign/phony/multiple_side_effects.wgsl @@ -2,7 +2,7 @@ fn f(a: i32, b: i32, c: i32) -> i32 { return a * b + c; } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = f(1, 2, 3) + f(4, 5, 6) * f(7, f(8, 9, 10), 11); } diff --git a/test/tint/statements/assign/phony/multiple_side_effects.wgsl.expected.wgsl b/test/tint/statements/assign/phony/multiple_side_effects.wgsl.expected.wgsl index e438785ccd..0e54c4e990 100644 --- a/test/tint/statements/assign/phony/multiple_side_effects.wgsl.expected.wgsl +++ b/test/tint/statements/assign/phony/multiple_side_effects.wgsl.expected.wgsl @@ -2,7 +2,7 @@ fn f(a : i32, b : i32, c : i32) -> i32 { return ((a * b) + c); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = (f(1, 2, 3) + (f(4, 5, 6) * f(7, f(8, 9, 10), 11))); } diff --git a/test/tint/statements/assign/phony/storage_buffer.wgsl b/test/tint/statements/assign/phony/storage_buffer.wgsl index caf8296339..848aa2d079 100644 --- a/test/tint/statements/assign/phony/storage_buffer.wgsl +++ b/test/tint/statements/assign/phony/storage_buffer.wgsl @@ -4,7 +4,7 @@ struct S { @binding(0) @group(0) var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = s; _ = s.i; diff --git a/test/tint/statements/assign/phony/storage_buffer.wgsl.expected.wgsl b/test/tint/statements/assign/phony/storage_buffer.wgsl.expected.wgsl index 90c096d3f7..5e13684864 100644 --- a/test/tint/statements/assign/phony/storage_buffer.wgsl.expected.wgsl +++ b/test/tint/statements/assign/phony/storage_buffer.wgsl.expected.wgsl @@ -4,7 +4,7 @@ struct S { @binding(0) @group(0) var s : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = s; _ = s.i; diff --git a/test/tint/statements/assign/phony/uniform_buffer.wgsl b/test/tint/statements/assign/phony/uniform_buffer.wgsl index 5ad1e644c3..0262fafbc8 100644 --- a/test/tint/statements/assign/phony/uniform_buffer.wgsl +++ b/test/tint/statements/assign/phony/uniform_buffer.wgsl @@ -4,7 +4,7 @@ struct S { @binding(0) @group(0) var u : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = u; _ = u.i; diff --git a/test/tint/statements/assign/phony/uniform_buffer.wgsl.expected.wgsl b/test/tint/statements/assign/phony/uniform_buffer.wgsl.expected.wgsl index 22a3bc1d4a..33521d99e6 100644 --- a/test/tint/statements/assign/phony/uniform_buffer.wgsl.expected.wgsl +++ b/test/tint/statements/assign/phony/uniform_buffer.wgsl.expected.wgsl @@ -4,7 +4,7 @@ struct S { @binding(0) @group(0) var u : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = u; _ = u.i; diff --git a/test/tint/statements/switch/common.wgsl b/test/tint/statements/switch/common.wgsl index 6b8735d1ac..cdebc4e320 100644 --- a/test/tint/statements/switch/common.wgsl +++ b/test/tint/statements/switch/common.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var i : i32; var result : i32; diff --git a/test/tint/statements/switch/common.wgsl.expected.wgsl b/test/tint/statements/switch/common.wgsl.expected.wgsl index 8b56b034b6..8e96822eec 100644 --- a/test/tint/statements/switch/common.wgsl.expected.wgsl +++ b/test/tint/statements/switch/common.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var i : i32; var result : i32; diff --git a/test/tint/statements/switch/fallthrough.wgsl b/test/tint/statements/switch/fallthrough.wgsl index 70691c8176..667a8f2f6e 100644 --- a/test/tint/statements/switch/fallthrough.wgsl +++ b/test/tint/statements/switch/fallthrough.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var i : i32; switch(i) { diff --git a/test/tint/statements/switch/fallthrough.wgsl.expected.wgsl b/test/tint/statements/switch/fallthrough.wgsl.expected.wgsl index b04e882d1a..7794a631c1 100644 --- a/test/tint/statements/switch/fallthrough.wgsl.expected.wgsl +++ b/test/tint/statements/switch/fallthrough.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var i : i32; switch(i) { diff --git a/test/tint/statements/switch/only_default_case.wgsl b/test/tint/statements/switch/only_default_case.wgsl index dcecc4d8ed..967282bbb0 100644 --- a/test/tint/statements/switch/only_default_case.wgsl +++ b/test/tint/statements/switch/only_default_case.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var i : i32; var result : i32; diff --git a/test/tint/statements/switch/only_default_case.wgsl.expected.wgsl b/test/tint/statements/switch/only_default_case.wgsl.expected.wgsl index 234f2565c8..d3ab4f79dc 100644 --- a/test/tint/statements/switch/only_default_case.wgsl.expected.wgsl +++ b/test/tint/statements/switch/only_default_case.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn f() { var i : i32; var result : i32; diff --git a/test/tint/struct/type_constructor.wgsl b/test/tint/struct/type_constructor.wgsl index b55690207e..30c3dbea79 100644 --- a/test/tint/struct/type_constructor.wgsl +++ b/test/tint/struct/type_constructor.wgsl @@ -20,7 +20,7 @@ struct T { a : array, }; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x : i32 = 42; diff --git a/test/tint/struct/type_constructor.wgsl.expected.wgsl b/test/tint/struct/type_constructor.wgsl.expected.wgsl index 6d26b5d1d7..b0a3147143 100644 --- a/test/tint/struct/type_constructor.wgsl.expected.wgsl +++ b/test/tint/struct/type_constructor.wgsl.expected.wgsl @@ -20,7 +20,7 @@ struct T { a : array, } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let x : i32 = 42; let empty : S1 = S1(); diff --git a/test/tint/types/function_scope_declarations.wgsl b/test/tint/types/function_scope_declarations.wgsl index 9debfecd7c..938fbf510b 100644 --- a/test/tint/types/function_scope_declarations.wgsl +++ b/test/tint/types/function_scope_declarations.wgsl @@ -2,7 +2,7 @@ struct S { a : f32, }; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var bool_var : bool = bool(); let bool_let : bool = bool(); diff --git a/test/tint/types/function_scope_declarations.wgsl.expected.wgsl b/test/tint/types/function_scope_declarations.wgsl.expected.wgsl index d09c44cfb0..7d057651ba 100644 --- a/test/tint/types/function_scope_declarations.wgsl.expected.wgsl +++ b/test/tint/types/function_scope_declarations.wgsl.expected.wgsl @@ -2,7 +2,7 @@ struct S { a : f32, } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var bool_var : bool = bool(); let bool_let : bool = bool(); diff --git a/test/tint/types/function_scope_var_conversions.wgsl b/test/tint/types/function_scope_var_conversions.wgsl index 4f58b71701..77ac807681 100644 --- a/test/tint/types/function_scope_var_conversions.wgsl +++ b/test/tint/types/function_scope_var_conversions.wgsl @@ -3,7 +3,7 @@ fn constant_with_non_constant() { var b : vec2 = vec2(f32(i32(1)), a); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var bool_var1 : bool = bool(123u); var bool_var2 : bool = bool(123); diff --git a/test/tint/types/function_scope_var_conversions.wgsl.expected.wgsl b/test/tint/types/function_scope_var_conversions.wgsl.expected.wgsl index 53206b3a31..036ec126fe 100644 --- a/test/tint/types/function_scope_var_conversions.wgsl.expected.wgsl +++ b/test/tint/types/function_scope_var_conversions.wgsl.expected.wgsl @@ -3,7 +3,7 @@ fn constant_with_non_constant() { var b : vec2 = vec2(f32(i32(1)), a); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var bool_var1 : bool = bool(123u); var bool_var2 : bool = bool(123); diff --git a/test/tint/types/module_scope_let.wgsl b/test/tint/types/module_scope_let.wgsl index 4f5f7fe13b..f7e9375d3d 100644 --- a/test/tint/types/module_scope_let.wgsl +++ b/test/tint/types/module_scope_let.wgsl @@ -13,6 +13,6 @@ let m3x4_let : mat3x4 = mat3x4(); let arr_let : array = array(); let struct_let : S = S(); -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { } diff --git a/test/tint/types/module_scope_let.wgsl.expected.wgsl b/test/tint/types/module_scope_let.wgsl.expected.wgsl index 2585c0c99d..2baded4d50 100644 --- a/test/tint/types/module_scope_let.wgsl.expected.wgsl +++ b/test/tint/types/module_scope_let.wgsl.expected.wgsl @@ -22,6 +22,6 @@ let arr_let : array = array(); let struct_let : S = S(); -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { } diff --git a/test/tint/types/module_scope_var.wgsl b/test/tint/types/module_scope_var.wgsl index c5ea8b6061..4576f807a2 100644 --- a/test/tint/types/module_scope_var.wgsl +++ b/test/tint/types/module_scope_var.wgsl @@ -13,7 +13,7 @@ var m2x3_var : mat2x3; var arr_var : array; var struct_var : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { // Reference the module-scope variables to stop them from being removed. bool_var = bool(); diff --git a/test/tint/types/module_scope_var.wgsl.expected.wgsl b/test/tint/types/module_scope_var.wgsl.expected.wgsl index 31a20b0d8f..d6ffe859bd 100644 --- a/test/tint/types/module_scope_var.wgsl.expected.wgsl +++ b/test/tint/types/module_scope_var.wgsl.expected.wgsl @@ -22,7 +22,7 @@ var arr_var : array; var struct_var : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { bool_var = bool(); i32_var = i32(); diff --git a/test/tint/types/module_scope_var_conversions.wgsl b/test/tint/types/module_scope_var_conversions.wgsl index ce6fa2ee3f..25b8b4047a 100644 --- a/test/tint/types/module_scope_var_conversions.wgsl +++ b/test/tint/types/module_scope_var_conversions.wgsl @@ -25,7 +25,7 @@ var v3u32_var3 : vec3 = vec3(vec3(true)); var v3bool_var4 : vec3 = vec3(vec2(vec2(123.0)), true); var v4bool_var5 : vec4 = vec4(vec2(vec2(123.0, 0.0)), vec2(true, bool(f32(0.0)))); -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { // Reference the module-scope variables to stop them from being removed. bool_var1 = bool(); diff --git a/test/tint/types/module_scope_var_conversions.wgsl.expected.wgsl b/test/tint/types/module_scope_var_conversions.wgsl.expected.wgsl index b5373bf806..8cbfc018e2 100644 --- a/test/tint/types/module_scope_var_conversions.wgsl.expected.wgsl +++ b/test/tint/types/module_scope_var_conversions.wgsl.expected.wgsl @@ -38,7 +38,7 @@ var v3bool_var4 : vec3 = vec3(vec2(vec2(123.0)), var v4bool_var5 : vec4 = vec4(vec2(vec2(123.0, 0.0)), vec2(true, bool(f32(0.0)))); -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { bool_var1 = bool(); bool_var2 = bool(); diff --git a/test/tint/types/module_scope_var_initializers.wgsl b/test/tint/types/module_scope_var_initializers.wgsl index f2ffaeea57..791df7ba26 100644 --- a/test/tint/types/module_scope_var_initializers.wgsl +++ b/test/tint/types/module_scope_var_initializers.wgsl @@ -13,7 +13,7 @@ var m2x3_var : mat2x3 = mat2x3(); var arr_var : array = array(); var struct_var : S = S(); -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { // Reference the module-scope variables to stop them from being removed. bool_var = bool(); diff --git a/test/tint/types/module_scope_var_initializers.wgsl.expected.wgsl b/test/tint/types/module_scope_var_initializers.wgsl.expected.wgsl index e8e80d9bd3..26771dffcf 100644 --- a/test/tint/types/module_scope_var_initializers.wgsl.expected.wgsl +++ b/test/tint/types/module_scope_var_initializers.wgsl.expected.wgsl @@ -22,7 +22,7 @@ var arr_var : array = array(); var struct_var : S = S(); -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { bool_var = bool(); i32_var = i32(); diff --git a/test/tint/types/parameters.wgsl b/test/tint/types/parameters.wgsl index 465a67319a..d2fcf29b27 100644 --- a/test/tint/types/parameters.wgsl +++ b/test/tint/types/parameters.wgsl @@ -18,6 +18,6 @@ fn foo( param_ptr_arr : ptr>, ) {} -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { } diff --git a/test/tint/types/parameters.wgsl.expected.wgsl b/test/tint/types/parameters.wgsl.expected.wgsl index e98185f645..cc80dc20e7 100644 --- a/test/tint/types/parameters.wgsl.expected.wgsl +++ b/test/tint/types/parameters.wgsl.expected.wgsl @@ -5,6 +5,6 @@ struct S { fn foo(param_bool : bool, param_i32 : i32, param_u32 : u32, param_f32 : f32, param_v2i32 : vec2, param_v3u32 : vec3, param_v4f32 : vec4, param_m2x3 : mat2x3, param_arr : array, param_struct : S, param_ptr_f32 : ptr, param_ptr_vec : ptr>, param_ptr_arr : ptr>) { } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { } diff --git a/test/tint/types/return_types.wgsl b/test/tint/types/return_types.wgsl index 563b219285..06a055e30d 100644 --- a/test/tint/types/return_types.wgsl +++ b/test/tint/types/return_types.wgsl @@ -13,6 +13,6 @@ fn ret_m2x3() -> mat2x3 { return mat2x3(); } fn ret_arr() -> array { return array(); } fn ret_struct() -> S { return S(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { } diff --git a/test/tint/types/return_types.wgsl.expected.wgsl b/test/tint/types/return_types.wgsl.expected.wgsl index 3ef490e283..d339d33ec9 100644 --- a/test/tint/types/return_types.wgsl.expected.wgsl +++ b/test/tint/types/return_types.wgsl.expected.wgsl @@ -42,6 +42,6 @@ fn ret_struct() -> S { return S(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { } diff --git a/test/tint/types/sampler.wgsl b/test/tint/types/sampler.wgsl index edeb51e5b2..cf113ec6e4 100644 --- a/test/tint/types/sampler.wgsl +++ b/test/tint/types/sampler.wgsl @@ -1,7 +1,7 @@ @group(0) @binding(0) var s : sampler; @group(0) @binding(1) var sc : sampler_comparison; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = s; _ = sc; diff --git a/test/tint/types/sampler.wgsl.expected.wgsl b/test/tint/types/sampler.wgsl.expected.wgsl index 3d873eb83e..de33d8bed5 100644 --- a/test/tint/types/sampler.wgsl.expected.wgsl +++ b/test/tint/types/sampler.wgsl.expected.wgsl @@ -2,7 +2,7 @@ @group(0) @binding(1) var sc : sampler_comparison; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = s; _ = sc; diff --git a/test/tint/types/struct_members.wgsl b/test/tint/types/struct_members.wgsl index 21bc2174c7..180b0428fc 100644 --- a/test/tint/types/struct_members.wgsl +++ b/test/tint/types/struct_members.wgsl @@ -15,7 +15,7 @@ struct S { member_struct : S_inner, }; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let s : S = S(); } diff --git a/test/tint/types/struct_members.wgsl.expected.wgsl b/test/tint/types/struct_members.wgsl.expected.wgsl index 061b6f7664..89d786706c 100644 --- a/test/tint/types/struct_members.wgsl.expected.wgsl +++ b/test/tint/types/struct_members.wgsl.expected.wgsl @@ -15,7 +15,7 @@ struct S { member_struct : S_inner, } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { let s : S = S(); } diff --git a/test/tint/types/texture/depth/2d.wgsl b/test/tint/types/texture/depth/2d.wgsl index e3a53cd85b..b0947c7de6 100644 --- a/test/tint/types/texture/depth/2d.wgsl +++ b/test/tint/types/texture/depth/2d.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var t_f : texture_depth_2d; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_f; } diff --git a/test/tint/types/texture/depth/2d.wgsl.expected.wgsl b/test/tint/types/texture/depth/2d.wgsl.expected.wgsl index e3a53cd85b..b0947c7de6 100644 --- a/test/tint/types/texture/depth/2d.wgsl.expected.wgsl +++ b/test/tint/types/texture/depth/2d.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var t_f : texture_depth_2d; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_f; } diff --git a/test/tint/types/texture/depth/2d_array.wgsl b/test/tint/types/texture/depth/2d_array.wgsl index e6fac8c5cb..22ec1c18f9 100644 --- a/test/tint/types/texture/depth/2d_array.wgsl +++ b/test/tint/types/texture/depth/2d_array.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var t_f : texture_depth_2d_array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_f; } diff --git a/test/tint/types/texture/depth/2d_array.wgsl.expected.wgsl b/test/tint/types/texture/depth/2d_array.wgsl.expected.wgsl index e6fac8c5cb..22ec1c18f9 100644 --- a/test/tint/types/texture/depth/2d_array.wgsl.expected.wgsl +++ b/test/tint/types/texture/depth/2d_array.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var t_f : texture_depth_2d_array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_f; } diff --git a/test/tint/types/texture/depth/cube.wgsl b/test/tint/types/texture/depth/cube.wgsl index 785b96cd4c..f19bb64169 100644 --- a/test/tint/types/texture/depth/cube.wgsl +++ b/test/tint/types/texture/depth/cube.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var t_f : texture_depth_cube; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_f; } diff --git a/test/tint/types/texture/depth/cube.wgsl.expected.wgsl b/test/tint/types/texture/depth/cube.wgsl.expected.wgsl index 785b96cd4c..f19bb64169 100644 --- a/test/tint/types/texture/depth/cube.wgsl.expected.wgsl +++ b/test/tint/types/texture/depth/cube.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var t_f : texture_depth_cube; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_f; } diff --git a/test/tint/types/texture/depth/cube_array.wgsl b/test/tint/types/texture/depth/cube_array.wgsl index 0e1b07e8bc..db539122f6 100644 --- a/test/tint/types/texture/depth/cube_array.wgsl +++ b/test/tint/types/texture/depth/cube_array.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var t_f : texture_depth_cube_array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_f; } diff --git a/test/tint/types/texture/depth/cube_array.wgsl.expected.wgsl b/test/tint/types/texture/depth/cube_array.wgsl.expected.wgsl index 0e1b07e8bc..db539122f6 100644 --- a/test/tint/types/texture/depth/cube_array.wgsl.expected.wgsl +++ b/test/tint/types/texture/depth/cube_array.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @group(0) @binding(0) var t_f : texture_depth_cube_array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_f; } diff --git a/test/tint/types/texture/multisampled/2d.wgsl b/test/tint/types/texture/multisampled/2d.wgsl index 76521e5585..771238c935 100644 --- a/test/tint/types/texture/multisampled/2d.wgsl +++ b/test/tint/types/texture/multisampled/2d.wgsl @@ -2,7 +2,7 @@ @group(0) @binding(1) var t_i : texture_multisampled_2d; @group(0) @binding(2) var t_u : texture_multisampled_2d; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_f; _ = t_i; diff --git a/test/tint/types/texture/multisampled/2d.wgsl.expected.wgsl b/test/tint/types/texture/multisampled/2d.wgsl.expected.wgsl index d8eb77b57c..156716a8e1 100644 --- a/test/tint/types/texture/multisampled/2d.wgsl.expected.wgsl +++ b/test/tint/types/texture/multisampled/2d.wgsl.expected.wgsl @@ -4,7 +4,7 @@ @group(0) @binding(2) var t_u : texture_multisampled_2d; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_f; _ = t_i; diff --git a/test/tint/types/texture/sampled/1d.wgsl b/test/tint/types/texture/sampled/1d.wgsl index ed97090b06..90f22dec7c 100644 --- a/test/tint/types/texture/sampled/1d.wgsl +++ b/test/tint/types/texture/sampled/1d.wgsl @@ -2,7 +2,7 @@ @group(0) @binding(1) var t_i : texture_1d; @group(0) @binding(2) var t_u : texture_1d; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_f; _ = t_i; diff --git a/test/tint/types/texture/sampled/1d.wgsl.expected.wgsl b/test/tint/types/texture/sampled/1d.wgsl.expected.wgsl index 565089e820..93f60d0e62 100644 --- a/test/tint/types/texture/sampled/1d.wgsl.expected.wgsl +++ b/test/tint/types/texture/sampled/1d.wgsl.expected.wgsl @@ -4,7 +4,7 @@ @group(0) @binding(2) var t_u : texture_1d; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_f; _ = t_i; diff --git a/test/tint/types/texture/sampled/2d.wgsl b/test/tint/types/texture/sampled/2d.wgsl index b6be42b742..5c7e2e5cbd 100644 --- a/test/tint/types/texture/sampled/2d.wgsl +++ b/test/tint/types/texture/sampled/2d.wgsl @@ -2,7 +2,7 @@ @group(0) @binding(1) var t_i : texture_2d; @group(0) @binding(2) var t_u : texture_2d; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_f; _ = t_i; diff --git a/test/tint/types/texture/sampled/2d.wgsl.expected.wgsl b/test/tint/types/texture/sampled/2d.wgsl.expected.wgsl index 007b85fc2a..a5f3faf97d 100644 --- a/test/tint/types/texture/sampled/2d.wgsl.expected.wgsl +++ b/test/tint/types/texture/sampled/2d.wgsl.expected.wgsl @@ -4,7 +4,7 @@ @group(0) @binding(2) var t_u : texture_2d; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_f; _ = t_i; diff --git a/test/tint/types/texture/sampled/2d_array.wgsl b/test/tint/types/texture/sampled/2d_array.wgsl index 1dcfc6ce44..120d0f1f39 100644 --- a/test/tint/types/texture/sampled/2d_array.wgsl +++ b/test/tint/types/texture/sampled/2d_array.wgsl @@ -2,7 +2,7 @@ @group(0) @binding(1) var t_i : texture_2d_array; @group(0) @binding(2) var t_u : texture_2d_array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_f; _ = t_i; diff --git a/test/tint/types/texture/sampled/2d_array.wgsl.expected.wgsl b/test/tint/types/texture/sampled/2d_array.wgsl.expected.wgsl index 5201bbeefa..cec37a4b46 100644 --- a/test/tint/types/texture/sampled/2d_array.wgsl.expected.wgsl +++ b/test/tint/types/texture/sampled/2d_array.wgsl.expected.wgsl @@ -4,7 +4,7 @@ @group(0) @binding(2) var t_u : texture_2d_array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_f; _ = t_i; diff --git a/test/tint/types/texture/sampled/3d.wgsl b/test/tint/types/texture/sampled/3d.wgsl index 37a525ecbb..4e7935738d 100644 --- a/test/tint/types/texture/sampled/3d.wgsl +++ b/test/tint/types/texture/sampled/3d.wgsl @@ -2,7 +2,7 @@ @group(0) @binding(1) var t_i : texture_3d; @group(0) @binding(2) var t_u : texture_3d; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_f; _ = t_i; diff --git a/test/tint/types/texture/sampled/3d.wgsl.expected.wgsl b/test/tint/types/texture/sampled/3d.wgsl.expected.wgsl index 747bc8f573..d8bd8a2d16 100644 --- a/test/tint/types/texture/sampled/3d.wgsl.expected.wgsl +++ b/test/tint/types/texture/sampled/3d.wgsl.expected.wgsl @@ -4,7 +4,7 @@ @group(0) @binding(2) var t_u : texture_3d; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_f; _ = t_i; diff --git a/test/tint/types/texture/sampled/cube.wgsl b/test/tint/types/texture/sampled/cube.wgsl index 89859e9c70..c02c905c0d 100644 --- a/test/tint/types/texture/sampled/cube.wgsl +++ b/test/tint/types/texture/sampled/cube.wgsl @@ -2,7 +2,7 @@ @group(0) @binding(1) var t_i : texture_cube; @group(0) @binding(2) var t_u : texture_cube; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_f; _ = t_i; diff --git a/test/tint/types/texture/sampled/cube.wgsl.expected.wgsl b/test/tint/types/texture/sampled/cube.wgsl.expected.wgsl index 28c68819e2..21f24026b9 100644 --- a/test/tint/types/texture/sampled/cube.wgsl.expected.wgsl +++ b/test/tint/types/texture/sampled/cube.wgsl.expected.wgsl @@ -4,7 +4,7 @@ @group(0) @binding(2) var t_u : texture_cube; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_f; _ = t_i; diff --git a/test/tint/types/texture/sampled/cube_array.wgsl b/test/tint/types/texture/sampled/cube_array.wgsl index c7249c88eb..4f51942ff6 100644 --- a/test/tint/types/texture/sampled/cube_array.wgsl +++ b/test/tint/types/texture/sampled/cube_array.wgsl @@ -2,7 +2,7 @@ @group(0) @binding(1) var t_i : texture_cube_array; @group(0) @binding(2) var t_u : texture_cube_array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_f; _ = t_i; diff --git a/test/tint/types/texture/sampled/cube_array.wgsl.expected.wgsl b/test/tint/types/texture/sampled/cube_array.wgsl.expected.wgsl index 12dc114369..67597b4b6d 100644 --- a/test/tint/types/texture/sampled/cube_array.wgsl.expected.wgsl +++ b/test/tint/types/texture/sampled/cube_array.wgsl.expected.wgsl @@ -4,7 +4,7 @@ @group(0) @binding(2) var t_u : texture_cube_array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_f; _ = t_i; diff --git a/test/tint/types/texture/storage/1d.wgsl b/test/tint/types/texture/storage/1d.wgsl index 7adad9e5eb..7ea09c2661 100644 --- a/test/tint/types/texture/storage/1d.wgsl +++ b/test/tint/types/texture/storage/1d.wgsl @@ -15,7 +15,7 @@ @group(0) @binding(14) var t_rgba32sint : texture_storage_1d; @group(0) @binding(15) var t_rgba32float : texture_storage_1d; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_rgba8unorm; _ = t_rgba8snorm; diff --git a/test/tint/types/texture/storage/1d.wgsl.expected.wgsl b/test/tint/types/texture/storage/1d.wgsl.expected.wgsl index a3e5555b82..d58214de56 100644 --- a/test/tint/types/texture/storage/1d.wgsl.expected.wgsl +++ b/test/tint/types/texture/storage/1d.wgsl.expected.wgsl @@ -30,7 +30,7 @@ @group(0) @binding(15) var t_rgba32float : texture_storage_1d; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_rgba8unorm; _ = t_rgba8snorm; diff --git a/test/tint/types/texture/storage/2d.wgsl b/test/tint/types/texture/storage/2d.wgsl index 44d0dfd7eb..e631bcf769 100644 --- a/test/tint/types/texture/storage/2d.wgsl +++ b/test/tint/types/texture/storage/2d.wgsl @@ -15,7 +15,7 @@ @group(0) @binding(14) var t_rgba32sint : texture_storage_2d; @group(0) @binding(15) var t_rgba32float : texture_storage_2d; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_rgba8unorm; _ = t_rgba8snorm; diff --git a/test/tint/types/texture/storage/2d.wgsl.expected.wgsl b/test/tint/types/texture/storage/2d.wgsl.expected.wgsl index 97824adfb9..164be3e72b 100644 --- a/test/tint/types/texture/storage/2d.wgsl.expected.wgsl +++ b/test/tint/types/texture/storage/2d.wgsl.expected.wgsl @@ -30,7 +30,7 @@ @group(0) @binding(15) var t_rgba32float : texture_storage_2d; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_rgba8unorm; _ = t_rgba8snorm; diff --git a/test/tint/types/texture/storage/2d_array.wgsl b/test/tint/types/texture/storage/2d_array.wgsl index 6919fda32d..d1830384f6 100644 --- a/test/tint/types/texture/storage/2d_array.wgsl +++ b/test/tint/types/texture/storage/2d_array.wgsl @@ -15,7 +15,7 @@ @group(0) @binding(14) var t_rgba32sint : texture_storage_2d_array; @group(0) @binding(15) var t_rgba32float : texture_storage_2d_array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_rgba8unorm; _ = t_rgba8snorm; diff --git a/test/tint/types/texture/storage/2d_array.wgsl.expected.wgsl b/test/tint/types/texture/storage/2d_array.wgsl.expected.wgsl index c4aa337c22..893a3ba564 100644 --- a/test/tint/types/texture/storage/2d_array.wgsl.expected.wgsl +++ b/test/tint/types/texture/storage/2d_array.wgsl.expected.wgsl @@ -30,7 +30,7 @@ @group(0) @binding(15) var t_rgba32float : texture_storage_2d_array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_rgba8unorm; _ = t_rgba8snorm; diff --git a/test/tint/types/texture/storage/3d.wgsl b/test/tint/types/texture/storage/3d.wgsl index 710d0d39fc..cd51e6b31d 100644 --- a/test/tint/types/texture/storage/3d.wgsl +++ b/test/tint/types/texture/storage/3d.wgsl @@ -15,7 +15,7 @@ @group(0) @binding(14) var t_rgba32sint : texture_storage_3d; @group(0) @binding(15) var t_rgba32float : texture_storage_3d; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_rgba8unorm; _ = t_rgba8snorm; diff --git a/test/tint/types/texture/storage/3d.wgsl.expected.wgsl b/test/tint/types/texture/storage/3d.wgsl.expected.wgsl index c3ba6726ab..1ee3b9487b 100644 --- a/test/tint/types/texture/storage/3d.wgsl.expected.wgsl +++ b/test/tint/types/texture/storage/3d.wgsl.expected.wgsl @@ -30,7 +30,7 @@ @group(0) @binding(15) var t_rgba32float : texture_storage_3d; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = t_rgba8unorm; _ = t_rgba8snorm; diff --git a/test/tint/unicode/comments.wgsl b/test/tint/unicode/comments.wgsl index 0e42055222..1d6108bc9f 100644 --- a/test/tint/unicode/comments.wgsl +++ b/test/tint/unicode/comments.wgsl @@ -5,7 +5,7 @@ नमस्ते दुनिया */ -@stage(fragment) +@fragment fn /* こんにちは世界 */ main( /* 你好世界 */ ) { // 안녕하세요 세계 } diff --git a/test/tint/unicode/comments.wgsl.expected.wgsl b/test/tint/unicode/comments.wgsl.expected.wgsl index 3662a35207..1df86fc8a9 100644 --- a/test/tint/unicode/comments.wgsl.expected.wgsl +++ b/test/tint/unicode/comments.wgsl.expected.wgsl @@ -1,3 +1,3 @@ -@stage(fragment) +@fragment fn main() { } diff --git a/test/tint/unicode/identifiers.wgsl b/test/tint/unicode/identifiers.wgsl index 84c904a58b..64fc205f38 100644 --- a/test/tint/unicode/identifiers.wgsl +++ b/test/tint/unicode/identifiers.wgsl @@ -5,7 +5,7 @@ fn 𝓯𝓾𝓷𝓬𝓽𝓲𝓸𝓷(ᵖᵃʳᵃᵐ : 𝓉𝓎𝓅ℯ_𝒶) -> return 𝐭𝐲𝐩𝐞_𝐛(ᵖᵃʳᵃᵐ); } -@stage(fragment) +@fragment fn 𝕖𝕟𝕥𝕣𝕪𝕡𝕠𝕚𝕟𝕥() { var 𝙫𝙖𝙧𝙞𝙖𝙗𝙡𝙚 : 𝓉𝓎𝓅ℯ_𝒶; let 𝖗𝖊𝖘𝖚𝖑𝖙 = 𝓯𝓾𝓷𝓬𝓽𝓲𝓸𝓷(𝙫𝙖𝙧𝙞𝙖𝙗𝙡𝙚); diff --git a/test/tint/unicode/identifiers.wgsl.expected.wgsl b/test/tint/unicode/identifiers.wgsl.expected.wgsl index d78ad348c1..e13248f0c7 100644 --- a/test/tint/unicode/identifiers.wgsl.expected.wgsl +++ b/test/tint/unicode/identifiers.wgsl.expected.wgsl @@ -6,7 +6,7 @@ fn 𝓯𝓾𝓷𝓬𝓽𝓲𝓸𝓷(ᵖᵃʳᵃᵐ : 𝓉𝓎𝓅ℯ_𝒶) -> return 𝐭𝐲𝐩𝐞_𝐛(ᵖᵃʳᵃᵐ); } -@stage(fragment) +@fragment fn 𝕖𝕟𝕥𝕣𝕪𝕡𝕠𝕚𝕟𝕥() { var 𝙫𝙖𝙧𝙞𝙖𝙗𝙡𝙚 : 𝓉𝓎𝓅ℯ_𝒶; let 𝖗𝖊𝖘𝖚𝖑𝖙 = 𝓯𝓾𝓷𝓬𝓽𝓲𝓸𝓷(𝙫𝙖𝙧𝙞𝙖𝙗𝙡𝙚); diff --git a/test/tint/var/inferred/function.wgsl b/test/tint/var/inferred/function.wgsl index fe9f6fd31f..a955cded1c 100644 --- a/test/tint/var/inferred/function.wgsl +++ b/test/tint/var/inferred/function.wgsl @@ -33,7 +33,7 @@ fn var_decls() { var v15 = ret_MyArray(); } -@stage(fragment) +@fragment fn main() -> @location(0) vec4 { return vec4(0.0,0.0,0.0,0.0); } diff --git a/test/tint/var/inferred/function.wgsl.expected.wgsl b/test/tint/var/inferred/function.wgsl.expected.wgsl index ce5434786f..7abf40a195 100644 --- a/test/tint/var/inferred/function.wgsl.expected.wgsl +++ b/test/tint/var/inferred/function.wgsl.expected.wgsl @@ -42,7 +42,7 @@ fn var_decls() { var v15 = ret_MyArray(); } -@stage(fragment) +@fragment fn main() -> @location(0) vec4 { return vec4(0.0, 0.0, 0.0, 0.0); } diff --git a/test/tint/var/initialization/function/array.wgsl b/test/tint/var/initialization/function/array.wgsl index c261a3a598..7b3343120a 100644 --- a/test/tint/var/initialization/function/array.wgsl +++ b/test/tint/var/initialization/function/array.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : array; _ = v; diff --git a/test/tint/var/initialization/function/array.wgsl.expected.wgsl b/test/tint/var/initialization/function/array.wgsl.expected.wgsl index 8ff70f285c..fc5ed4328f 100644 --- a/test/tint/var/initialization/function/array.wgsl.expected.wgsl +++ b/test/tint/var/initialization/function/array.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : array; _ = v; diff --git a/test/tint/var/initialization/function/matrix.wgsl b/test/tint/var/initialization/function/matrix.wgsl index ea336e833b..02da4d2719 100644 --- a/test/tint/var/initialization/function/matrix.wgsl +++ b/test/tint/var/initialization/function/matrix.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : mat2x3; _ = v; diff --git a/test/tint/var/initialization/function/matrix.wgsl.expected.wgsl b/test/tint/var/initialization/function/matrix.wgsl.expected.wgsl index d8bb3919c9..97df0401ab 100644 --- a/test/tint/var/initialization/function/matrix.wgsl.expected.wgsl +++ b/test/tint/var/initialization/function/matrix.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : mat2x3; _ = v; diff --git a/test/tint/var/initialization/function/scalar.wgsl b/test/tint/var/initialization/function/scalar.wgsl index 5d3b86ef51..0ff3a5cef4 100644 --- a/test/tint/var/initialization/function/scalar.wgsl +++ b/test/tint/var/initialization/function/scalar.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : i32; _ = v; diff --git a/test/tint/var/initialization/function/scalar.wgsl.expected.wgsl b/test/tint/var/initialization/function/scalar.wgsl.expected.wgsl index 67ee18d612..ecc4d30017 100644 --- a/test/tint/var/initialization/function/scalar.wgsl.expected.wgsl +++ b/test/tint/var/initialization/function/scalar.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : i32; _ = v; diff --git a/test/tint/var/initialization/function/struct.wgsl b/test/tint/var/initialization/function/struct.wgsl index f5ff55dc0d..51d3f3e092 100644 --- a/test/tint/var/initialization/function/struct.wgsl +++ b/test/tint/var/initialization/function/struct.wgsl @@ -3,7 +3,7 @@ struct S { b : f32, }; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : S; _ = v; diff --git a/test/tint/var/initialization/function/struct.wgsl.expected.wgsl b/test/tint/var/initialization/function/struct.wgsl.expected.wgsl index 8bada3bbbb..be915fc93b 100644 --- a/test/tint/var/initialization/function/struct.wgsl.expected.wgsl +++ b/test/tint/var/initialization/function/struct.wgsl.expected.wgsl @@ -3,7 +3,7 @@ struct S { b : f32, } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : S; _ = v; diff --git a/test/tint/var/initialization/function/vector.wgsl b/test/tint/var/initialization/function/vector.wgsl index 40bc481cd8..d5fe138525 100644 --- a/test/tint/var/initialization/function/vector.wgsl +++ b/test/tint/var/initialization/function/vector.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : vec3; _ = v; diff --git a/test/tint/var/initialization/function/vector.wgsl.expected.wgsl b/test/tint/var/initialization/function/vector.wgsl.expected.wgsl index 37600e5b0d..f8839b50ec 100644 --- a/test/tint/var/initialization/function/vector.wgsl.expected.wgsl +++ b/test/tint/var/initialization/function/vector.wgsl.expected.wgsl @@ -1,4 +1,4 @@ -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { var v : vec3; _ = v; diff --git a/test/tint/var/initialization/private/array.wgsl b/test/tint/var/initialization/private/array.wgsl index f01730acb2..266e4f2dc9 100644 --- a/test/tint/var/initialization/private/array.wgsl +++ b/test/tint/var/initialization/private/array.wgsl @@ -1,6 +1,6 @@ var v : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = v; } diff --git a/test/tint/var/initialization/private/array.wgsl.expected.wgsl b/test/tint/var/initialization/private/array.wgsl.expected.wgsl index ba967ec751..478777ead0 100644 --- a/test/tint/var/initialization/private/array.wgsl.expected.wgsl +++ b/test/tint/var/initialization/private/array.wgsl.expected.wgsl @@ -1,6 +1,6 @@ var v : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = v; } diff --git a/test/tint/var/initialization/private/matrix.wgsl b/test/tint/var/initialization/private/matrix.wgsl index e46734c845..5ab7ed2b3e 100644 --- a/test/tint/var/initialization/private/matrix.wgsl +++ b/test/tint/var/initialization/private/matrix.wgsl @@ -1,6 +1,6 @@ var v : mat2x3; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = v; } diff --git a/test/tint/var/initialization/private/matrix.wgsl.expected.wgsl b/test/tint/var/initialization/private/matrix.wgsl.expected.wgsl index c3042ab821..e76e77ea28 100644 --- a/test/tint/var/initialization/private/matrix.wgsl.expected.wgsl +++ b/test/tint/var/initialization/private/matrix.wgsl.expected.wgsl @@ -1,6 +1,6 @@ var v : mat2x3; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = v; } diff --git a/test/tint/var/initialization/private/scalar.wgsl b/test/tint/var/initialization/private/scalar.wgsl index 8e46653bb3..c737250b46 100644 --- a/test/tint/var/initialization/private/scalar.wgsl +++ b/test/tint/var/initialization/private/scalar.wgsl @@ -1,6 +1,6 @@ var v : i32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = v; } diff --git a/test/tint/var/initialization/private/scalar.wgsl.expected.wgsl b/test/tint/var/initialization/private/scalar.wgsl.expected.wgsl index 911081b60c..7c128faa47 100644 --- a/test/tint/var/initialization/private/scalar.wgsl.expected.wgsl +++ b/test/tint/var/initialization/private/scalar.wgsl.expected.wgsl @@ -1,6 +1,6 @@ var v : i32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = v; } diff --git a/test/tint/var/initialization/private/struct.wgsl b/test/tint/var/initialization/private/struct.wgsl index 4d875955da..29e5d307eb 100644 --- a/test/tint/var/initialization/private/struct.wgsl +++ b/test/tint/var/initialization/private/struct.wgsl @@ -5,7 +5,7 @@ struct S { var v : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = v; } diff --git a/test/tint/var/initialization/private/struct.wgsl.expected.wgsl b/test/tint/var/initialization/private/struct.wgsl.expected.wgsl index bb45cd6fdd..53f8f6c040 100644 --- a/test/tint/var/initialization/private/struct.wgsl.expected.wgsl +++ b/test/tint/var/initialization/private/struct.wgsl.expected.wgsl @@ -5,7 +5,7 @@ struct S { var v : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = v; } diff --git a/test/tint/var/initialization/private/vector.wgsl b/test/tint/var/initialization/private/vector.wgsl index 2af1bf50cd..29f58234d1 100644 --- a/test/tint/var/initialization/private/vector.wgsl +++ b/test/tint/var/initialization/private/vector.wgsl @@ -1,6 +1,6 @@ var v : vec3; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = v; } diff --git a/test/tint/var/initialization/private/vector.wgsl.expected.wgsl b/test/tint/var/initialization/private/vector.wgsl.expected.wgsl index 183418e0f9..ea22b217ce 100644 --- a/test/tint/var/initialization/private/vector.wgsl.expected.wgsl +++ b/test/tint/var/initialization/private/vector.wgsl.expected.wgsl @@ -1,6 +1,6 @@ var v : vec3; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = v; } diff --git a/test/tint/var/initialization/workgroup/array.wgsl b/test/tint/var/initialization/workgroup/array.wgsl index 1d9aa8b84c..f3b6972d41 100644 --- a/test/tint/var/initialization/workgroup/array.wgsl +++ b/test/tint/var/initialization/workgroup/array.wgsl @@ -1,6 +1,6 @@ var v : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = v; } diff --git a/test/tint/var/initialization/workgroup/array.wgsl.expected.wgsl b/test/tint/var/initialization/workgroup/array.wgsl.expected.wgsl index cc53b73850..d1e084bafd 100644 --- a/test/tint/var/initialization/workgroup/array.wgsl.expected.wgsl +++ b/test/tint/var/initialization/workgroup/array.wgsl.expected.wgsl @@ -1,6 +1,6 @@ var v : array; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = v; } diff --git a/test/tint/var/initialization/workgroup/matrix.wgsl b/test/tint/var/initialization/workgroup/matrix.wgsl index f494319b2d..42505a65b4 100644 --- a/test/tint/var/initialization/workgroup/matrix.wgsl +++ b/test/tint/var/initialization/workgroup/matrix.wgsl @@ -1,6 +1,6 @@ var v : mat2x3; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = v; } diff --git a/test/tint/var/initialization/workgroup/matrix.wgsl.expected.wgsl b/test/tint/var/initialization/workgroup/matrix.wgsl.expected.wgsl index 62ce905895..bdda50ce88 100644 --- a/test/tint/var/initialization/workgroup/matrix.wgsl.expected.wgsl +++ b/test/tint/var/initialization/workgroup/matrix.wgsl.expected.wgsl @@ -1,6 +1,6 @@ var v : mat2x3; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = v; } diff --git a/test/tint/var/initialization/workgroup/scalar.wgsl b/test/tint/var/initialization/workgroup/scalar.wgsl index 37c8a4faf3..f99bf74f8c 100644 --- a/test/tint/var/initialization/workgroup/scalar.wgsl +++ b/test/tint/var/initialization/workgroup/scalar.wgsl @@ -1,6 +1,6 @@ var v : i32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = v; } diff --git a/test/tint/var/initialization/workgroup/scalar.wgsl.expected.wgsl b/test/tint/var/initialization/workgroup/scalar.wgsl.expected.wgsl index 3cfef70870..98978d068e 100644 --- a/test/tint/var/initialization/workgroup/scalar.wgsl.expected.wgsl +++ b/test/tint/var/initialization/workgroup/scalar.wgsl.expected.wgsl @@ -1,6 +1,6 @@ var v : i32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = v; } diff --git a/test/tint/var/initialization/workgroup/struct.wgsl b/test/tint/var/initialization/workgroup/struct.wgsl index 5aa0a6d8fb..c26547bced 100644 --- a/test/tint/var/initialization/workgroup/struct.wgsl +++ b/test/tint/var/initialization/workgroup/struct.wgsl @@ -5,7 +5,7 @@ struct S { var v : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = v; } diff --git a/test/tint/var/initialization/workgroup/struct.wgsl.expected.wgsl b/test/tint/var/initialization/workgroup/struct.wgsl.expected.wgsl index a8b7f86594..fe9b67f8f5 100644 --- a/test/tint/var/initialization/workgroup/struct.wgsl.expected.wgsl +++ b/test/tint/var/initialization/workgroup/struct.wgsl.expected.wgsl @@ -5,7 +5,7 @@ struct S { var v : S; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = v; } diff --git a/test/tint/var/initialization/workgroup/vector.wgsl b/test/tint/var/initialization/workgroup/vector.wgsl index 37ff6f2177..8e3a45bf62 100644 --- a/test/tint/var/initialization/workgroup/vector.wgsl +++ b/test/tint/var/initialization/workgroup/vector.wgsl @@ -1,6 +1,6 @@ var v : vec3; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = v; } diff --git a/test/tint/var/initialization/workgroup/vector.wgsl.expected.wgsl b/test/tint/var/initialization/workgroup/vector.wgsl.expected.wgsl index a6f967cbe7..21d32bacce 100644 --- a/test/tint/var/initialization/workgroup/vector.wgsl.expected.wgsl +++ b/test/tint/var/initialization/workgroup/vector.wgsl.expected.wgsl @@ -1,6 +1,6 @@ var v : vec3; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = v; } diff --git a/test/tint/var/override/named/no_init/bool.wgsl b/test/tint/var/override/named/no_init/bool.wgsl index 9c595f28bf..de58af9ed7 100644 --- a/test/tint/var/override/named/no_init/bool.wgsl +++ b/test/tint/var/override/named/no_init/bool.wgsl @@ -1,7 +1,7 @@ // flags: --overrides WGSL_SPEC_CONSTANT_0=0 override o : bool; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/named/no_init/bool.wgsl.expected.wgsl b/test/tint/var/override/named/no_init/bool.wgsl.expected.wgsl index 344ec0e312..6ee52bb2b6 100644 --- a/test/tint/var/override/named/no_init/bool.wgsl.expected.wgsl +++ b/test/tint/var/override/named/no_init/bool.wgsl.expected.wgsl @@ -1,6 +1,6 @@ override o : bool; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/named/no_init/f32.wgsl b/test/tint/var/override/named/no_init/f32.wgsl index 75b08411e2..ddc14507a7 100644 --- a/test/tint/var/override/named/no_init/f32.wgsl +++ b/test/tint/var/override/named/no_init/f32.wgsl @@ -1,7 +1,7 @@ // flags: --overrides WGSL_SPEC_CONSTANT_0=0 override o : f32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/named/no_init/f32.wgsl.expected.wgsl b/test/tint/var/override/named/no_init/f32.wgsl.expected.wgsl index bf38cdd930..bc62e28b2d 100644 --- a/test/tint/var/override/named/no_init/f32.wgsl.expected.wgsl +++ b/test/tint/var/override/named/no_init/f32.wgsl.expected.wgsl @@ -1,6 +1,6 @@ override o : f32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/named/no_init/i32.wgsl b/test/tint/var/override/named/no_init/i32.wgsl index 847fb278a3..1a951c97db 100644 --- a/test/tint/var/override/named/no_init/i32.wgsl +++ b/test/tint/var/override/named/no_init/i32.wgsl @@ -1,7 +1,7 @@ // flags: --overrides WGSL_SPEC_CONSTANT_0=0 override o : i32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/named/no_init/i32.wgsl.expected.wgsl b/test/tint/var/override/named/no_init/i32.wgsl.expected.wgsl index 95d395c9e9..e3f13ae612 100644 --- a/test/tint/var/override/named/no_init/i32.wgsl.expected.wgsl +++ b/test/tint/var/override/named/no_init/i32.wgsl.expected.wgsl @@ -1,6 +1,6 @@ override o : i32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/named/no_init/u32.wgsl b/test/tint/var/override/named/no_init/u32.wgsl index a56cecbec2..6440d75e35 100644 --- a/test/tint/var/override/named/no_init/u32.wgsl +++ b/test/tint/var/override/named/no_init/u32.wgsl @@ -1,7 +1,7 @@ // flags: --overrides WGSL_SPEC_CONSTANT_0=0 override o : u32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/named/no_init/u32.wgsl.expected.wgsl b/test/tint/var/override/named/no_init/u32.wgsl.expected.wgsl index 8d79972804..785862494d 100644 --- a/test/tint/var/override/named/no_init/u32.wgsl.expected.wgsl +++ b/test/tint/var/override/named/no_init/u32.wgsl.expected.wgsl @@ -1,6 +1,6 @@ override o : u32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/named/val_init/bool.wgsl b/test/tint/var/override/named/val_init/bool.wgsl index 8eaca90b85..839f0ae5c5 100644 --- a/test/tint/var/override/named/val_init/bool.wgsl +++ b/test/tint/var/override/named/val_init/bool.wgsl @@ -1,6 +1,6 @@ override o : bool = true; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/named/val_init/bool.wgsl.expected.wgsl b/test/tint/var/override/named/val_init/bool.wgsl.expected.wgsl index 02f5b7d2d9..46c64f0fe0 100644 --- a/test/tint/var/override/named/val_init/bool.wgsl.expected.wgsl +++ b/test/tint/var/override/named/val_init/bool.wgsl.expected.wgsl @@ -1,6 +1,6 @@ override o : bool = true; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/named/val_init/f32.wgsl b/test/tint/var/override/named/val_init/f32.wgsl index 0f718e87a3..7b981109ad 100644 --- a/test/tint/var/override/named/val_init/f32.wgsl +++ b/test/tint/var/override/named/val_init/f32.wgsl @@ -1,6 +1,6 @@ override o : f32 = 1.0; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/named/val_init/f32.wgsl.expected.wgsl b/test/tint/var/override/named/val_init/f32.wgsl.expected.wgsl index 1c53942f13..b297f1a55c 100644 --- a/test/tint/var/override/named/val_init/f32.wgsl.expected.wgsl +++ b/test/tint/var/override/named/val_init/f32.wgsl.expected.wgsl @@ -1,6 +1,6 @@ override o : f32 = 1.0; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/named/val_init/i32.wgsl b/test/tint/var/override/named/val_init/i32.wgsl index 9f4b021ed1..bcc63d5892 100644 --- a/test/tint/var/override/named/val_init/i32.wgsl +++ b/test/tint/var/override/named/val_init/i32.wgsl @@ -1,6 +1,6 @@ override o : i32 = 1; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/named/val_init/i32.wgsl.expected.wgsl b/test/tint/var/override/named/val_init/i32.wgsl.expected.wgsl index f36ff37a32..52b23b936f 100644 --- a/test/tint/var/override/named/val_init/i32.wgsl.expected.wgsl +++ b/test/tint/var/override/named/val_init/i32.wgsl.expected.wgsl @@ -1,6 +1,6 @@ override o : i32 = 1; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/named/val_init/u32.wgsl b/test/tint/var/override/named/val_init/u32.wgsl index 77ca84c4ad..0ae52cc4f7 100644 --- a/test/tint/var/override/named/val_init/u32.wgsl +++ b/test/tint/var/override/named/val_init/u32.wgsl @@ -1,6 +1,6 @@ override o : u32 = 1u; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/named/val_init/u32.wgsl.expected.wgsl b/test/tint/var/override/named/val_init/u32.wgsl.expected.wgsl index 4a56f44644..ab5c07a1bf 100644 --- a/test/tint/var/override/named/val_init/u32.wgsl.expected.wgsl +++ b/test/tint/var/override/named/val_init/u32.wgsl.expected.wgsl @@ -1,6 +1,6 @@ override o : u32 = 1u; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/named/zero_init/bool.wgsl b/test/tint/var/override/named/zero_init/bool.wgsl index 1dff97f0d1..b9c57b395e 100644 --- a/test/tint/var/override/named/zero_init/bool.wgsl +++ b/test/tint/var/override/named/zero_init/bool.wgsl @@ -1,6 +1,6 @@ override o : bool = bool(); -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/named/zero_init/bool.wgsl.expected.wgsl b/test/tint/var/override/named/zero_init/bool.wgsl.expected.wgsl index cfd341ee0e..283ad4ebfa 100644 --- a/test/tint/var/override/named/zero_init/bool.wgsl.expected.wgsl +++ b/test/tint/var/override/named/zero_init/bool.wgsl.expected.wgsl @@ -1,6 +1,6 @@ override o : bool = bool(); -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/named/zero_init/f32.wgsl b/test/tint/var/override/named/zero_init/f32.wgsl index c4f949ab58..a49a8a392e 100644 --- a/test/tint/var/override/named/zero_init/f32.wgsl +++ b/test/tint/var/override/named/zero_init/f32.wgsl @@ -1,6 +1,6 @@ override o : f32 = f32(); -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/named/zero_init/f32.wgsl.expected.wgsl b/test/tint/var/override/named/zero_init/f32.wgsl.expected.wgsl index 159b6a90c5..b3b26c1145 100644 --- a/test/tint/var/override/named/zero_init/f32.wgsl.expected.wgsl +++ b/test/tint/var/override/named/zero_init/f32.wgsl.expected.wgsl @@ -1,6 +1,6 @@ override o : f32 = f32(); -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/named/zero_init/i32.wgsl b/test/tint/var/override/named/zero_init/i32.wgsl index 2b44da76ea..21cb5cbeb2 100644 --- a/test/tint/var/override/named/zero_init/i32.wgsl +++ b/test/tint/var/override/named/zero_init/i32.wgsl @@ -1,6 +1,6 @@ override o : i32 = i32(); -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/named/zero_init/i32.wgsl.expected.wgsl b/test/tint/var/override/named/zero_init/i32.wgsl.expected.wgsl index e02284c769..b699ac1847 100644 --- a/test/tint/var/override/named/zero_init/i32.wgsl.expected.wgsl +++ b/test/tint/var/override/named/zero_init/i32.wgsl.expected.wgsl @@ -1,6 +1,6 @@ override o : i32 = i32(); -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/named/zero_init/u32.wgsl b/test/tint/var/override/named/zero_init/u32.wgsl index de11d5a9c0..137b5f8167 100644 --- a/test/tint/var/override/named/zero_init/u32.wgsl +++ b/test/tint/var/override/named/zero_init/u32.wgsl @@ -1,6 +1,6 @@ override o : u32 = u32(); -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/named/zero_init/u32.wgsl.expected.wgsl b/test/tint/var/override/named/zero_init/u32.wgsl.expected.wgsl index 62250f44b1..01620769ca 100644 --- a/test/tint/var/override/named/zero_init/u32.wgsl.expected.wgsl +++ b/test/tint/var/override/named/zero_init/u32.wgsl.expected.wgsl @@ -1,6 +1,6 @@ override o : u32 = u32(); -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/numbered/no_init/bool.wgsl b/test/tint/var/override/numbered/no_init/bool.wgsl index 34818a18f5..955c29f1e6 100644 --- a/test/tint/var/override/numbered/no_init/bool.wgsl +++ b/test/tint/var/override/numbered/no_init/bool.wgsl @@ -1,7 +1,7 @@ // flags: --overrides WGSL_SPEC_CONSTANT_1234=0 @id(1234) override o : bool; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/numbered/no_init/bool.wgsl.expected.wgsl b/test/tint/var/override/numbered/no_init/bool.wgsl.expected.wgsl index d2077c0006..fac817d292 100644 --- a/test/tint/var/override/numbered/no_init/bool.wgsl.expected.wgsl +++ b/test/tint/var/override/numbered/no_init/bool.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @id(1234) override o : bool; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/numbered/no_init/f32.wgsl b/test/tint/var/override/numbered/no_init/f32.wgsl index dde41d982d..ecef6e18bd 100644 --- a/test/tint/var/override/numbered/no_init/f32.wgsl +++ b/test/tint/var/override/numbered/no_init/f32.wgsl @@ -1,7 +1,7 @@ // flags: --overrides WGSL_SPEC_CONSTANT_1234=0 @id(1234) override o : f32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/numbered/no_init/f32.wgsl.expected.wgsl b/test/tint/var/override/numbered/no_init/f32.wgsl.expected.wgsl index 1d3c7ca79f..b7cf516305 100644 --- a/test/tint/var/override/numbered/no_init/f32.wgsl.expected.wgsl +++ b/test/tint/var/override/numbered/no_init/f32.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @id(1234) override o : f32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/numbered/no_init/i32.wgsl b/test/tint/var/override/numbered/no_init/i32.wgsl index afc07efd2d..a347fc6313 100644 --- a/test/tint/var/override/numbered/no_init/i32.wgsl +++ b/test/tint/var/override/numbered/no_init/i32.wgsl @@ -1,7 +1,7 @@ // flags: --overrides WGSL_SPEC_CONSTANT_1234=0 @id(1234) override o : i32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/numbered/no_init/i32.wgsl.expected.wgsl b/test/tint/var/override/numbered/no_init/i32.wgsl.expected.wgsl index 89e30497eb..8538212210 100644 --- a/test/tint/var/override/numbered/no_init/i32.wgsl.expected.wgsl +++ b/test/tint/var/override/numbered/no_init/i32.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @id(1234) override o : i32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/numbered/no_init/u32.wgsl b/test/tint/var/override/numbered/no_init/u32.wgsl index be20c985f0..0fe7b1293d 100644 --- a/test/tint/var/override/numbered/no_init/u32.wgsl +++ b/test/tint/var/override/numbered/no_init/u32.wgsl @@ -1,7 +1,7 @@ // flags: --overrides WGSL_SPEC_CONSTANT_1234=0 @id(1234) override o : u32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/numbered/no_init/u32.wgsl.expected.wgsl b/test/tint/var/override/numbered/no_init/u32.wgsl.expected.wgsl index d330537a46..a187373791 100644 --- a/test/tint/var/override/numbered/no_init/u32.wgsl.expected.wgsl +++ b/test/tint/var/override/numbered/no_init/u32.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @id(1234) override o : u32; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/numbered/val_init/bool.wgsl b/test/tint/var/override/numbered/val_init/bool.wgsl index 815e5102d1..17983bbf01 100644 --- a/test/tint/var/override/numbered/val_init/bool.wgsl +++ b/test/tint/var/override/numbered/val_init/bool.wgsl @@ -1,6 +1,6 @@ @id(1234) override o : bool = true; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/numbered/val_init/bool.wgsl.expected.wgsl b/test/tint/var/override/numbered/val_init/bool.wgsl.expected.wgsl index 623733603a..ff5606e60b 100644 --- a/test/tint/var/override/numbered/val_init/bool.wgsl.expected.wgsl +++ b/test/tint/var/override/numbered/val_init/bool.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @id(1234) override o : bool = true; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/numbered/val_init/f32.wgsl b/test/tint/var/override/numbered/val_init/f32.wgsl index c565064ee9..55635abf4f 100644 --- a/test/tint/var/override/numbered/val_init/f32.wgsl +++ b/test/tint/var/override/numbered/val_init/f32.wgsl @@ -1,6 +1,6 @@ @id(1234) override o : f32 = 1.0; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/numbered/val_init/f32.wgsl.expected.wgsl b/test/tint/var/override/numbered/val_init/f32.wgsl.expected.wgsl index 8599cbae21..7c7a9378ad 100644 --- a/test/tint/var/override/numbered/val_init/f32.wgsl.expected.wgsl +++ b/test/tint/var/override/numbered/val_init/f32.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @id(1234) override o : f32 = 1.0; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/numbered/val_init/i32.wgsl b/test/tint/var/override/numbered/val_init/i32.wgsl index 78cb191005..d763d36595 100644 --- a/test/tint/var/override/numbered/val_init/i32.wgsl +++ b/test/tint/var/override/numbered/val_init/i32.wgsl @@ -1,6 +1,6 @@ @id(1234) override o : i32 = 1; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/numbered/val_init/i32.wgsl.expected.wgsl b/test/tint/var/override/numbered/val_init/i32.wgsl.expected.wgsl index 062ca36492..84151e88d4 100644 --- a/test/tint/var/override/numbered/val_init/i32.wgsl.expected.wgsl +++ b/test/tint/var/override/numbered/val_init/i32.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @id(1234) override o : i32 = 1; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/numbered/val_init/u32.wgsl b/test/tint/var/override/numbered/val_init/u32.wgsl index bbc740930e..107bb310d0 100644 --- a/test/tint/var/override/numbered/val_init/u32.wgsl +++ b/test/tint/var/override/numbered/val_init/u32.wgsl @@ -1,6 +1,6 @@ @id(1234) override o : u32 = 1u; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/numbered/val_init/u32.wgsl.expected.wgsl b/test/tint/var/override/numbered/val_init/u32.wgsl.expected.wgsl index 8a65ad64a0..9ea424d3a8 100644 --- a/test/tint/var/override/numbered/val_init/u32.wgsl.expected.wgsl +++ b/test/tint/var/override/numbered/val_init/u32.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @id(1234) override o : u32 = 1u; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/numbered/zero_init/bool.wgsl b/test/tint/var/override/numbered/zero_init/bool.wgsl index b411e9cad7..531d595cf9 100644 --- a/test/tint/var/override/numbered/zero_init/bool.wgsl +++ b/test/tint/var/override/numbered/zero_init/bool.wgsl @@ -1,6 +1,6 @@ @id(1234) override o : bool = bool(); -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/numbered/zero_init/bool.wgsl.expected.wgsl b/test/tint/var/override/numbered/zero_init/bool.wgsl.expected.wgsl index 41ae914fba..1f7f861313 100644 --- a/test/tint/var/override/numbered/zero_init/bool.wgsl.expected.wgsl +++ b/test/tint/var/override/numbered/zero_init/bool.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @id(1234) override o : bool = bool(); -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/numbered/zero_init/f32.wgsl b/test/tint/var/override/numbered/zero_init/f32.wgsl index 92dffa4ce0..40361fcf08 100644 --- a/test/tint/var/override/numbered/zero_init/f32.wgsl +++ b/test/tint/var/override/numbered/zero_init/f32.wgsl @@ -1,6 +1,6 @@ @id(1234) override o : f32 = f32(); -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/numbered/zero_init/f32.wgsl.expected.wgsl b/test/tint/var/override/numbered/zero_init/f32.wgsl.expected.wgsl index caaafb029a..af740ac3e3 100644 --- a/test/tint/var/override/numbered/zero_init/f32.wgsl.expected.wgsl +++ b/test/tint/var/override/numbered/zero_init/f32.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @id(1234) override o : f32 = f32(); -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/numbered/zero_init/i32.wgsl b/test/tint/var/override/numbered/zero_init/i32.wgsl index 79f3f2ca26..c1e8fe712f 100644 --- a/test/tint/var/override/numbered/zero_init/i32.wgsl +++ b/test/tint/var/override/numbered/zero_init/i32.wgsl @@ -1,6 +1,6 @@ @id(1234) override o : i32 = i32(); -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/numbered/zero_init/i32.wgsl.expected.wgsl b/test/tint/var/override/numbered/zero_init/i32.wgsl.expected.wgsl index f10ef51793..ac2516f0ac 100644 --- a/test/tint/var/override/numbered/zero_init/i32.wgsl.expected.wgsl +++ b/test/tint/var/override/numbered/zero_init/i32.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @id(1234) override o : i32 = i32(); -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/numbered/zero_init/u32.wgsl b/test/tint/var/override/numbered/zero_init/u32.wgsl index a0e7de6b54..183862ff93 100644 --- a/test/tint/var/override/numbered/zero_init/u32.wgsl +++ b/test/tint/var/override/numbered/zero_init/u32.wgsl @@ -1,6 +1,6 @@ @id(1234) override o : u32 = u32(); -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/override/numbered/zero_init/u32.wgsl.expected.wgsl b/test/tint/var/override/numbered/zero_init/u32.wgsl.expected.wgsl index 710e3ebea7..b4551272d5 100644 --- a/test/tint/var/override/numbered/zero_init/u32.wgsl.expected.wgsl +++ b/test/tint/var/override/numbered/zero_init/u32.wgsl.expected.wgsl @@ -1,6 +1,6 @@ @id(1234) override o : u32 = u32(); -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main() { _ = o; } diff --git a/test/tint/var/uses/many_workgroup_vars.wgsl b/test/tint/var/uses/many_workgroup_vars.wgsl index 56df492ece..4a08679b58 100644 --- a/test/tint/var/uses/many_workgroup_vars.wgsl +++ b/test/tint/var/uses/many_workgroup_vars.wgsl @@ -99,7 +99,7 @@ var m97 : mat2x2; var m98 : mat2x2; var m99 : mat2x2; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn tint_symbol(@builtin(local_invocation_index) idx : u32) { m00[0][0] = 1.0; m01[0][0] = 1.0; diff --git a/test/tint/var/uses/many_workgroup_vars.wgsl.expected.wgsl b/test/tint/var/uses/many_workgroup_vars.wgsl.expected.wgsl index 9d1822e0cd..dd7c89bd63 100644 --- a/test/tint/var/uses/many_workgroup_vars.wgsl.expected.wgsl +++ b/test/tint/var/uses/many_workgroup_vars.wgsl.expected.wgsl @@ -198,7 +198,7 @@ var m98 : mat2x2; var m99 : mat2x2; -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn tint_symbol(@builtin(local_invocation_index) idx : u32) { m00[0][0] = 1.0; m01[0][0] = 1.0; diff --git a/test/tint/var/uses/private.wgsl b/test/tint/var/uses/private.wgsl index 6ec289a94d..9b83ccb906 100644 --- a/test/tint/var/uses/private.wgsl +++ b/test/tint/var/uses/private.wgsl @@ -25,25 +25,25 @@ fn outer() { no_uses(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main1() { a = 42; uses_a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main2() { b = 7; uses_b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main3() { outer(); no_uses(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main4() { no_uses(); } diff --git a/test/tint/var/uses/private.wgsl.expected.wgsl b/test/tint/var/uses/private.wgsl.expected.wgsl index 477044740d..e16dddb55d 100644 --- a/test/tint/var/uses/private.wgsl.expected.wgsl +++ b/test/tint/var/uses/private.wgsl.expected.wgsl @@ -27,25 +27,25 @@ fn outer() { no_uses(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main1() { a = 42; uses_a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main2() { b = 7; uses_b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main3() { outer(); no_uses(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main4() { no_uses(); } diff --git a/test/tint/var/uses/workgroup.wgsl b/test/tint/var/uses/workgroup.wgsl index 23736b525e..029b67da29 100644 --- a/test/tint/var/uses/workgroup.wgsl +++ b/test/tint/var/uses/workgroup.wgsl @@ -25,25 +25,25 @@ fn outer() { no_uses(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main1() { a = 42; uses_a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main2() { b = 7; uses_b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main3() { outer(); no_uses(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main4() { no_uses(); } diff --git a/test/tint/var/uses/workgroup.wgsl.expected.wgsl b/test/tint/var/uses/workgroup.wgsl.expected.wgsl index a3386fec6c..bde813ab92 100644 --- a/test/tint/var/uses/workgroup.wgsl.expected.wgsl +++ b/test/tint/var/uses/workgroup.wgsl.expected.wgsl @@ -27,25 +27,25 @@ fn outer() { no_uses(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main1() { a = 42; uses_a(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main2() { b = 7; uses_b(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main3() { outer(); no_uses(); } -@stage(compute) @workgroup_size(1) +@compute @workgroup_size(1) fn main4() { no_uses(); } diff --git a/test/tint/vk-gl-cts/api/descriptor_set/descriptor_set_layout_binding/layout_binding_order/0.wgsl b/test/tint/vk-gl-cts/api/descriptor_set/descriptor_set_layout_binding/layout_binding_order/0.wgsl index 6997f0cb07..798e1a6f26 100644 --- a/test/tint/vk-gl-cts/api/descriptor_set/descriptor_set_layout_binding/layout_binding_order/0.wgsl +++ b/test/tint/vk-gl-cts/api/descriptor_set/descriptor_set_layout_binding/layout_binding_order/0.wgsl @@ -34,7 +34,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main() { main_1(); } diff --git a/test/tint/vk-gl-cts/binding_model/dynamic_offset/shader_reuse_differing_layout_compute/0.wgsl b/test/tint/vk-gl-cts/binding_model/dynamic_offset/shader_reuse_differing_layout_compute/0.wgsl index ff8d1eebbc..4ededd0cd7 100644 --- a/test/tint/vk-gl-cts/binding_model/dynamic_offset/shader_reuse_differing_layout_compute/0.wgsl +++ b/test/tint/vk-gl-cts/binding_model/dynamic_offset/shader_reuse_differing_layout_compute/0.wgsl @@ -9,7 +9,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main() { main_1(); } diff --git a/test/tint/vk-gl-cts/binding_model/dynamic_offset/shader_reuse_differing_layout_graphics/0.wgsl b/test/tint/vk-gl-cts/binding_model/dynamic_offset/shader_reuse_differing_layout_graphics/0.wgsl index 382abb7056..e77dd7dca9 100644 --- a/test/tint/vk-gl-cts/binding_model/dynamic_offset/shader_reuse_differing_layout_graphics/0.wgsl +++ b/test/tint/vk-gl-cts/binding_model/dynamic_offset/shader_reuse_differing_layout_graphics/0.wgsl @@ -25,7 +25,7 @@ struct main_out { frag_color_1 : vec4, } -@stage(vertex) +@vertex fn main(@location(0) position_param : vec4) -> main_out { position = position_param; main_1(); diff --git a/test/tint/vk-gl-cts/binding_model/dynamic_offset/shader_reuse_differing_layout_graphics/1.wgsl b/test/tint/vk-gl-cts/binding_model/dynamic_offset/shader_reuse_differing_layout_graphics/1.wgsl index a23ed1f26a..574dcecb9d 100644 --- a/test/tint/vk-gl-cts/binding_model/dynamic_offset/shader_reuse_differing_layout_graphics/1.wgsl +++ b/test/tint/vk-gl-cts/binding_model/dynamic_offset/shader_reuse_differing_layout_graphics/1.wgsl @@ -13,7 +13,7 @@ struct main_out { final_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@location(0) frag_color_param : vec4) -> main_out { frag_color = frag_color_param; main_1(); diff --git a/test/tint/vk-gl-cts/combined_operations/negintdivand/0-opt.wgsl b/test/tint/vk-gl-cts/combined_operations/negintdivand/0-opt.wgsl index 02b20e24f3..98179f874b 100644 --- a/test/tint/vk-gl-cts/combined_operations/negintdivand/0-opt.wgsl +++ b/test/tint/vk-gl-cts/combined_operations/negintdivand/0-opt.wgsl @@ -19,7 +19,7 @@ struct main_out { frag_color_1 : vec4, } -@stage(vertex) +@vertex fn main(@location(0) position_param : vec4) -> main_out { position = position_param; main_1(); diff --git a/test/tint/vk-gl-cts/combined_operations/negintdivand/1.wgsl b/test/tint/vk-gl-cts/combined_operations/negintdivand/1.wgsl index 372cd82d0a..df17ef4b75 100644 --- a/test/tint/vk-gl-cts/combined_operations/negintdivand/1.wgsl +++ b/test/tint/vk-gl-cts/combined_operations/negintdivand/1.wgsl @@ -20,7 +20,7 @@ struct main_out { color_out_1 : vec4, } -@stage(fragment) +@fragment fn main(@location(1) frag_color_param : vec4) -> main_out { frag_color = frag_color_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/access-new-vector-inside-if-condition/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/access-new-vector-inside-if-condition/0-opt.wgsl index 9ca3830b7d..97d3f2d030 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/access-new-vector-inside-if-condition/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/access-new-vector-inside-if-condition/0-opt.wgsl @@ -15,7 +15,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/always-discarding-function/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/always-discarding-function/0-opt.wgsl index 4e1dcd4bef..d21b69cf37 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/always-discarding-function/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/always-discarding-function/0-opt.wgsl @@ -105,7 +105,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/arr-value-set-to-arr-value-squared/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/arr-value-set-to-arr-value-squared/0-opt.wgsl index b82911e32a..5589016cfd 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/arr-value-set-to-arr-value-squared/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/arr-value-set-to-arr-value-squared/0-opt.wgsl @@ -189,7 +189,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/array-idx-multiplied-by-for-loop-idx/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/array-idx-multiplied-by-for-loop-idx/0-opt.wgsl index ca479f146b..0a755eae2a 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/array-idx-multiplied-by-for-loop-idx/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/array-idx-multiplied-by-for-loop-idx/0-opt.wgsl @@ -95,7 +95,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/assign-array-value-to-another-array-2/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/assign-array-value-to-another-array-2/0-opt.wgsl index 30a8516e49..ddebef096b 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/assign-array-value-to-another-array-2/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/assign-array-value-to-another-array-2/0-opt.wgsl @@ -105,7 +105,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/assign-array-value-to-another-array/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/assign-array-value-to-another-array/0-opt.wgsl index 483497ec90..ade160a768 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/assign-array-value-to-another-array/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/assign-array-value-to-another-array/0-opt.wgsl @@ -87,7 +87,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/barrier-in-loop-with-break/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/barrier-in-loop-with-break/0-opt.wgsl index db02a9b155..eb6d8beec9 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/barrier-in-loop-with-break/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/barrier-in-loop-with-break/0-opt.wgsl @@ -55,7 +55,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(16, 1, 1) +@compute @workgroup_size(16, 1, 1) fn main(@builtin(local_invocation_id) gl_LocalInvocationID_param : vec3) { gl_LocalInvocationID = gl_LocalInvocationID_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/break-in-do-while-with-nested-if/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/break-in-do-while-with-nested-if/0-opt.wgsl index 58086b587e..8d5b8604a2 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/break-in-do-while-with-nested-if/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/break-in-do-while-with-nested-if/0-opt.wgsl @@ -37,7 +37,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/call-function-with-discard/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/call-function-with-discard/0-opt.wgsl index 6909d48370..6fdd88161b 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/call-function-with-discard/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/call-function-with-discard/0-opt.wgsl @@ -32,7 +32,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/call-if-while-switch/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/call-if-while-switch/0-opt.wgsl index 7a949f2ccb..00cdb6388d 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/call-if-while-switch/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/call-if-while-switch/0-opt.wgsl @@ -65,7 +65,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/color-set-in-for-loop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/color-set-in-for-loop/0-opt.wgsl index 2e3649fe5b..e3c97d72f5 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/color-set-in-for-loop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/color-set-in-for-loop/0-opt.wgsl @@ -24,7 +24,7 @@ struct main_out { x_GLF_color_1 : vec4, }; -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/color-write-in-loop/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/color-write-in-loop/0.wgsl index c4cb117b18..044314aead 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/color-write-in-loop/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/color-write-in-loop/0.wgsl @@ -65,7 +65,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/conditional-return-in-infinite-while/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/conditional-return-in-infinite-while/0-opt.wgsl index 7740b40d5c..0413bb0338 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/conditional-return-in-infinite-while/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/conditional-return-in-infinite-while/0-opt.wgsl @@ -43,7 +43,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/control-flow-in-function/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/control-flow-in-function/0-opt.wgsl index 55480e9e88..55e5cb019d 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/control-flow-in-function/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/control-flow-in-function/0-opt.wgsl @@ -308,7 +308,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cosh-return-inf-unused/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cosh-return-inf-unused/0-opt.wgsl index 989414f77e..bf686471fa 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cosh-return-inf-unused/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cosh-return-inf-unused/0-opt.wgsl @@ -116,7 +116,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-access-array-dot/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-access-array-dot/0-opt.wgsl index 14f52ecc40..663f9211df 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-access-array-dot/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-access-array-dot/0-opt.wgsl @@ -68,7 +68,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-analysis-reachable-from-many/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-analysis-reachable-from-many/0-opt.wgsl index 01d481332c..0707959421 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-analysis-reachable-from-many/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-analysis-reachable-from-many/0-opt.wgsl @@ -67,7 +67,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-and-even-numbers-from-fragcoord/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-and-even-numbers-from-fragcoord/0-opt.wgsl index c9e1346dcc..2165d5e334 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-and-even-numbers-from-fragcoord/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-and-even-numbers-from-fragcoord/0-opt.wgsl @@ -59,7 +59,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-acos-ldexp/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-acos-ldexp/0-opt.wgsl index 3acd4f40e7..4d66dedb2e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-acos-ldexp/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-acos-ldexp/0-opt.wgsl @@ -27,7 +27,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-mix-nan/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-mix-nan/0-opt.wgsl index bcb113cb4b..8334cdb88e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-mix-nan/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-mix-nan/0-opt.wgsl @@ -72,7 +72,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-mod-zero/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-mod-zero/0-opt.wgsl index 3fcf705b15..3766aeff21 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-mod-zero/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-mod-zero/0-opt.wgsl @@ -62,7 +62,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-reflect-denorm/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-reflect-denorm/0-opt.wgsl index 2365447da1..824afdba5b 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-reflect-denorm/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-reflect-denorm/0-opt.wgsl @@ -67,7 +67,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-sinh-negative-log2/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-sinh-negative-log2/0-opt.wgsl index 2704791162..31e0e34db2 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-sinh-negative-log2/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-sinh-negative-log2/0-opt.wgsl @@ -60,7 +60,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-tanh/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-tanh/0-opt.wgsl index 405795b4c5..2707f5659e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-tanh/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-tanh/0-opt.wgsl @@ -26,7 +26,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-undefined-matrix-mul/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-undefined-matrix-mul/0-opt.wgsl index 7ee2ddc013..6d695adf70 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-undefined-matrix-mul/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-undefined-matrix-mul/0-opt.wgsl @@ -93,7 +93,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-unpackunorm-loop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-unpackunorm-loop/0-opt.wgsl index 0c68847fb6..1a714f0b33 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-unpackunorm-loop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-apfloat-unpackunorm-loop/0-opt.wgsl @@ -53,7 +53,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-array-accesses-clamp/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-array-accesses-clamp/0-opt.wgsl index 6a1eb17baa..9b23f2a7f6 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-array-accesses-clamp/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-array-accesses-clamp/0-opt.wgsl @@ -72,7 +72,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-array-copies-loops-with-limiters/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-array-copies-loops-with-limiters/0-opt.wgsl index e5f7fe4018..7ae5656963 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-array-copies-loops-with-limiters/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-array-copies-loops-with-limiters/0-opt.wgsl @@ -228,7 +228,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-asin-undefined-smoothstep/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-asin-undefined-smoothstep/0-opt.wgsl index 7824aca0bf..8db47c1376 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-asin-undefined-smoothstep/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-asin-undefined-smoothstep/0-opt.wgsl @@ -93,7 +93,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-atan-trunc-vec4/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-atan-trunc-vec4/0-opt.wgsl index fd2a248a00..f054a867d0 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-atan-trunc-vec4/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-atan-trunc-vec4/0-opt.wgsl @@ -67,7 +67,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-basic-block-discard-in-function/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-basic-block-discard-in-function/0-opt.wgsl index 28978282f9..34bdda3bef 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-basic-block-discard-in-function/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-basic-block-discard-in-function/0-opt.wgsl @@ -51,7 +51,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-bitcount/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-bitcount/0-opt.wgsl index f3376403cc..1dd221f139 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-bitcount/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-bitcount/0-opt.wgsl @@ -75,7 +75,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-bitfieldreverse-loop-limit-underflow/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-bitfieldreverse-loop-limit-underflow/0.wgsl index 656a8247be..5ed9acf781 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-bitfieldreverse-loop-limit-underflow/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-bitfieldreverse-loop-limit-underflow/0.wgsl @@ -66,7 +66,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-bitwise-inverse-uniform-condition/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-bitwise-inverse-uniform-condition/0-opt.wgsl index fe80563295..8b0be0921e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-bitwise-inverse-uniform-condition/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-bitwise-inverse-uniform-condition/0-opt.wgsl @@ -67,7 +67,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-blockfrequency-several-for-loops/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-blockfrequency-several-for-loops/0-opt.wgsl index dd18cd58a2..10b0b75688 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-blockfrequency-several-for-loops/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-blockfrequency-several-for-loops/0-opt.wgsl @@ -153,7 +153,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-branch-probability-identity-matrix/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-branch-probability-identity-matrix/0-opt.wgsl index 01c22cf13c..0dc3069022 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-branch-probability-identity-matrix/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-branch-probability-identity-matrix/0-opt.wgsl @@ -151,7 +151,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-cast-float-to-int-and-back/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-cast-float-to-int-and-back/0-opt.wgsl index 1bd35c9f16..56f31adcf4 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-cast-float-to-int-and-back/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-cast-float-to-int-and-back/0-opt.wgsl @@ -36,7 +36,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-loop-limit-increment-float-array/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-loop-limit-increment-float-array/0-opt.wgsl index 6fe0c209fa..44d84ee15c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-loop-limit-increment-float-array/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-loop-limit-increment-float-array/0-opt.wgsl @@ -79,7 +79,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-lower-limit-from-always-false/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-lower-limit-from-always-false/0-opt.wgsl index 2d3a69b39a..e0b1c7d30a 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-lower-limit-from-always-false/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-lower-limit-from-always-false/0-opt.wgsl @@ -55,7 +55,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-component-condition-using-matrix/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-component-condition-using-matrix/0-opt.wgsl index 3803b96b55..a517edc55c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-component-condition-using-matrix/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-component-condition-using-matrix/0-opt.wgsl @@ -85,7 +85,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-element-ceil-negative/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-element-ceil-negative/0-opt.wgsl index 840baf19bc..12131bc0d9 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-element-ceil-negative/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-element-ceil-negative/0-opt.wgsl @@ -56,7 +56,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-variable-negative-offset/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-variable-negative-offset/0-opt.wgsl index f8aae14c96..efd21d3f30 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-variable-negative-offset/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-clamp-vector-variable-negative-offset/0-opt.wgsl @@ -56,7 +56,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-clear-yz-inside-condition/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-clear-yz-inside-condition/0-opt.wgsl index d77e5eff0f..4763b60610 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-clear-yz-inside-condition/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-clear-yz-inside-condition/0-opt.wgsl @@ -52,7 +52,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-color-output-undefined-in-unexecuted-branch/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-color-output-undefined-in-unexecuted-branch/0-opt.wgsl index 2828ef3183..b4408a66dc 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-color-output-undefined-in-unexecuted-branch/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-color-output-undefined-in-unexecuted-branch/0-opt.wgsl @@ -147,7 +147,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-color-overwrite-identity-matrix-multiply/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-color-overwrite-identity-matrix-multiply/0.wgsl index 723750d3f2..4cd39d2edf 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-color-overwrite-identity-matrix-multiply/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-color-overwrite-identity-matrix-multiply/0.wgsl @@ -41,7 +41,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-combine-and-or-xor-gt-lt/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-combine-and-or-xor-gt-lt/0-opt.wgsl index aed5a7c878..dba1df6619 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-combine-and-or-xor-gt-lt/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-combine-and-or-xor-gt-lt/0-opt.wgsl @@ -51,7 +51,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-condition-loop-index-bitwise-not/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-condition-loop-index-bitwise-not/0-opt.wgsl index 2e7e905122..3d8c594c61 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-condition-loop-index-bitwise-not/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-condition-loop-index-bitwise-not/0-opt.wgsl @@ -59,7 +59,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-conditional-discard-inside-loop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-conditional-discard-inside-loop/0-opt.wgsl index 5a12a3a0ee..d7b593a704 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-conditional-discard-inside-loop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-conditional-discard-inside-loop/0-opt.wgsl @@ -74,7 +74,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-ceil-vec4/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-ceil-vec4/0-opt.wgsl index f9bf0346b4..961247d226 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-ceil-vec4/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-ceil-vec4/0-opt.wgsl @@ -24,7 +24,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-inside-while/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-inside-while/0-opt.wgsl index 12fa7fd62b..3465cfae35 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-inside-while/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-inside-while/0-opt.wgsl @@ -32,7 +32,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-min/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-min/0-opt.wgsl index e129446fd4..09f2c578bf 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-min/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-min/0-opt.wgsl @@ -22,7 +22,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-vs-original/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-vs-original/0-opt.wgsl index 33f0a301c8..09192ed0fa 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-vs-original/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp-vs-original/0-opt.wgsl @@ -27,7 +27,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp/0-opt.wgsl index ff07167a20..a49457f8b9 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-clamp/0-opt.wgsl @@ -33,7 +33,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-dot-condition-true/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-dot-condition-true/0-opt.wgsl index a37027f6a8..dcc2d71ef7 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-dot-condition-true/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-dot-condition-true/0-opt.wgsl @@ -17,7 +17,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-gte-const-first/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-gte-const-first/0.wgsl index 4d552c135f..06db937ca3 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-gte-const-first/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-gte-const-first/0.wgsl @@ -24,7 +24,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-min-as-loop-range/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-min-as-loop-range/0-opt.wgsl index dbd8670039..ef5aad630b 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-min-as-loop-range/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-min-as-loop-range/0-opt.wgsl @@ -72,7 +72,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-mod-one-one-lte/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-mod-one-one-lte/0-opt.wgsl index bde5e50704..3e94de70fe 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-mod-one-one-lte/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-mod-one-one-lte/0-opt.wgsl @@ -32,7 +32,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-pow-large-exp/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-pow-large-exp/0-opt.wgsl index e744089580..e480acbc4c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-pow-large-exp/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-pow-large-exp/0-opt.wgsl @@ -62,7 +62,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-same-condition/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-same-condition/0-opt.wgsl index 0c19e6f3ef..abb114b0ad 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-same-condition/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-same-condition/0-opt.wgsl @@ -44,7 +44,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-vector-shuffle/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-vector-shuffle/0.wgsl index 4563cb8ac9..f78ce8289f 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-vector-shuffle/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-const-folding-vector-shuffle/0.wgsl @@ -46,7 +46,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-constant-folding-atan-over-tanh/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-constant-folding-atan-over-tanh/0-opt.wgsl index 37d5e8d78c..3e232f0ae8 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-constant-folding-atan-over-tanh/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-constant-folding-atan-over-tanh/0-opt.wgsl @@ -18,7 +18,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-constants-combine-add-sub/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-constants-combine-add-sub/0-opt.wgsl index 0c8d7f08b6..5887199008 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-constants-combine-add-sub/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-constants-combine-add-sub/0-opt.wgsl @@ -82,7 +82,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-constants-mix-uniform/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-constants-mix-uniform/0-opt.wgsl index df26d79d6a..8449566e6c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-constants-mix-uniform/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-constants-mix-uniform/0-opt.wgsl @@ -25,7 +25,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-continue-break-discard-return-in-loop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-continue-break-discard-return-in-loop/0-opt.wgsl index e9d8121a6e..1903882fa6 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-continue-break-discard-return-in-loop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-continue-break-discard-return-in-loop/0-opt.wgsl @@ -61,7 +61,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-copy-prop-arrays-func-argument/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-copy-prop-arrays-func-argument/0-opt.wgsl index 1cab56ccc6..1320e87dd2 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-copy-prop-arrays-func-argument/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-copy-prop-arrays-func-argument/0-opt.wgsl @@ -62,7 +62,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-copy-prop-arrays-no-stores/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-copy-prop-arrays-no-stores/0-opt.wgsl index 1a5eda78e8..56aa25c136 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-copy-prop-arrays-no-stores/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-copy-prop-arrays-no-stores/0-opt.wgsl @@ -34,7 +34,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-copy-prop-arrays-param-uniform/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-copy-prop-arrays-param-uniform/0-opt.wgsl index 4f9c8f6a6c..f617b1eb34 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-copy-prop-arrays-param-uniform/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-copy-prop-arrays-param-uniform/0-opt.wgsl @@ -69,7 +69,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-cosh-clamped-to-one/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-cosh-clamped-to-one/0-opt.wgsl index 4ead1098d7..ff986fefeb 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-cosh-clamped-to-one/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-cosh-clamped-to-one/0-opt.wgsl @@ -43,7 +43,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-cumulate-loops-unreachable/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-cumulate-loops-unreachable/0-opt.wgsl index 401a99e240..a3c7d905df 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-cumulate-loops-unreachable/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-cumulate-loops-unreachable/0-opt.wgsl @@ -100,7 +100,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-cumulate-loops-unreachable/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-cumulate-loops-unreachable/1.wgsl index 7c8c99e76d..cb7f47c521 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-cumulate-loops-unreachable/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-cumulate-loops-unreachable/1.wgsl @@ -69,7 +69,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-clamp-undefined-access-array/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-clamp-undefined-access-array/0-opt.wgsl index 8903c42a33..b0264c43d7 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-clamp-undefined-access-array/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-clamp-undefined-access-array/0-opt.wgsl @@ -79,7 +79,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-combine-casts-legalize-vector-types-xyz-swizzle-for-loop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-combine-casts-legalize-vector-types-xyz-swizzle-for-loop/0-opt.wgsl index 2acb3047e4..20f56819fb 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-combine-casts-legalize-vector-types-xyz-swizzle-for-loop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-combine-casts-legalize-vector-types-xyz-swizzle-for-loop/0-opt.wgsl @@ -61,7 +61,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-glf_color/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-glf_color/0-opt.wgsl index 9f7e35015a..ca9da8ce07 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-glf_color/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-glf_color/0-opt.wgsl @@ -92,7 +92,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-increment-color/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-increment-color/0-opt.wgsl index 1146646ff6..94a5965527 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-increment-color/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-increment-color/0-opt.wgsl @@ -45,7 +45,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-loop-bitfieldreverse/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-loop-bitfieldreverse/0-opt.wgsl index 937966c0c8..528a80e28c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-loop-bitfieldreverse/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-loop-bitfieldreverse/0-opt.wgsl @@ -53,7 +53,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-neg-div-pow2/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-neg-div-pow2/0-opt.wgsl index 9cfcb8572d..ea897a92aa 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-neg-div-pow2/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-neg-div-pow2/0-opt.wgsl @@ -55,7 +55,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-same-cond-nested/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-same-cond-nested/0-opt.wgsl index 730a78bda2..a79e26b022 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-same-cond-nested/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-dag-combiner-same-cond-nested/0-opt.wgsl @@ -70,7 +70,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-dead-branch-func-return-arg/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-dead-branch-func-return-arg/0-opt.wgsl index a43ae19b6d..2a6af9ca70 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-dead-branch-func-return-arg/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-dead-branch-func-return-arg/0-opt.wgsl @@ -112,7 +112,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-dead-code-unreachable-merge/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-dead-code-unreachable-merge/0-opt.wgsl index 84379722dc..6042980277 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-dead-code-unreachable-merge/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-dead-code-unreachable-merge/0-opt.wgsl @@ -76,7 +76,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-derivative-uniform-vector-global-loop-count/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-derivative-uniform-vector-global-loop-count/0-opt.wgsl index 918fa8a8d8..59f25b4b00 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-derivative-uniform-vector-global-loop-count/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-derivative-uniform-vector-global-loop-count/0-opt.wgsl @@ -93,7 +93,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-descending-loop-min-max-always-zero/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-descending-loop-min-max-always-zero/0-opt.wgsl index f1e118ec25..f83ce2ed83 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-descending-loop-min-max-always-zero/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-descending-loop-min-max-always-zero/0-opt.wgsl @@ -69,7 +69,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-divide-matrix-transpose-by-constant/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-divide-matrix-transpose-by-constant/0-opt.wgsl index df50e29cbc..d0d229b646 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-divide-matrix-transpose-by-constant/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-divide-matrix-transpose-by-constant/0-opt.wgsl @@ -17,7 +17,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-double-if-true-in-loop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-double-if-true-in-loop/0-opt.wgsl index 8692c5a959..277b9a220e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-double-if-true-in-loop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-double-if-true-in-loop/0-opt.wgsl @@ -62,7 +62,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-empty-loop-minus-one-modulo-variable-one/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-empty-loop-minus-one-modulo-variable-one/0-opt.wgsl index 6473fbaa33..cdb1c69aa7 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-empty-loop-minus-one-modulo-variable-one/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-empty-loop-minus-one-modulo-variable-one/0-opt.wgsl @@ -69,7 +69,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-exp2-two/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-exp2-two/0-opt.wgsl index 1fb1cb2451..281a136906 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-exp2-two/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-exp2-two/0-opt.wgsl @@ -17,7 +17,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-float-array-init-pow/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-float-array-init-pow/0-opt.wgsl index 803d61a66b..cf44a69640 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-float-array-init-pow/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-float-array-init-pow/0-opt.wgsl @@ -64,7 +64,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-and-in-for-loop-range/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-and-in-for-loop-range/0-opt.wgsl index fb1065d5bb..0af76ab6da 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-and-in-for-loop-range/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-and-in-for-loop-range/0-opt.wgsl @@ -46,7 +46,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-bitwise-and-zero/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-bitwise-and-zero/0.wgsl index 5dcceaaf27..640d4df9e8 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-bitwise-and-zero/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-bitwise-and-zero/0.wgsl @@ -21,7 +21,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-bitwise-or-full-mask/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-bitwise-or-full-mask/0.wgsl index d0c12de4ce..b111a60aeb 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-bitwise-or-full-mask/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-bitwise-or-full-mask/0.wgsl @@ -21,7 +21,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-bitwise-xor/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-bitwise-xor/0-opt.wgsl index 2107dd3b5e..9d3fa96649 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-bitwise-xor/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-bitwise-xor/0-opt.wgsl @@ -20,7 +20,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-const-variable/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-const-variable/0.wgsl index a2a02a0283..245db9ece8 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-const-variable/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-const-variable/0.wgsl @@ -17,7 +17,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-constant/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-constant/0-opt.wgsl index 4089c1f22d..a8d8ceaa9f 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-constant/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-and-constant/0-opt.wgsl @@ -31,7 +31,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-or-constant/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-or-constant/0.wgsl index f4422c8caf..48820a310a 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-or-constant/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-logical-or-constant/0.wgsl @@ -17,7 +17,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-negate-min-int-value/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-negate-min-int-value/0-opt.wgsl index 9c233ec420..61658e9032 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-negate-min-int-value/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-negate-min-int-value/0-opt.wgsl @@ -28,7 +28,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-negate-variable/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-negate-variable/0.wgsl index 7d02d77e09..af4f4b2f93 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-negate-variable/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-negate-variable/0.wgsl @@ -17,7 +17,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-shift-gte32/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-shift-gte32/0.wgsl index b543414945..58d674c7d6 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-shift-gte32/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-shift-gte32/0.wgsl @@ -68,7 +68,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-shift-right-arithmetic/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-shift-right-arithmetic/0.wgsl index 007ff8f695..cf7bb0f41c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-shift-right-arithmetic/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-shift-right-arithmetic/0.wgsl @@ -17,7 +17,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-switch-udiv/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-switch-udiv/0.wgsl index 58700bc6da..6e7b565f3d 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-switch-udiv/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fold-switch-udiv/0.wgsl @@ -20,7 +20,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-clamp-cmp-const-first/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-clamp-cmp-const-first/0-opt.wgsl index 7e3367d56c..ed6eebed84 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-clamp-cmp-const-first/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-clamp-cmp-const-first/0-opt.wgsl @@ -37,7 +37,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-merge-add-sub-uniform/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-merge-add-sub-uniform/0-opt.wgsl index 5b1b46f3b0..4572702313 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-merge-add-sub-uniform/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-merge-add-sub-uniform/0-opt.wgsl @@ -21,7 +21,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-construct-extract/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-construct-extract/0-opt.wgsl index 9d3abf8c75..5f8a19bc94 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-construct-extract/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-construct-extract/0-opt.wgsl @@ -38,7 +38,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-dot-extract/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-dot-extract/0-opt.wgsl index 784949c20e..3e6470ae83 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-dot-extract/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-dot-extract/0-opt.wgsl @@ -21,7 +21,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-dot-no-extract/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-dot-no-extract/0.wgsl index b751c1be67..7a3f940672 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-dot-no-extract/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-dot-no-extract/0.wgsl @@ -21,7 +21,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-add-sub/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-add-sub/0-opt.wgsl index e2a3c0de2e..9f58ee0c3b 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-add-sub/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-add-sub/0-opt.wgsl @@ -28,7 +28,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-div-mul/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-div-mul/0-opt.wgsl index 07b9211791..c5a4fd7bd2 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-div-mul/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-div-mul/0-opt.wgsl @@ -25,7 +25,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-divs/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-divs/0-opt.wgsl index b172dad5b1..72f1d19e38 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-divs/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-divs/0-opt.wgsl @@ -25,7 +25,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-mul-div/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-mul-div/0-opt.wgsl index 1ff19b5040..58bedfee92 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-mul-div/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-mul-div/0-opt.wgsl @@ -25,7 +25,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-sub-add/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-sub-add/0-opt.wgsl index 61d845160c..e3764baba1 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-sub-add/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-sub-add/0-opt.wgsl @@ -38,7 +38,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-sub-sub/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-sub-sub/0-opt.wgsl index aeb7d658ca..0348fd7321 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-sub-sub/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-sub-sub/0-opt.wgsl @@ -38,7 +38,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-var-sub/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-var-sub/0-opt.wgsl index cef61b2ecd..b3a70c415a 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-var-sub/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-merge-var-sub/0-opt.wgsl @@ -35,7 +35,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-mix-uniform-weight/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-mix-uniform-weight/0-opt.wgsl index 6af612bfba..b18a4268fa 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-mix-uniform-weight/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-mix-uniform-weight/0-opt.wgsl @@ -28,7 +28,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-negate-div/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-negate-div/0-opt.wgsl index 812b29d050..f5f52a3c87 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-negate-div/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-negate-div/0-opt.wgsl @@ -21,7 +21,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-negate-sub/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-negate-sub/0-opt.wgsl index 728b7bc71a..7d3dab7b1c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-negate-sub/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-negate-sub/0-opt.wgsl @@ -24,7 +24,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-redundant-mix/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-redundant-mix/0-opt.wgsl index 3ade036e2a..186261e71f 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-redundant-mix/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-redundant-mix/0-opt.wgsl @@ -21,7 +21,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-extract/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-extract/0-opt.wgsl index d242c7fac0..ece67fcabf 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-extract/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-extract/0-opt.wgsl @@ -21,7 +21,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-mix/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-mix/0-opt.wgsl index 5139fdca61..bad9a67cc1 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-mix/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-shuffle-mix/0-opt.wgsl @@ -27,7 +27,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-split-vector-init/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-split-vector-init/0-opt.wgsl index 12b5e94cc6..a7ae8bdc65 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-split-vector-init/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-split-vector-init/0-opt.wgsl @@ -20,7 +20,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-vec-mix-uniform/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-vec-mix-uniform/0-opt.wgsl index 589559b182..496d491acf 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-vec-mix-uniform/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-folding-rules-vec-mix-uniform/0-opt.wgsl @@ -29,7 +29,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-for-array-initializing-modulo/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-for-array-initializing-modulo/0-opt.wgsl index 5cb935fa87..eebd08edfc 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-for-array-initializing-modulo/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-for-array-initializing-modulo/0-opt.wgsl @@ -50,7 +50,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-for-loop-min-increment-array-element/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-for-loop-min-increment-array-element/0-opt.wgsl index 96df572ffc..ebda8b7e60 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-for-loop-min-increment-array-element/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-for-loop-min-increment-array-element/0-opt.wgsl @@ -73,7 +73,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-for-switch-fallthrough/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-for-switch-fallthrough/0-opt.wgsl index ab5a15799c..ec9ebf03b8 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-for-switch-fallthrough/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-for-switch-fallthrough/0-opt.wgsl @@ -63,7 +63,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fract-asin-undefined-never-used/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fract-asin-undefined-never-used/0-opt.wgsl index a1321d94bc..738125fe0e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fract-asin-undefined-never-used/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fract-asin-undefined-never-used/0-opt.wgsl @@ -54,7 +54,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fract-smoothstep-undefined/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fract-smoothstep-undefined/0-opt.wgsl index 6969f4a1d5..1df28851d6 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fract-smoothstep-undefined/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fract-smoothstep-undefined/0-opt.wgsl @@ -57,7 +57,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-bitwise-not/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-bitwise-not/0-opt.wgsl index b67f6a21c9..7ea16de819 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-bitwise-not/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-bitwise-not/0-opt.wgsl @@ -45,7 +45,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.wgsl index 0691fca5de..4e2b13100f 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-clamp-array-access/0-opt.wgsl @@ -99,7 +99,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-multiply/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-multiply/0-opt.wgsl index 7ca00361b5..0c5a8a5090 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-multiply/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-fragcoord-multiply/0-opt.wgsl @@ -76,7 +76,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-function-fragcoord-condition-always-return/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-function-fragcoord-condition-always-return/0-opt.wgsl index 183832e40e..cf243d6029 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-function-fragcoord-condition-always-return/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-function-fragcoord-condition-always-return/0-opt.wgsl @@ -96,7 +96,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-function-vec2-never-discard/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-function-vec2-never-discard/0-opt.wgsl index 4ffbb2cb3f..f7a2b84e6e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-function-vec2-never-discard/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-function-vec2-never-discard/0-opt.wgsl @@ -74,7 +74,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-bound-true-logical-or/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-bound-true-logical-or/0-opt.wgsl index ca7f418b23..20267d899c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-bound-true-logical-or/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-bound-true-logical-or/0-opt.wgsl @@ -64,7 +64,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-float-accumulate-matrix/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-float-accumulate-matrix/0-opt.wgsl index 12c07c69ce..4bbbcb316e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-float-accumulate-matrix/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-float-accumulate-matrix/0-opt.wgsl @@ -144,7 +144,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-main-function-call/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-main-function-call/0-opt.wgsl index 0361d8a8c7..a997432d9d 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-main-function-call/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-main-function-call/0-opt.wgsl @@ -72,7 +72,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-multiply-one-minus/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-multiply-one-minus/0.wgsl index 36bfedcce5..adc1178d92 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-multiply-one-minus/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-multiply-one-minus/0.wgsl @@ -77,7 +77,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-squared-comparison/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-squared-comparison/0-opt.wgsl index 854150b417..3e81573484 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-squared-comparison/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-global-loop-counter-squared-comparison/0-opt.wgsl @@ -51,7 +51,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-if-conversion-identical-branches/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-if-conversion-identical-branches/0-opt.wgsl index 7833a32ddd..3b238a0438 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-if-conversion-identical-branches/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-if-conversion-identical-branches/0-opt.wgsl @@ -32,7 +32,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-if-switch-fallthrough/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-if-switch-fallthrough/0.wgsl index cf9e22e6ea..d50160bdba 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-if-switch-fallthrough/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-if-switch-fallthrough/0.wgsl @@ -59,7 +59,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-if-true-continue/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-if-true-continue/0-opt.wgsl index 66732b5e78..4371470daa 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-if-true-continue/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-if-true-continue/0-opt.wgsl @@ -76,7 +76,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-if-true-discard-in-do-while-never-reached/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-if-true-discard-in-do-while-never-reached/0-opt.wgsl index c682dfc3b9..4f3baca229 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-if-true-discard-in-do-while-never-reached/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-if-true-discard-in-do-while-never-reached/0-opt.wgsl @@ -55,7 +55,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inc-inside-switch-and-for/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inc-inside-switch-and-for/0-opt.wgsl index 9c7018ab93..dffd65e968 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inc-inside-switch-and-for/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inc-inside-switch-and-for/0-opt.wgsl @@ -47,7 +47,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-array-element-in-loop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-array-element-in-loop/0-opt.wgsl index ba5f72c231..fc0e8b8bad 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-array-element-in-loop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-array-element-in-loop/0-opt.wgsl @@ -91,7 +91,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-float-in-loop-abs/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-float-in-loop-abs/0-opt.wgsl index 8d275b8896..d3de501c10 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-float-in-loop-abs/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-float-in-loop-abs/0-opt.wgsl @@ -85,7 +85,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-global-counter-loop-function/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-global-counter-loop-function/0-opt.wgsl index 89f6084340..45f38025b0 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-global-counter-loop-function/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-global-counter-loop-function/0-opt.wgsl @@ -90,7 +90,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-inside-clamp/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-inside-clamp/0-opt.wgsl index 592a626558..3a21958ea3 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-inside-clamp/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-inside-clamp/0-opt.wgsl @@ -43,7 +43,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-int-loop-counter-mod-array/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-int-loop-counter-mod-array/0-opt.wgsl index 8cd0f3123d..8f2685e648 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-int-loop-counter-mod-array/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-int-loop-counter-mod-array/0-opt.wgsl @@ -61,7 +61,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-multiple-integers/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-multiple-integers/0-opt.wgsl index f5fbe5c826..f4bbc241be 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-multiple-integers/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-multiple-integers/0-opt.wgsl @@ -96,7 +96,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-array-matrix-element/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-array-matrix-element/0-opt.wgsl index 0652450f35..27b58b798e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-array-matrix-element/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-array-matrix-element/0-opt.wgsl @@ -72,7 +72,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-component-with-matrix-copy/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-component-with-matrix-copy/0-opt.wgsl index 6cb7a93631..ed73b3dc28 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-component-with-matrix-copy/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-increment-vector-component-with-matrix-copy/0-opt.wgsl @@ -70,7 +70,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inline-pass-empty-block/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inline-pass-empty-block/0-opt.wgsl index 488a6f44a4..d63c258a87 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inline-pass-empty-block/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inline-pass-empty-block/0-opt.wgsl @@ -31,7 +31,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inline-pass-nested-loops/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inline-pass-nested-loops/0-opt.wgsl index b36fbd078e..8b6de3d890 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inline-pass-nested-loops/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inline-pass-nested-loops/0-opt.wgsl @@ -72,7 +72,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inline-pass-return-in-loop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inline-pass-return-in-loop/0-opt.wgsl index c39b3d8648..450f490dd2 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inline-pass-return-in-loop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inline-pass-return-in-loop/0-opt.wgsl @@ -42,7 +42,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inline-pass-unreachable-func/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inline-pass-unreachable-func/0-opt.wgsl index e6e3393584..266c5c30f0 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inline-pass-unreachable-func/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inline-pass-unreachable-func/0-opt.wgsl @@ -33,7 +33,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-add-sub-increase-negative/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-add-sub-increase-negative/0-opt.wgsl index 70a1ede748..d6fa70ffb7 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-add-sub-increase-negative/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-add-sub-increase-negative/0-opt.wgsl @@ -87,7 +87,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-add-sub-ldexp/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-add-sub-ldexp/0-opt.wgsl index 5a38ad68ba..e1d317bc6f 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-add-sub-ldexp/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-add-sub-ldexp/0-opt.wgsl @@ -72,7 +72,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-add-sub-neg-func-arg/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-add-sub-neg-func-arg/0-opt.wgsl index 5c979eb214..1e20241b83 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-add-sub-neg-func-arg/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-add-sub-neg-func-arg/0-opt.wgsl @@ -82,7 +82,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-add-sub-pre-increase/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-add-sub-pre-increase/0-opt.wgsl index 4b7661d0b6..abc3671c8e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-add-sub-pre-increase/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-add-sub-pre-increase/0-opt.wgsl @@ -92,7 +92,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-and-or-xor-pack-unpack/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-and-or-xor-pack-unpack/0-opt.wgsl index 3b6c63b37e..99ea7e4ac9 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-and-or-xor-pack-unpack/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-and-or-xor-pack-unpack/0-opt.wgsl @@ -103,7 +103,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-and-or-xor-switch/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-and-or-xor-switch/0-opt.wgsl index ea99ca952d..525654307b 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-and-or-xor-switch/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-and-or-xor-switch/0-opt.wgsl @@ -78,7 +78,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-and-or-xor-xor-add/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-and-or-xor-xor-add/0-opt.wgsl index 79615f68b0..b18be7ba3c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-and-or-xor-xor-add/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-and-or-xor-xor-add/0-opt.wgsl @@ -58,7 +58,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-compares-ldexp/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-compares-ldexp/0-opt.wgsl index 8918a9d9c6..85c9c8df44 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-compares-ldexp/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-compares-ldexp/0-opt.wgsl @@ -50,7 +50,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-compares-pre-increment-clamp/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-compares-pre-increment-clamp/0-opt.wgsl index e0cafa1db3..5e207fb2f1 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-compares-pre-increment-clamp/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-compares-pre-increment-clamp/0-opt.wgsl @@ -80,7 +80,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-compares-ternary-vector-access/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-compares-ternary-vector-access/0-opt.wgsl index 39cdba3bdf..e2a947974e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-compares-ternary-vector-access/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-compares-ternary-vector-access/0-opt.wgsl @@ -60,7 +60,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-compares-while-modulo/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-compares-while-modulo/0-opt.wgsl index 90bbc4afcb..e500f0a085 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-compares-while-modulo/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-compares-while-modulo/0-opt.wgsl @@ -57,7 +57,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-mul-div-rem-if-undefined-divide-mix/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-mul-div-rem-if-undefined-divide-mix/0-opt.wgsl index 38846e75ff..a50ef0ddf6 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-mul-div-rem-if-undefined-divide-mix/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-mul-div-rem-if-undefined-divide-mix/0-opt.wgsl @@ -78,7 +78,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-pack-unpack/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-pack-unpack/0-opt.wgsl index 98eb6e6585..9145c249be 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-pack-unpack/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-pack-unpack/0-opt.wgsl @@ -99,7 +99,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-shifts-left-shift-for/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-shifts-left-shift-for/0-opt.wgsl index ee6a3df3c2..aeb50098b7 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-shifts-left-shift-for/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-shifts-left-shift-for/0-opt.wgsl @@ -73,7 +73,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-shifts-mix-mix-clamp/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-shifts-mix-mix-clamp/0-opt.wgsl index af52c8542a..5484a466cb 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-shifts-mix-mix-clamp/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-shifts-mix-mix-clamp/0-opt.wgsl @@ -96,7 +96,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-pack-unpack/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-pack-unpack/0-opt.wgsl index 64f35bab45..149b02d5d5 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-pack-unpack/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-pack-unpack/0-opt.wgsl @@ -98,7 +98,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-packsnorm-unpackunorm/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-packsnorm-unpackunorm/0-opt.wgsl index ebf907b2dc..a0d986a6d0 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-packsnorm-unpackunorm/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-packsnorm-unpackunorm/0-opt.wgsl @@ -100,7 +100,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-switch-or-xor/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-switch-or-xor/0-opt.wgsl index a55142689c..c84d5e4619 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-switch-or-xor/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-simplify-demanded-switch-or-xor/0-opt.wgsl @@ -53,7 +53,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-vector-ops-asin/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-vector-ops-asin/0-opt.wgsl index f473270aec..95fa93bc1f 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-vector-ops-asin/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-combine-vector-ops-asin/0-opt.wgsl @@ -91,7 +91,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-value-tracking-inversesqrt/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-value-tracking-inversesqrt/0-opt.wgsl index c587550819..b194928115 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-value-tracking-inversesqrt/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-inst-value-tracking-inversesqrt/0-opt.wgsl @@ -33,7 +33,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-bit-shifting/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-bit-shifting/0-opt.wgsl index ea785d7757..d7f663bf9c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-bit-shifting/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-bit-shifting/0-opt.wgsl @@ -38,7 +38,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-inclusive-or/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-inclusive-or/0-opt.wgsl index 2815fa85ab..01ab459b35 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-inclusive-or/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-inclusive-or/0-opt.wgsl @@ -52,7 +52,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-inst-combine-calls-for-compare-function-call-result/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-inst-combine-calls-for-compare-function-call-result/0-opt.wgsl index 943871b6af..f46299f9a5 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-inst-combine-calls-for-compare-function-call-result/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-inst-combine-calls-for-compare-function-call-result/0-opt.wgsl @@ -174,7 +174,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-mod-acos-undefined/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-mod-acos-undefined/0-opt.wgsl index 226454a07e..a1eccf0865 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-mod-acos-undefined/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-mod-acos-undefined/0-opt.wgsl @@ -49,7 +49,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-mod-sqrt-undefined/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-mod-sqrt-undefined/0-opt.wgsl index e36ad1742e..dea586553b 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-mod-sqrt-undefined/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-mod-sqrt-undefined/0-opt.wgsl @@ -49,7 +49,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-sqrt/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-sqrt/0.wgsl index feea7d72d2..4b06cb602e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-sqrt/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-instruction-simplify-sqrt/0.wgsl @@ -47,7 +47,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-instructions-first-value-phi/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-instructions-first-value-phi/0-opt.wgsl index 8fc099c090..2a99833293 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-instructions-first-value-phi/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-instructions-first-value-phi/0-opt.wgsl @@ -156,7 +156,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-instructions-for-if-less-than-equal/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-instructions-for-if-less-than-equal/0-opt.wgsl index 9fa82b9eea..485b2b7b81 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-instructions-for-if-less-than-equal/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-instructions-for-if-less-than-equal/0-opt.wgsl @@ -64,7 +64,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-int-div-round-to-zero/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-int-div-round-to-zero/0-opt.wgsl index e9236ec3b1..f0040e7378 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-int-div-round-to-zero/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-int-div-round-to-zero/0-opt.wgsl @@ -39,7 +39,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-int-full-bits-divide-by-two-loop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-int-full-bits-divide-by-two-loop/0-opt.wgsl index 26752c87a1..3dcdf887db 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-int-full-bits-divide-by-two-loop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-int-full-bits-divide-by-two-loop/0-opt.wgsl @@ -56,7 +56,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-integer-modulo-negative/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-integer-modulo-negative/0-opt.wgsl index b5148b4afe..a84b0279ad 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-integer-modulo-negative/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-integer-modulo-negative/0-opt.wgsl @@ -60,7 +60,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-intervalmap-set-stop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-intervalmap-set-stop/0-opt.wgsl index ca56e25c73..0d1da8a426 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-intervalmap-set-stop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-intervalmap-set-stop/0-opt.wgsl @@ -94,7 +94,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-ldexp-undefined-mat-vec-multiply/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-ldexp-undefined-mat-vec-multiply/0.wgsl index b707433bab..ec4f450e4e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-ldexp-undefined-mat-vec-multiply/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-ldexp-undefined-mat-vec-multiply/0.wgsl @@ -52,7 +52,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-left-shift-array-access/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-left-shift-array-access/0-opt.wgsl index f1e5842e1c..dc00bca2d7 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-left-shift-array-access/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-left-shift-array-access/0-opt.wgsl @@ -46,7 +46,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-left-shift-right-shift-compare/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-left-shift-right-shift-compare/0.wgsl index 5765012f65..ce1ba21e86 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-left-shift-right-shift-compare/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-left-shift-right-shift-compare/0.wgsl @@ -48,7 +48,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-liveinterval-different-dest/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-liveinterval-different-dest/0-opt.wgsl index c4dd2b4cd1..3404785fe1 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-liveinterval-different-dest/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-liveinterval-different-dest/0-opt.wgsl @@ -80,7 +80,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-abs-multiply-offset/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-abs-multiply-offset/0-opt.wgsl index c6568beab2..62b83a1751 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-abs-multiply-offset/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-abs-multiply-offset/0-opt.wgsl @@ -82,7 +82,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-break-floor-nan-never-executed/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-break-floor-nan-never-executed/0-opt.wgsl index 15bb11e29b..5deeaa6efa 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-break-floor-nan-never-executed/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-break-floor-nan-never-executed/0-opt.wgsl @@ -46,7 +46,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-clamp-to-one-empty-condition/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-clamp-to-one-empty-condition/0-opt.wgsl index 0ea341ff45..d98ec27319 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-clamp-to-one-empty-condition/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-clamp-to-one-empty-condition/0-opt.wgsl @@ -79,7 +79,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-condition-double-negate/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-condition-double-negate/0-opt.wgsl index 456679a175..4d350e0ef8 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-condition-double-negate/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-condition-double-negate/0-opt.wgsl @@ -88,7 +88,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-dfdx-constant-divide/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-dfdx-constant-divide/0-opt.wgsl index 5094e8f3dc..b202044569 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-dfdx-constant-divide/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-dfdx-constant-divide/0-opt.wgsl @@ -85,7 +85,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-matrix-element-break-after-first-iteration/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-matrix-element-break-after-first-iteration/0-opt.wgsl index 0ff978ec3f..8c48e020bc 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-matrix-element-break-after-first-iteration/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-matrix-element-break-after-first-iteration/0-opt.wgsl @@ -95,7 +95,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-or-divide-by-loop-index/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-or-divide-by-loop-index/0-opt.wgsl index 88fae6dfbc..bf75f9fccd 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-or-divide-by-loop-index/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-increment-or-divide-by-loop-index/0-opt.wgsl @@ -62,7 +62,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-integer-half-minus-one/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-integer-half-minus-one/0-opt.wgsl index 632ec35af0..4714145b0a 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-integer-half-minus-one/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-integer-half-minus-one/0-opt.wgsl @@ -47,7 +47,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-logical-xor/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-logical-xor/0-opt.wgsl index cf183364d2..b59d5b9bf1 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-logical-xor/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-logical-xor/0-opt.wgsl @@ -42,7 +42,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-returns-behind-true-and-false/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-returns-behind-true-and-false/0-opt.wgsl index c1708e2824..725431946c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-returns-behind-true-and-false/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-returns-behind-true-and-false/0-opt.wgsl @@ -71,7 +71,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-with-two-integers/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-with-two-integers/0-opt.wgsl index b463cdcf87..d71eb46210 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-with-two-integers/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-loop-with-two-integers/0-opt.wgsl @@ -95,7 +95,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-machine-basic-block-for-for-for-less-than/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-machine-basic-block-for-for-for-less-than/0-opt.wgsl index cad8ee4a13..6deb5fb51f 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-machine-basic-block-for-for-for-less-than/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-machine-basic-block-for-for-for-less-than/0-opt.wgsl @@ -133,7 +133,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-machine-scheduler-for-if-pow/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-machine-scheduler-for-if-pow/0-opt.wgsl index b932d179b7..affe188e0c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-machine-scheduler-for-if-pow/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-machine-scheduler-for-if-pow/0-opt.wgsl @@ -95,7 +95,7 @@ struct main_out { x_GLF_v1_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-machinevaluetype-one-iter-loop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-machinevaluetype-one-iter-loop/0-opt.wgsl index 3fcd25f635..2cb9c6a096 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-machinevaluetype-one-iter-loop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-machinevaluetype-one-iter-loop/0-opt.wgsl @@ -44,7 +44,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-matching-conditions-break/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-matching-conditions-break/0-opt.wgsl index f5899f725b..b2f11af0a4 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-matching-conditions-break/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-matching-conditions-break/0-opt.wgsl @@ -70,7 +70,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-matching-if-always-true-inside-loop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-matching-if-always-true-inside-loop/0-opt.wgsl index fe1d9b72ef..ca0b70cef4 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-matching-if-always-true-inside-loop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-matching-if-always-true-inside-loop/0-opt.wgsl @@ -94,7 +94,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-matrix-double-transpose/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-matrix-double-transpose/0-opt.wgsl index 8957d40c70..4162bbf01c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-matrix-double-transpose/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-matrix-double-transpose/0-opt.wgsl @@ -41,7 +41,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-matrix-square-mul-with-vector/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-matrix-square-mul-with-vector/0-opt.wgsl index 969ad9fbe0..ba55a804d4 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-matrix-square-mul-with-vector/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-matrix-square-mul-with-vector/0-opt.wgsl @@ -46,7 +46,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-max-clamp-same-minval/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-max-clamp-same-minval/0-opt.wgsl index b797548508..0c09e844a6 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-max-clamp-same-minval/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-max-clamp-same-minval/0-opt.wgsl @@ -23,7 +23,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-max-min-less-than/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-max-min-less-than/0-opt.wgsl index 26d5982645..bba9af124b 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-max-min-less-than/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-max-min-less-than/0-opt.wgsl @@ -38,7 +38,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-mem-pass-sum-struct-members/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-mem-pass-sum-struct-members/0-opt.wgsl index 7db29fd16d..eb051e5ffb 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-mem-pass-sum-struct-members/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-mem-pass-sum-struct-members/0-opt.wgsl @@ -87,7 +87,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-mem-pass-unused-component/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-mem-pass-unused-component/0-opt.wgsl index 92fa2cf458..6b0ff19e20 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-mem-pass-unused-component/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-mem-pass-unused-component/0-opt.wgsl @@ -36,7 +36,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-merge-return-condition-twice/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-merge-return-condition-twice/0-opt.wgsl index 711a60f75b..a4ddb5caf3 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-merge-return-condition-twice/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-merge-return-condition-twice/0-opt.wgsl @@ -54,7 +54,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-min-intbitstofloat-undefined-never-used/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-min-intbitstofloat-undefined-never-used/0-opt.wgsl index 4558a2f873..aa6f230b8e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-min-intbitstofloat-undefined-never-used/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-min-intbitstofloat-undefined-never-used/0-opt.wgsl @@ -51,7 +51,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-min-nested-loop-same-value-for-variables/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-min-nested-loop-same-value-for-variables/0-opt.wgsl index 078abbec59..773834a428 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-min-nested-loop-same-value-for-variables/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-min-nested-loop-same-value-for-variables/0-opt.wgsl @@ -16,7 +16,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-missing-return-value-function-never-called/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-missing-return-value-function-never-called/0-opt.wgsl index 122db0724f..2d04059364 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-missing-return-value-function-never-called/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-missing-return-value-function-never-called/0-opt.wgsl @@ -60,7 +60,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-mod-uint-bits-float/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-mod-uint-bits-float/0-opt.wgsl index 51d8e24426..ad0688d6c2 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-mod-uint-bits-float/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-mod-uint-bits-float/0-opt.wgsl @@ -35,7 +35,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-modulo-zero-never-executed/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-modulo-zero-never-executed/0-opt.wgsl index cf1d21a2ed..d56929dd2a 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-modulo-zero-never-executed/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-modulo-zero-never-executed/0-opt.wgsl @@ -75,7 +75,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-multiple-one-iteration-loops-global-counter-write-matrices/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-multiple-one-iteration-loops-global-counter-write-matrices/0-opt.wgsl index 77c853a2b7..79c369b53f 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-multiple-one-iteration-loops-global-counter-write-matrices/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-multiple-one-iteration-loops-global-counter-write-matrices/0-opt.wgsl @@ -652,7 +652,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-functions-accumulate-global-matrix/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-functions-accumulate-global-matrix/0-opt.wgsl index e24074c1ba..fd50f46240 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-functions-accumulate-global-matrix/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-functions-accumulate-global-matrix/0-opt.wgsl @@ -132,7 +132,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loop-undefined-smoothstep-never-executed/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loop-undefined-smoothstep-never-executed/0-opt.wgsl index b84b88d70b..6713484beb 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loop-undefined-smoothstep-never-executed/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loop-undefined-smoothstep-never-executed/0-opt.wgsl @@ -102,7 +102,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loops-global-loop-counter-do-while-accumulate-float/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loops-global-loop-counter-do-while-accumulate-float/0-opt.wgsl index 12ea1f8870..c243164329 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loops-global-loop-counter-do-while-accumulate-float/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-nested-loops-global-loop-counter-do-while-accumulate-float/0-opt.wgsl @@ -333,7 +333,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-nir-array-access/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-nir-array-access/0-opt.wgsl index adfcd1bc5b..3cf05ac59f 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-nir-array-access/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-nir-array-access/0-opt.wgsl @@ -125,7 +125,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-nir-opt-large-constants-for-clamp-vector-access/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-nir-opt-large-constants-for-clamp-vector-access/0-opt.wgsl index 0a1c942205..465d0b6877 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-nir-opt-large-constants-for-clamp-vector-access/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-nir-opt-large-constants-for-clamp-vector-access/0-opt.wgsl @@ -77,7 +77,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-nir-opt-loop-unroll-if-if-if-if-do-while/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-nir-opt-loop-unroll-if-if-if-if-do-while/0-opt.wgsl index d39091b7b6..9f4c8f16a1 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-nir-opt-loop-unroll-if-if-if-if-do-while/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-nir-opt-loop-unroll-if-if-if-if-do-while/0-opt.wgsl @@ -77,7 +77,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-not-clamp-matrix-access/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-not-clamp-matrix-access/0-opt.wgsl index aa3bb957ec..9c77bd881a 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-not-clamp-matrix-access/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-not-clamp-matrix-access/0-opt.wgsl @@ -78,7 +78,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-one-minus-clamp-always-one-cast-to-int/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-one-minus-clamp-always-one-cast-to-int/0-opt.wgsl index 6ea41efc7a..6764ecb640 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-one-minus-clamp-always-one-cast-to-int/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-one-minus-clamp-always-one-cast-to-int/0-opt.wgsl @@ -40,7 +40,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-optimize-phis-for-for-do-while-if-if/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-optimize-phis-for-for-do-while-if-if/0-opt.wgsl index 9e62836d84..13e7aedaf7 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-optimize-phis-for-for-do-while-if-if/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-optimize-phis-for-for-do-while-if-if/0-opt.wgsl @@ -108,7 +108,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-optimize-phis-for/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-optimize-phis-for/0-opt.wgsl index 12f14a274f..df6c8dd49e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-optimize-phis-for/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-optimize-phis-for/0-opt.wgsl @@ -233,7 +233,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-packhalf-unpackunorm/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-packhalf-unpackunorm/0-opt.wgsl index a08b68a97a..d838fea12b 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-packhalf-unpackunorm/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-packhalf-unpackunorm/0-opt.wgsl @@ -105,7 +105,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-pattern-match-signum/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-pattern-match-signum/0-opt.wgsl index 5df8e0ffec..47eb90b4bb 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-pattern-match-signum/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-pattern-match-signum/0-opt.wgsl @@ -33,7 +33,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-pattern-match-single-bit/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-pattern-match-single-bit/0.wgsl index 24bcc10a68..d6347ad205 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-pattern-match-single-bit/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-pattern-match-single-bit/0.wgsl @@ -21,7 +21,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-peephole-optimizer-target-instr-info-for-if-if-if/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-peephole-optimizer-target-instr-info-for-if-if-if/0-opt.wgsl index 5e3792b8c1..84c096d000 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-peephole-optimizer-target-instr-info-for-if-if-if/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-peephole-optimizer-target-instr-info-for-if-if-if/0-opt.wgsl @@ -85,7 +85,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-pow-identical-value-sqrt/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-pow-identical-value-sqrt/0-opt.wgsl index 3e01f1a671..c3cc73633b 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-pow-identical-value-sqrt/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-pow-identical-value-sqrt/0-opt.wgsl @@ -71,7 +71,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-pow-undefined-result-condition-with-always-true/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-pow-undefined-result-condition-with-always-true/0-opt.wgsl index 8278bc58a0..2c7406de7b 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-pow-undefined-result-condition-with-always-true/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-pow-undefined-result-condition-with-always-true/0-opt.wgsl @@ -68,7 +68,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-pow-undefined/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-pow-undefined/0-opt.wgsl index efc6249e10..b70b2dbd99 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-pow-undefined/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-pow-undefined/0-opt.wgsl @@ -44,7 +44,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-rcp-negative-int/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-rcp-negative-int/0-opt.wgsl index 94ee900ea0..b08467d140 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-rcp-negative-int/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-rcp-negative-int/0-opt.wgsl @@ -38,7 +38,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-reciprocal-var-minus-one/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-reciprocal-var-minus-one/0-opt.wgsl index 3a4bee7a15..efe4f32ce1 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-reciprocal-var-minus-one/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-reciprocal-var-minus-one/0-opt.wgsl @@ -38,7 +38,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-reduce-load-array-replace-extract/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-reduce-load-array-replace-extract/0.wgsl index 61e7a69f34..961f4b6ab5 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-reduce-load-array-replace-extract/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-reduce-load-array-replace-extract/0.wgsl @@ -36,7 +36,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-reduce-load-replace-extract/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-reduce-load-replace-extract/0-opt.wgsl index 42b3530288..8c354c5c54 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-reduce-load-replace-extract/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-reduce-load-replace-extract/0-opt.wgsl @@ -61,7 +61,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-register-coalescer-live-intervals-target-instr-info-for-discard-for-discard/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-register-coalescer-live-intervals-target-instr-info-for-discard-for-discard/0-opt.wgsl index 95351abd37..6a680de143 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-register-coalescer-live-intervals-target-instr-info-for-discard-for-discard/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-register-coalescer-live-intervals-target-instr-info-for-discard-for-discard/0-opt.wgsl @@ -84,7 +84,7 @@ struct main_out { x_GLF_v1_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-reinitialize-matrix-after-undefined-value/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-reinitialize-matrix-after-undefined-value/0-opt.wgsl index 2459e4c6ce..77a280154b 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-reinitialize-matrix-after-undefined-value/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-reinitialize-matrix-after-undefined-value/0-opt.wgsl @@ -84,7 +84,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-replace-copy-object/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-replace-copy-object/0-opt.wgsl index ef12407f35..441f193671 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-replace-copy-object/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-replace-copy-object/0-opt.wgsl @@ -80,7 +80,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.wgsl index 79be73adf1..4a5526b05f 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-do-while/0-opt.wgsl @@ -46,7 +46,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-first-iteration/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-first-iteration/0-opt.wgsl index e15d8deae0..382ffa2740 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-first-iteration/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-return-after-first-iteration/0-opt.wgsl @@ -72,7 +72,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-return-partly-undefined-vector-from-array/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-return-partly-undefined-vector-from-array/0-opt.wgsl index de5ae78c9b..19f1fab9ce 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-return-partly-undefined-vector-from-array/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-return-partly-undefined-vector-from-array/0-opt.wgsl @@ -64,7 +64,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-scaled-number-nested-loops-array-access/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-scaled-number-nested-loops-array-access/0-opt.wgsl index 98a9ebde7a..8c61b22a55 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-scaled-number-nested-loops-array-access/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-scaled-number-nested-loops-array-access/0-opt.wgsl @@ -232,7 +232,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-scaled-number-nested-loops/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-scaled-number-nested-loops/0-opt.wgsl index 66e10506f8..7eccaa598f 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-scaled-number-nested-loops/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-scaled-number-nested-loops/0-opt.wgsl @@ -183,7 +183,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-schedule-dag-rrlist-mix-log-cos/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-schedule-dag-rrlist-mix-log-cos/0-opt.wgsl index 4613f05959..d176ddbfd6 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-schedule-dag-rrlist-mix-log-cos/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-schedule-dag-rrlist-mix-log-cos/0-opt.wgsl @@ -53,7 +53,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-selection-dag-assign-back-and-forth/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-selection-dag-assign-back-and-forth/0-opt.wgsl index 0665057964..4c0dd1367e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-selection-dag-assign-back-and-forth/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-selection-dag-assign-back-and-forth/0-opt.wgsl @@ -33,7 +33,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-selection-dag-inverse-clamp/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-selection-dag-inverse-clamp/0-opt.wgsl index a72e3328ed..c5564955ea 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-selection-dag-inverse-clamp/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-selection-dag-inverse-clamp/0-opt.wgsl @@ -57,7 +57,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-selection-dag-lt-gt/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-selection-dag-lt-gt/0-opt.wgsl index 895e284567..84e0f7b935 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-selection-dag-lt-gt/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-selection-dag-lt-gt/0-opt.wgsl @@ -49,7 +49,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-selection-dag-same-cond-twice/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-selection-dag-same-cond-twice/0-opt.wgsl index fe3a5c4802..f15d57acfc 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-selection-dag-same-cond-twice/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-selection-dag-same-cond-twice/0-opt.wgsl @@ -32,7 +32,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-set-output-color-function-call-nested-loop/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-set-output-color-function-call-nested-loop/0.wgsl index 8c201e06c6..1ab7d697cc 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-set-output-color-function-call-nested-loop/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-set-output-color-function-call-nested-loop/0.wgsl @@ -110,7 +110,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-set-vector-cos-fragcoord/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-set-vector-cos-fragcoord/0-opt.wgsl index c93962f97f..15ea99527b 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-set-vector-cos-fragcoord/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-set-vector-cos-fragcoord/0-opt.wgsl @@ -73,7 +73,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplification-unused-struct/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplification-unused-struct/0-opt.wgsl index 3ec072cd5e..f63bade170 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplification-unused-struct/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplification-unused-struct/0-opt.wgsl @@ -81,7 +81,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplification-while-inside-for/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplification-while-inside-for/0-opt.wgsl index e655d576a9..27eede78b9 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplification-while-inside-for/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplification-while-inside-for/0-opt.wgsl @@ -55,7 +55,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-clamp-max-itself/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-clamp-max-itself/0-opt.wgsl index 260dac0b40..d1597ede18 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-clamp-max-itself/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-clamp-max-itself/0-opt.wgsl @@ -56,7 +56,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-combine-compares-max-max-one/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-combine-compares-max-max-one/0-opt.wgsl index 1ee580f9ab..aa340d6bb0 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-combine-compares-max-max-one/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-combine-compares-max-max-one/0-opt.wgsl @@ -39,7 +39,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-component-uniform-idx/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-component-uniform-idx/0-opt.wgsl index ede3ec0c8c..9ba95b4e62 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-component-uniform-idx/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-component-uniform-idx/0-opt.wgsl @@ -42,7 +42,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-div-by-uint-one/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-div-by-uint-one/0-opt.wgsl index 829a0a844e..527a2da5c2 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-div-by-uint-one/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-div-by-uint-one/0-opt.wgsl @@ -24,7 +24,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-for-bitwise-condition/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-for-bitwise-condition/0-opt.wgsl index b7f1559c8d..64b0470ad3 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-for-bitwise-condition/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-for-bitwise-condition/0-opt.wgsl @@ -58,7 +58,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-ldexp-exponent-zero/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-ldexp-exponent-zero/0-opt.wgsl index 22f846dc05..d3bceff441 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-ldexp-exponent-zero/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-ldexp-exponent-zero/0-opt.wgsl @@ -24,7 +24,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-max-multiplied-values/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-max-multiplied-values/0-opt.wgsl index a52fd11a13..23219d054b 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-max-multiplied-values/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-max-multiplied-values/0-opt.wgsl @@ -95,7 +95,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-modulo-1/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-modulo-1/0-opt.wgsl index c821a0ba41..47994dcef6 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-modulo-1/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-modulo-1/0-opt.wgsl @@ -50,7 +50,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-mul-identity/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-mul-identity/0-opt.wgsl index 32d71823f7..81d8511b57 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-mul-identity/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-mul-identity/0-opt.wgsl @@ -28,7 +28,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-not-less-than-neg/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-not-less-than-neg/0.wgsl index 7371365fb0..9ef2543443 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-not-less-than-neg/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-not-less-than-neg/0.wgsl @@ -33,7 +33,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-right-shift-greater-than-zero/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-right-shift-greater-than-zero/0-opt.wgsl index a1cbaf4751..d2deae49ea 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-right-shift-greater-than-zero/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-right-shift-greater-than-zero/0-opt.wgsl @@ -34,7 +34,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-sign-cosh/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-sign-cosh/0.wgsl index 60e6c3a375..7941446220 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-sign-cosh/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-simplify-sign-cosh/0.wgsl @@ -30,7 +30,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-sin-mul-mat-mat-mul-vec-mat/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-sin-mul-mat-mat-mul-vec-mat/0-opt.wgsl index b2ff3d7721..a6dfef5777 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-sin-mul-mat-mat-mul-vec-mat/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-sin-mul-mat-mat-mul-vec-mat/0-opt.wgsl @@ -90,7 +90,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-single-block-elim-self-assign/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-single-block-elim-self-assign/0-opt.wgsl index c38f758e14..902b2c6c91 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-single-block-elim-self-assign/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-single-block-elim-self-assign/0-opt.wgsl @@ -49,7 +49,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-sinh-ldexp/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-sinh-ldexp/0-opt.wgsl index 236b092c7e..bae09d55ce 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-sinh-ldexp/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-sinh-ldexp/0-opt.wgsl @@ -72,7 +72,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-ssa-rewrite-case-with-default/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-ssa-rewrite-case-with-default/0-opt.wgsl index 36f9060f51..0cbcc97502 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-ssa-rewrite-case-with-default/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-ssa-rewrite-case-with-default/0-opt.wgsl @@ -54,7 +54,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-step-sinh/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-step-sinh/0-opt.wgsl index cec76afe9a..20e9dc8a2a 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-step-sinh/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-step-sinh/0-opt.wgsl @@ -19,7 +19,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-struct-float-array-mix-uniform-vectors/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-struct-float-array-mix-uniform-vectors/0-opt.wgsl index 1b4b63d95c..18da3eb015 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-struct-float-array-mix-uniform-vectors/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-struct-float-array-mix-uniform-vectors/0-opt.wgsl @@ -92,7 +92,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-sum-uniform-vector-components-round/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-sum-uniform-vector-components-round/0-opt.wgsl index 07c860c08b..63deae6d78 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-sum-uniform-vector-components-round/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-sum-uniform-vector-components-round/0-opt.wgsl @@ -61,7 +61,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-for-for-for/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-for-for-for/0-opt.wgsl index 36e7882d19..0302149333 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-for-for-for/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-for-for-for/0-opt.wgsl @@ -105,7 +105,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.wgsl index 57b1326749..fadf785419 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-tail-duplicator-infinite-loops/0-opt.wgsl @@ -98,7 +98,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-target-lowering-dfdx-cos/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-target-lowering-dfdx-cos/0-opt.wgsl index 439064cd68..ad71b07de6 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-target-lowering-dfdx-cos/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-target-lowering-dfdx-cos/0-opt.wgsl @@ -31,7 +31,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-target-lowering-inst-combine-compares-struct-array-clamp-function-cal/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-target-lowering-inst-combine-compares-struct-array-clamp-function-cal/0-opt.wgsl index 9507f31c26..f9c3613f92 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-target-lowering-inst-combine-compares-struct-array-clamp-function-cal/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-target-lowering-inst-combine-compares-struct-array-clamp-function-cal/0-opt.wgsl @@ -162,7 +162,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-transpose-multiply/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-transpose-multiply/0-opt.wgsl index 37acd795b7..3d5c8b7368 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-transpose-multiply/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-transpose-multiply/0-opt.wgsl @@ -22,7 +22,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-trunc-fract-always-zero/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-trunc-fract-always-zero/0-opt.wgsl index 4f203544c0..40362b6020 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-trunc-fract-always-zero/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-trunc-fract-always-zero/0-opt.wgsl @@ -54,7 +54,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-types-return-in-main-never-hit/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-types-return-in-main-never-hit/0-opt.wgsl index 91d1acee0b..0f9279b532 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-types-return-in-main-never-hit/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-types-return-in-main-never-hit/0-opt.wgsl @@ -23,7 +23,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-undefined-inversesqrt-reflect/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-undefined-inversesqrt-reflect/0-opt.wgsl index e357321ed7..2dcba3ad3d 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-undefined-inversesqrt-reflect/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-undefined-inversesqrt-reflect/0-opt.wgsl @@ -56,7 +56,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-uninitialized-values-passed-to-function-never-executed/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-uninitialized-values-passed-to-function-never-executed/0-opt.wgsl index 408951f57a..f25d1e9b8a 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-uninitialized-values-passed-to-function-never-executed/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-uninitialized-values-passed-to-function-never-executed/0-opt.wgsl @@ -94,7 +94,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-unpack-unorm-mix-always-one/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-unpack-unorm-mix-always-one/0-opt.wgsl index e00fdb4925..537ce2b50c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-unpack-unorm-mix-always-one/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-unpack-unorm-mix-always-one/0-opt.wgsl @@ -70,7 +70,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-access-past-matrix-elements/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-access-past-matrix-elements/0-opt.wgsl index ab2fe1e769..006779f1c3 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-access-past-matrix-elements/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-access-past-matrix-elements/0-opt.wgsl @@ -98,7 +98,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-matrix-copy-inside-loop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-matrix-copy-inside-loop/0-opt.wgsl index 3e9258a940..118074c86c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-matrix-copy-inside-loop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-unused-matrix-copy-inside-loop/0-opt.wgsl @@ -97,7 +97,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-val-cfg-case-fallthrough/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-val-cfg-case-fallthrough/0-opt.wgsl index 6f1222b3f6..e58d17ee86 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-val-cfg-case-fallthrough/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-val-cfg-case-fallthrough/0-opt.wgsl @@ -35,7 +35,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-inst-combine-select-value-tracking-flip-bits/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-inst-combine-select-value-tracking-flip-bits/0-opt.wgsl index 7f6f64d80f..8418f6e8d8 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-inst-combine-select-value-tracking-flip-bits/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-inst-combine-select-value-tracking-flip-bits/0-opt.wgsl @@ -60,7 +60,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-apint-inst-combine-simplify-one-mod-loop-iterator/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-apint-inst-combine-simplify-one-mod-loop-iterator/0-opt.wgsl index f6094954d0..dfc8799c3b 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-apint-inst-combine-simplify-one-mod-loop-iterator/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-apint-inst-combine-simplify-one-mod-loop-iterator/0-opt.wgsl @@ -61,7 +61,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-inclusive-or/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-inclusive-or/0-opt.wgsl index d60a6c4dca..a3eb8ed32b 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-inclusive-or/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-inclusive-or/0-opt.wgsl @@ -39,7 +39,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-known-nonzero/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-known-nonzero/0-opt.wgsl index 6c21a50783..038cbc58cb 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-known-nonzero/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-known-nonzero/0-opt.wgsl @@ -64,7 +64,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-max-uintbitstofloat/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-max-uintbitstofloat/0-opt.wgsl index 6591588382..f5b06a9f92 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-max-uintbitstofloat/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-max-uintbitstofloat/0-opt.wgsl @@ -64,7 +64,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-selection-dag-negation-clamp-loop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-selection-dag-negation-clamp-loop/0-opt.wgsl index 8360d2ed9c..6475082df3 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-selection-dag-negation-clamp-loop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-selection-dag-negation-clamp-loop/0-opt.wgsl @@ -158,7 +158,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-uniform-incident/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-uniform-incident/0-opt.wgsl index 06406f24ba..2020584835 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-uniform-incident/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-value-tracking-uniform-incident/0-opt.wgsl @@ -33,7 +33,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-vector-dce-inc-unused-comp/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-vector-dce-inc-unused-comp/0-opt.wgsl index b8fde85c09..9e9fe23c58 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-vector-dce-inc-unused-comp/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-vector-dce-inc-unused-comp/0-opt.wgsl @@ -31,7 +31,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-vector-dce-unused-component/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-vector-dce-unused-component/0-opt.wgsl index 8cdf80577e..2586ea3ddc 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-vector-dce-unused-component/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-vector-dce-unused-component/0-opt.wgsl @@ -22,7 +22,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-vector-log2-cosh/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-vector-log2-cosh/0-opt.wgsl index ffddefbcd5..07ee5e27b4 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-vector-log2-cosh/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-vector-log2-cosh/0-opt.wgsl @@ -18,7 +18,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-write-past-matrix-elements-unused/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-write-past-matrix-elements-unused/0.wgsl index 2878e1de0a..e1d29af29d 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-write-past-matrix-elements-unused/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-write-past-matrix-elements-unused/0.wgsl @@ -69,7 +69,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-apfloat-nan-cos-cos/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-apfloat-nan-cos-cos/0-opt.wgsl index 878faea737..f94b71c520 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-apfloat-nan-cos-cos/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-apfloat-nan-cos-cos/0-opt.wgsl @@ -64,7 +64,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-machine-value-type-uint-to-float/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-machine-value-type-uint-to-float/0-opt.wgsl index 1770f67176..fd261dbd7d 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-machine-value-type-uint-to-float/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-machine-value-type-uint-to-float/0-opt.wgsl @@ -70,7 +70,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-negative-left-shift/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-negative-left-shift/0-opt.wgsl index d3898be323..be96401c5e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-negative-left-shift/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-negative-left-shift/0-opt.wgsl @@ -117,7 +117,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-selection-dag-struct-array-clamp-index/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-selection-dag-struct-array-clamp-index/0-opt.wgsl index 0a3e1b3bd1..7855268530 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-selection-dag-struct-array-clamp-index/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/cov-x86-isel-lowering-selection-dag-struct-array-clamp-index/0-opt.wgsl @@ -61,7 +61,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/create-color-in-do-while-for-loop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/create-color-in-do-while-for-loop/0-opt.wgsl index 8aaf0af58f..2c8368486d 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/create-color-in-do-while-for-loop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/create-color-in-do-while-for-loop/0-opt.wgsl @@ -91,7 +91,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/dead-barriers-in-loops/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/dead-barriers-in-loops/0-opt.wgsl index f4c8f8eb18..0a907b9da5 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/dead-barriers-in-loops/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/dead-barriers-in-loops/0-opt.wgsl @@ -101,7 +101,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main() { main_1(); } diff --git a/test/tint/vk-gl-cts/graphicsfuzz/disc-and-add-in-func-in-loop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/disc-and-add-in-func-in-loop/0-opt.wgsl index df826b8540..df60af33a4 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/disc-and-add-in-func-in-loop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/disc-and-add-in-func-in-loop/0-opt.wgsl @@ -66,7 +66,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/discard-continue-return/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/discard-continue-return/0-opt.wgsl index f1a3930291..0fbc4eb9eb 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/discard-continue-return/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/discard-continue-return/0-opt.wgsl @@ -47,7 +47,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/discard-in-array-manipulating-loop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/discard-in-array-manipulating-loop/0-opt.wgsl index 888ee7a0fc..6761b87303 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/discard-in-array-manipulating-loop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/discard-in-array-manipulating-loop/0-opt.wgsl @@ -36,7 +36,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/discard-in-loop-in-function/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/discard-in-loop-in-function/0-opt.wgsl index 6cfa6d91b7..1f09f47eb5 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/discard-in-loop-in-function/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/discard-in-loop-in-function/0-opt.wgsl @@ -42,7 +42,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/discard-in-loop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/discard-in-loop/0-opt.wgsl index d557692e26..4890b8a506 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/discard-in-loop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/discard-in-loop/0-opt.wgsl @@ -51,7 +51,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/discards-in-control-flow/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/discards-in-control-flow/0-opt.wgsl index 943fe6d63d..7038fc43dc 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/discards-in-control-flow/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/discards-in-control-flow/0-opt.wgsl @@ -37,7 +37,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/do-while-false-loops/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/do-while-false-loops/0-opt.wgsl index b328851826..a819c806a1 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/do-while-false-loops/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/do-while-false-loops/0-opt.wgsl @@ -44,7 +44,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/do-while-if-return/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/do-while-if-return/0-opt.wgsl index e35d29b99f..ce12bf7176 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/do-while-if-return/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/do-while-if-return/0-opt.wgsl @@ -68,7 +68,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/do-while-loop-in-conditionals/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/do-while-loop-in-conditionals/0-opt.wgsl index 896c857ce5..83e36a634a 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/do-while-loop-in-conditionals/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/do-while-loop-in-conditionals/0-opt.wgsl @@ -28,7 +28,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/early-return-and-barrier/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/early-return-and-barrier/0.wgsl index e4494049a6..7311f29b18 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/early-return-and-barrier/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/early-return-and-barrier/0.wgsl @@ -37,7 +37,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main() { main_1(); } diff --git a/test/tint/vk-gl-cts/graphicsfuzz/flag-always-false-if/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/flag-always-false-if/0-opt.wgsl index d5891cee53..9bb781ce19 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/flag-always-false-if/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/flag-always-false-if/0-opt.wgsl @@ -77,7 +77,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/for-condition-always-false/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/for-condition-always-false/0-opt.wgsl index 5e29cbc586..1355b0e4a6 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/for-condition-always-false/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/for-condition-always-false/0-opt.wgsl @@ -35,7 +35,7 @@ struct main_out { color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/for-loop-with-return/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/for-loop-with-return/0.wgsl index 8d1c3d7448..e5c0b2bc2d 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/for-loop-with-return/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/for-loop-with-return/0.wgsl @@ -19,7 +19,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/for-with-ifs-and-return/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/for-with-ifs-and-return/0-opt.wgsl index 4b56ed3443..489cbde005 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/for-with-ifs-and-return/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/for-with-ifs-and-return/0-opt.wgsl @@ -35,7 +35,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/frag-coord-func-call-and-ifs/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/frag-coord-func-call-and-ifs/0-opt.wgsl index fa91391fc1..2ca87f2d26 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/frag-coord-func-call-and-ifs/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/frag-coord-func-call-and-ifs/0-opt.wgsl @@ -81,7 +81,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.wgsl index 9ee645ede0..12782cbeee 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/function-with-uniform-return/0-opt.wgsl @@ -54,7 +54,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/global-array-loops/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/global-array-loops/0-opt.wgsl index 96b3c2144a..68a8df5ab6 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/global-array-loops/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/global-array-loops/0-opt.wgsl @@ -142,7 +142,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/if-and-switch/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/if-and-switch/0.wgsl index 5ba76cfb1a..d9cf1c740e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/if-and-switch/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/if-and-switch/0.wgsl @@ -40,7 +40,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/0.wgsl index 6dca2565ec..94830bb825 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/increment-value-in-nested-for-loop/0.wgsl @@ -265,7 +265,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/injection-switch-as-comparison/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/injection-switch-as-comparison/0.wgsl index b6091b16d5..772bef8f30 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/injection-switch-as-comparison/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/injection-switch-as-comparison/0.wgsl @@ -104,7 +104,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/int-mat2-struct/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/int-mat2-struct/0-opt.wgsl index c9a750329e..527d4621b1 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/int-mat2-struct/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/int-mat2-struct/0-opt.wgsl @@ -38,7 +38,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/loop-dead-if-loop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/loop-dead-if-loop/0-opt.wgsl index dec595e348..21ecd84c57 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/loop-dead-if-loop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/loop-dead-if-loop/0-opt.wgsl @@ -77,7 +77,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/loop-nested-ifs/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/loop-nested-ifs/0-opt.wgsl index baeeb55f19..f4377a9ccb 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/loop-nested-ifs/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/loop-nested-ifs/0-opt.wgsl @@ -41,7 +41,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/loops-ifs-continues-call/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/loops-ifs-continues-call/0.wgsl index a5552f48d8..7c36589b5a 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/loops-ifs-continues-call/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/loops-ifs-continues-call/0.wgsl @@ -84,7 +84,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/matrices-and-return-in-loop/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/matrices-and-return-in-loop/0.wgsl index 51edc7966c..62fa83b5fa 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/matrices-and-return-in-loop/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/matrices-and-return-in-loop/0.wgsl @@ -28,7 +28,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/max-mix-conditional-discard/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/max-mix-conditional-discard/0-opt.wgsl index 2f9bda553b..21bc6588a2 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/max-mix-conditional-discard/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/max-mix-conditional-discard/0-opt.wgsl @@ -32,7 +32,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/mix-floor-add/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/mix-floor-add/0-opt.wgsl index bb411e10a7..8efed25d0c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/mix-floor-add/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/mix-floor-add/0-opt.wgsl @@ -15,7 +15,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/nested-for-break-mat-color/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/nested-for-break-mat-color/0.wgsl index a35a5152b0..d714e88f8e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/nested-for-break-mat-color/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/nested-for-break-mat-color/0.wgsl @@ -65,7 +65,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/nested-for-loops-with-return/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/nested-for-loops-with-return/0-opt.wgsl index d0af691114..93a0a9b360 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/nested-for-loops-with-return/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/nested-for-loops-with-return/0-opt.wgsl @@ -34,7 +34,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/nested-ifs-and-return-in-for-loop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/nested-ifs-and-return-in-for-loop/0-opt.wgsl index 1cd8ddaba6..feee324278 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/nested-ifs-and-return-in-for-loop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/nested-ifs-and-return-in-for-loop/0-opt.wgsl @@ -38,7 +38,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/nested-loops-switch/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/nested-loops-switch/0.wgsl index cd954d2aa2..fe4a229ff2 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/nested-loops-switch/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/nested-loops-switch/0.wgsl @@ -113,7 +113,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/nested-switch-break-discard/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/nested-switch-break-discard/0-opt.wgsl index 51cb5d60cc..f932ed929a 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/nested-switch-break-discard/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/nested-switch-break-discard/0-opt.wgsl @@ -40,7 +40,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/one-sized-array/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/one-sized-array/0-opt.wgsl index 9fd97b82e9..f9e11f4e35 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/one-sized-array/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/one-sized-array/0-opt.wgsl @@ -41,7 +41,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/return-float-from-while-loop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/return-float-from-while-loop/0-opt.wgsl index fbc53b78d9..d18a92760e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/return-float-from-while-loop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/return-float-from-while-loop/0-opt.wgsl @@ -46,7 +46,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/return-in-loop-in-function/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/return-in-loop-in-function/0-opt.wgsl index 25a5811d96..bea8c03729 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/return-in-loop-in-function/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/return-in-loop-in-function/0-opt.wgsl @@ -53,7 +53,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/return-inside-loop-in-function/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/return-inside-loop-in-function/0.wgsl index 9b2a3d6f9b..0361cc51ea 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/return-inside-loop-in-function/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/return-inside-loop-in-function/0.wgsl @@ -67,7 +67,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/returned-boolean-in-vector/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/returned-boolean-in-vector/0-opt.wgsl index 7109cc1a3a..2eda8e346c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/returned-boolean-in-vector/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/returned-boolean-in-vector/0-opt.wgsl @@ -105,7 +105,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/set-color-in-one-iteration-while-loop/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/set-color-in-one-iteration-while-loop/0.wgsl index 21218c2a2a..ed302ea4e6 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/set-color-in-one-iteration-while-loop/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/set-color-in-one-iteration-while-loop/0.wgsl @@ -93,7 +93,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/similar-nested-ifs/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/similar-nested-ifs/0-opt.wgsl index 6a68dff995..25213514ab 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/similar-nested-ifs/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/similar-nested-ifs/0-opt.wgsl @@ -70,7 +70,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/smoothstep-after-loop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/smoothstep-after-loop/0-opt.wgsl index b7a61d93d1..908d8cc8a5 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/smoothstep-after-loop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/smoothstep-after-loop/0-opt.wgsl @@ -25,7 +25,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-access-chains/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-access-chains/0-opt.wgsl index 3374e3174f..fb36a0a6e5 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-access-chains/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-access-chains/0-opt.wgsl @@ -339,7 +339,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-composite-phi/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-composite-phi/0.wgsl index 8ad4074bcb..6ae4e0d7b3 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-composite-phi/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-composite-phi/0.wgsl @@ -188,7 +188,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-composite-phi/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-composite-phi/1.wgsl index bbeb9743c4..2b8e59b835 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-composite-phi/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-composite-phi/1.wgsl @@ -193,7 +193,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-composite2/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-composite2/0.wgsl index ef8966d00b..ec7407efe0 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-composite2/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-composite2/0.wgsl @@ -47,7 +47,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-composite2/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-composite2/1.wgsl index 63a5937eda..9b2e1a89d4 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-composite2/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-composite2/1.wgsl @@ -48,7 +48,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-composites/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-composites/0.wgsl index c80d66f757..306792e0af 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-composites/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-composites/0.wgsl @@ -85,7 +85,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-composites/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-composites/1.wgsl index 6f2ad79071..3dbfccbab5 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-composites/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-composites/1.wgsl @@ -90,7 +90,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-dead-break-and-unroll/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-dead-break-and-unroll/1.wgsl index 539e851381..d4e6effd92 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-dead-break-and-unroll/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-dead-break-and-unroll/1.wgsl @@ -348,7 +348,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-declare-bvec4/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-declare-bvec4/0-opt.wgsl index aba0ac91fc..f9eeb16329 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-declare-bvec4/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-declare-bvec4/0-opt.wgsl @@ -104,7 +104,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-declare-bvec4/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-declare-bvec4/1.wgsl index a95f9f797f..c658491d7d 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-declare-bvec4/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-declare-bvec4/1.wgsl @@ -105,7 +105,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/0-opt.wgsl index 8b594d432f..a4e052f31f 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/0-opt.wgsl @@ -303,7 +303,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/1.wgsl index 3ab90cbdd7..d968dc65b7 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block/1.wgsl @@ -307,7 +307,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block2/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block2/0.wgsl index 6709a3c267..aeb7ee43fd 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block2/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block2/0.wgsl @@ -110,7 +110,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block2/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block2/1.wgsl index b6e14fcc54..c3f0e7647a 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block2/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block2/1.wgsl @@ -110,7 +110,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block3/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block3/1.wgsl index df0ae14613..35a5a3ea43 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block3/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-double-branch-to-same-block3/1.wgsl @@ -307,7 +307,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-load-from-frag-color/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-load-from-frag-color/1.wgsl index c05ac33f45..8552766080 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-load-from-frag-color/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-load-from-frag-color/1.wgsl @@ -621,7 +621,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-null-in-phi-and-unroll/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-null-in-phi-and-unroll/1.wgsl index 76a3bfc228..54d48f36de 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-null-in-phi-and-unroll/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-null-in-phi-and-unroll/1.wgsl @@ -88,7 +88,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bifurcation-Os-mutate-var-vector-shuffle/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bifurcation-Os-mutate-var-vector-shuffle/1.wgsl index e5be06f864..c30cb4dd14 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bifurcation-Os-mutate-var-vector-shuffle/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bifurcation-Os-mutate-var-vector-shuffle/1.wgsl @@ -51,7 +51,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bifurcation-Os-mutate-var-vector-shuffle/2.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bifurcation-Os-mutate-var-vector-shuffle/2.wgsl index 8147bc1df0..b93af95ef6 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bifurcation-Os-mutate-var-vector-shuffle/2.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bifurcation-Os-mutate-var-vector-shuffle/2.wgsl @@ -48,7 +48,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bubblesort-flag-complex-conditionals/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bubblesort-flag-complex-conditionals/0.wgsl index 69482c9ce3..a6a0da4fb7 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bubblesort-flag-complex-conditionals/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bubblesort-flag-complex-conditionals/0.wgsl @@ -130,7 +130,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bubblesort-flag-complex-conditionals/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bubblesort-flag-complex-conditionals/1.wgsl index db23b3e946..bc3593e136 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bubblesort-flag-complex-conditionals/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-bubblesort-flag-complex-conditionals/1.wgsl @@ -187,7 +187,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-collatz-O-mutate-composite-construct-extract/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-collatz-O-mutate-composite-construct-extract/0.wgsl index 949a77d2c1..b9a04b8141 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-collatz-O-mutate-composite-construct-extract/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-collatz-O-mutate-composite-construct-extract/0.wgsl @@ -54,7 +54,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-collatz-O-mutate-composite-construct-extract/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-collatz-O-mutate-composite-construct-extract/1.wgsl index abd147e2a0..3a6ebf8b51 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-collatz-O-mutate-composite-construct-extract/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-collatz-O-mutate-composite-construct-extract/1.wgsl @@ -61,7 +61,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-colorgrid-modulo-O-move-block-down/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-colorgrid-modulo-O-move-block-down/1.wgsl index 635574865b..cf14db2acd 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-colorgrid-modulo-O-move-block-down/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-colorgrid-modulo-O-move-block-down/1.wgsl @@ -188,7 +188,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.wgsl index af7ad71cdc..81b22d3a55 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/1.wgsl @@ -383,7 +383,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/2.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/2.wgsl index 8449a162fe..edf5b87d8c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/2.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-maze-flatten-copy-composite/2.wgsl @@ -345,7 +345,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/1.wgsl index 0dda483aaa..23603de129 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/1.wgsl @@ -332,7 +332,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/2.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/2.wgsl index 3bfc9db965..389189bbae 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/2.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-O-prop-up-mutate-var/2.wgsl @@ -329,7 +329,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/0.wgsl index 8f8ed41977..8056a036ba 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/0.wgsl @@ -297,7 +297,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/1.wgsl index 1c4985ddb5..00053346ca 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-dead-code/1.wgsl @@ -312,7 +312,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/1.wgsl index 3344447ca4..2f6e5c2d24 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/1.wgsl @@ -405,7 +405,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/2-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/2-opt.wgsl index 57694d18a5..c2f545040c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/2-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-flatten-selection-dead-continues/2-opt.wgsl @@ -404,7 +404,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/1.wgsl index cc20c9595f..ce42393e47 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/1.wgsl @@ -295,7 +295,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/2.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/2.wgsl index b41f89b21b..8bbd92b919 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/2.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-mergesort-func-inline-mutate-var/2.wgsl @@ -292,7 +292,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-O-mutate-variable/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-O-mutate-variable/0.wgsl index b88eb31917..9013c673b1 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-O-mutate-variable/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-O-mutate-variable/0.wgsl @@ -96,7 +96,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-O-mutate-variable/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-O-mutate-variable/1.wgsl index 6f8c83dd1e..b529575805 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-O-mutate-variable/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-O-mutate-variable/1.wgsl @@ -99,7 +99,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/0.wgsl index 55cd6e5369..e4959478d0 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/0.wgsl @@ -96,7 +96,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/1.wgsl index 903d43b04c..3d271c25d1 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/1.wgsl @@ -99,7 +99,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/2.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/2.wgsl index 1692b7964a..ea82726208 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/2.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-orbit-Os-access-chain-mutate-pointer/2.wgsl @@ -96,7 +96,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-pillars-O-op-select-to-op-phi/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-pillars-O-op-select-to-op-phi/1.wgsl index f2297b166d..9841272cb4 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-pillars-O-op-select-to-op-phi/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-pillars-O-op-select-to-op-phi/1.wgsl @@ -97,7 +97,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-pillars-O-op-select-to-op-phi/2.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-pillars-O-op-select-to-op-phi/2.wgsl index 227ca6630c..8479a82d1a 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-pillars-O-op-select-to-op-phi/2.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-pillars-O-op-select-to-op-phi/2.wgsl @@ -90,7 +90,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-pillars-volatile-nontemporal-store/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-pillars-volatile-nontemporal-store/0.wgsl index 98b11851b3..463fe2841e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-pillars-volatile-nontemporal-store/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-pillars-volatile-nontemporal-store/0.wgsl @@ -75,7 +75,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-pillars-volatile-nontemporal-store/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-pillars-volatile-nontemporal-store/1.wgsl index 48f2dd5efd..ec0dce8bbe 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-pillars-volatile-nontemporal-store/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-pillars-volatile-nontemporal-store/1.wgsl @@ -81,7 +81,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-quicksort-dontinline/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-quicksort-dontinline/0-opt.wgsl index 7580826f49..0d10814c6f 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-quicksort-dontinline/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-quicksort-dontinline/0-opt.wgsl @@ -247,7 +247,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-quicksort-mat-func-param/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-quicksort-mat-func-param/1.wgsl index 67280487f7..86252db18a 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-quicksort-mat-func-param/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-quicksort-mat-func-param/1.wgsl @@ -247,7 +247,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-rects-Os-mutate-var-push-through-var/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-rects-Os-mutate-var-push-through-var/1.wgsl index 3500ff3a60..a4607d0694 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-rects-Os-mutate-var-push-through-var/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-rects-Os-mutate-var-push-through-var/1.wgsl @@ -94,7 +94,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-rects-Os-mutate-var-push-through-var/2.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-rects-Os-mutate-var-push-through-var/2.wgsl index 5345cd694b..afddd208ab 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-rects-Os-mutate-var-push-through-var/2.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/spv-stable-rects-Os-mutate-var-push-through-var/2.wgsl @@ -91,7 +91,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-false-if-discard-loop/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-false-if-discard-loop/0.wgsl index 4a1f3e2230..9f1a34b52c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-false-if-discard-loop/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-false-if-discard-loop/0.wgsl @@ -619,7 +619,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-false-if-discard-loop/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-false-if-discard-loop/1.wgsl index 68ea6e3cbe..8fe63eff80 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-false-if-discard-loop/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-false-if-discard-loop/1.wgsl @@ -950,7 +950,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/0.wgsl index 60e52909da..39ff0922bb 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/0.wgsl @@ -254,7 +254,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/1.wgsl index e690b001af..cafa4d239c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-fragcoord-less-than-zero/1.wgsl @@ -266,7 +266,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-nested-if-and-conditional/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-nested-if-and-conditional/1.wgsl index ec9d97fd00..0bd3cb85cb 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-nested-if-and-conditional/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-nested-if-and-conditional/1.wgsl @@ -284,7 +284,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/0-opt.wgsl index e6989481e7..5bd37fe4c2 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/0-opt.wgsl @@ -254,7 +254,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/1.wgsl index c1f21a43dd..576d845e6c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-binarysearch-tree-with-loop-read-write-global/1.wgsl @@ -308,7 +308,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-collatz-push-constant-with-nested-min-max/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-collatz-push-constant-with-nested-min-max/0.wgsl index 7b48be9242..6a560bbe0b 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-collatz-push-constant-with-nested-min-max/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-collatz-push-constant-with-nested-min-max/0.wgsl @@ -59,7 +59,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-double-always-false-discard/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-double-always-false-discard/1.wgsl index 3a8aca003a..3fcd20f7df 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-double-always-false-discard/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-double-always-false-discard/1.wgsl @@ -209,7 +209,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-float-mat-determinant-clamp/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-float-mat-determinant-clamp/0.wgsl index 594f9f8995..f612661914 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-float-mat-determinant-clamp/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-float-mat-determinant-clamp/0.wgsl @@ -107,7 +107,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-injected-conditional-true/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-injected-conditional-true/1.wgsl index 14441ba014..5882e5ba53 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-injected-conditional-true/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-injected-conditional-true/1.wgsl @@ -123,7 +123,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-divided-1/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-divided-1/0-opt.wgsl index 0013539784..d8b4269431 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-divided-1/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-divided-1/0-opt.wgsl @@ -110,7 +110,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-divided-1/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-divided-1/1.wgsl index 81e620c736..bdbe598496 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-divided-1/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-divided-1/1.wgsl @@ -124,7 +124,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-simple-loop/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-simple-loop/1.wgsl index c2c1977c59..e149872449 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-simple-loop/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-true-conditional-simple-loop/1.wgsl @@ -139,7 +139,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-vec3-values-from-matrix/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-vec3-values-from-matrix/1.wgsl index b324fbff29..8ae40e00ac 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-vec3-values-from-matrix/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-colorgrid-modulo-vec3-values-from-matrix/1.wgsl @@ -112,7 +112,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-clamped-conditional-bit-shift/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-clamped-conditional-bit-shift/1.wgsl index 1c47a912e9..5ce31cab5f 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-clamped-conditional-bit-shift/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-clamped-conditional-bit-shift/1.wgsl @@ -331,7 +331,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-for-always-false-if-discard/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-for-always-false-if-discard/1.wgsl index 0cd476e5bd..803c0719ab 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-for-always-false-if-discard/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-for-always-false-if-discard/1.wgsl @@ -335,7 +335,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-reversed-for-loop/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-reversed-for-loop/1.wgsl index bdd78d3aad..41563d7cef 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-reversed-for-loop/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-mergesort-reversed-for-loop/1.wgsl @@ -307,7 +307,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-conditional-bitwise-or-clamp/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-conditional-bitwise-or-clamp/1.wgsl index 5e852c6fda..2c4ecdc01c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-conditional-bitwise-or-clamp/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-conditional-bitwise-or-clamp/1.wgsl @@ -271,7 +271,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-for-loop-with-injection/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-for-loop-with-injection/0-opt.wgsl index 046de74739..a84e86bf8e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-for-loop-with-injection/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-for-loop-with-injection/0-opt.wgsl @@ -255,7 +255,7 @@ struct main_out { gl_Position : vec4, } -@stage(vertex) +@vertex fn main(@location(0) x_GLF_pos_param : vec4) -> main_out { x_GLF_pos = x_GLF_pos_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-for-loop-with-injection/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-for-loop-with-injection/1.wgsl index 206c4d1197..fab590f1de 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-for-loop-with-injection/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-for-loop-with-injection/1.wgsl @@ -13,7 +13,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@location(0) frag_color_param : vec4) -> main_out { frag_color = frag_color_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-for-loop-with-injection/2-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-for-loop-with-injection/2-opt.wgsl index 692a93a320..e2ba710443 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-for-loop-with-injection/2-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-for-loop-with-injection/2-opt.wgsl @@ -266,7 +266,7 @@ struct main_out { gl_Position : vec4, } -@stage(vertex) +@vertex fn main(@location(0) x_GLF_pos_param : vec4) -> main_out { x_GLF_pos = x_GLF_pos_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-if-false-else-return/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-if-false-else-return/0.wgsl index 1a71e0ca2f..c920db8845 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-if-false-else-return/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-if-false-else-return/0.wgsl @@ -253,7 +253,7 @@ struct main_out { gl_Position : vec4, } -@stage(vertex) +@vertex fn main(@location(0) x_GLF_pos_param : vec4) -> main_out { x_GLF_pos = x_GLF_pos_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-if-false-else-return/2.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-if-false-else-return/2.wgsl index c3d618504d..4c787cd9aa 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-if-false-else-return/2.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-if-false-else-return/2.wgsl @@ -259,7 +259,7 @@ struct main_out { gl_Position : vec4, } -@stage(vertex) +@vertex fn main(@location(0) x_GLF_pos_param : vec4) -> main_out { x_GLF_pos = x_GLF_pos_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-max-value-as-index/2-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-max-value-as-index/2-opt.wgsl index 64489a9a9e..7dbd3fc4f2 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-max-value-as-index/2-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-quicksort-max-value-as-index/2-opt.wgsl @@ -264,7 +264,7 @@ struct main_out { gl_Position : vec4, } -@stage(vertex) +@vertex fn main(@location(0) x_GLF_pos_param : vec4) -> main_out { x_GLF_pos = x_GLF_pos_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-rects-vec4-clamp-conditional-min-mix/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-rects-vec4-clamp-conditional-min-mix/1.wgsl index a3c48021fd..1f9f0749b5 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-rects-vec4-clamp-conditional-min-mix/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-rects-vec4-clamp-conditional-min-mix/1.wgsl @@ -117,7 +117,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-array-nested-loop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-array-nested-loop/0-opt.wgsl index d74e2b4cfa..776e91571d 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-array-nested-loop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-array-nested-loop/0-opt.wgsl @@ -134,7 +134,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/0.wgsl index ba05600951..e531c8b319 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/0.wgsl @@ -125,7 +125,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/1.wgsl index 09c4afbdb6..0d8b91a350 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-clamp-conditional-mix/1.wgsl @@ -154,7 +154,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-conditional-clamped-float/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-conditional-clamped-float/0.wgsl index 00375d4ffe..79dd9067df 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-conditional-clamped-float/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-conditional-clamped-float/0.wgsl @@ -125,7 +125,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/0.wgsl index febe37b955..373fca2210 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/0.wgsl @@ -119,7 +119,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/1.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/1.wgsl index 9dfb23450d..b491c61d09 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/1.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/stable-triangle-nested-for-loop-and-true-if/1.wgsl @@ -163,7 +163,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/struct-array-index/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/struct-array-index/0.wgsl index bf21950372..753ce4fe33 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/struct-array-index/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/struct-array-index/0.wgsl @@ -43,7 +43,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/struct-controlled-loop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/struct-controlled-loop/0-opt.wgsl index 9c94b7e573..d7ed97dc33 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/struct-controlled-loop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/struct-controlled-loop/0-opt.wgsl @@ -44,7 +44,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/struct-used-as-temporary/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/struct-used-as-temporary/0-opt.wgsl index aed459635d..56f0b19489 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/struct-used-as-temporary/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/struct-used-as-temporary/0-opt.wgsl @@ -24,7 +24,7 @@ struct main_out { x_3_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_3); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/switch-if-discard/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/switch-if-discard/0-opt.wgsl index ee8dc03b93..931939d2b4 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/switch-if-discard/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/switch-if-discard/0-opt.wgsl @@ -28,7 +28,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/switch-inside-while-always-return/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/switch-inside-while-always-return/0-opt.wgsl index d87c600cc5..cdddf1fc52 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/switch-inside-while-always-return/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/switch-inside-while-always-return/0-opt.wgsl @@ -47,7 +47,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/switch-loop-switch-if/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/switch-loop-switch-if/0-opt.wgsl index 0290964feb..41e5cfeaad 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/switch-loop-switch-if/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/switch-loop-switch-if/0-opt.wgsl @@ -66,7 +66,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/switch-with-empty-if-false/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/switch-with-empty-if-false/0.wgsl index 68b1a0e28a..05be13b4b2 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/switch-with-empty-if-false/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/switch-with-empty-if-false/0.wgsl @@ -18,7 +18,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/switch-with-fall-through-cases/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/switch-with-fall-through-cases/0-opt.wgsl index 349f964f53..44c1c317a9 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/switch-with-fall-through-cases/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/switch-with-fall-through-cases/0-opt.wgsl @@ -66,7 +66,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/transpose-rectangular-matrix/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/transpose-rectangular-matrix/0.wgsl index c1f5d4a802..33f736c71b 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/transpose-rectangular-matrix/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/transpose-rectangular-matrix/0.wgsl @@ -33,7 +33,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/two-2-iteration-loops/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/two-2-iteration-loops/0-opt.wgsl index 787c25f0fa..dde0affa7f 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/two-2-iteration-loops/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/two-2-iteration-loops/0-opt.wgsl @@ -101,7 +101,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/two-for-loops-with-barrier-function/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/two-for-loops-with-barrier-function/0-opt.wgsl index dbcb808465..56be7c38dd 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/two-for-loops-with-barrier-function/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/two-for-loops-with-barrier-function/0-opt.wgsl @@ -91,7 +91,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1, 18, 6) +@compute @workgroup_size(1, 18, 6) fn main() { main_1(); } diff --git a/test/tint/vk-gl-cts/graphicsfuzz/two-loops-matrix/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/two-loops-matrix/0.wgsl index dbd9c5a602..01508b734a 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/two-loops-matrix/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/two-loops-matrix/0.wgsl @@ -61,7 +61,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/two-loops-set-struct/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/two-loops-set-struct/0.wgsl index 3603274fb9..ab3430f273 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/two-loops-set-struct/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/two-loops-set-struct/0.wgsl @@ -71,7 +71,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/two-loops-with-break/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/two-loops-with-break/0-opt.wgsl index 6ce6f521a4..309d5e12f5 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/two-loops-with-break/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/two-loops-with-break/0-opt.wgsl @@ -60,7 +60,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/two-nested-do-whiles/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/two-nested-do-whiles/0-opt.wgsl index dd12134989..1dc822f95d 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/two-nested-do-whiles/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/two-nested-do-whiles/0-opt.wgsl @@ -84,7 +84,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/two-nested-for-loops-with-returns/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/two-nested-for-loops-with-returns/0-opt.wgsl index 060017b39c..d07a278cd7 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/two-nested-for-loops-with-returns/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/two-nested-for-loops-with-returns/0-opt.wgsl @@ -55,7 +55,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main() { main_1(); } diff --git a/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.wgsl index 5f7d58cbfa..289004ed56 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/undefined-assign-in-infinite-loop/0.wgsl @@ -34,7 +34,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/undefined-integer-in-function/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/undefined-integer-in-function/0-opt.wgsl index 7e36aeec07..3cadb54354 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/undefined-integer-in-function/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/undefined-integer-in-function/0-opt.wgsl @@ -62,7 +62,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/uninit-element-cast-in-loop/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/uninit-element-cast-in-loop/0-opt.wgsl index 9af2e55c54..435e54e38d 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/uninit-element-cast-in-loop/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/uninit-element-cast-in-loop/0-opt.wgsl @@ -35,7 +35,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/uninitialized-var-decrement-and-add/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/uninitialized-var-decrement-and-add/0-opt.wgsl index a577af6c9b..c9198f6d0e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/uninitialized-var-decrement-and-add/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/uninitialized-var-decrement-and-add/0-opt.wgsl @@ -26,7 +26,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-barrier-in-loops/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-barrier-in-loops/0-opt.wgsl index 29fc08524c..c3bc1bf4c2 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-barrier-in-loops/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-barrier-in-loops/0-opt.wgsl @@ -135,7 +135,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main(@builtin(global_invocation_id) gl_GlobalInvocationID_param : vec3) { gl_GlobalInvocationID = gl_GlobalInvocationID_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-continue-statement/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-continue-statement/0.wgsl index 28a95e6ef1..c9d84922ba 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-continue-statement/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-continue-statement/0.wgsl @@ -34,7 +34,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-discard-statement-in-if/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-discard-statement-in-if/0-opt.wgsl index 2ce27b5cb0..f656b91286 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-discard-statement-in-if/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-discard-statement-in-if/0-opt.wgsl @@ -39,7 +39,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops-in-switch/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops-in-switch/0.wgsl index 7edecc2e96..5b160e165c 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops-in-switch/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops-in-switch/0.wgsl @@ -56,7 +56,7 @@ struct main_out { x_GLF_color_1 : vec4, }; -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.wgsl index d983488595..dafad00011 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-loops/0-opt.wgsl @@ -38,7 +38,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-return-in-loop/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-return-in-loop/0.wgsl index 27ea484d1b..f7afe65bc6 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/unreachable-return-in-loop/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/unreachable-return-in-loop/0.wgsl @@ -42,7 +42,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/uv-value-comparison-as-boolean/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/uv-value-comparison-as-boolean/0.wgsl index aae7862023..4633c8ce60 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/uv-value-comparison-as-boolean/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/uv-value-comparison-as-boolean/0.wgsl @@ -41,7 +41,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/vector-values-multiplied-by-fragcoord/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/vector-values-multiplied-by-fragcoord/0-opt.wgsl index 243b48ba28..3038a6850b 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/vector-values-multiplied-by-fragcoord/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/vector-values-multiplied-by-fragcoord/0-opt.wgsl @@ -102,7 +102,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/vectors-and-discard-in-function/0.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/vectors-and-discard-in-function/0.wgsl index a7f241950e..e24cb0a1ee 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/vectors-and-discard-in-function/0.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/vectors-and-discard-in-function/0.wgsl @@ -33,7 +33,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/while-function-always-false/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/while-function-always-false/0-opt.wgsl index e46dd74617..317778e686 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/while-function-always-false/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/while-function-always-false/0-opt.wgsl @@ -39,7 +39,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.wgsl index b33f560e75..32082a5bd4 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/write-before-break/0-opt.wgsl @@ -98,7 +98,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/write-red-after-search/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/write-red-after-search/0-opt.wgsl index d4ea4f9273..11d42f382e 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/write-red-after-search/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/write-red-after-search/0-opt.wgsl @@ -411,7 +411,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/write-red-in-loop-nest/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/write-red-in-loop-nest/0-opt.wgsl index 772af1d08e..b9456746d6 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/write-red-in-loop-nest/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/write-red-in-loop-nest/0-opt.wgsl @@ -91,7 +91,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/graphicsfuzz/wrong-color-in-always-false-if/0-opt.wgsl b/test/tint/vk-gl-cts/graphicsfuzz/wrong-color-in-always-false-if/0-opt.wgsl index 13f20fff8c..2ed7214f18 100644 --- a/test/tint/vk-gl-cts/graphicsfuzz/wrong-color-in-always-false-if/0-opt.wgsl +++ b/test/tint/vk-gl-cts/graphicsfuzz/wrong-color-in-always-false-if/0-opt.wgsl @@ -23,7 +23,7 @@ struct main_out { x_GLF_color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(x_GLF_color); diff --git a/test/tint/vk-gl-cts/non_robust_buffer_access/unexecuted_oob_overflow/0-opt.wgsl b/test/tint/vk-gl-cts/non_robust_buffer_access/unexecuted_oob_overflow/0-opt.wgsl index 89672bde16..b516363169 100644 --- a/test/tint/vk-gl-cts/non_robust_buffer_access/unexecuted_oob_overflow/0-opt.wgsl +++ b/test/tint/vk-gl-cts/non_robust_buffer_access/unexecuted_oob_overflow/0-opt.wgsl @@ -109,7 +109,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(4, 1, 1) +@compute @workgroup_size(4, 1, 1) fn main(@builtin(workgroup_id) gl_WorkGroupID_param : vec3) { gl_WorkGroupID = gl_WorkGroupID_param; main_1(); diff --git a/test/tint/vk-gl-cts/non_robust_buffer_access/unexecuted_oob_underflow/0-opt.wgsl b/test/tint/vk-gl-cts/non_robust_buffer_access/unexecuted_oob_underflow/0-opt.wgsl index d373a8456c..5e8bbe1c9f 100644 --- a/test/tint/vk-gl-cts/non_robust_buffer_access/unexecuted_oob_underflow/0-opt.wgsl +++ b/test/tint/vk-gl-cts/non_robust_buffer_access/unexecuted_oob_underflow/0-opt.wgsl @@ -109,7 +109,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(4, 1, 1) +@compute @workgroup_size(4, 1, 1) fn main(@builtin(workgroup_id) gl_WorkGroupID_param : vec3) { gl_WorkGroupID = gl_WorkGroupID_param; main_1(); diff --git a/test/tint/vk-gl-cts/rasterization/line_continuity/line-strip/0.wgsl b/test/tint/vk-gl-cts/rasterization/line_continuity/line-strip/0.wgsl index 08343e5c0c..5ac3080718 100644 --- a/test/tint/vk-gl-cts/rasterization/line_continuity/line-strip/0.wgsl +++ b/test/tint/vk-gl-cts/rasterization/line_continuity/line-strip/0.wgsl @@ -10,7 +10,7 @@ struct main_out { color_1 : vec4, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(color); diff --git a/test/tint/vk-gl-cts/rasterization/line_continuity/line-strip/1.wgsl b/test/tint/vk-gl-cts/rasterization/line_continuity/line-strip/1.wgsl index adc5669523..ed844c0f1a 100644 --- a/test/tint/vk-gl-cts/rasterization/line_continuity/line-strip/1.wgsl +++ b/test/tint/vk-gl-cts/rasterization/line_continuity/line-strip/1.wgsl @@ -16,7 +16,7 @@ struct main_out { color_out_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/arraylength/array-stride-larger-than-element-size/1.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/arraylength/array-stride-larger-than-element-size/1.wgsl index 70d0754122..a78ae2c7bd 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/arraylength/array-stride-larger-than-element-size/1.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/arraylength/array-stride-larger-than-element-size/1.wgsl @@ -37,7 +37,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main() { main_1(); } diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthan/0.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthan/0.wgsl index cb066eea27..b36391115f 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthan/0.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthan/0.wgsl @@ -20,7 +20,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main(@builtin(global_invocation_id) x_2_param : vec3) { x_2 = x_2_param; main_1(); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthanequal/0.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthanequal/0.wgsl index 733a1f044c..bae81f9320 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthanequal/0.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_sgreaterthanequal/0.wgsl @@ -20,7 +20,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main(@builtin(global_invocation_id) x_2_param : vec3) { x_2 = x_2_param; main_1(); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthan/0.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthan/0.wgsl index c6ad43c225..56061a7ff0 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthan/0.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthan/0.wgsl @@ -20,7 +20,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main(@builtin(global_invocation_id) x_2_param : vec3) { x_2 = x_2_param; main_1(); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthanequal/0.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthanequal/0.wgsl index 5ccc2a7a30..fefb524e8e 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthanequal/0.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_int_compare/uint_slessthanequal/0.wgsl @@ -20,7 +20,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main(@builtin(global_invocation_id) x_2_param : vec3) { x_2 = x_2_param; main_1(); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_int_uclamp/0-opt.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_int_uclamp/0-opt.wgsl index d7b159fdf4..c2904871c0 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_int_uclamp/0-opt.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_int_uclamp/0-opt.wgsl @@ -23,7 +23,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main(@builtin(global_invocation_id) x_3_param : vec3) { x_3 = x_3_param; main_1(); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sabs/0-opt.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sabs/0-opt.wgsl index a8ef5a22e1..b33c53b40b 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sabs/0-opt.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sabs/0-opt.wgsl @@ -17,7 +17,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main(@builtin(global_invocation_id) x_3_param : vec3) { x_3 = x_3_param; main_1(); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sclamp/0-opt.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sclamp/0-opt.wgsl index 5943d91d3f..8817e33dc0 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sclamp/0-opt.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_sclamp/0-opt.wgsl @@ -23,7 +23,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main(@builtin(global_invocation_id) x_3_param : vec3) { x_3 = x_3_param; main_1(); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smax/0-opt.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smax/0-opt.wgsl index 2a2b3bdb40..e86ba627da 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smax/0-opt.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smax/0-opt.wgsl @@ -20,7 +20,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main(@builtin(global_invocation_id) x_3_param : vec3) { x_3 = x_3_param; main_1(); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smin/0-opt.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smin/0-opt.wgsl index e1a9836b1a..eade541d21 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smin/0-opt.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/glsl_uint_smin/0-opt.wgsl @@ -20,7 +20,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main(@builtin(global_invocation_id) x_3_param : vec3) { x_3 = x_3_param; main_1(); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_sdiv/0-opt.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_sdiv/0-opt.wgsl index 293a48cfcf..7958835b31 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_sdiv/0-opt.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_sdiv/0-opt.wgsl @@ -20,7 +20,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main(@builtin(global_invocation_id) x_2_param : vec3) { x_2 = x_2_param; main_1(); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_snegate/0-opt.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_snegate/0-opt.wgsl index 08ebc654c8..7f3aca0740 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_snegate/0-opt.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/compute/signed_op/uint_snegate/0-opt.wgsl @@ -17,7 +17,7 @@ fn main_1() { return; } -@stage(compute) @workgroup_size(1, 1, 1) +@compute @workgroup_size(1, 1, 1) fn main(@builtin(global_invocation_id) x_2_param : vec3) { x_2 = x_2_param; main_1(); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/float32/comparison/frexpstruct_1_frag/0.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/float32/comparison/frexpstruct_1_frag/0.wgsl index 47dac83ef8..6fd10fa07d 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/float32/comparison/frexpstruct_1_frag/0.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/float32/comparison/frexpstruct_1_frag/0.wgsl @@ -20,7 +20,7 @@ struct main_out { gl_Position : vec4, } -@stage(vertex) +@vertex fn main(@location(0) x_3_param : vec2) -> main_out { x_3 = x_3_param; main_1(); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_equal/0-opt.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_equal/0-opt.wgsl index 5fafe44dd9..b3544f7ca5 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_equal/0-opt.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_equal/0-opt.wgsl @@ -14,7 +14,7 @@ struct main_out { gl_Position : vec4, } -@stage(vertex) +@vertex fn main(@location(0) position_param : vec4) -> main_out { position = position_param; main_1(); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_equal/1.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_equal/1.wgsl index 48f911ce2e..5a82d347e2 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_equal/1.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_equal/1.wgsl @@ -15,7 +15,7 @@ struct main_out { gl_FragDepth_1 : f32, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(color_out, gl_FragDepth); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_greater/0-opt.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_greater/0-opt.wgsl index 4301036fdc..811fe594dd 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_greater/0-opt.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_greater/0-opt.wgsl @@ -14,7 +14,7 @@ struct main_out { gl_Position : vec4, } -@stage(vertex) +@vertex fn main(@location(0) position_param : vec4) -> main_out { position = position_param; main_1(); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_greater/1.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_greater/1.wgsl index 4b7784719d..8b3efb2635 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_greater/1.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_greater/1.wgsl @@ -15,7 +15,7 @@ struct main_out { gl_FragDepth_1 : f32, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(color_out, gl_FragDepth); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_less/0-opt.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_less/0-opt.wgsl index 8535066d33..ddc27e71db 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_less/0-opt.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_less/0-opt.wgsl @@ -14,7 +14,7 @@ struct main_out { gl_Position : vec4, } -@stage(vertex) +@vertex fn main(@location(0) position_param : vec4) -> main_out { position = position_param; main_1(); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_less_or_equal/1.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_less_or_equal/1.wgsl index b4531a7f3c..e5ece0c751 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_less_or_equal/1.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_less_or_equal/1.wgsl @@ -15,7 +15,7 @@ struct main_out { gl_FragDepth_1 : f32, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(color_out, gl_FragDepth); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_not_equal/0-opt.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_not_equal/0-opt.wgsl index 95d7f54e8d..396a887959 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_not_equal/0-opt.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_not_equal/0-opt.wgsl @@ -14,7 +14,7 @@ struct main_out { gl_Position : vec4, } -@stage(vertex) +@vertex fn main(@location(0) position_param : vec4) -> main_out { position = position_param; main_1(); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_not_equal/1.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_not_equal/1.wgsl index 6d7e13db23..bae4d1a85d 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_not_equal/1.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/early_fragment/depth_not_equal/1.wgsl @@ -15,7 +15,7 @@ struct main_out { gl_FragDepth_1 : f32, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(color_out, gl_FragDepth); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthgreater_1/0-opt.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthgreater_1/0-opt.wgsl index ad8f4af8d6..868da48119 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthgreater_1/0-opt.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthgreater_1/0-opt.wgsl @@ -14,7 +14,7 @@ struct main_out { gl_Position : vec4, } -@stage(vertex) +@vertex fn main(@location(0) position_param : vec4) -> main_out { position = position_param; main_1(); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthgreater_2/0-opt.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthgreater_2/0-opt.wgsl index 20e02acba1..e59c3fc75a 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthgreater_2/0-opt.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthgreater_2/0-opt.wgsl @@ -14,7 +14,7 @@ struct main_out { gl_Position : vec4, } -@stage(vertex) +@vertex fn main(@location(0) position_param : vec4) -> main_out { position = position_param; main_1(); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthgreater_2/1.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthgreater_2/1.wgsl index 9f3a0ac409..f2a67fb39f 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthgreater_2/1.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthgreater_2/1.wgsl @@ -15,7 +15,7 @@ struct main_out { gl_FragDepth_1 : f32, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(outColor, gl_FragDepth); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthless_0/1.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthless_0/1.wgsl index ff8fc9aa96..cf4b64c986 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthless_0/1.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthless_0/1.wgsl @@ -15,7 +15,7 @@ struct main_out { gl_FragDepth_1 : f32, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(outColor, gl_FragDepth); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthless_2/1.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthless_2/1.wgsl index 7039723a78..d68db5f286 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthless_2/1.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthless_2/1.wgsl @@ -15,7 +15,7 @@ struct main_out { gl_FragDepth_1 : f32, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(outColor, gl_FragDepth); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthunchanged_0/1.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthunchanged_0/1.wgsl index 7d01c21591..adf7699fd9 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthunchanged_0/1.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthunchanged_0/1.wgsl @@ -18,7 +18,7 @@ struct main_out { gl_FragDepth_1 : f32, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthunchanged_2/1.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthunchanged_2/1.wgsl index 2a68cc41db..e07220e686 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthunchanged_2/1.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthunchanged_2/1.wgsl @@ -15,7 +15,7 @@ struct main_out { gl_FragDepth_1 : f32, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(outColor, gl_FragDepth); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthunchanged_3/1.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthunchanged_3/1.wgsl index e7b8508fc7..944535159d 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthunchanged_3/1.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/graphics/execution_mode/depthunchanged_3/1.wgsl @@ -15,7 +15,7 @@ struct main_out { gl_FragDepth_1 : f32, } -@stage(fragment) +@fragment fn main() -> main_out { main_1(); return main_out(outColor, gl_FragDepth); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/spirv1p4/hlsl_functionality1/decorate_string/0.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/spirv1p4/hlsl_functionality1/decorate_string/0.wgsl index cf79af0536..330cec1d57 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/spirv1p4/hlsl_functionality1/decorate_string/0.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/spirv1p4/hlsl_functionality1/decorate_string/0.wgsl @@ -18,7 +18,7 @@ struct main_out { pos_1 : u32, } -@stage(vertex) +@vertex fn main(@location(0) position_param : vec4) -> main_out { position = position_param; main_1(); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_image_atomic/0-opt.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_image_atomic/0-opt.wgsl index dbe9cdea6e..c9840715b2 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_image_atomic/0-opt.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_image_atomic/0-opt.wgsl @@ -20,7 +20,7 @@ struct main_out { gl_Position : vec4, } -@stage(vertex) +@vertex fn main(@location(0) x_2_param : vec3, @location(1) @interpolate(flat) x_3_param : i32) -> main_out { x_2 = x_2_param; x_3 = x_3_param; diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_image_store/1.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_image_store/1.wgsl index a4d22f28f6..59e367d4da 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_image_store/1.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_image_store/1.wgsl @@ -23,7 +23,7 @@ struct main_out { x_4_1 : i32, } -@stage(fragment) +@fragment fn main(@builtin(position) x_2_param : vec4, @location(0) @interpolate(flat) x_3_param : i32) -> main_out { x_2 = x_2_param; x_3 = x_3_param; diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_output_write/1.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_output_write/1.wgsl index 18d4b52682..2cfa888904 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_output_write/1.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_output_write/1.wgsl @@ -18,7 +18,7 @@ struct main_out { x_4_1 : i32, } -@stage(fragment) +@fragment fn main(@builtin(position) x_2_param : vec4, @location(0) @interpolate(flat) x_3_param : i32) -> main_out { x_2 = x_2_param; x_3 = x_3_param; diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_output_write/2-opt.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_output_write/2-opt.wgsl index 88ebe31465..9790cbd5ff 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_output_write/2-opt.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_output_write/2-opt.wgsl @@ -20,7 +20,7 @@ struct main_out { out_data_1 : i32, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_output_write_before_terminate/1.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_output_write_before_terminate/1.wgsl index 1c90d21dc1..c8c5fd14f7 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_output_write_before_terminate/1.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_output_write_before_terminate/1.wgsl @@ -18,7 +18,7 @@ struct main_out { x_4_1 : i32, } -@stage(fragment) +@fragment fn main(@builtin(position) x_2_param : vec4, @location(0) @interpolate(flat) x_3_param : i32) -> main_out { x_2 = x_2_param; x_3 = x_3_param; diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_ssbo_store/1.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_ssbo_store/1.wgsl index c57b47631c..472f453158 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_ssbo_store/1.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/no_ssbo_store/1.wgsl @@ -29,7 +29,7 @@ struct main_out { x_4_1 : i32, } -@stage(fragment) +@fragment fn main(@builtin(position) x_2_param : vec4, @location(0) @interpolate(flat) x_3_param : i32) -> main_out { x_2 = x_2_param; x_3 = x_3_param; diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/ssbo_store_before_terminate/1.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/ssbo_store_before_terminate/1.wgsl index 1db1c34f5b..2cdb543b3d 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/ssbo_store_before_terminate/1.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/ssbo_store_before_terminate/1.wgsl @@ -29,7 +29,7 @@ struct main_out { x_4_1 : i32, } -@stage(fragment) +@fragment fn main(@builtin(position) x_2_param : vec4, @location(0) @interpolate(flat) x_3_param : i32) -> main_out { x_2 = x_2_param; x_3 = x_3_param; diff --git a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/terminate_loop/1.wgsl b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/terminate_loop/1.wgsl index c1412bdca5..5701f86f7f 100644 --- a/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/terminate_loop/1.wgsl +++ b/test/tint/vk-gl-cts/spirv_assembly/instruction/terminate_invocation/terminate_loop/1.wgsl @@ -33,7 +33,7 @@ struct main_out { x_4_1 : i32, } -@stage(fragment) +@fragment fn main(@builtin(position) x_2_param : vec4, @location(0) @interpolate(flat) x_3_param : i32) -> main_out { x_2 = x_2_param; x_3 = x_3_param; diff --git a/test/tint/vk-gl-cts/subgroup_uniform_control_flow/discard/subgroup_reconverge_discard00/0.wgsl b/test/tint/vk-gl-cts/subgroup_uniform_control_flow/discard/subgroup_reconverge_discard00/0.wgsl index 97fb1ae72e..162c7151c1 100644 --- a/test/tint/vk-gl-cts/subgroup_uniform_control_flow/discard/subgroup_reconverge_discard00/0.wgsl +++ b/test/tint/vk-gl-cts/subgroup_uniform_control_flow/discard/subgroup_reconverge_discard00/0.wgsl @@ -13,7 +13,7 @@ struct main_out { gl_Position : vec4, } -@stage(vertex) +@vertex fn main(@location(0) position_param : vec3) -> main_out { position = position_param; main_1(); diff --git a/test/tint/vk-gl-cts/subgroup_uniform_control_flow/discard/subgroup_reconverge_discard00/2-opt.wgsl b/test/tint/vk-gl-cts/subgroup_uniform_control_flow/discard/subgroup_reconverge_discard00/2-opt.wgsl index 63fb5d0c29..325436a8bc 100644 --- a/test/tint/vk-gl-cts/subgroup_uniform_control_flow/discard/subgroup_reconverge_discard00/2-opt.wgsl +++ b/test/tint/vk-gl-cts/subgroup_uniform_control_flow/discard/subgroup_reconverge_discard00/2-opt.wgsl @@ -26,7 +26,7 @@ struct main_out { expect_1 : i32, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1(); diff --git a/test/tint/vk-gl-cts/texture/subgroup_lod/texel_fetch/1.wgsl b/test/tint/vk-gl-cts/texture/subgroup_lod/texel_fetch/1.wgsl index 964f60ce91..9aad59efa4 100644 --- a/test/tint/vk-gl-cts/texture/subgroup_lod/texel_fetch/1.wgsl +++ b/test/tint/vk-gl-cts/texture/subgroup_lod/texel_fetch/1.wgsl @@ -13,7 +13,7 @@ struct main_out { color_out_1 : vec4, } -@stage(fragment) +@fragment fn main(@location(0) color_in_param : vec4) -> main_out { color_in = color_in_param; main_1(); diff --git a/test/tint/vk-gl-cts/texture/texel_offset/texel_offset/0-opt.wgsl b/test/tint/vk-gl-cts/texture/texel_offset/texel_offset/0-opt.wgsl index 777eb67ac9..277b8f277d 100644 --- a/test/tint/vk-gl-cts/texture/texel_offset/texel_offset/0-opt.wgsl +++ b/test/tint/vk-gl-cts/texture/texel_offset/texel_offset/0-opt.wgsl @@ -14,7 +14,7 @@ struct main_out { result_1 : vec4, } -@stage(fragment) +@fragment fn main(@builtin(position) gl_FragCoord_param : vec4) -> main_out { gl_FragCoord = gl_FragCoord_param; main_1();