dawn-cmake/test/ptr_ref/access/vector.wgsl

7 lines
146 B
WebGPU Shading Language
Raw Normal View History

[[stage(compute), workgroup_size(1)]]
fn main() {
var v : vec3<f32> = vec3<f32>(1., 2., 3.);
let f : ptr<function, f32> = &v.y;
*f = 5.0;
}