]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/invalid_subscript.glsl
Move the utility functions in export_material into MaterialExporter
[libs/gl.git] / tests / glsl / 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 */