Merge branch 'semantic_handling' of https://github.com/TiemoJung/glslang into TiemoJung-semantic_handling
This commit is contained in:
commit
2dc50ff372
5 changed files with 183 additions and 36 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue