dawn-cmake/test/tint/expressions/binary/mul/mat3x2-vec3/f32.wgsl.expected.glsl

35 lines
500 B
GLSL

#version 310 es
precision mediump float;
struct S {
mat3x2 matrix;
vec3 vector;
};
struct S_std140 {
vec2 matrix_0;
vec2 matrix_1;
vec2 matrix_2;
vec3 vector;
};
layout(binding = 0) uniform S_std140_1 {
vec2 matrix_0;
vec2 matrix_1;
vec2 matrix_2;
vec3 vector;
} data;
mat3x2 load_data_matrix() {
return mat3x2(data.matrix_0, data.matrix_1, data.matrix_2);
}
void tint_symbol() {
vec2 x = (load_data_matrix() * data.vector);
}
void main() {
tint_symbol();
return;
}