Sign in
dawn
/
dawn
/
1ddb39c14b3aff8d9099e75bebb1ed3efa75a46b
/
.
/
test
/
tint
/
shadowing
/
loop.wgsl
blob: 4a4f483a9d89a482746b4e67a7d66d287541cf17 [
file
] [
log
] [
blame
]
@group
(
0
)
@binding
(
0
)
var
<
storage
,
read_write
>
output
:
array
<
i32
,
10
>;
@compute
@workgroup_size
(
1
)
fn foo
()
{
var
i
=
0
;
loop
{
var
x
=
output
[
i
];
continuing
{
var
x
=
output
[
x
];
i
+=
x
;
break
if
i
>
10
;
}
}
output
[
0
]
=
i
;
}