blob: 58285c541a7abcb07e341cc13dfe7113fc680bdc (
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
29
30
|
// Disabled because Slang compiler doesn't support GLSL as an input language
//TEST_IGNORE_FILE
//TEST:COMPARE_GLSL:-profile glsl_fragment_450
// 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;
}
|