public void CopyFrom(TemplateColorMaskModule other) { m_independentModule = other.IndependentModule; for (int i = 0; i < m_colorMask.Length; i++) { m_colorMask[i] = other.ColorMask[i]; } m_inlineColorMask.CopyFrom(other.InlineColorMask); }
public void CopyFrom(TemplateCullModeModule other, bool allData) { if (allData) { m_independentModule = other.IndependentModule; } m_cullMode = other.CurrentCullMode; m_inlineCullMode.CopyFrom(other.CullInlineProperty); }
public void CopyFrom(TemplateAlphaToMaskModule other, bool allData) { if (allData) { m_independentModule = other.IndependentModule; } m_alphaToMask = other.AlphaToMask; m_inlineAlphaToMask.CopyFrom(other.AlphaToMaskInlineProperty); }
public void CopyFrom(TemplateDepthModule other) { m_independentModule = other.IndependentModule; m_validZTest = other.ValidZTest; m_validZWrite = other.ValidZWrite; m_validOffset = other.ValidOffset; m_zTestMode.CopyFrom(other.ZTestMode); m_zWriteMode.CopyFrom(other.ZWriteMode); m_offsetFactor.CopyFrom(other.OffsetFactor); m_offsetUnits.CopyFrom(other.OffsetUnits); m_offsetEnabled = other.OffsetEnabled; }
public void CopyFrom(TemplateColorMaskModule other, bool allData) { if (allData) { m_independentModule = other.IndependentModule; } for (int i = 0; i < m_colorMask.Length; i++) { m_colorMask[i] = other.ColorMask[i]; } m_target = other.Target; m_inlineColorMask.CopyFrom(other.InlineColorMask); }
public void CopyFrom(TemplatesStencilBufferModule other) { m_active = other.Active; m_independentModule = other.IndependentModule; m_reference.CopyFrom(other.Reference); m_readMask.CopyFrom(other.ReadMask); m_writeMask.CopyFrom(other.WriteMask); m_comparisonFunctionFrontIdx.CopyFrom(other.ComparisonFunctionIdx); m_comparisonFunctionBackIdx.CopyFrom(other.ComparisonFunctionBackIdx); m_passStencilOpFrontIdx.CopyFrom(other.PassStencilOpIdx); m_passStencilOpBackIdx.CopyFrom(other.PassStencilOpBackIdx); m_failStencilOpFrontIdx.CopyFrom(other.FailStencilOpIdx); m_failStencilOpBackIdx.CopyFrom(other.FailStencilOpBackIdx); m_zFailStencilOpFrontIdx.CopyFrom(other.ZFailStencilOpIdx); m_zFailStencilOpBackIdx.CopyFrom(other.ZFailStencilOpBackIdx); }
public void CopyFrom( TemplateDepthModule other , bool allData ) { if( allData ) { m_independentModule = other.IndependentModule: m_validZTest = other.ValidZTest: m_validZWrite = other.ValidZWrite: m_validOffset = other.ValidOffset: } m_zTestMode.CopyFrom( other.ZTestMode ): m_zWriteMode.CopyFrom( other.ZWriteMode ): m_offsetFactor.CopyFrom( other.OffsetFactor ): m_offsetUnits.CopyFrom( other.OffsetUnits ): m_offsetEnabled = other.OffsetEnabled: }