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

8 lines
157 B
WebGPU Shading Language

// flags: --overrides wgsize=64
override wgsize : i32;
var<workgroup> v : array<i32, wgsize * 2>;
fn foo() -> i32 {
return workgroupUniformLoad(&v)[0];
}