Sign in
dawn
/
tint
/
b85099ae73b19e4f8baf0edb02a53b05dbd4fdb5
/
.
/
test
/
loops
/
nested_loops.wgsl.expected.msl
blob: e8138288f5c081e03375e7c81479c40d50daca69 [
file
] [
log
] [
blame
]
#include
<metal_stdlib>
using
namespace
metal
;
int
f
()
{
int
i
=
0
;
int
j
=
0
;
while
(
true
)
{
i
=
(
i
+
1
);
if
((
i
>
4
))
{
return
1
;
}
while
(
true
)
{
j
=
(
j
+
1
);
if
((
j
>
4
))
{
return
2
;
}
}
}
return
0
;
}