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

Blend state description. More...

#include <BlendState.h>

Public Member Functions

constexpr bool operator== (const BlendStateDesc &RHS) const
 Comparison operator tests if two structures are equivalent.
 

Public Attributes

Bool AlphaToCoverageEnable = False
 
Bool IndependentBlendEnable = False
 
RenderTargetBlendDesc RenderTargets [DILIGENT_MAX_RENDER_TARGETS]
 

Detailed Description

Blend state description.

This structure describes the blend state and is part of the GraphicsPipelineDesc.

Member Function Documentation

◆ operator==()

bool Diligent::BlendStateDesc::operator== ( const BlendStateDesc & 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 are of the two structures equal.
  • False otherwise.
Note
The operator performs bitwise comparison of the two structures. That is if for instance both structures have IndependentBlendEnable set to False, but differ in render target other than 0, the operator will return False even though the two blend states created from these structures will be identical.

Member Data Documentation

◆ AlphaToCoverageEnable

Bool Diligent::BlendStateDesc::AlphaToCoverageEnable = False

Specifies whether to use alpha-to-coverage as a multisampling technique when setting a pixel to a render target. Default value: False.

◆ IndependentBlendEnable

Bool Diligent::BlendStateDesc::IndependentBlendEnable = False

Specifies whether to enable independent blending in simultaneous render targets. If set to False, only RenderTargets[0] is used. Default value: False.

◆ RenderTargets

RenderTargetBlendDesc Diligent::BlendStateDesc::RenderTargets[DILIGENT_MAX_RENDER_TARGETS]

An array of RenderTargetBlendDesc structures that describe the blend states for render targets