Back to class index
| BlendState::CreateSyntaxvoid BlendState::Create(bool enableAlphaBlending, BlendSource color1, BlendOperation colorOp, BlendSource color2, BlendSource alpha1, BlendOperation alphaOp, BlendSource alpha2, bool enableAlphaToCoverage);Recreates this state object to hold the given blending state. ParametersboolenableAlphaBlendingIf true, alpha blending is enabled. If false, all pixels are opaquely written onto the render target. BlendSourcecolor1Specifices the first operand in the blend equation for (r,g,b) color channels. BlendOperationcolorOpSpecifies the operation to use in the blend equation for (r,g,b) color channels. BlendSourcecolor2Specifies the second operand in the blend equation for (r,g,b) color channels. BlendSourcealpha1Specifies the first operand in the blend equation for the alpha (a) channel. BlendOperationalphaOpSpecifies the operation to use in the blend equation for the alpha (a) channel. BlendSourcealpha2Specifies the second operand in the blend equation for the alpha (a) channel. boolenableAlphaToCoverageIf true, alpha-to-coverage rendering is enabled when MSAA is active. This provides smoother antialiasing of the edges in alpha-tested geometry.
Leave a Comment |