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

6 lines
120 B
WebGPU Shading Language

fn f() -> vec3<f32> {
var m = mat3x3<f32>(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0);
let i = 1;
return m[i];
}