LiteFX 0.3.1.2022
Computer Graphics Engine
LiteFX::Rendering::IRenderTarget::BlendState Struct Reference

Describes the blend state of the render target. More...

#include <rendering_api.hpp>

Public Attributes

bool Enable { false }
 Specifies, if the target should be blended (default: false). More...
 
BlendFactor SourceColor { BlendFactor::One }
 The blend factor for the source color channels (default: BlendFactor::One). More...
 
BlendFactor DestinationColor { BlendFactor::Zero }
 The blend factor for the destination color channels (default: BlendFactor::Zero). More...
 
BlendFactor SourceAlpha { BlendFactor::One }
 The blend factor for the source alpha channel (default: BlendFactor::One). More...
 
BlendFactor DestinationAlpha { BlendFactor::Zero }
 The blend factor for the destination alpha channels (default: BlendFactor::Zero). More...
 
BlendOperation ColorOperation { BlendOperation::Add }
 The blend operation for the color channels (default: BlendOperation::Add). More...
 
BlendOperation AlphaOperation { BlendOperation::Add }
 The blend operation for the alpha channel (default: BlendOperation::Add). More...
 
WriteMask WriteMask { WriteMask::R | WriteMask::G | WriteMask::B | WriteMask::A }
 The channel write mask, determining which channels are written to (default: WriteMask::R | WriteMask::G | WriteMask::B | WriteMask::A). More...
 

Detailed Description

Describes the blend state of the render target.

Member Data Documentation

◆ AlphaOperation

BlendOperation LiteFX::Rendering::IRenderTarget::BlendState::AlphaOperation { BlendOperation::Add }

The blend operation for the alpha channel (default: BlendOperation::Add).

◆ ColorOperation

BlendOperation LiteFX::Rendering::IRenderTarget::BlendState::ColorOperation { BlendOperation::Add }

The blend operation for the color channels (default: BlendOperation::Add).

◆ DestinationAlpha

BlendFactor LiteFX::Rendering::IRenderTarget::BlendState::DestinationAlpha { BlendFactor::Zero }

The blend factor for the destination alpha channels (default: BlendFactor::Zero).

◆ DestinationColor

BlendFactor LiteFX::Rendering::IRenderTarget::BlendState::DestinationColor { BlendFactor::Zero }

The blend factor for the destination color channels (default: BlendFactor::Zero).

◆ Enable

bool LiteFX::Rendering::IRenderTarget::BlendState::Enable { false }

Specifies, if the target should be blended (default: false).

◆ SourceAlpha

BlendFactor LiteFX::Rendering::IRenderTarget::BlendState::SourceAlpha { BlendFactor::One }

The blend factor for the source alpha channel (default: BlendFactor::One).

◆ SourceColor

BlendFactor LiteFX::Rendering::IRenderTarget::BlendState::SourceColor { BlendFactor::One }

The blend factor for the source color channels (default: BlendFactor::One).

◆ WriteMask

WriteMask LiteFX::Rendering::IRenderTarget::BlendState::WriteMask { WriteMask::R | WriteMask::G | WriteMask::B | WriteMask::A }

The channel write mask, determining which channels are written to (default: WriteMask::R | WriteMask::G | WriteMask::B | WriteMask::A).