LLGL 0.05 Beta
Loading...
Searching...
No Matches
LLGL::BlendTargetDescriptor Struct Reference

Blend target state descriptor structure. More...

#include <PipelineStateFlags.h>

Public Attributes

bool blendEnabled = false
 Specifies whether blending is enabled or disabled for the respective color attachment.
std::uint8_t colorMask = LLGL::ColorMaskFlags::All
 Specifies which color components are enabled for writing. By default LLGL::ColorMaskFlags::All to enable all components.
BlendOp srcColor = BlendOp::SrcAlpha
 Source color blending operation. By default BlendOp::SrcAlpha.
BlendOp dstColor = BlendOp::InvSrcAlpha
 Destination color blending operation. By default BlendOp::InvSrcAlpha.
BlendArithmetic colorArithmetic = BlendArithmetic::Add
 Color blending arithmetic. By default BlendArithmetic::Add.
BlendOp srcAlpha = BlendOp::SrcAlpha
 Source alpha blending operation. By default BlendOp::SrcAlpha.
BlendOp dstAlpha = BlendOp::InvSrcAlpha
 Destination alpha blending operation. By default BlendOp::InvSrcAlpha.
BlendArithmetic alphaArithmetic = BlendArithmetic::Add
 Alpha blending arithmetic. By default BlendArithmetic::Add.

Detailed Description

Blend target state descriptor structure.

See also
BlendDescriptor::targets

Member Data Documentation

◆ alphaArithmetic

BlendArithmetic LLGL::BlendTargetDescriptor::alphaArithmetic = BlendArithmetic::Add

Alpha blending arithmetic. By default BlendArithmetic::Add.

◆ blendEnabled

bool LLGL::BlendTargetDescriptor::blendEnabled = false

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

◆ colorArithmetic

BlendArithmetic LLGL::BlendTargetDescriptor::colorArithmetic = BlendArithmetic::Add

Color blending arithmetic. By default BlendArithmetic::Add.

◆ colorMask

std::uint8_t LLGL::BlendTargetDescriptor::colorMask = LLGL::ColorMaskFlags::All

Specifies which color components are enabled for writing. By default LLGL::ColorMaskFlags::All to enable all components.

Remarks
If no pixel shader is used in the graphics pipeline, the color mask must be set to LLGL::ColorMaskFlags::Zero (or 0) to disable rasterizer output. Otherwise, the behavior is undefined.

◆ dstAlpha

BlendOp LLGL::BlendTargetDescriptor::dstAlpha = BlendOp::InvSrcAlpha

Destination alpha blending operation. By default BlendOp::InvSrcAlpha.

Remarks
The destination alpha channel must not have a color-only blend operation.

◆ dstColor

BlendOp LLGL::BlendTargetDescriptor::dstColor = BlendOp::InvSrcAlpha

Destination color blending operation. By default BlendOp::InvSrcAlpha.

◆ srcAlpha

BlendOp LLGL::BlendTargetDescriptor::srcAlpha = BlendOp::SrcAlpha

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

Remarks
The source alpha channel must not have a color-only blend operation.

◆ srcColor

BlendOp LLGL::BlendTargetDescriptor::srcColor = BlendOp::SrcAlpha

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


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