avoid leaving decorations on auto-push-constants
uniform blocks that are upgraded to push_constants shouldn't have set/binding etc. decorations applied to them
This commit is contained in:
parent
b7ba87bcfe
commit
be202ef9ba
2 changed files with 23 additions and 14 deletions
|
|
@ -61,6 +61,15 @@ struct TVarEntryInfo {
|
|||
int newComponent;
|
||||
int newIndex;
|
||||
EShLanguage stage;
|
||||
|
||||
void clearNewAssignments() {
|
||||
newBinding = -1;
|
||||
newSet = -1;
|
||||
newLocation = -1;
|
||||
newComponent = -1;
|
||||
newIndex = -1;
|
||||
}
|
||||
|
||||
struct TOrderById {
|
||||
inline bool operator()(const TVarEntryInfo& l, const TVarEntryInfo& r) { return l.id < r.id; }
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue