GLSL: Fix #1193: no 'location' on uniform/buffer block.

This commit is contained in:
John Kessenich
2017-12-16 10:07:22 -07:00
parent a0d60f2bea
commit e1ff231235
6 changed files with 25 additions and 7 deletions

View File

@@ -46,3 +46,11 @@ void foo()
allInvocationsEqual(b1); // ERROR, need 4.6
}
; // ERROR: no extraneous semicolons
layout(location = 0) uniform locBlock { // ERROR, no location uniform block
int a;
};
layout(location = 0) buffer locBuffBlock { // ERROR, no location on buffer block
int b;
};