dawn-cmake/test/tint/expressions/splat/call/mat.wgsl

14 lines
525 B
WebGPU Shading Language
Raw Normal View History

fn get_f32() -> f32 { return 1.0; }
fn f() {
var m2x2 : mat2x2<f32> = mat2x2<f32>(get_f32());
var m2x3 : mat2x3<f32> = mat2x3<f32>(get_f32());
var m2x4 : mat2x4<f32> = mat2x4<f32>(get_f32());
var m3x2 : mat3x2<f32> = mat3x2<f32>(get_f32());
var m3x3 : mat3x3<f32> = mat3x3<f32>(get_f32());
var m3x4 : mat3x4<f32> = mat3x4<f32>(get_f32());
var m4x2 : mat4x2<f32> = mat4x2<f32>(get_f32());
var m4x3 : mat4x3<f32> = mat4x3<f32>(get_f32());
var m4x4 : mat4x4<f32> = mat4x4<f32>(get_f32());
}