mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 17:35:30 +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
@@ -1,4 +1,4 @@
|
||||
type RTArr = [[stride(4)]] array<i32>;
|
||||
type RTArr = @stride(4) array<i32>;
|
||||
|
||||
struct doesNotMatter {
|
||||
global_seed : i32;
|
||||
@@ -11,9 +11,9 @@ struct buf1 {
|
||||
|
||||
var<private> gl_LocalInvocationID : vec3<u32>;
|
||||
|
||||
[[group(0), binding(0)]] var<storage, read_write> x_7 : doesNotMatter;
|
||||
@group(0) @binding(0) var<storage, read_write> x_7 : doesNotMatter;
|
||||
|
||||
[[group(0), binding(1)]] var<uniform> x_10 : buf1;
|
||||
@group(0) @binding(1) var<uniform> x_10 : buf1;
|
||||
|
||||
fn main_1() {
|
||||
var lid : i32;
|
||||
@@ -55,8 +55,8 @@ fn main_1() {
|
||||
return;
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(16, 1, 1)]]
|
||||
fn main([[builtin(local_invocation_id)]] gl_LocalInvocationID_param : vec3<u32>) {
|
||||
@stage(compute) @workgroup_size(16, 1, 1)
|
||||
fn main(@builtin(local_invocation_id) gl_LocalInvocationID_param : vec3<u32>) {
|
||||
gl_LocalInvocationID = gl_LocalInvocationID_param;
|
||||
main_1();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user