]> git.tdb.fi Git - libs/gl.git/blob - invalid_subscript.glsl
5f959ffb33391b105733c1ab3c2f62917065c28e
[libs/gl.git] / invalid_subscript.glsl
1 #pragma MSP stage(vertex)
2 layout(location=0) in vec4 position;
3 layout(location=1) in float scale;
4 void main()
5 {
6         gl_Position = position[scale];
7         gl_Position = scale[position];
8 }
9
10 /* Expected error:
11 <test>:6: Can't index element of 'vec4' with 'float'
12 <test>:7: Can't index element of 'float' with 'vec4'
13 */