]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/partially_unused_interface_block.glsl
Properly resolve arithmetic assignment operators
[libs/gl.git] / tests / glsl / partially_unused_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         vec2 texcoord;
7         vec4 color;
8 } vs_out;
9 void main()
10 {
11         vs_out.texcoord = position.xy*0.5+0.5;
12         vs_out.color = color;
13         gl_Position = position;
14 }
15
16 #pragma MSP stage(fragment)
17 layout(location=0) out vec4 frag_color;
18 void main()
19 {
20         frag_color = vs_out.color;
21 }
22
23 /* Expected output: vertex
24 layout(location=0) in vec4 position;
25 layout(location=1) in vec4 color;
26 out VertexOut
27 {
28         vec2 texcoord;
29         vec4 color;
30 } vs_out;
31 void main()
32 {
33         vs_out.texcoord = position.xy*0.5+0.5;
34         vs_out.color = color;
35         gl_Position = position;
36 }
37 */
38
39 /* Expected output: fragment
40 layout(location=0) out vec4 frag_color;
41 in VertexOut
42 {
43         vec2 texcoord;
44         vec4 color;
45 } vs_out;
46 void main()
47 {
48         frag_color = vs_out.color;
49 }
50 */