Render Target Alpha


The frame buffer blender can now blend alpha channels independently of color-channel blending on render targets. This control is enabled with a new render state, RenderStateManager.SeparateAlphaBlendEnabled.

When RenderStateManager.SeparateAlphaBlendEnabled is set to false (which is the default condition), the render-target blending factors and operations applied to alpha are the same as those defined for blending color channels. A driver needs to set the MiscCaps.SupportsSeparateAlphaBlend cap to indicate that it can support render-target alpha blending. Be sure to set RenderStateManager.AlphaBlendEnable to tell the pipeline that alpha blending is needed.

To control the factors in the alpha channel of the render-target blenders, the following new render states are defined.

Like RenderStateManager.SourceBlend and RenderStateManager.DestinationBlend, these states can be set to one of the values in the Blend enumeration. The source and destination blend settings can be combined in several ways, depending on the settings of the BlendCaps object set in Caps.DestinationBlendCaps and Caps.SourceBlendCaps.

The alpha blending is done as follows:

renderTargetAlpha = (alphain* srcBlendOp) BlendOp (alphart* destBlendOp)

Where:


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center