private BlendOption GetBlendOption(PreBlend value) { switch (value) { case PreBlend.Zero: return(BlendOption.Zero); case PreBlend.One: return(BlendOption.One); case PreBlend.SourceColor: return(BlendOption.SourceColor); case PreBlend.InverseSourceColor: return(BlendOption.InverseSourceColor); case PreBlend.SourceAlpha: return(BlendOption.SourceAlpha); case PreBlend.InverseSourceAlpha: return(BlendOption.InverseSourceAlpha); case PreBlend.DestinationAlpha: return(BlendOption.DestinationAlpha); case PreBlend.InverseDestinationAlpha: return(BlendOption.InverseDestinationAlpha); case PreBlend.DestinationColor: return(BlendOption.DestinationColor); case PreBlend.InverseDestinationColor: return(BlendOption.InverseDestinationColor); case PreBlend.SourceAlphaSaturate: return(BlendOption.SourceAlphaSaturate); case PreBlend.BlendFactor: return(BlendOption.BlendFactor); case PreBlend.InverseBlendFactor: return(BlendOption.InverseBlendFactor); case PreBlend.SecondarySourceColor: return(BlendOption.SecondarySourceColor); case PreBlend.InverseSecondarySourceColor: return(BlendOption.InverseSecondarySourceColor); case PreBlend.SecondarySourceAlpha: return(BlendOption.SecondarySourceAlpha); case PreBlend.InverseSecondarySourceAlpha: return(BlendOption.InverseSecondarySourceAlpha); } throw new NotSupportedException("The specified blend value is not supported"); }
private BlendOption GetBlendOption(PreBlend value) { switch(value) { case PreBlend.Zero: return BlendOption.Zero; case PreBlend.One: return BlendOption.One; case PreBlend.SourceColor: return BlendOption.SourceColor; case PreBlend.InverseSourceColor: return BlendOption.InverseSourceColor; case PreBlend.SourceAlpha: return BlendOption.SourceAlpha; case PreBlend.InverseSourceAlpha: return BlendOption.InverseSourceAlpha; case PreBlend.DestinationAlpha: return BlendOption.DestinationAlpha; case PreBlend.InverseDestinationAlpha: return BlendOption.InverseDestinationAlpha; case PreBlend.DestinationColor: return BlendOption.DestinationColor; case PreBlend.InverseDestinationColor: return BlendOption.InverseDestinationColor; case PreBlend.SourceAlphaSaturate: return BlendOption.SourceAlphaSaturate; case PreBlend.BlendFactor: return BlendOption.BlendFactor; case PreBlend.InverseBlendFactor: return BlendOption.InverseBlendFactor; case PreBlend.SecondarySourceColor: return BlendOption.SecondarySourceColor; case PreBlend.InverseSecondarySourceColor: return BlendOption.InverseSecondarySourceColor; case PreBlend.SecondarySourceAlpha: return BlendOption.SecondarySourceAlpha; case PreBlend.InverseSecondarySourceAlpha: return BlendOption.InverseSecondarySourceAlpha; } throw new NotSupportedException("The specified blend value is not supported"); }