]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/unused_interface_block_removal.glsl
Add some test cases for unused interface blocks
[libs/gl.git] / tests / glsl / unused_interface_block_removal.glsl
1 uniform Color
2 {
3         vec4 tint;
4 } global_color;
5
6 #pragma MSP stage(vertex)
7 layout(location=0) in vec4 position;
8 layout(location=1) in vec4 color;
9 out VertexOut
10 {
11         vec2 texcoord;
12 };
13 out VertexOut2
14 {
15         vec4 color;
16 } vs_out;
17 void main()
18 {
19         texcoord = position.xy*0.5+0.5;
20         vs_out.color = color*global_color.tint;
21         gl_Position = position;
22 }
23
24 /* Expected output: vertex
25 layout(location=0) in vec4 position;
26 void main()
27 {
28         gl_Position = position;
29 }
30 */