Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::RenderTargetBlendDesc Struct Reference

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
 

Detailed Description

Describes a blend state for a single render target.

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

Member Function Documentation

◆ operator==()

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

Comparison operator tests if two structures are equivalent.

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

Member Data Documentation

◆ BlendOp

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.

◆ BlendOpAlpha

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.

◆ DestBlend

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.

◆ DestBlendAlpha

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.

◆ LogicOp

LOGIC_OPERATION Diligent::RenderTargetBlendDesc::LogicOp = LOGIC_OP_NOOP

Defines logical operation for the render target. Default value: Diligent::LOGIC_OP_NOOP.

◆ RenderTargetWriteMask

COLOR_MASK Diligent::RenderTargetBlendDesc::RenderTargetWriteMask = COLOR_MASK_ALL

Render target write mask. Default value: Diligent::COLOR_MASK_ALL.

◆ SrcBlend

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.

◆ SrcBlendAlpha

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.