dawn-cmake/test/loops/loop.wgsl

11 lines
138 B
WebGPU Shading Language

fn f() -> i32 {
var i : i32;
loop {
i = i + 1;
if (i > 4) {
return i;
}
}
return 0;
}