Merge branch 'TiemoJung-semantic_handling'

This commit is contained in:
John Kessenich 2017-03-14 21:50:06 -06:00
commit 2dd643ff03
11 changed files with 187 additions and 49 deletions

View file

@ -423,6 +423,11 @@ public:
bool getGeoPassthroughEXT() const { return geoPassthroughEXT; }
#endif
const char* addSemanticName(const TString& name)
{
return semanticNameSet.insert(name).first->c_str();
}
protected:
TIntermSymbol* addSymbol(int Id, const TString&, const TType&, const TConstUnionArray&, TIntermTyped* subtree, const TSourceLoc&);
void error(TInfoSink& infoSink, const char*);
@ -501,6 +506,7 @@ protected:
std::vector<TOffsetRange> usedAtomics; // sets of bindings used by atomic counters
std::vector<TXfbBuffer> xfbBuffers; // all the data we need to track per xfb buffer
std::unordered_set<int> usedConstantId; // specialization constant ids used
std::set<TString> semanticNameSet;
private:
void operator=(TIntermediate&); // prevent assignments