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