Fix #2227, which was coded incorrectly, to be simpler/safer.

This commit is contained in:
John Kessenich 2020-05-20 01:56:11 -06:00
parent 9514c6be66
commit 2e0f0a0517
2 changed files with 15 additions and 19 deletions

View file

@ -203,7 +203,7 @@ public:
void endCollect(EShLanguage) override;
void reserverStorageSlot(TVarEntryInfo& ent, TInfoSink& infoSink) override;
void reserverResourceSlot(TVarEntryInfo& ent, TInfoSink& infoSink) override;
TString& getAccessName(const TIntermSymbol*);
const TString& getAccessName(const TIntermSymbol*);
// in/out symbol and uniform symbol are stored in the same resourceSlotMap, the storage key is used to identify each type of symbol.
// We use stage and storage qualifier to construct a storage key. it can help us identify the same storage resource used in different stage.
// if a resource is a program resource and we don't need know it usage stage, we can use same stage to build storage key.