dawn-cmake/test/tint/builtins/workgroupUniformLoad/for_loop.wgsl

8 lines
147 B
WebGPU Shading Language

var<workgroup> a : i32;
var<workgroup> b : i32;
fn foo() {
for (var i = 0; i < workgroupUniformLoad(&a); i += workgroupUniformLoad(&b)) {
}
}