SPIRV-Cross/shaders-msl-no-opt/packing/matrix-multiply-unpacked-col-major.comp

19 lines
242 B
Plaintext
Raw Normal View History

#version 450
layout(local_size_x = 1) in;
layout(std140, set = 0, binding = 0) buffer SSBO
{
mat2 m0;
mat2 m1;
vec2 v0;
vec2 v1;
};
void main()
{
v0 = (m0 * m1) * v1;
v0 = m0 * (m1 * v1);
v0 = (v1 * m0) * m1;
v0 = v1 * (m0 * m1);
}