wgsl: Replace [[decoration]] with @decoration

Deprecate the old syntax. Migrate everything to the new syntax.

Bug: tint:1382
Change-Id: Ide12b2e927b17dc93b9714c7049090864cc568d3
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/77260
Reviewed-by: James Price <jrprice@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: David Neto <dneto@google.com>
Commit-Queue: David Neto <dneto@google.com>
This commit is contained in:
Ben Clayton
2022-01-19 22:46:57 +00:00
committed by Tint LUCI CQ
parent 8f1d5224ee
commit 01e4b6fc18
3200 changed files with 15906 additions and 15215 deletions

View File

@@ -22,26 +22,26 @@
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
[[group(1), binding(0)]] var arg_0: texture_depth_2d_array;
[[group(1), binding(1)]] var arg_1: sampler_comparison;
@group(1) @binding(0) var arg_0: texture_depth_2d_array;
@group(1) @binding(1) var arg_1: sampler_comparison;
// fn textureSampleCompareLevel(texture: texture_depth_2d_array, sampler: sampler_comparison, coords: vec2<f32>, array_index: i32, depth_ref: f32, offset: vec2<i32>) -> f32
fn textureSampleCompareLevel_011a8f() {
var res: f32 = textureSampleCompareLevel(arg_0, arg_1, vec2<f32>(), 1, 1.0, vec2<i32>());
}
[[stage(vertex)]]
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
textureSampleCompareLevel_011a8f();
return vec4<f32>();
}
[[stage(fragment)]]
@stage(fragment)
fn fragment_main() {
textureSampleCompareLevel_011a8f();
}
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn compute_main() {
textureSampleCompareLevel_011a8f();
}

View File

@@ -1,23 +1,23 @@
[[group(1), binding(0)]] var arg_0 : texture_depth_2d_array;
@group(1) @binding(0) var arg_0 : texture_depth_2d_array;
[[group(1), binding(1)]] var arg_1 : sampler_comparison;
@group(1) @binding(1) var arg_1 : sampler_comparison;
fn textureSampleCompareLevel_011a8f() {
var res : f32 = textureSampleCompareLevel(arg_0, arg_1, vec2<f32>(), 1, 1.0, vec2<i32>());
}
[[stage(vertex)]]
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
textureSampleCompareLevel_011a8f();
return vec4<f32>();
}
[[stage(fragment)]]
@stage(fragment)
fn fragment_main() {
textureSampleCompareLevel_011a8f();
}
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn compute_main() {
textureSampleCompareLevel_011a8f();
}

View File

@@ -22,26 +22,26 @@
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
[[group(1), binding(0)]] var arg_0: texture_depth_2d_array;
[[group(1), binding(1)]] var arg_1: sampler_comparison;
@group(1) @binding(0) var arg_0: texture_depth_2d_array;
@group(1) @binding(1) var arg_1: sampler_comparison;
// fn textureSampleCompareLevel(texture: texture_depth_2d_array, sampler: sampler_comparison, coords: vec2<f32>, array_index: i32, depth_ref: f32) -> f32
fn textureSampleCompareLevel_1116ed() {
var res: f32 = textureSampleCompareLevel(arg_0, arg_1, vec2<f32>(), 1, 1.0);
}
[[stage(vertex)]]
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
textureSampleCompareLevel_1116ed();
return vec4<f32>();
}
[[stage(fragment)]]
@stage(fragment)
fn fragment_main() {
textureSampleCompareLevel_1116ed();
}
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn compute_main() {
textureSampleCompareLevel_1116ed();
}

View File

@@ -1,23 +1,23 @@
[[group(1), binding(0)]] var arg_0 : texture_depth_2d_array;
@group(1) @binding(0) var arg_0 : texture_depth_2d_array;
[[group(1), binding(1)]] var arg_1 : sampler_comparison;
@group(1) @binding(1) var arg_1 : sampler_comparison;
fn textureSampleCompareLevel_1116ed() {
var res : f32 = textureSampleCompareLevel(arg_0, arg_1, vec2<f32>(), 1, 1.0);
}
[[stage(vertex)]]
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
textureSampleCompareLevel_1116ed();
return vec4<f32>();
}
[[stage(fragment)]]
@stage(fragment)
fn fragment_main() {
textureSampleCompareLevel_1116ed();
}
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn compute_main() {
textureSampleCompareLevel_1116ed();
}

View File

@@ -22,26 +22,26 @@
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
[[group(1), binding(0)]] var arg_0: texture_depth_cube;
[[group(1), binding(1)]] var arg_1: sampler_comparison;
@group(1) @binding(0) var arg_0: texture_depth_cube;
@group(1) @binding(1) var arg_1: sampler_comparison;
// fn textureSampleCompareLevel(texture: texture_depth_cube, sampler: sampler_comparison, coords: vec3<f32>, depth_ref: f32) -> f32
fn textureSampleCompareLevel_1568e3() {
var res: f32 = textureSampleCompareLevel(arg_0, arg_1, vec3<f32>(), 1.0);
}
[[stage(vertex)]]
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
textureSampleCompareLevel_1568e3();
return vec4<f32>();
}
[[stage(fragment)]]
@stage(fragment)
fn fragment_main() {
textureSampleCompareLevel_1568e3();
}
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn compute_main() {
textureSampleCompareLevel_1568e3();
}

View File

@@ -1,23 +1,23 @@
[[group(1), binding(0)]] var arg_0 : texture_depth_cube;
@group(1) @binding(0) var arg_0 : texture_depth_cube;
[[group(1), binding(1)]] var arg_1 : sampler_comparison;
@group(1) @binding(1) var arg_1 : sampler_comparison;
fn textureSampleCompareLevel_1568e3() {
var res : f32 = textureSampleCompareLevel(arg_0, arg_1, vec3<f32>(), 1.0);
}
[[stage(vertex)]]
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
textureSampleCompareLevel_1568e3();
return vec4<f32>();
}
[[stage(fragment)]]
@stage(fragment)
fn fragment_main() {
textureSampleCompareLevel_1568e3();
}
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn compute_main() {
textureSampleCompareLevel_1568e3();
}

View File

@@ -22,26 +22,26 @@
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
[[group(1), binding(0)]] var arg_0: texture_depth_2d;
[[group(1), binding(1)]] var arg_1: sampler_comparison;
@group(1) @binding(0) var arg_0: texture_depth_2d;
@group(1) @binding(1) var arg_1: sampler_comparison;
// fn textureSampleCompareLevel(texture: texture_depth_2d, sampler: sampler_comparison, coords: vec2<f32>, depth_ref: f32) -> f32
fn textureSampleCompareLevel_2ad2b1() {
var res: f32 = textureSampleCompareLevel(arg_0, arg_1, vec2<f32>(), 1.0);
}
[[stage(vertex)]]
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
textureSampleCompareLevel_2ad2b1();
return vec4<f32>();
}
[[stage(fragment)]]
@stage(fragment)
fn fragment_main() {
textureSampleCompareLevel_2ad2b1();
}
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn compute_main() {
textureSampleCompareLevel_2ad2b1();
}

View File

@@ -1,23 +1,23 @@
[[group(1), binding(0)]] var arg_0 : texture_depth_2d;
@group(1) @binding(0) var arg_0 : texture_depth_2d;
[[group(1), binding(1)]] var arg_1 : sampler_comparison;
@group(1) @binding(1) var arg_1 : sampler_comparison;
fn textureSampleCompareLevel_2ad2b1() {
var res : f32 = textureSampleCompareLevel(arg_0, arg_1, vec2<f32>(), 1.0);
}
[[stage(vertex)]]
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
textureSampleCompareLevel_2ad2b1();
return vec4<f32>();
}
[[stage(fragment)]]
@stage(fragment)
fn fragment_main() {
textureSampleCompareLevel_2ad2b1();
}
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn compute_main() {
textureSampleCompareLevel_2ad2b1();
}

View File

@@ -22,26 +22,26 @@
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
[[group(1), binding(0)]] var arg_0: texture_depth_cube_array;
[[group(1), binding(1)]] var arg_1: sampler_comparison;
@group(1) @binding(0) var arg_0: texture_depth_cube_array;
@group(1) @binding(1) var arg_1: sampler_comparison;
// fn textureSampleCompareLevel(texture: texture_depth_cube_array, sampler: sampler_comparison, coords: vec3<f32>, array_index: i32, depth_ref: f32) -> f32
fn textureSampleCompareLevel_4cf3a2() {
var res: f32 = textureSampleCompareLevel(arg_0, arg_1, vec3<f32>(), 1, 1.0);
}
[[stage(vertex)]]
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
textureSampleCompareLevel_4cf3a2();
return vec4<f32>();
}
[[stage(fragment)]]
@stage(fragment)
fn fragment_main() {
textureSampleCompareLevel_4cf3a2();
}
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn compute_main() {
textureSampleCompareLevel_4cf3a2();
}

View File

@@ -1,23 +1,23 @@
[[group(1), binding(0)]] var arg_0 : texture_depth_cube_array;
@group(1) @binding(0) var arg_0 : texture_depth_cube_array;
[[group(1), binding(1)]] var arg_1 : sampler_comparison;
@group(1) @binding(1) var arg_1 : sampler_comparison;
fn textureSampleCompareLevel_4cf3a2() {
var res : f32 = textureSampleCompareLevel(arg_0, arg_1, vec3<f32>(), 1, 1.0);
}
[[stage(vertex)]]
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
textureSampleCompareLevel_4cf3a2();
return vec4<f32>();
}
[[stage(fragment)]]
@stage(fragment)
fn fragment_main() {
textureSampleCompareLevel_4cf3a2();
}
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn compute_main() {
textureSampleCompareLevel_4cf3a2();
}

View File

@@ -22,26 +22,26 @@
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
[[group(1), binding(0)]] var arg_0: texture_depth_2d;
[[group(1), binding(1)]] var arg_1: sampler_comparison;
@group(1) @binding(0) var arg_0: texture_depth_2d;
@group(1) @binding(1) var arg_1: sampler_comparison;
// fn textureSampleCompareLevel(texture: texture_depth_2d, sampler: sampler_comparison, coords: vec2<f32>, depth_ref: f32, offset: vec2<i32>) -> f32
fn textureSampleCompareLevel_f8121c() {
var res: f32 = textureSampleCompareLevel(arg_0, arg_1, vec2<f32>(), 1.0, vec2<i32>());
}
[[stage(vertex)]]
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
textureSampleCompareLevel_f8121c();
return vec4<f32>();
}
[[stage(fragment)]]
@stage(fragment)
fn fragment_main() {
textureSampleCompareLevel_f8121c();
}
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn compute_main() {
textureSampleCompareLevel_f8121c();
}

View File

@@ -1,23 +1,23 @@
[[group(1), binding(0)]] var arg_0 : texture_depth_2d;
@group(1) @binding(0) var arg_0 : texture_depth_2d;
[[group(1), binding(1)]] var arg_1 : sampler_comparison;
@group(1) @binding(1) var arg_1 : sampler_comparison;
fn textureSampleCompareLevel_f8121c() {
var res : f32 = textureSampleCompareLevel(arg_0, arg_1, vec2<f32>(), 1.0, vec2<i32>());
}
[[stage(vertex)]]
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
@stage(vertex)
fn vertex_main() -> @builtin(position) vec4<f32> {
textureSampleCompareLevel_f8121c();
return vec4<f32>();
}
[[stage(fragment)]]
@stage(fragment)
fn fragment_main() {
textureSampleCompareLevel_f8121c();
}
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn compute_main() {
textureSampleCompareLevel_f8121c();
}