Sign in
dawn
/
dawn
/
545d8629efe94bfd763fd642be6ab7f775370761
/
.
/
test
/
tint
/
benchmark
/
simple-compute.wgsl
blob: 427e51cceac8b8a6883d2c1e027f2aa9f88fab52 [
file
] [
log
] [
blame
]
struct
SB
{
data
:
array
<i32>
,
};
@group
(
0
)
@binding
(
0
)
var
<
storage
,
read_write
>
buffer
:
SB
;
@compute
@workgroup_size
(
1
,
2
,
3
)
fn main
(
@builtin
(
global_invocation_id
)
id
:
vec3
<u32>
)
{
buffer
.
data
[
id
.
x
]
=
buffer
.
data
[
id
.
x
]
+
1
;
}