dawn-cmake/test/loops/loop.wgsl.expected.msl

15 lines
165 B
Plaintext

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