dawn-cmake/test/tint/builtins/workgroupUniformLoad/via_param.wgsl.expected.wgsl

12 lines
207 B
WebGPU Shading Language

enable chromium_experimental_full_ptr_parameters;
var<workgroup> v : array<i32, 4>;
fn foo(p : ptr<workgroup, i32>) -> i32 {
return workgroupUniformLoad(p);
}
fn bar() -> i32 {
return foo(&(v[0]));
}