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