]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/passthrough_declaration_order.glsl
Check the flat qualifier from the correct member
[libs/gl.git] / tests / glsl / passthrough_declaration_order.glsl
1 #pragma MSP stage(vertex)
2 layout(location=0) in vec4 position;
3 void process();
4 void main()
5 {
6         gl_Position = position;
7         passthrough;
8         process();
9 }
10 layout(location=1) in vec4 color;
11 void process()
12 {
13         passthrough;
14 }
15
16 #pragma MSP stage(fragment)
17 layout(location=0) out vec4 frag_color;
18 void main()
19 {
20         frag_color = color;
21 }
22
23 // Target API: Vulkan
24
25 /* Expected output: vertex
26 layout(location=0) in vec4 position;
27 layout(location=1) in vec4 color;
28 layout(location=0) out vec4 _vs_out_color;
29 void main()
30 {
31         gl_Position = position;
32         _vs_out_color = color;
33 }
34 */
35
36 /* Expected output: fragment
37 layout(location=0) out vec4 frag_color;
38 layout(location=0) in vec4 _vs_out_color;
39 void main()
40 {
41         frag_color = _vs_out_color;
42 }
43 */