dawn-cmake/test/expressions/index/let/param/matrix.wgsl

5 lines
114 B
WebGPU Shading Language

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