mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-17 17:05:31 +00:00
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:
committed by
Tint LUCI CQ
parent
8f1d5224ee
commit
01e4b6fc18
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user