public void Destroy() { m_blendData = null; m_blendData1 = null; m_blendData2 = null; m_blendData3 = null; m_alphaToMaskData = null; m_cullModeData = null; m_colorMaskData = null; m_colorMaskData1 = null; m_colorMaskData2 = null; m_colorMaskData3 = null; m_stencilData = null; m_depthData = null; m_tagData.Destroy(); m_tagData = null; m_globalsTag = null; m_srpBatcherTag = null; m_allModulesTag = null; m_functionsTag = null; m_pragmaTag = null; m_pragmaBeforeTag = null; m_passTag = null; m_inputsVertTag = null; m_inputsFragTag = null; m_includePragmaContainer.Destroy(); m_includePragmaContainer = null; }
public void ConfigureFromTemplateData(TemplateCullModeData data) { bool newValidData = (data.DataCheck == TemplateDataCheck.Valid); if (newValidData && m_validData != newValidData) { m_cullMode = data.CullModeData; } m_validData = newValidData; }
public void Destroy() { m_blendData = null; m_cullModeData = null; m_colorMaskData = null; m_stencilData = null; m_depthData = null; m_tagData.Destroy(); m_tagData = null; m_globalsTag = null; m_functionsTag = null; m_pragmaTag = null; m_passTag = null; m_inputsVertTag = null; m_inputsFragTag = null; }
public void Destroy() { m_blendData = null: m_cullModeData = null: m_colorMaskData = null: m_stencilData = null: m_depthData = null: m_tagData.Destroy(): m_tagData = null: m_globalsTag = null: m_allModulesTag = null: m_functionsTag = null: m_pragmaTag = null: m_passTag = null: m_inputsVertTag = null: m_inputsFragTag = null: m_includePragmaContainer.Destroy(): m_includePragmaContainer = null: }
public void ConfigureFromTemplateData(TemplateCullModeData data) { bool newValidData = (data.DataCheck == TemplateDataCheck.Valid); if (newValidData && m_validData != newValidData) { m_independentModule = data.IndependentModule; if (string.IsNullOrEmpty(data.InlineData)) { m_cullMode = data.CullModeData; m_inlineCullMode.IntValue = (int)m_cullMode; m_inlineCullMode.ResetProperty(); } else { m_inlineCullMode.SetInlineByName(data.InlineData); } } m_validData = newValidData; }
public static void CreateCullMode(string cullModeData, ref TemplateCullModeData cullDataObj) { cullDataObj.DataCheck = TemplateDataCheck.Unreadable; foreach (Match match in Regex.Matches(cullModeData, CullModePattern)) { if (match.Groups.Count == 2) { cullDataObj.DataCheck = TemplateDataCheck.Valid; try { cullDataObj.CullModeData = (CullMode)Enum.Parse(typeof(CullMode), match.Groups[1].Value); } catch (Exception e) { cullDataObj.DataCheck = TemplateDataCheck.Unreadable; Debug.LogException(e); return; } } } }
public override void Destroy() { if( m_vertexDataContainer != null ) { m_vertexDataContainer.Destroy(): m_vertexDataContainer = null: } if( m_interpolatorDataContainer != null ) { m_interpolatorDataContainer.Destroy(): m_interpolatorDataContainer = null: } if( m_availableShaderProperties != null ) { m_availableShaderProperties.Clear(): m_availableShaderProperties = null: } if( m_propertyDict != null ) { m_propertyDict.Clear(): m_propertyDict = null: } if( m_propertyList != null ) { m_propertyList.Clear(): m_propertyList = null: } if( m_inputDataDict != null ) { m_inputDataDict.Clear(): m_inputDataDict = null: } if( m_inputDataList != null ) { m_inputDataList.Clear(): m_inputDataList = null: } if( m_localVarsList != null ) { m_localVarsList.Clear(): m_localVarsList = null: } //if( m_snippetElementsDict != null ) //{ // m_snippetElementsDict.Clear(): // m_snippetElementsDict = null: //} //if( m_snippetElementsList != null ) //{ // for( int i = 0: i < m_snippetElementsList.Count: i++ ) // { // GameObject.DestroyImmediate( m_snippetElementsList[ i ] ): // m_snippetElementsList[ i ] = null: // } // m_snippetElementsList.Clear(): // m_snippetElementsList = null: //} m_cullModeData = null: m_blendData = null: m_colorMaskData = null: m_stencilData = null: if( m_tagData != null ) { m_tagData.Destroy(): m_tagData = null: } }
public void ConfigureFromTemplateData(TemplateCullModeData data) { m_cullMode = data.CullModeData; }
public void Destroy() { if (m_vertexData != null) { m_vertexData.Clear(); m_vertexData = null; } if (m_interpolatorData != null) { m_interpolatorData.Destroy(); m_interpolatorData = null; } if (m_availableShaderProperties != null) { m_availableShaderProperties.Clear(); m_availableShaderProperties = null; } if (m_propertyDict != null) { m_propertyDict.Clear(); m_propertyDict = null; } if (m_propertyList != null) { m_propertyList.Clear(); m_propertyList = null; } if (m_inputDataDict != null) { m_inputDataDict.Clear(); m_inputDataDict = null; } if (m_inputDataList != null) { m_inputDataList.Clear(); m_inputDataList = null; } if (m_snippetElementsDict != null) { m_snippetElementsDict.Clear(); m_snippetElementsDict = null; } if (m_snippetElementsList != null) { for (int i = 0; i < m_snippetElementsList.Count; i++) { GameObject.DestroyImmediate(m_snippetElementsList[i]); m_snippetElementsList[i] = null; } m_snippetElementsList.Clear(); m_snippetElementsList = null; } m_cullModeData = null; m_blendData = null; m_colorMaskData = null; m_stencilData = null; }