Sign in
dawn
/
dawn
/
f3e7db0c4ed2fe144a7f682e029f48e1c9ccf3ca
/
.
/
test
/
tint
/
shadowing
/
loop.wgsl.expected.wgsl
blob: 5447b182495042874551cdffb4ab02c21b47f23d [
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
;
}