]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/alias_types.glsl
Check the flat qualifier from the correct member
[libs/gl.git] / tests / glsl / alias_types.glsl
1 typedef vec4 myvec4;
2 typedef mat4x4 mymat4;
3
4 layout(push_constant) uniform Transform
5 {
6         mymat4 mvp;
7 };
8
9 #pragma MSP stage(vertex)
10 layout(location=0) in myvec4 position;
11 void main()
12 {
13         gl_Position = mvp*position;
14 }
15
16 // Target API: Vulkan
17
18 /* Expected output: vertex
19 layout(push_constant) uniform Transform
20 {
21         mat4 mvp;
22 };
23 layout(location=0) in vec4 position;
24 void main()
25 {
26         gl_Position = mvp*position;
27 }
28 */