GLSL: Error when using location on an arrayed block.
This implements a recent change to the GLSL specification to enforce this ill-defined situation.
This commit is contained in:
@@ -12,3 +12,12 @@ void main()
|
||||
{
|
||||
gl_out[gl_InvocationID].gl_CullDistance[2] = gl_in[1].gl_CullDistance[2];
|
||||
}
|
||||
|
||||
layout(location = 4) out bName1 {
|
||||
float f;
|
||||
layout(location = 5) float g;
|
||||
} bInst1[2];
|
||||
layout(location = 6) out bName2 {
|
||||
float f;
|
||||
layout(location = 7) float g; // ERROR, location on array
|
||||
} bInst2[2][3];
|
||||
|
||||
Reference in New Issue
Block a user