8 lines
147 B
WebGPU Shading Language
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)) {
|
||
|
}
|
||
|
}
|