Sign in
dawn
/
dawn
/
6ae4eba085300d885de90e24947c288f20f682fc
/
.
/
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
:
{
}
}
}
}