mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-15 00:11:06 +00:00
19 lines
253 B
Plaintext
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);
|
|
}
|