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:
@@ -54,3 +54,12 @@ float cull(int i)
|
||||
{
|
||||
return (i >= 6) ? gl_CullDistance[5] : gl_CullDistance[i];
|
||||
}
|
||||
|
||||
layout(location = 6) in bName1 {
|
||||
float f;
|
||||
layout(location = 7) float g;
|
||||
} bInst1;
|
||||
layout(location = 8) in bName2 {
|
||||
float f;
|
||||
layout(location = 9) float g; // ERROR, location on array
|
||||
} bInst2[3];
|
||||
|
||||
Reference in New Issue
Block a user