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