2013-10-22 00:21:04 +00:00
|
|
|
#version 430 core
|
|
|
|
|
|
|
|
layout(location = 3) vec4 v4; // ERROR
|
|
|
|
|
2013-12-05 20:07:56 +00:00
|
|
|
layout(location = 4) uniform vec4 uv4;
|
2013-10-22 00:21:04 +00:00
|
|
|
|
|
|
|
layout(location = 2) in inb1 { vec4 v; } b1; // ERROR
|
|
|
|
layout(location = 2) out outb1 { vec4 v; } b2; // ERROR
|
2013-10-24 01:25:40 +00:00
|
|
|
|
|
|
|
out gl_PerVertex {
|
|
|
|
float gl_ClipDistance[];
|
|
|
|
};
|
|
|
|
|
|
|
|
void foo()
|
|
|
|
{
|
|
|
|
gl_ClipDistance[2] = 3.7;
|
|
|
|
}
|
2013-11-08 07:13:18 +00:00
|
|
|
|
|
|
|
struct sp {
|
|
|
|
highp float f;
|
|
|
|
in float g; // ERROR
|
|
|
|
uniform float h; // ERROR
|
|
|
|
invariant float i; // ERROR
|
|
|
|
volatile float j; // ERROR
|
|
|
|
layout(row_major) mat3 m3; // ERROR
|
|
|
|
};
|
|
|
|
|
|
|
|
void foo3(invariant vec4 v4, // ERROR
|
|
|
|
volatile vec3 v3,
|
|
|
|
layout(location = 3) vec2 v2, // ERROR
|
|
|
|
centroid vec3 cv3) // ERROR
|
|
|
|
{
|
2013-12-05 20:07:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
struct S {
|
|
|
|
mat3x2 m[7]; // needs 7*3 locations
|
|
|
|
float f; // needs 1 location
|
|
|
|
}; // needs 22 locations
|
|
|
|
|
|
|
|
layout(location = 10) out S cs[2]; // 10 through 10 + 2 * 22 - 1 = 53
|
|
|
|
layout(location = 54) out float cf;
|
|
|
|
layout(location = 53) out float cg; // ERROR, collision at 31
|
2013-12-06 23:57:42 +00:00
|
|
|
|
|
|
|
float gl_ClipDistance[17]; // ERROR, size too big
|