]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/location_overlap.glsl
df0f03148537ac8c00ae8cc5e9db8d13bc981c9d
[libs/gl.git] / tests / glsl / location_overlap.glsl
1 #pragma MSP stage(vertex)
2 layout(location=0) in vec4 position;
3 layout(location=0) in vec2 texcoords[3];
4 layout(location=2) in vec4 color;
5 void main()
6 {
7         gl_Position = position;
8 }
9
10 /* Expected error:
11 <test>:3: Overlapping location 0 for 'in texcoords'
12 <test>:2: Previously used here for 'in position'
13 <test>:4: Overlapping location 2 for 'in color'
14 <test>:3: Previously used here for 'in texcoords'
15 */