コード例 #1
0
 public ShaderStringBuilder()
 {
     m_StringBuilder  = new StringBuilder();
     m_ScopeStack     = new Stack <ScopeType>();
     m_Mappings       = new List <ShaderStringMapping>();
     m_CurrentMapping = new ShaderStringMapping();
 }
コード例 #2
0
 public ShaderStringBuilder(int indentationLevel = 0, int stringBuilderSize = 8192, bool humanReadable = false)
 {
     IncreaseIndent(indentationLevel);
     m_StringBuilder  = new StringBuilder(stringBuilderSize);
     m_ScopeStack     = new Stack <ScopeType>();
     m_Mappings       = new List <ShaderStringMapping>();
     m_CurrentMapping = new ShaderStringMapping();
     m_HumanReadable  = humanReadable;
 }