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

22 lines
269 B
Plaintext

#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;
}