Sign in
dawn
/
tint
/
066c17585214eb705d2f48b56b864c2f5a2164b0
/
.
/
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
;
}