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

7 lines
134 B
WebGPU Shading Language

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