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

12 lines
159 B
WebGPU Shading Language

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