Sign in
dawn
/
dawn
/
9414c00f3d45d6fe0ee2646c6c638ea9e88b592f
/
.
/
test
/
tint
/
loops
/
nested_loop_switch_loop_switch.wgsl
blob: 020d6dfeec62f4f4fe7e134fa801549d8f34d8a2 [
file
] [
log
] [
blame
]
@compute
@workgroup_size
(
1
)
fn main
()
{
for
(
var
i
=
0
;
i
<
2
;
i
+=
2
)
{
switch
(
i
)
{
case
0
:
{
for
(
var
j
=
0
;
j
<
2
;
j
+=
2
)
{
switch
(
j
)
{
case
0
:
{
continue
;
// j loop
}
default
:
{
}
}
}
continue
;
// i loop
}
default
:
{
}
}
}
}