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

8 lines
94 B
WebGPU Shading Language

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