Sign in
dawn
/
dawn
/
9be037cf1bcbd4a37d083d079f4e457e2b7f5182
/
.
/
test
/
tint
/
loops
/
while.wgsl.expected.msl
blob: e2655d34fd63d5602456818712ab1c1c463e31f9 [
file
] [
log
] [
blame
]
#include
<metal_stdlib>
using
namespace
metal
;
constant
static
volatile
bool
tint_preserve_loop
=
true
;
int
f
()
{
int
i
=
0
;
while
(((
i
<
4
))
==
tint_preserve_loop
)
{
i
=
as_type
<int>
((
as_type
<uint>
(
i
)
+
as_type
<uint>
(
1
)));
}
return
i
;
}