Add grammar productions for adding 'invariant' to already declared variables.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22083 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich 2013-06-19 20:44:17 +00:00
parent 41a36bbb2f
commit 60d9f7a881
6 changed files with 60 additions and 12 deletions

View file

@ -154,6 +154,14 @@ inline TTypeList* NewPoolTTypeList()
return new(memory) TTypeList;
}
typedef TVector<TString*> TIdentifierList;
inline TIdentifierList* NewPoolTIdentifierList()
{
void* memory = GlobalPoolAllocator.allocate(sizeof(TIdentifierList));
return new(memory) TIdentifierList;
}
//
// TODO: memory: TArraySizes can be replaced by something smaller.
// Almost all arrays could be handled by two sizes each fitting
@ -236,7 +244,7 @@ public:
bool isMemory() const
{
return coherent || volatil || restrict || readonly || writeonly;
return shared || coherent || volatil || restrict || readonly || writeonly;
}
bool isInterpolation() const
{