Back to class index

Class BlendState

Summary

Describes how pixel shader output colors are merged to the existing pixels in the render target.

Member Reference

BlendStateDescribes how pixel shader output colors are merged to the existing pixels in the render target.
enableAlphaBlendingIf true, alpha blending is enabled. If false, all pixels are opaquely written onto the render target.
color1Specifices the first operand in the blend equation for (r,g,b) color channels.
colorOpSpecifies the operation to use in the blend equation for (r,g,b) color channels.
color2Specifies the second operand in the blend equation for (r,g,b) color channels.
alpha1Specifies the first operand in the blend equation for the alpha (a) channel.
alphaOpSpecifies the operation to use in the blend equation for the alpha (a) channel.
alpha2Specifies the second operand in the blend equation for the alpha (a) channel.
enableAlphaToCoverageIf true, alpha-to-coverage rendering is enabled when MSAA is active.
Graphics
ctor (+1 overload)Creates a null BlendState object.
~dtor
Create(...)Recreates this state object to hold the given blending state.
Deinit()Frees up all resources associated with this state object, and makes it null.
Back to class index