Sign in
dawn
/
dawn
/
8fd4ef26f5c6ede28d09d79d52dbdde931d1a718
/
.
/
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
;
}