dawn-cmake/test/tint/expressions/index/var/let/literal/vector.wgsl.expected.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];
}