Require l-value patch-out indexing to be gl_InvocationID.

Also, generally allow ES variable indexing of in/out blocks.
This commit is contained in:
John Kessenich 2015-11-28 15:19:11 -07:00
parent 989df85dcd
commit 1be8063e01
16 changed files with 354 additions and 196 deletions

View file

@ -6,9 +6,9 @@ in gl_PerVertex {
out gl_PerVertex {
float gl_CullDistance[3];
} gl_out[];
} gl_out[4];
void main()
{
gl_out[0].gl_CullDistance[2] = gl_in[1].gl_CullDistance[2];
gl_out[gl_InvocationID].gl_CullDistance[2] = gl_in[1].gl_CullDistance[2];
}