Sign in
dawn
/
dawn
/
cfb9de24e17f7c24577e6acbbf39325deee3ca25
/
.
/
test
/
tint
/
loops
/
loop_with_break_if_robustness.wgsl
blob: 8c5153d57abde05f62ade581c56fce19630ad365 [
file
] [
log
] [
blame
]
fn f
()
->
i32
{
var
i
:
i32
;
loop
{
if
(
i
>
4
)
{
return
i
;
}
continuing
{
i
=
i
+
1
;
break
if
i
==
4
;
}
}
return
i
;
}
@compute
@workgroup_size
(
1
)
fn main
()
{
_
=
f
();
}