Merge branch 'semantic_handling' of https://github.com/TiemoJung/glslang into TiemoJung-semantic_handling

This commit is contained in:
John Kessenich 2017-03-14 21:49:42 -06:00
commit 2dc50ff372
5 changed files with 183 additions and 36 deletions

View file

@ -394,6 +394,7 @@ public:
void clear()
{
semanticName = nullptr;
precision = EpqNone;
invariant = false;
noContraction = false;
@ -403,6 +404,7 @@ public:
// drop qualifiers that don't belong in a temporary variable
void makeTemporary()
{
semanticName = nullptr;
storage = EvqTemporary;
builtIn = EbvNone;
clearInterstage();
@ -447,10 +449,17 @@ public:
// If A, then nothing should change, if B, then everything should change, but this is half way.
void makePartialTemporary()
{
semanticName = nullptr;
storage = EvqTemporary;
specConstant = false;
}
bool hasSemantic() const
{
return semanticName != nullptr;
}
const char* semanticName;
TStorageQualifier storage : 6;
TBuiltInVariable builtIn : 8;
TPrecisionQualifier precision : 3;