![]() |
LLGL 0.05 Beta
|
Blending state descriptor structure. More...
#include <PipelineStateFlags.h>
Public Attributes | |
| bool | alphaToCoverageEnabled = false |
| Specifies whether to use alpha-to-coverage as a multi-sampling technique when setting a pixel to a render target. By default disabled. | |
| bool | independentBlendEnabled = false |
| Specifies whether to enable independent blending in simultaneous color attachments. By default false. | |
| bool | blendFactorDynamic = false |
| Specifies whether the blend factor will be set dynamically with the command buffer. By default false. | |
| std::uint32_t | sampleMask = ~0u |
Specifies the sample bitmask if alpha coverage is enabled. By default 0xFFFFFFFF. | |
| LogicOp | logicOp = LogicOp::Disabled |
| Specifies the logic fragment operation. By default LogicOp::Disabled. | |
| float | blendFactor [4] = { 0.0f, 0.0f, 0.0f, 0.0f } |
| Specifies the blending color factor. By default (0, 0, 0, 0). | |
| BlendTargetDescriptor | targets [LLGL_MAX_NUM_COLOR_ATTACHMENTS] |
| Render-target blend states for the respective color attachments. A maximum of 8 targets is supported. | |
Blending state descriptor structure.
| bool LLGL::BlendDescriptor::alphaToCoverageEnabled = false |
Specifies whether to use alpha-to-coverage as a multi-sampling technique when setting a pixel to a render target. By default disabled.
| float LLGL::BlendDescriptor::blendFactor[4] = { 0.0f, 0.0f, 0.0f, 0.0f } |
Specifies the blending color factor. By default (0, 0, 0, 0).
blendFactorDynamic is set to true, this member is ignored. | bool LLGL::BlendDescriptor::blendFactorDynamic = false |
Specifies whether the blend factor will be set dynamically with the command buffer. By default false.
blendFactor is ignored and the blending factors must be set with the SetBlendFactor function everytime the graphics pipeline is set. | bool LLGL::BlendDescriptor::independentBlendEnabled = false |
Specifies whether to enable independent blending in simultaneous color attachments. By default false.
targets array. Otherwise, each color attachment uses the blending configuration described only by the first entry of the targets array, i.e. targets[0] and all remaining entries targets[1..7] are ignored. | LogicOp LLGL::BlendDescriptor::logicOp = LogicOp::Disabled |
Specifies the logic fragment operation. By default LogicOp::Disabled.
independentBlendEnabled must be false and blendEnabled of the first target must be false as well. If logic fragment operations are not supported by the renderer, this must be LogicOp::Disabled. | std::uint32_t LLGL::BlendDescriptor::sampleMask = ~0u |
Specifies the sample bitmask if alpha coverage is enabled. By default 0xFFFFFFFF.
alphaToCoverageEnabled is false, this field is ignored. | BlendTargetDescriptor LLGL::BlendDescriptor::targets[LLGL_MAX_NUM_COLOR_ATTACHMENTS] |
Render-target blend states for the respective color attachments. A maximum of 8 targets is supported.
independentBlendEnabled is set to false, only the first entry is used, i.e. targets[0] and all remaining entries targets[1..7] are ignored.