Sign in
dawn
/
dawn
/
6ae4eba085300d885de90e24947c288f20f682fc
/
.
/
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
;
}