]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/named_interface_block.glsl
Fix GLSL test cases so they pass the basic tests
[libs/gl.git] / tests / glsl / named_interface_block.glsl
1 #pragma MSP stage(vertex)
2 layout(location=0) in vec4 position;
3 layout(location=1) in vec4 color;
4 out VertexOut
5 {
6         vec4 color;
7 } vs_out;
8 void main()
9 {
10         gl_Position = position;
11         vs_out.color = color;
12 }
13
14 #pragma MSP stage(fragment)
15 layout(location=0) out vec4 frag_color;
16 void main()
17 {
18         frag_color = vs_out.color;
19 }
20
21 // Target API: Vulkan
22
23 /* Expected output: vertex
24 layout(location=0) in vec4 position;
25 layout(location=1) in vec4 color;
26 out VertexOut
27 {
28         vec4 color;
29 } vs_out;
30 void main()
31 {
32         gl_Position = position;
33         vs_out.color = color;
34 }
35 */
36
37 /* Expected output: fragment
38 layout(location=0) out vec4 frag_color;
39 in VertexOut
40 {
41         vec4 color;
42 } vs_out;
43 void main()
44 {
45         frag_color = vs_out.color;
46 }
47 */