struct RenderTargetBlendStateInformation

Describes blend states for a single render target.

Public

Fields

BlendEnable

bool BlendEnable

Queries is blending enabled for the specified render target.

Blending allows you to combine the color from current and previous pixel based on some value.

ColorSourceFactor

BlendFactor ColorSourceFactor

Determines what should the source blend factor be.

This value determines what will the color being generated currently be multiplied by.

ColorDestinationFactor

BlendFactor ColorDestinationFactor

Determines what should the destination blend factor be.

This value determines what will the color already in render target be multiplied by.

ColorBlendOperation

BlendOperation ColorBlendOperation

Determines how are source and destination colors combined (after they are multiplied by their respective blend factors).

AlphaSourceFactor

BlendFactor AlphaSourceFactor

Determines what should the alpha source blend factor be.

This value determines what will the alpha value being generated currently be multiplied by.

AlphaDestinationFactor

BlendFactor AlphaDestinationFactor

Determines what should the alpha destination blend factor be.

This value determines what will the alpha value already in render target be multiplied by.

AlphaBlendOperation

BlendOperation AlphaBlendOperation

Determines how are source and destination alpha values combined (after they are multiplied by their respective blend factors).

RenderTargetWriteMask

u8 RenderTargetWriteMask

Render target write mask allows to choose which pixel components should the pixel shader output.

Only the first four bits are used. First bit representing red, second green, third blue and fourth alpha value. Set bits means pixel shader will output those channels.

Operators

operator==

bool operator==(const RenderTargetBlendStateInformation &rhs) const