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