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

8 lines
178 B
WebGPU Shading Language

[[stage(compute)]]
fn main() {
let v : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
let scalar : f32 = v.y;
let swizzle2 : vec2<f32> = v.xz;
let swizzle3 : vec3<f32> = v.xzy;
}