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