Sign in
dawn
/
dawn
/
refs/heads/chromium/5554
/
.
/
test
/
tint
/
benchmark
/
simple-compute.wgsl
blob: 427e51cceac8b8a6883d2c1e027f2aa9f88fab52 [
file
] [
log
] [
blame
] [
edit
]
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
;
}