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

14 lines
142 B
WebGPU Shading Language

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