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