dawn-cmake/test/expressions/index/var/param/vector.wgsl

5 lines
76 B
WebGPU Shading Language

fn f(i : i32) -> f32 {
var v = vec3<f32>(1.0, 2.0, 3.0);
return v[i];
}