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