Diligent::RenderTargetBlendDesc struct

Describes a blend state for a single render target.

Contents

This structure is used by BlendStateDesc to describe blend states for render targets

Public functions

auto operator==(const RenderTargetBlendDesc& rhs) const -> bool
Comparison operator tests if two structures are equivalent.

Public variables

Bool BlendEnable
Enable or disable blending for this render target. Default value: False.
Bool LogicOperationEnable
Enable or disable a logical operation for this render target. Default value: False.
BLEND_FACTOR SrcBlend
Specifies the blend factor to apply to the RGB value output from the pixel shader Default value: Diligent::BLEND_FACTOR_ONE.
BLEND_FACTOR DestBlend
Specifies the blend factor to apply to the RGB value in the render target Default value: Diligent::BLEND_FACTOR_ZERO.
BLEND_OPERATION BlendOp
Defines how to combine the source and destination RGB values after applying the SrcBlend and DestBlend factors. Default value: Diligent::BLEND_OPERATION_ADD.
BLEND_FACTOR SrcBlendAlpha
Specifies the blend factor to apply to the alpha value output from the pixel shader. Blend factors that end in _COLOR are not allowed. Default value: Diligent::BLEND_FACTOR_ONE.
BLEND_FACTOR DestBlendAlpha
Specifies the blend factor to apply to the alpha value in the render target. Blend factors that end in _COLOR are not allowed. Default value: Diligent::BLEND_FACTOR_ZERO.
BLEND_OPERATION BlendOpAlpha
Defines how to combine the source and destination alpha values after applying the SrcBlendAlpha and DestBlendAlpha factors. Default value: Diligent::BLEND_OPERATION_ADD.
LOGIC_OPERATION LogicOp
Defines logical operation for the render target. Default value: Diligent::LOGIC_OP_NOOP.
Uint8 RenderTargetWriteMask
Render target write mask. Default value: Diligent::COLOR_MASK_ALL.

Function documentation

bool Diligent::RenderTargetBlendDesc::operator==(const RenderTargetBlendDesc& rhs) const

Comparison operator tests if two structures are equivalent.

Parameters
rhs in - reference to the structure to perform comparison with
Returns
  • True if all members of the two structures are equal.
  • False otherwise