summaryrefslogtreecommitdiff
path: root/tests/bugs/matrix-mult.glsl
blob: b427dee14223c80443418eabe3bae24e89818af8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//TEST:COMPARE_GLSL:-profile glsl_fragment_450 -no-checking
// matrix-mult.glsl
#version 450

// Confirm that we don't exchange the operands
// to a matrix-vector multiply when we recognize
// one in "raw" GLSL code.

#ifdef __SLANG__
__import empty;
#endif

layout(binding = 0)
uniform C
{
	mat4x4 m;
};

layout(location = 0)
in vec4 v;

layout(location = 0)
out vec4 r;

void main()
{
	r = m * v;
}