9 lines
153 B
WebGPU Shading Language
9 lines
153 B
WebGPU Shading Language
|
var<workgroup> a : i32;
|
||
|
|
||
|
var<workgroup> b : i32;
|
||
|
|
||
|
fn foo() {
|
||
|
for(var i = 0; (i < workgroupUniformLoad(&(a))); i += workgroupUniformLoad(&(b))) {
|
||
|
}
|
||
|
}
|