dawn-cmake/test/expressions/index/let/var/literal/vector.wgsl

6 lines
82 B
WebGPU Shading Language

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