SPIRV-Cross/shaders-msl-no-opt/packing/matrix-multiply-row-major.comp
2019-07-23 10:56:57 +02:00

17 lines
201 B
Plaintext

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