]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/location_overlap.glsl
Implement textureSize as a visitor function in the SPIR-V generator
[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 mat4 instance_transform;
5 layout(location=4) in vec4 color;
6 void main()
7 {
8         gl_Position = position;
9 }
10
11 /* Expected error:
12 <test>:3: Overlapping location 0 for 'in texcoords'
13 <test>:2: Previously used here for 'in position'
14 <test>:4: Overlapping location 2 for 'in instance_transform'
15 <test>:3: Previously used here for 'in texcoords'
16 <test>:5: Overlapping location 4 for 'in color'
17 <test>:4: Previously used here for 'in instance_transform'
18 */