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