Sign in
dawn
/
tint
/
50854384233e865caa6816201a52da0a747b16d8
/
.
/
test
/
benchmark
/
simple_compute.wgsl.expected.wgsl
blob: ac984105ef34a9c9507c0fcfd82f6f00fecb6960 [
file
] [
log
] [
blame
]
struct
SB
{
data
:
array
<i32>
;
};
[[
group
(
0
),
binding
(
0
)]]
var
<
storage
,
read_write
>
buffer
:
SB
;
[[
stage
(
compute
),
workgroup_size
(
1
,
2
,
3
)]]
fn main
([[
builtin
(
global_invocation_id
)]]
id
:
vec3
<u32>
)
{
buffer
.
data
[
id
.
x
]
=
(
buffer
.
data
[
id
.
x
]
+
1
);
}