9 lines
111 B
WebGPU Shading Language
9 lines
111 B
WebGPU Shading Language
|
var<workgroup> v : bool;
|
||
|
|
||
|
fn foo() -> i32 {
|
||
|
if (workgroupUniformLoad(&v)) {
|
||
|
return 42;
|
||
|
}
|
||
|
return 0;
|
||
|
}
|