dawn-cmake/test/tint/loops/loop_with_continuing.wgsl.e...

16 lines
211 B
Plaintext

#include <metal_stdlib>
using namespace metal;
int f() {
int i = 0;
while (true) {
if ((i > 4)) {
return i;
}
{
i = as_type<int>((as_type<uint>(i) + as_type<uint>(1)));
}
}
}