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