Sign in
dawn
/
dawn
/
bfebbf03cd28ab1c1ef646823de594b7b6c9bd4f
/
.
/
test
/
tint
/
loops
/
loop_with_break_if.wgsl.expected.msl
blob: 97788fafdee34612d52fae8719e3cecff08c5a57 [
file
] [
log
] [
blame
]
#include
<metal_stdlib>
using
namespace
metal
;
int
f
()
{
int
i
=
0
;
while
(
true
)
{
if
((
i
>
4
))
{
return
i
;
}
{
i
=
as_type
<int>
((
as_type
<uint>
(
i
)
+
as_type
<uint>
(
1
)));
if
((
i
==
4
))
{
break
;
}
}
}
return
i
;
}