]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/unlinked_interface.glsl
Offset layout qualifiers are only allowed on uniform block members
[libs/gl.git] / tests / glsl / unlinked_interface.glsl
1 uniform sampler2D tex;
2
3 #pragma MSP stage(vertex)
4 layout(location=0) in vec4 position;
5 void main()
6 {
7         gl_Position = position;
8 }
9
10 #pragma MSP stage(fragment)
11 in vec2 texcoord;
12 in VertexOut
13 {
14         vec4 color;
15 } vs_out;
16 out vec4 frag_color;
17 void main()
18 {
19         frag_color = texture(tex, texcoord)*vs_out.color;
20 }
21
22 /* Expected error:
23 <test>:19: Use of unlinked input variable 'texcoord'
24 <test>:19: Use of unlinked input block 'vs_out'
25 */