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

@@ -2,7 +2,7 @@ struct S {
a : f32;
};
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
var bool_var : bool = bool();
let bool_let : bool = bool();

View File

@@ -2,7 +2,7 @@ struct S {
a : f32;
}
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
var bool_var : bool = bool();
let bool_let : bool = bool();

View File

@@ -3,7 +3,7 @@ fn constant_with_non_constant() {
var b : vec2<f32> = vec2<f32>(f32(i32(1)), a);
}
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
var bool_var1 : bool = bool(123u);
var bool_var2 : bool = bool(123);

View File

@@ -3,7 +3,7 @@ fn constant_with_non_constant() {
var b : vec2<f32> = vec2<f32>(f32(i32(1)), a);
}
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
var bool_var1 : bool = bool(123u);
var bool_var2 : bool = bool(123);

View File

@@ -13,6 +13,6 @@ let m3x4_let : mat3x4<f32> = mat3x4<f32>();
let arr_let : array<f32, 4> = array<f32, 4>();
let struct_let : S = S();
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
}

View File

@@ -22,6 +22,6 @@ let arr_let : array<f32, 4> = array<f32, 4>();
let struct_let : S = S();
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
}

View File

@@ -13,7 +13,7 @@ var<private> m2x3_var : mat2x3<f32>;
var<private> arr_var : array<f32, 4>;
var<private> struct_var : S;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
// Reference the module-scope variables to stop them from being removed.
bool_var = bool();

View File

@@ -22,7 +22,7 @@ var<private> arr_var : array<f32, 4>;
var<private> struct_var : S;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
bool_var = bool();
i32_var = i32();

View File

@@ -25,7 +25,7 @@ var<private> v3u32_var3 : vec3<u32> = vec3<u32>(vec3<bool>(true));
var<private> v3bool_var4 : vec3<bool> = vec3<bool>(vec2<bool>(vec2<f32>(123.0)), true);
var<private> v4bool_var5 : vec4<bool> = vec4<bool>(vec2<bool>(vec2<f32>(123.0, 0.0)), vec2<bool>(true, bool(f32(0.0))));
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
// Reference the module-scope variables to stop them from being removed.
bool_var1 = bool();

View File

@@ -38,7 +38,7 @@ var<private> v3bool_var4 : vec3<bool> = vec3<bool>(vec2<bool>(vec2<f32>(123.0)),
var<private> v4bool_var5 : vec4<bool> = vec4<bool>(vec2<bool>(vec2<f32>(123.0, 0.0)), vec2<bool>(true, bool(f32(0.0))));
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
bool_var1 = bool();
bool_var2 = bool();

View File

@@ -13,7 +13,7 @@ var<private> m2x3_var : mat2x3<f32> = mat2x3<f32>();
var<private> arr_var : array<f32, 4> = array<f32, 4>();
var<private> struct_var : S = S();
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
// Reference the module-scope variables to stop them from being removed.
bool_var = bool();

View File

@@ -22,7 +22,7 @@ var<private> arr_var : array<f32, 4> = array<f32, 4>();
var<private> struct_var : S = S();
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
bool_var = bool();
i32_var = i32();

View File

@@ -18,6 +18,6 @@ fn foo(
param_ptr_arr : ptr<function, array<f32, 4>>,
) {}
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
}

View File

@@ -5,6 +5,6 @@ struct S {
fn foo(param_bool : bool, param_i32 : i32, param_u32 : u32, param_f32 : f32, param_v2i32 : vec2<i32>, param_v3u32 : vec3<u32>, param_v4f32 : vec4<f32>, param_m2x3 : mat2x3<f32>, param_arr : array<f32, 4>, param_struct : S, param_ptr_f32 : ptr<function, f32>, param_ptr_vec : ptr<function, vec4<f32>>, param_ptr_arr : ptr<function, array<f32, 4>>) {
}
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
}

View File

@@ -13,6 +13,6 @@ fn ret_m2x3() -> mat2x3<f32> { return mat2x3<f32>(); }
fn ret_arr() -> array<f32, 4> { return array<f32, 4>(); }
fn ret_struct() -> S { return S(); }
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
}

View File

@@ -42,6 +42,6 @@ fn ret_struct() -> S {
return S();
}
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
}

View File

@@ -1,7 +1,7 @@
[[group(0), binding(0)]] var s : sampler;
[[group(0), binding(1)]] var sc : sampler_comparison;
@group(0) @binding(0) var s : sampler;
@group(0) @binding(1) var sc : sampler_comparison;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = s;
_ = sc;

View File

@@ -1,8 +1,8 @@
[[group(0), binding(0)]] var s : sampler;
@group(0) @binding(0) var s : sampler;
[[group(0), binding(1)]] var sc : sampler_comparison;
@group(0) @binding(1) var sc : sampler_comparison;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = s;
_ = sc;

View File

@@ -15,7 +15,7 @@ struct S {
member_struct : S_inner;
};
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
let s : S = S();
}

View File

@@ -15,7 +15,7 @@ struct S {
member_struct : S_inner;
}
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
let s : S = S();
}

View File

@@ -1,6 +1,6 @@
[[group(0), binding(0)]] var t_f : texture_depth_2d;
@group(0) @binding(0) var t_f : texture_depth_2d;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_f;
}

View File

@@ -1,6 +1,6 @@
[[group(0), binding(0)]] var t_f : texture_depth_2d;
@group(0) @binding(0) var t_f : texture_depth_2d;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_f;
}

View File

@@ -1,6 +1,6 @@
[[group(0), binding(0)]] var t_f : texture_depth_2d_array;
@group(0) @binding(0) var t_f : texture_depth_2d_array;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_f;
}

View File

@@ -1,6 +1,6 @@
[[group(0), binding(0)]] var t_f : texture_depth_2d_array;
@group(0) @binding(0) var t_f : texture_depth_2d_array;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_f;
}

View File

@@ -1,6 +1,6 @@
[[group(0), binding(0)]] var t_f : texture_depth_cube;
@group(0) @binding(0) var t_f : texture_depth_cube;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_f;
}

View File

@@ -1,6 +1,6 @@
[[group(0), binding(0)]] var t_f : texture_depth_cube;
@group(0) @binding(0) var t_f : texture_depth_cube;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_f;
}

View File

@@ -1,6 +1,6 @@
[[group(0), binding(0)]] var t_f : texture_depth_cube_array;
@group(0) @binding(0) var t_f : texture_depth_cube_array;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_f;
}

View File

@@ -1,6 +1,6 @@
[[group(0), binding(0)]] var t_f : texture_depth_cube_array;
@group(0) @binding(0) var t_f : texture_depth_cube_array;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_f;
}

View File

@@ -1,8 +1,8 @@
[[group(0), binding(0)]] var t_f : texture_multisampled_2d<f32>;
[[group(0), binding(1)]] var t_i : texture_multisampled_2d<i32>;
[[group(0), binding(2)]] var t_u : texture_multisampled_2d<u32>;
@group(0) @binding(0) var t_f : texture_multisampled_2d<f32>;
@group(0) @binding(1) var t_i : texture_multisampled_2d<i32>;
@group(0) @binding(2) var t_u : texture_multisampled_2d<u32>;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_f;
_ = t_i;

View File

@@ -1,10 +1,10 @@
[[group(0), binding(0)]] var t_f : texture_multisampled_2d<f32>;
@group(0) @binding(0) var t_f : texture_multisampled_2d<f32>;
[[group(0), binding(1)]] var t_i : texture_multisampled_2d<i32>;
@group(0) @binding(1) var t_i : texture_multisampled_2d<i32>;
[[group(0), binding(2)]] var t_u : texture_multisampled_2d<u32>;
@group(0) @binding(2) var t_u : texture_multisampled_2d<u32>;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_f;
_ = t_i;

View File

@@ -1,8 +1,8 @@
[[group(0), binding(0)]] var t_f : texture_1d<f32>;
[[group(0), binding(1)]] var t_i : texture_1d<i32>;
[[group(0), binding(2)]] var t_u : texture_1d<u32>;
@group(0) @binding(0) var t_f : texture_1d<f32>;
@group(0) @binding(1) var t_i : texture_1d<i32>;
@group(0) @binding(2) var t_u : texture_1d<u32>;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_f;
_ = t_i;

View File

@@ -1,10 +1,10 @@
[[group(0), binding(0)]] var t_f : texture_1d<f32>;
@group(0) @binding(0) var t_f : texture_1d<f32>;
[[group(0), binding(1)]] var t_i : texture_1d<i32>;
@group(0) @binding(1) var t_i : texture_1d<i32>;
[[group(0), binding(2)]] var t_u : texture_1d<u32>;
@group(0) @binding(2) var t_u : texture_1d<u32>;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_f;
_ = t_i;

View File

@@ -1,8 +1,8 @@
[[group(0), binding(0)]] var t_f : texture_2d<f32>;
[[group(0), binding(1)]] var t_i : texture_2d<i32>;
[[group(0), binding(2)]] var t_u : texture_2d<u32>;
@group(0) @binding(0) var t_f : texture_2d<f32>;
@group(0) @binding(1) var t_i : texture_2d<i32>;
@group(0) @binding(2) var t_u : texture_2d<u32>;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_f;
_ = t_i;

View File

@@ -1,10 +1,10 @@
[[group(0), binding(0)]] var t_f : texture_2d<f32>;
@group(0) @binding(0) var t_f : texture_2d<f32>;
[[group(0), binding(1)]] var t_i : texture_2d<i32>;
@group(0) @binding(1) var t_i : texture_2d<i32>;
[[group(0), binding(2)]] var t_u : texture_2d<u32>;
@group(0) @binding(2) var t_u : texture_2d<u32>;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_f;
_ = t_i;

View File

@@ -1,8 +1,8 @@
[[group(0), binding(0)]] var t_f : texture_2d_array<f32>;
[[group(0), binding(1)]] var t_i : texture_2d_array<i32>;
[[group(0), binding(2)]] var t_u : texture_2d_array<u32>;
@group(0) @binding(0) var t_f : texture_2d_array<f32>;
@group(0) @binding(1) var t_i : texture_2d_array<i32>;
@group(0) @binding(2) var t_u : texture_2d_array<u32>;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_f;
_ = t_i;

View File

@@ -1,10 +1,10 @@
[[group(0), binding(0)]] var t_f : texture_2d_array<f32>;
@group(0) @binding(0) var t_f : texture_2d_array<f32>;
[[group(0), binding(1)]] var t_i : texture_2d_array<i32>;
@group(0) @binding(1) var t_i : texture_2d_array<i32>;
[[group(0), binding(2)]] var t_u : texture_2d_array<u32>;
@group(0) @binding(2) var t_u : texture_2d_array<u32>;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_f;
_ = t_i;

View File

@@ -1,8 +1,8 @@
[[group(0), binding(0)]] var t_f : texture_3d<f32>;
[[group(0), binding(1)]] var t_i : texture_3d<i32>;
[[group(0), binding(2)]] var t_u : texture_3d<u32>;
@group(0) @binding(0) var t_f : texture_3d<f32>;
@group(0) @binding(1) var t_i : texture_3d<i32>;
@group(0) @binding(2) var t_u : texture_3d<u32>;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_f;
_ = t_i;

View File

@@ -1,10 +1,10 @@
[[group(0), binding(0)]] var t_f : texture_3d<f32>;
@group(0) @binding(0) var t_f : texture_3d<f32>;
[[group(0), binding(1)]] var t_i : texture_3d<i32>;
@group(0) @binding(1) var t_i : texture_3d<i32>;
[[group(0), binding(2)]] var t_u : texture_3d<u32>;
@group(0) @binding(2) var t_u : texture_3d<u32>;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_f;
_ = t_i;

View File

@@ -1,8 +1,8 @@
[[group(0), binding(0)]] var t_f : texture_cube<f32>;
[[group(0), binding(1)]] var t_i : texture_cube<i32>;
[[group(0), binding(2)]] var t_u : texture_cube<u32>;
@group(0) @binding(0) var t_f : texture_cube<f32>;
@group(0) @binding(1) var t_i : texture_cube<i32>;
@group(0) @binding(2) var t_u : texture_cube<u32>;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_f;
_ = t_i;

View File

@@ -1,10 +1,10 @@
[[group(0), binding(0)]] var t_f : texture_cube<f32>;
@group(0) @binding(0) var t_f : texture_cube<f32>;
[[group(0), binding(1)]] var t_i : texture_cube<i32>;
@group(0) @binding(1) var t_i : texture_cube<i32>;
[[group(0), binding(2)]] var t_u : texture_cube<u32>;
@group(0) @binding(2) var t_u : texture_cube<u32>;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_f;
_ = t_i;

View File

@@ -1,8 +1,8 @@
[[group(0), binding(0)]] var t_f : texture_cube_array<f32>;
[[group(0), binding(1)]] var t_i : texture_cube_array<i32>;
[[group(0), binding(2)]] var t_u : texture_cube_array<u32>;
@group(0) @binding(0) var t_f : texture_cube_array<f32>;
@group(0) @binding(1) var t_i : texture_cube_array<i32>;
@group(0) @binding(2) var t_u : texture_cube_array<u32>;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_f;
_ = t_i;

View File

@@ -1,10 +1,10 @@
[[group(0), binding(0)]] var t_f : texture_cube_array<f32>;
@group(0) @binding(0) var t_f : texture_cube_array<f32>;
[[group(0), binding(1)]] var t_i : texture_cube_array<i32>;
@group(0) @binding(1) var t_i : texture_cube_array<i32>;
[[group(0), binding(2)]] var t_u : texture_cube_array<u32>;
@group(0) @binding(2) var t_u : texture_cube_array<u32>;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_f;
_ = t_i;

View File

@@ -1,21 +1,21 @@
[[group(0), binding(0)]] var t_rgba8unorm : texture_storage_1d<rgba8unorm, write>;
[[group(0), binding(1)]] var t_rgba8snorm : texture_storage_1d<rgba8snorm, write>;
[[group(0), binding(2)]] var t_rgba8uint : texture_storage_1d<rgba8uint, write>;
[[group(0), binding(3)]] var t_rgba8sint : texture_storage_1d<rgba8sint, write>;
[[group(0), binding(4)]] var t_rgba16uint : texture_storage_1d<rgba16uint, write>;
[[group(0), binding(5)]] var t_rgba16sint : texture_storage_1d<rgba16sint, write>;
[[group(0), binding(6)]] var t_rgba16float : texture_storage_1d<rgba16float, write>;
[[group(0), binding(7)]] var t_r32uint : texture_storage_1d<r32uint, write>;
[[group(0), binding(8)]] var t_r32sint : texture_storage_1d<r32sint, write>;
[[group(0), binding(9)]] var t_r32float : texture_storage_1d<r32float, write>;
[[group(0), binding(10)]] var t_rg32uint : texture_storage_1d<rg32uint, write>;
[[group(0), binding(11)]] var t_rg32sint : texture_storage_1d<rg32sint, write>;
[[group(0), binding(12)]] var t_rg32float : texture_storage_1d<rg32float, write>;
[[group(0), binding(13)]] var t_rgba32uint : texture_storage_1d<rgba32uint, write>;
[[group(0), binding(14)]] var t_rgba32sint : texture_storage_1d<rgba32sint, write>;
[[group(0), binding(15)]] var t_rgba32float : texture_storage_1d<rgba32float, write>;
@group(0) @binding(0) var t_rgba8unorm : texture_storage_1d<rgba8unorm, write>;
@group(0) @binding(1) var t_rgba8snorm : texture_storage_1d<rgba8snorm, write>;
@group(0) @binding(2) var t_rgba8uint : texture_storage_1d<rgba8uint, write>;
@group(0) @binding(3) var t_rgba8sint : texture_storage_1d<rgba8sint, write>;
@group(0) @binding(4) var t_rgba16uint : texture_storage_1d<rgba16uint, write>;
@group(0) @binding(5) var t_rgba16sint : texture_storage_1d<rgba16sint, write>;
@group(0) @binding(6) var t_rgba16float : texture_storage_1d<rgba16float, write>;
@group(0) @binding(7) var t_r32uint : texture_storage_1d<r32uint, write>;
@group(0) @binding(8) var t_r32sint : texture_storage_1d<r32sint, write>;
@group(0) @binding(9) var t_r32float : texture_storage_1d<r32float, write>;
@group(0) @binding(10) var t_rg32uint : texture_storage_1d<rg32uint, write>;
@group(0) @binding(11) var t_rg32sint : texture_storage_1d<rg32sint, write>;
@group(0) @binding(12) var t_rg32float : texture_storage_1d<rg32float, write>;
@group(0) @binding(13) var t_rgba32uint : texture_storage_1d<rgba32uint, write>;
@group(0) @binding(14) var t_rgba32sint : texture_storage_1d<rgba32sint, write>;
@group(0) @binding(15) var t_rgba32float : texture_storage_1d<rgba32float, write>;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_rgba8unorm;
_ = t_rgba8snorm;

View File

@@ -1,36 +1,36 @@
[[group(0), binding(0)]] var t_rgba8unorm : texture_storage_1d<rgba8unorm, write>;
@group(0) @binding(0) var t_rgba8unorm : texture_storage_1d<rgba8unorm, write>;
[[group(0), binding(1)]] var t_rgba8snorm : texture_storage_1d<rgba8snorm, write>;
@group(0) @binding(1) var t_rgba8snorm : texture_storage_1d<rgba8snorm, write>;
[[group(0), binding(2)]] var t_rgba8uint : texture_storage_1d<rgba8uint, write>;
@group(0) @binding(2) var t_rgba8uint : texture_storage_1d<rgba8uint, write>;
[[group(0), binding(3)]] var t_rgba8sint : texture_storage_1d<rgba8sint, write>;
@group(0) @binding(3) var t_rgba8sint : texture_storage_1d<rgba8sint, write>;
[[group(0), binding(4)]] var t_rgba16uint : texture_storage_1d<rgba16uint, write>;
@group(0) @binding(4) var t_rgba16uint : texture_storage_1d<rgba16uint, write>;
[[group(0), binding(5)]] var t_rgba16sint : texture_storage_1d<rgba16sint, write>;
@group(0) @binding(5) var t_rgba16sint : texture_storage_1d<rgba16sint, write>;
[[group(0), binding(6)]] var t_rgba16float : texture_storage_1d<rgba16float, write>;
@group(0) @binding(6) var t_rgba16float : texture_storage_1d<rgba16float, write>;
[[group(0), binding(7)]] var t_r32uint : texture_storage_1d<r32uint, write>;
@group(0) @binding(7) var t_r32uint : texture_storage_1d<r32uint, write>;
[[group(0), binding(8)]] var t_r32sint : texture_storage_1d<r32sint, write>;
@group(0) @binding(8) var t_r32sint : texture_storage_1d<r32sint, write>;
[[group(0), binding(9)]] var t_r32float : texture_storage_1d<r32float, write>;
@group(0) @binding(9) var t_r32float : texture_storage_1d<r32float, write>;
[[group(0), binding(10)]] var t_rg32uint : texture_storage_1d<rg32uint, write>;
@group(0) @binding(10) var t_rg32uint : texture_storage_1d<rg32uint, write>;
[[group(0), binding(11)]] var t_rg32sint : texture_storage_1d<rg32sint, write>;
@group(0) @binding(11) var t_rg32sint : texture_storage_1d<rg32sint, write>;
[[group(0), binding(12)]] var t_rg32float : texture_storage_1d<rg32float, write>;
@group(0) @binding(12) var t_rg32float : texture_storage_1d<rg32float, write>;
[[group(0), binding(13)]] var t_rgba32uint : texture_storage_1d<rgba32uint, write>;
@group(0) @binding(13) var t_rgba32uint : texture_storage_1d<rgba32uint, write>;
[[group(0), binding(14)]] var t_rgba32sint : texture_storage_1d<rgba32sint, write>;
@group(0) @binding(14) var t_rgba32sint : texture_storage_1d<rgba32sint, write>;
[[group(0), binding(15)]] var t_rgba32float : texture_storage_1d<rgba32float, write>;
@group(0) @binding(15) var t_rgba32float : texture_storage_1d<rgba32float, write>;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_rgba8unorm;
_ = t_rgba8snorm;

View File

@@ -1,21 +1,21 @@
[[group(0), binding(0)]] var t_rgba8unorm : texture_storage_2d<rgba8unorm, write>;
[[group(0), binding(1)]] var t_rgba8snorm : texture_storage_2d<rgba8snorm, write>;
[[group(0), binding(2)]] var t_rgba8uint : texture_storage_2d<rgba8uint, write>;
[[group(0), binding(3)]] var t_rgba8sint : texture_storage_2d<rgba8sint, write>;
[[group(0), binding(4)]] var t_rgba16uint : texture_storage_2d<rgba16uint, write>;
[[group(0), binding(5)]] var t_rgba16sint : texture_storage_2d<rgba16sint, write>;
[[group(0), binding(6)]] var t_rgba16float : texture_storage_2d<rgba16float, write>;
[[group(0), binding(7)]] var t_r32uint : texture_storage_2d<r32uint, write>;
[[group(0), binding(8)]] var t_r32sint : texture_storage_2d<r32sint, write>;
[[group(0), binding(9)]] var t_r32float : texture_storage_2d<r32float, write>;
[[group(0), binding(10)]] var t_rg32uint : texture_storage_2d<rg32uint, write>;
[[group(0), binding(11)]] var t_rg32sint : texture_storage_2d<rg32sint, write>;
[[group(0), binding(12)]] var t_rg32float : texture_storage_2d<rg32float, write>;
[[group(0), binding(13)]] var t_rgba32uint : texture_storage_2d<rgba32uint, write>;
[[group(0), binding(14)]] var t_rgba32sint : texture_storage_2d<rgba32sint, write>;
[[group(0), binding(15)]] var t_rgba32float : texture_storage_2d<rgba32float, write>;
@group(0) @binding(0) var t_rgba8unorm : texture_storage_2d<rgba8unorm, write>;
@group(0) @binding(1) var t_rgba8snorm : texture_storage_2d<rgba8snorm, write>;
@group(0) @binding(2) var t_rgba8uint : texture_storage_2d<rgba8uint, write>;
@group(0) @binding(3) var t_rgba8sint : texture_storage_2d<rgba8sint, write>;
@group(0) @binding(4) var t_rgba16uint : texture_storage_2d<rgba16uint, write>;
@group(0) @binding(5) var t_rgba16sint : texture_storage_2d<rgba16sint, write>;
@group(0) @binding(6) var t_rgba16float : texture_storage_2d<rgba16float, write>;
@group(0) @binding(7) var t_r32uint : texture_storage_2d<r32uint, write>;
@group(0) @binding(8) var t_r32sint : texture_storage_2d<r32sint, write>;
@group(0) @binding(9) var t_r32float : texture_storage_2d<r32float, write>;
@group(0) @binding(10) var t_rg32uint : texture_storage_2d<rg32uint, write>;
@group(0) @binding(11) var t_rg32sint : texture_storage_2d<rg32sint, write>;
@group(0) @binding(12) var t_rg32float : texture_storage_2d<rg32float, write>;
@group(0) @binding(13) var t_rgba32uint : texture_storage_2d<rgba32uint, write>;
@group(0) @binding(14) var t_rgba32sint : texture_storage_2d<rgba32sint, write>;
@group(0) @binding(15) var t_rgba32float : texture_storage_2d<rgba32float, write>;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_rgba8unorm;
_ = t_rgba8snorm;

View File

@@ -1,36 +1,36 @@
[[group(0), binding(0)]] var t_rgba8unorm : texture_storage_2d<rgba8unorm, write>;
@group(0) @binding(0) var t_rgba8unorm : texture_storage_2d<rgba8unorm, write>;
[[group(0), binding(1)]] var t_rgba8snorm : texture_storage_2d<rgba8snorm, write>;
@group(0) @binding(1) var t_rgba8snorm : texture_storage_2d<rgba8snorm, write>;
[[group(0), binding(2)]] var t_rgba8uint : texture_storage_2d<rgba8uint, write>;
@group(0) @binding(2) var t_rgba8uint : texture_storage_2d<rgba8uint, write>;
[[group(0), binding(3)]] var t_rgba8sint : texture_storage_2d<rgba8sint, write>;
@group(0) @binding(3) var t_rgba8sint : texture_storage_2d<rgba8sint, write>;
[[group(0), binding(4)]] var t_rgba16uint : texture_storage_2d<rgba16uint, write>;
@group(0) @binding(4) var t_rgba16uint : texture_storage_2d<rgba16uint, write>;
[[group(0), binding(5)]] var t_rgba16sint : texture_storage_2d<rgba16sint, write>;
@group(0) @binding(5) var t_rgba16sint : texture_storage_2d<rgba16sint, write>;
[[group(0), binding(6)]] var t_rgba16float : texture_storage_2d<rgba16float, write>;
@group(0) @binding(6) var t_rgba16float : texture_storage_2d<rgba16float, write>;
[[group(0), binding(7)]] var t_r32uint : texture_storage_2d<r32uint, write>;
@group(0) @binding(7) var t_r32uint : texture_storage_2d<r32uint, write>;
[[group(0), binding(8)]] var t_r32sint : texture_storage_2d<r32sint, write>;
@group(0) @binding(8) var t_r32sint : texture_storage_2d<r32sint, write>;
[[group(0), binding(9)]] var t_r32float : texture_storage_2d<r32float, write>;
@group(0) @binding(9) var t_r32float : texture_storage_2d<r32float, write>;
[[group(0), binding(10)]] var t_rg32uint : texture_storage_2d<rg32uint, write>;
@group(0) @binding(10) var t_rg32uint : texture_storage_2d<rg32uint, write>;
[[group(0), binding(11)]] var t_rg32sint : texture_storage_2d<rg32sint, write>;
@group(0) @binding(11) var t_rg32sint : texture_storage_2d<rg32sint, write>;
[[group(0), binding(12)]] var t_rg32float : texture_storage_2d<rg32float, write>;
@group(0) @binding(12) var t_rg32float : texture_storage_2d<rg32float, write>;
[[group(0), binding(13)]] var t_rgba32uint : texture_storage_2d<rgba32uint, write>;
@group(0) @binding(13) var t_rgba32uint : texture_storage_2d<rgba32uint, write>;
[[group(0), binding(14)]] var t_rgba32sint : texture_storage_2d<rgba32sint, write>;
@group(0) @binding(14) var t_rgba32sint : texture_storage_2d<rgba32sint, write>;
[[group(0), binding(15)]] var t_rgba32float : texture_storage_2d<rgba32float, write>;
@group(0) @binding(15) var t_rgba32float : texture_storage_2d<rgba32float, write>;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_rgba8unorm;
_ = t_rgba8snorm;

View File

@@ -1,21 +1,21 @@
[[group(0), binding(0)]] var t_rgba8unorm : texture_storage_2d_array<rgba8unorm, write>;
[[group(0), binding(1)]] var t_rgba8snorm : texture_storage_2d_array<rgba8snorm, write>;
[[group(0), binding(2)]] var t_rgba8uint : texture_storage_2d_array<rgba8uint, write>;
[[group(0), binding(3)]] var t_rgba8sint : texture_storage_2d_array<rgba8sint, write>;
[[group(0), binding(4)]] var t_rgba16uint : texture_storage_2d_array<rgba16uint, write>;
[[group(0), binding(5)]] var t_rgba16sint : texture_storage_2d_array<rgba16sint, write>;
[[group(0), binding(6)]] var t_rgba16float : texture_storage_2d_array<rgba16float, write>;
[[group(0), binding(7)]] var t_r32uint : texture_storage_2d_array<r32uint, write>;
[[group(0), binding(8)]] var t_r32sint : texture_storage_2d_array<r32sint, write>;
[[group(0), binding(9)]] var t_r32float : texture_storage_2d_array<r32float, write>;
[[group(0), binding(10)]] var t_rg32uint : texture_storage_2d_array<rg32uint, write>;
[[group(0), binding(11)]] var t_rg32sint : texture_storage_2d_array<rg32sint, write>;
[[group(0), binding(12)]] var t_rg32float : texture_storage_2d_array<rg32float, write>;
[[group(0), binding(13)]] var t_rgba32uint : texture_storage_2d_array<rgba32uint, write>;
[[group(0), binding(14)]] var t_rgba32sint : texture_storage_2d_array<rgba32sint, write>;
[[group(0), binding(15)]] var t_rgba32float : texture_storage_2d_array<rgba32float, write>;
@group(0) @binding(0) var t_rgba8unorm : texture_storage_2d_array<rgba8unorm, write>;
@group(0) @binding(1) var t_rgba8snorm : texture_storage_2d_array<rgba8snorm, write>;
@group(0) @binding(2) var t_rgba8uint : texture_storage_2d_array<rgba8uint, write>;
@group(0) @binding(3) var t_rgba8sint : texture_storage_2d_array<rgba8sint, write>;
@group(0) @binding(4) var t_rgba16uint : texture_storage_2d_array<rgba16uint, write>;
@group(0) @binding(5) var t_rgba16sint : texture_storage_2d_array<rgba16sint, write>;
@group(0) @binding(6) var t_rgba16float : texture_storage_2d_array<rgba16float, write>;
@group(0) @binding(7) var t_r32uint : texture_storage_2d_array<r32uint, write>;
@group(0) @binding(8) var t_r32sint : texture_storage_2d_array<r32sint, write>;
@group(0) @binding(9) var t_r32float : texture_storage_2d_array<r32float, write>;
@group(0) @binding(10) var t_rg32uint : texture_storage_2d_array<rg32uint, write>;
@group(0) @binding(11) var t_rg32sint : texture_storage_2d_array<rg32sint, write>;
@group(0) @binding(12) var t_rg32float : texture_storage_2d_array<rg32float, write>;
@group(0) @binding(13) var t_rgba32uint : texture_storage_2d_array<rgba32uint, write>;
@group(0) @binding(14) var t_rgba32sint : texture_storage_2d_array<rgba32sint, write>;
@group(0) @binding(15) var t_rgba32float : texture_storage_2d_array<rgba32float, write>;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_rgba8unorm;
_ = t_rgba8snorm;

View File

@@ -1,36 +1,36 @@
[[group(0), binding(0)]] var t_rgba8unorm : texture_storage_2d_array<rgba8unorm, write>;
@group(0) @binding(0) var t_rgba8unorm : texture_storage_2d_array<rgba8unorm, write>;
[[group(0), binding(1)]] var t_rgba8snorm : texture_storage_2d_array<rgba8snorm, write>;
@group(0) @binding(1) var t_rgba8snorm : texture_storage_2d_array<rgba8snorm, write>;
[[group(0), binding(2)]] var t_rgba8uint : texture_storage_2d_array<rgba8uint, write>;
@group(0) @binding(2) var t_rgba8uint : texture_storage_2d_array<rgba8uint, write>;
[[group(0), binding(3)]] var t_rgba8sint : texture_storage_2d_array<rgba8sint, write>;
@group(0) @binding(3) var t_rgba8sint : texture_storage_2d_array<rgba8sint, write>;
[[group(0), binding(4)]] var t_rgba16uint : texture_storage_2d_array<rgba16uint, write>;
@group(0) @binding(4) var t_rgba16uint : texture_storage_2d_array<rgba16uint, write>;
[[group(0), binding(5)]] var t_rgba16sint : texture_storage_2d_array<rgba16sint, write>;
@group(0) @binding(5) var t_rgba16sint : texture_storage_2d_array<rgba16sint, write>;
[[group(0), binding(6)]] var t_rgba16float : texture_storage_2d_array<rgba16float, write>;
@group(0) @binding(6) var t_rgba16float : texture_storage_2d_array<rgba16float, write>;
[[group(0), binding(7)]] var t_r32uint : texture_storage_2d_array<r32uint, write>;
@group(0) @binding(7) var t_r32uint : texture_storage_2d_array<r32uint, write>;
[[group(0), binding(8)]] var t_r32sint : texture_storage_2d_array<r32sint, write>;
@group(0) @binding(8) var t_r32sint : texture_storage_2d_array<r32sint, write>;
[[group(0), binding(9)]] var t_r32float : texture_storage_2d_array<r32float, write>;
@group(0) @binding(9) var t_r32float : texture_storage_2d_array<r32float, write>;
[[group(0), binding(10)]] var t_rg32uint : texture_storage_2d_array<rg32uint, write>;
@group(0) @binding(10) var t_rg32uint : texture_storage_2d_array<rg32uint, write>;
[[group(0), binding(11)]] var t_rg32sint : texture_storage_2d_array<rg32sint, write>;
@group(0) @binding(11) var t_rg32sint : texture_storage_2d_array<rg32sint, write>;
[[group(0), binding(12)]] var t_rg32float : texture_storage_2d_array<rg32float, write>;
@group(0) @binding(12) var t_rg32float : texture_storage_2d_array<rg32float, write>;
[[group(0), binding(13)]] var t_rgba32uint : texture_storage_2d_array<rgba32uint, write>;
@group(0) @binding(13) var t_rgba32uint : texture_storage_2d_array<rgba32uint, write>;
[[group(0), binding(14)]] var t_rgba32sint : texture_storage_2d_array<rgba32sint, write>;
@group(0) @binding(14) var t_rgba32sint : texture_storage_2d_array<rgba32sint, write>;
[[group(0), binding(15)]] var t_rgba32float : texture_storage_2d_array<rgba32float, write>;
@group(0) @binding(15) var t_rgba32float : texture_storage_2d_array<rgba32float, write>;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_rgba8unorm;
_ = t_rgba8snorm;

View File

@@ -1,21 +1,21 @@
[[group(0), binding(0)]] var t_rgba8unorm : texture_storage_3d<rgba8unorm, write>;
[[group(0), binding(1)]] var t_rgba8snorm : texture_storage_3d<rgba8snorm, write>;
[[group(0), binding(2)]] var t_rgba8uint : texture_storage_3d<rgba8uint, write>;
[[group(0), binding(3)]] var t_rgba8sint : texture_storage_3d<rgba8sint, write>;
[[group(0), binding(4)]] var t_rgba16uint : texture_storage_3d<rgba16uint, write>;
[[group(0), binding(5)]] var t_rgba16sint : texture_storage_3d<rgba16sint, write>;
[[group(0), binding(6)]] var t_rgba16float : texture_storage_3d<rgba16float, write>;
[[group(0), binding(7)]] var t_r32uint : texture_storage_3d<r32uint, write>;
[[group(0), binding(8)]] var t_r32sint : texture_storage_3d<r32sint, write>;
[[group(0), binding(9)]] var t_r32float : texture_storage_3d<r32float, write>;
[[group(0), binding(10)]] var t_rg32uint : texture_storage_3d<rg32uint, write>;
[[group(0), binding(11)]] var t_rg32sint : texture_storage_3d<rg32sint, write>;
[[group(0), binding(12)]] var t_rg32float : texture_storage_3d<rg32float, write>;
[[group(0), binding(13)]] var t_rgba32uint : texture_storage_3d<rgba32uint, write>;
[[group(0), binding(14)]] var t_rgba32sint : texture_storage_3d<rgba32sint, write>;
[[group(0), binding(15)]] var t_rgba32float : texture_storage_3d<rgba32float, write>;
@group(0) @binding(0) var t_rgba8unorm : texture_storage_3d<rgba8unorm, write>;
@group(0) @binding(1) var t_rgba8snorm : texture_storage_3d<rgba8snorm, write>;
@group(0) @binding(2) var t_rgba8uint : texture_storage_3d<rgba8uint, write>;
@group(0) @binding(3) var t_rgba8sint : texture_storage_3d<rgba8sint, write>;
@group(0) @binding(4) var t_rgba16uint : texture_storage_3d<rgba16uint, write>;
@group(0) @binding(5) var t_rgba16sint : texture_storage_3d<rgba16sint, write>;
@group(0) @binding(6) var t_rgba16float : texture_storage_3d<rgba16float, write>;
@group(0) @binding(7) var t_r32uint : texture_storage_3d<r32uint, write>;
@group(0) @binding(8) var t_r32sint : texture_storage_3d<r32sint, write>;
@group(0) @binding(9) var t_r32float : texture_storage_3d<r32float, write>;
@group(0) @binding(10) var t_rg32uint : texture_storage_3d<rg32uint, write>;
@group(0) @binding(11) var t_rg32sint : texture_storage_3d<rg32sint, write>;
@group(0) @binding(12) var t_rg32float : texture_storage_3d<rg32float, write>;
@group(0) @binding(13) var t_rgba32uint : texture_storage_3d<rgba32uint, write>;
@group(0) @binding(14) var t_rgba32sint : texture_storage_3d<rgba32sint, write>;
@group(0) @binding(15) var t_rgba32float : texture_storage_3d<rgba32float, write>;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_rgba8unorm;
_ = t_rgba8snorm;

View File

@@ -1,36 +1,36 @@
[[group(0), binding(0)]] var t_rgba8unorm : texture_storage_3d<rgba8unorm, write>;
@group(0) @binding(0) var t_rgba8unorm : texture_storage_3d<rgba8unorm, write>;
[[group(0), binding(1)]] var t_rgba8snorm : texture_storage_3d<rgba8snorm, write>;
@group(0) @binding(1) var t_rgba8snorm : texture_storage_3d<rgba8snorm, write>;
[[group(0), binding(2)]] var t_rgba8uint : texture_storage_3d<rgba8uint, write>;
@group(0) @binding(2) var t_rgba8uint : texture_storage_3d<rgba8uint, write>;
[[group(0), binding(3)]] var t_rgba8sint : texture_storage_3d<rgba8sint, write>;
@group(0) @binding(3) var t_rgba8sint : texture_storage_3d<rgba8sint, write>;
[[group(0), binding(4)]] var t_rgba16uint : texture_storage_3d<rgba16uint, write>;
@group(0) @binding(4) var t_rgba16uint : texture_storage_3d<rgba16uint, write>;
[[group(0), binding(5)]] var t_rgba16sint : texture_storage_3d<rgba16sint, write>;
@group(0) @binding(5) var t_rgba16sint : texture_storage_3d<rgba16sint, write>;
[[group(0), binding(6)]] var t_rgba16float : texture_storage_3d<rgba16float, write>;
@group(0) @binding(6) var t_rgba16float : texture_storage_3d<rgba16float, write>;
[[group(0), binding(7)]] var t_r32uint : texture_storage_3d<r32uint, write>;
@group(0) @binding(7) var t_r32uint : texture_storage_3d<r32uint, write>;
[[group(0), binding(8)]] var t_r32sint : texture_storage_3d<r32sint, write>;
@group(0) @binding(8) var t_r32sint : texture_storage_3d<r32sint, write>;
[[group(0), binding(9)]] var t_r32float : texture_storage_3d<r32float, write>;
@group(0) @binding(9) var t_r32float : texture_storage_3d<r32float, write>;
[[group(0), binding(10)]] var t_rg32uint : texture_storage_3d<rg32uint, write>;
@group(0) @binding(10) var t_rg32uint : texture_storage_3d<rg32uint, write>;
[[group(0), binding(11)]] var t_rg32sint : texture_storage_3d<rg32sint, write>;
@group(0) @binding(11) var t_rg32sint : texture_storage_3d<rg32sint, write>;
[[group(0), binding(12)]] var t_rg32float : texture_storage_3d<rg32float, write>;
@group(0) @binding(12) var t_rg32float : texture_storage_3d<rg32float, write>;
[[group(0), binding(13)]] var t_rgba32uint : texture_storage_3d<rgba32uint, write>;
@group(0) @binding(13) var t_rgba32uint : texture_storage_3d<rgba32uint, write>;
[[group(0), binding(14)]] var t_rgba32sint : texture_storage_3d<rgba32sint, write>;
@group(0) @binding(14) var t_rgba32sint : texture_storage_3d<rgba32sint, write>;
[[group(0), binding(15)]] var t_rgba32float : texture_storage_3d<rgba32float, write>;
@group(0) @binding(15) var t_rgba32float : texture_storage_3d<rgba32float, write>;
[[stage(compute), workgroup_size(1)]]
@stage(compute) @workgroup_size(1)
fn main() {
_ = t_rgba8unorm;
_ = t_rgba8snorm;