]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/location_overlap.glsl
Even more validation for uniform mismatches
[libs/gl.git] / tests / glsl / location_overlap.glsl
index df0f03148537ac8c00ae8cc5e9db8d13bc981c9d..d3cf5f9dd22dd08c95d29d0da100fc976af00be3 100644 (file)
@@ -1,7 +1,8 @@
 #pragma MSP stage(vertex)
 layout(location=0) in vec4 position;
 layout(location=0) in vec2 texcoords[3];
-layout(location=2) in vec4 color;
+layout(location=2) in mat4 instance_transform;
+layout(location=4) in vec4 color;
 void main()
 {
        gl_Position = position;
@@ -10,6 +11,8 @@ void main()
 /* Expected error:
 <test>:3: Overlapping location 0 for 'in texcoords'
 <test>:2: Previously used here for 'in position'
-<test>:4: Overlapping location 2 for 'in color'
+<test>:4: Overlapping location 2 for 'in instance_transform'
 <test>:3: Previously used here for 'in texcoords'
+<test>:5: Overlapping location 4 for 'in color'
+<test>:4: Previously used here for 'in instance_transform'
 */