mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 02:39:11 +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,25 +22,25 @@
|
||||
// Do not modify this file directly
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
[[group(1), binding(0)]] var arg_0: texture_multisampled_2d<f32>;
|
||||
@group(1) @binding(0) var arg_0: texture_multisampled_2d<f32>;
|
||||
|
||||
// fn textureNumSamples(texture: texture_multisampled_2d<f32>) -> i32
|
||||
fn textureNumSamples_2c6f14() {
|
||||
var res: i32 = textureNumSamples(arg_0);
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
textureNumSamples_2c6f14();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
textureNumSamples_2c6f14();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
textureNumSamples_2c6f14();
|
||||
}
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
[[group(1), binding(0)]] var arg_0 : texture_multisampled_2d<f32>;
|
||||
@group(1) @binding(0) var arg_0 : texture_multisampled_2d<f32>;
|
||||
|
||||
fn textureNumSamples_2c6f14() {
|
||||
var res : i32 = textureNumSamples(arg_0);
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
textureNumSamples_2c6f14();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
textureNumSamples_2c6f14();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
textureNumSamples_2c6f14();
|
||||
}
|
||||
|
||||
@@ -22,25 +22,25 @@
|
||||
// Do not modify this file directly
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
[[group(1), binding(0)]] var arg_0: texture_multisampled_2d<u32>;
|
||||
@group(1) @binding(0) var arg_0: texture_multisampled_2d<u32>;
|
||||
|
||||
// fn textureNumSamples(texture: texture_multisampled_2d<u32>) -> i32
|
||||
fn textureNumSamples_42f8bb() {
|
||||
var res: i32 = textureNumSamples(arg_0);
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
textureNumSamples_42f8bb();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
textureNumSamples_42f8bb();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
textureNumSamples_42f8bb();
|
||||
}
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
[[group(1), binding(0)]] var arg_0 : texture_multisampled_2d<u32>;
|
||||
@group(1) @binding(0) var arg_0 : texture_multisampled_2d<u32>;
|
||||
|
||||
fn textureNumSamples_42f8bb() {
|
||||
var res : i32 = textureNumSamples(arg_0);
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
textureNumSamples_42f8bb();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
textureNumSamples_42f8bb();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
textureNumSamples_42f8bb();
|
||||
}
|
||||
|
||||
@@ -22,25 +22,25 @@
|
||||
// Do not modify this file directly
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
[[group(1), binding(0)]] var arg_0: texture_multisampled_2d<i32>;
|
||||
@group(1) @binding(0) var arg_0: texture_multisampled_2d<i32>;
|
||||
|
||||
// fn textureNumSamples(texture: texture_multisampled_2d<i32>) -> i32
|
||||
fn textureNumSamples_449d23() {
|
||||
var res: i32 = textureNumSamples(arg_0);
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
textureNumSamples_449d23();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
textureNumSamples_449d23();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
textureNumSamples_449d23();
|
||||
}
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
[[group(1), binding(0)]] var arg_0 : texture_multisampled_2d<i32>;
|
||||
@group(1) @binding(0) var arg_0 : texture_multisampled_2d<i32>;
|
||||
|
||||
fn textureNumSamples_449d23() {
|
||||
var res : i32 = textureNumSamples(arg_0);
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
textureNumSamples_449d23();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
textureNumSamples_449d23();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
textureNumSamples_449d23();
|
||||
}
|
||||
|
||||
@@ -22,25 +22,25 @@
|
||||
// Do not modify this file directly
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
[[group(1), binding(0)]] var arg_0: texture_depth_multisampled_2d;
|
||||
@group(1) @binding(0) var arg_0: texture_depth_multisampled_2d;
|
||||
|
||||
// fn textureNumSamples(texture: texture_depth_multisampled_2d) -> i32
|
||||
fn textureNumSamples_a3c8a0() {
|
||||
var res: i32 = textureNumSamples(arg_0);
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
textureNumSamples_a3c8a0();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
textureNumSamples_a3c8a0();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
textureNumSamples_a3c8a0();
|
||||
}
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
[[group(1), binding(0)]] var arg_0 : texture_depth_multisampled_2d;
|
||||
@group(1) @binding(0) var arg_0 : texture_depth_multisampled_2d;
|
||||
|
||||
fn textureNumSamples_a3c8a0() {
|
||||
var res : i32 = textureNumSamples(arg_0);
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
textureNumSamples_a3c8a0();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
textureNumSamples_a3c8a0();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
textureNumSamples_a3c8a0();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user