SPV: Fix #1016: Don't allow non-GLSL-extension protected Layer and ViewportIndex members.

This commit is contained in:
John Kessenich 2017-08-17 23:49:39 -06:00
parent 03e63fa805
commit d6be6da031
5 changed files with 124 additions and 57 deletions

View file

@ -2,7 +2,7 @@
layout(vertices = 4) out;
patch out vec4 patchOut;
layout(location=1) patch out vec4 patchOut;
struct S {
float sMem1; // should not see a patch decoration
@ -17,6 +17,7 @@ layout(location = 12) patch out TheBlock {
void main()
{
gl_out[gl_InvocationID].gl_Position = gl_in[gl_InvocationID].gl_Position;
}
layout(location = 2) patch out SingleBlock {