dawn-cmake/test/tint/buffer/uniform/std140/mat4x2/to_fn.wgsl.expected.wgsl

32 lines
343 B
WebGPU Shading Language

struct S {
before : i32,
m : mat4x2<f32>,
after : i32,
}
@group(0) @binding(0) var<uniform> u : array<S, 4>;
fn a(a : array<S, 4>) {
}
fn b(s : S) {
}
fn c(m : mat4x2<f32>) {
}
fn d(v : vec2<f32>) {
}
fn e(f : f32) {
}
@compute @workgroup_size(1)
fn f() {
a(u);
b(u[2]);
c(u[2].m);
d(u[0].m[1].yx);
e(u[0].m[1].yx.x);
}