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

19 lines
253 B
Plaintext

#version 450
layout(local_size_x = 1) in;
layout(std140, row_major, 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);
}