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