Fix missing semantic check: Disallow layout qualifiers when augmenting an already declared variable with a qualifier.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@25351 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
@@ -159,3 +159,12 @@ int agggf(float f) { return 2; }
|
||||
int agggf(float f);
|
||||
|
||||
out struct Ssss { float f; } ssss;
|
||||
|
||||
uniform Bblock {
|
||||
int a;
|
||||
} Binst;
|
||||
int Bfoo;
|
||||
|
||||
layout(std140) Binst; // ERROR
|
||||
layout(std140) Bblock; // ERROR
|
||||
layout(std140) Bfoo; // ERROR
|
||||
|
||||
Reference in New Issue
Block a user