CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::GPUBlendTargetDescriptor Struct Referencefinal

Blend target state descriptor structure. More...

#include <CeresEngine/RenderAPI/GPUGraphicsPipeline.hpp>

Static Public Member Functions

template<typename Processor >
static constexpr void reflect (Processor &&RTTI)
 Executes the given processor for every field of the struct.
 

Public Attributes

bool blendEnabled = false
 Specifies whether blending is enabled or disabled for the respective color attachment.
 
GPUBlendOp srcColor = GPUBlendOp::SourceAlpha
 Source color blending operation. By default BlendOp::SourceAlpha.
 
GPUBlendOp dstColor = GPUBlendOp::InverseSourceAlpha
 Destination color blending operation.
 
GPUBlendArithmetic colorArithmetic = GPUBlendArithmetic::Add
 Color blending arithmetic. By default BlendArithmetic::Add.
 
GPUBlendOp srcAlpha = GPUBlendOp::SourceAlpha
 Source alpha blending operation. By default BlendOp::SourceAlpha.
 
GPUBlendOp dstAlpha = GPUBlendOp::InverseSourceAlpha
 Destination alpha blending operation.
 
GPUBlendArithmetic alphaArithmetic = GPUBlendArithmetic::Add
 Alpha blending arithmetic. By default BlendArithmetic::Add.
 
Vector4b colorMask = {true, true, true, true}
 Specifies which color components are enabled for writing.
 

Detailed Description

Blend target state descriptor structure.

Member Function Documentation

◆ reflect()

template<typename Processor >
static constexpr void CeresEngine::GPUBlendTargetDescriptor::reflect ( Processor &&  RTTI)
inlinestaticconstexpr

Executes the given processor for every field of the struct.

Parameters
RTTIThe processor to be ran for every field.

Member Data Documentation

◆ alphaArithmetic

GPUBlendArithmetic CeresEngine::GPUBlendTargetDescriptor::alphaArithmetic = GPUBlendArithmetic::Add

Alpha blending arithmetic. By default BlendArithmetic::Add.

◆ blendEnabled

bool CeresEngine::GPUBlendTargetDescriptor::blendEnabled = false

Specifies whether blending is enabled or disabled for the respective color attachment.

◆ colorArithmetic

GPUBlendArithmetic CeresEngine::GPUBlendTargetDescriptor::colorArithmetic = GPUBlendArithmetic::Add

Color blending arithmetic. By default BlendArithmetic::Add.

◆ colorMask

Vector4b CeresEngine::GPUBlendTargetDescriptor::colorMask = {true, true, true, true}

Specifies which color components are enabled for writing.

By default (true, true, true, true).

◆ dstAlpha

GPUBlendOp CeresEngine::GPUBlendTargetDescriptor::dstAlpha = GPUBlendOp::InverseSourceAlpha

Destination alpha blending operation.

By default BlendOp::InverseSourceAlpha.

◆ dstColor

GPUBlendOp CeresEngine::GPUBlendTargetDescriptor::dstColor = GPUBlendOp::InverseSourceAlpha

Destination color blending operation.

By default BlendOp::InverseSourceAlpha.

◆ srcAlpha

GPUBlendOp CeresEngine::GPUBlendTargetDescriptor::srcAlpha = GPUBlendOp::SourceAlpha

Source alpha blending operation. By default BlendOp::SourceAlpha.

◆ srcColor

GPUBlendOp CeresEngine::GPUBlendTargetDescriptor::srcColor = GPUBlendOp::SourceAlpha

Source color blending operation. By default BlendOp::SourceAlpha.


The documentation for this struct was generated from the following file: