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

10 lines
124 B
WebGPU Shading Language

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