RenderTargetBlendDesc struct
Describes a blend state for a single render target.
Contents
- Reference
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 |
|