Sign in
dawn
/
dawn
/
4bc30b7ba2c21d380bdc84baf2ebb98f6e055906
/
.
/
test
/
tint
/
benchmark
/
simple-compute.wgsl
blob: d2c2f20e79218e50c99a5dd68a0fe3382e811828 [
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
;
}