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

9 lines
111 B
WebGPU Shading Language

var<workgroup> v : bool;
fn foo() -> i32 {
if (workgroupUniformLoad(&v)) {
return 42;
}
return 0;
}