Add amend ability for anonymous blocks, so they can grow between function bodies.

This commit is contained in:
John Kessenich 2016-09-29 23:58:30 -06:00
parent 16738a3632
commit df98cc26d5
7 changed files with 298 additions and 34 deletions

View file

@ -158,8 +158,7 @@ protected:
// Manage the global uniform block (default uniforms in GLSL, $Global in HLSL)
TVariable* globalUniformBlock; // the actual block, inserted into the symbol table
bool globalUniformBlockAdded; // true once inserted into the symbol table
bool globalUniformBlockChanged; // true if members have changed
int firstNewMember; // the index of the first member not yet inserted into the symbol table
// override this to set the language-specific name
virtual const char* getGlobalUniformBlockName() { return ""; }
virtual void finalizeGlobalUniformBlockLayout(TVariable&) { }