Describes a blend state for a single render target. More...
#include <BlendState.h>
Public Member Functions | |
| constexpr bool | operator== (const RenderTargetBlendDesc &rhs) const |
| Comparison operator tests if two structures are equivalent. | |
Public Attributes | |
| Bool | BlendEnable = False |
| Enable or disable blending for this render target. Default value: False. | |
| Bool | LogicOperationEnable = False |
| Enable or disable a logical operation for this render target. Default value: False. | |
| BLEND_FACTOR | SrcBlend = BLEND_FACTOR_ONE |
| BLEND_FACTOR | DestBlend = BLEND_FACTOR_ZERO |
| BLEND_OPERATION | BlendOp = BLEND_OPERATION_ADD |
| BLEND_FACTOR | SrcBlendAlpha = BLEND_FACTOR_ONE |
| BLEND_FACTOR | DestBlendAlpha = BLEND_FACTOR_ZERO |
| BLEND_OPERATION | BlendOpAlpha = BLEND_OPERATION_ADD |
| LOGIC_OPERATION | LogicOp = LOGIC_OP_NOOP |
| COLOR_MASK | RenderTargetWriteMask = COLOR_MASK_ALL |
Describes a blend state for a single render target.
This structure is used by BlendStateDesc to describe blend states for render targets
|
inlineconstexpr |
Comparison operator tests if two structures are equivalent.
| [in] | rhs | - reference to the structure to perform comparison with |
| BLEND_OPERATION Diligent::RenderTargetBlendDesc::BlendOp = BLEND_OPERATION_ADD |
Defines how to combine the source and destination RGB values after applying the SrcBlend and DestBlend factors. Default value: Diligent::BLEND_OPERATION_ADD.
| BLEND_OPERATION Diligent::RenderTargetBlendDesc::BlendOpAlpha = BLEND_OPERATION_ADD |
Defines how to combine the source and destination alpha values after applying the SrcBlendAlpha and DestBlendAlpha factors. Default value: Diligent::BLEND_OPERATION_ADD.
| BLEND_FACTOR Diligent::RenderTargetBlendDesc::DestBlend = BLEND_FACTOR_ZERO |
Specifies the blend factor to apply to the RGB value in the render target Default value: Diligent::BLEND_FACTOR_ZERO.
| BLEND_FACTOR Diligent::RenderTargetBlendDesc::DestBlendAlpha = BLEND_FACTOR_ZERO |
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.
| LOGIC_OPERATION Diligent::RenderTargetBlendDesc::LogicOp = LOGIC_OP_NOOP |
Defines logical operation for the render target. Default value: Diligent::LOGIC_OP_NOOP.
| COLOR_MASK Diligent::RenderTargetBlendDesc::RenderTargetWriteMask = COLOR_MASK_ALL |
Render target write mask. Default value: Diligent::COLOR_MASK_ALL.
| BLEND_FACTOR Diligent::RenderTargetBlendDesc::SrcBlend = BLEND_FACTOR_ONE |
Specifies the blend factor to apply to the RGB value output from the pixel shader Default value: Diligent::BLEND_FACTOR_ONE.
| BLEND_FACTOR Diligent::RenderTargetBlendDesc::SrcBlendAlpha = BLEND_FACTOR_ONE |
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.