mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-15 08:06:19 +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
@@ -99,8 +99,8 @@ var<workgroup> m97 : mat2x2<f32>;
|
||||
var<workgroup> m98 : mat2x2<f32>;
|
||||
var<workgroup> m99 : mat2x2<f32>;
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn tint_symbol([[builtin(local_invocation_index)]] idx : u32) {
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn tint_symbol(@builtin(local_invocation_index) idx : u32) {
|
||||
m00[0][0] = 1.0;
|
||||
m01[0][0] = 1.0;
|
||||
m02[0][0] = 1.0;
|
||||
@@ -201,4 +201,4 @@ fn tint_symbol([[builtin(local_invocation_index)]] idx : u32) {
|
||||
m97[0][0] = 1.0;
|
||||
m98[0][0] = 1.0;
|
||||
m99[0][0] = 1.0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -198,8 +198,8 @@ var<workgroup> m98 : mat2x2<f32>;
|
||||
|
||||
var<workgroup> m99 : mat2x2<f32>;
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn tint_symbol([[builtin(local_invocation_index)]] idx : u32) {
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn tint_symbol(@builtin(local_invocation_index) idx : u32) {
|
||||
m00[0][0] = 1.0;
|
||||
m01[0][0] = 1.0;
|
||||
m02[0][0] = 1.0;
|
||||
|
||||
@@ -25,25 +25,25 @@ fn outer() {
|
||||
no_uses();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn main1() {
|
||||
a = 42;
|
||||
uses_a();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn main2() {
|
||||
b = 7;
|
||||
uses_b();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn main3() {
|
||||
outer();
|
||||
no_uses();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn main4() {
|
||||
no_uses();
|
||||
}
|
||||
|
||||
@@ -27,25 +27,25 @@ fn outer() {
|
||||
no_uses();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn main1() {
|
||||
a = 42;
|
||||
uses_a();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn main2() {
|
||||
b = 7;
|
||||
uses_b();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn main3() {
|
||||
outer();
|
||||
no_uses();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn main4() {
|
||||
no_uses();
|
||||
}
|
||||
|
||||
@@ -25,25 +25,25 @@ fn outer() {
|
||||
no_uses();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn main1() {
|
||||
a = 42;
|
||||
uses_a();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn main2() {
|
||||
b = 7;
|
||||
uses_b();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn main3() {
|
||||
outer();
|
||||
no_uses();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn main4() {
|
||||
no_uses();
|
||||
}
|
||||
|
||||
@@ -27,25 +27,25 @@ fn outer() {
|
||||
no_uses();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn main1() {
|
||||
a = 42;
|
||||
uses_a();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn main2() {
|
||||
b = 7;
|
||||
uses_b();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn main3() {
|
||||
outer();
|
||||
no_uses();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn main4() {
|
||||
no_uses();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user