]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/alias_types.glsl
Allocate locations to interface variables
[libs/gl.git] / tests / glsl / alias_types.glsl
1 typedef vec4 myvec4;
2 typedef mat4x4 mymat4;
3
4 uniform mymat4 mvp;
5
6 #pragma MSP stage(vertex)
7 layout(location=0) in myvec4 position;
8 void main()
9 {
10         gl_Position = mvp*position;
11 }
12
13 /* Expected output: vertex
14 layout(location=0) uniform mat4 mvp;
15 layout(location=0) in vec4 position;
16 void main()
17 {
18         gl_Position = mvp*position;
19 }
20 */