Blend state used in a ShaderPipelineOptions.
More...
#include <GREM/graphics/shaders.hpp>
|
| constexpr bool | operator== (const BlendState &other) const noexcept=default |
| | Compare this blend state to another for equality.
|
◆ operator==()
| bool grem::graphics::BlendState::operator== |
( |
const BlendState & | other | ) |
const |
|
nodiscardconstexprdefaultnoexcept |
Compare this blend state to another for equality.
- Parameters
-
| other | the blend state to compare this one to. |
- Returns
- true if the blend states are equal, false otherwise.
◆ ALPHA_BLENDING_STRAIGHT
| BlendState grem::graphics::BlendState::ALPHA_BLENDING_STRAIGHT |
|
inlinestaticconstexpr |
Initial value:{
}
@ SOURCE_ALPHA
Multiply all components by the source alpha.
Definition shaders.hpp:360
@ ONE_MINUS_SOURCE_ALPHA
Multiply all components by 1 minus the source alpha.
Definition shaders.hpp:361
@ ONE
Multiply all components by 1.
Definition shaders.hpp:355
Blend state to use for straight alpha blending using the standard "over" operator.
◆ ALPHA_BLENDING_PREMULTIPLIED
| BlendState grem::graphics::BlendState::ALPHA_BLENDING_PREMULTIPLIED |
|
inlinestaticconstexpr |
Initial value:
Blend state to use for pre-multiplied alpha blending using the standard "over" operator.
◆ sourceColorBlendFactor
Blend factor of the source color.
◆ destinationColorBlendFactor
Blend factor of the destination color.
◆ colorBlendOperation
◆ sourceAlphaBlendFactor
Blend factor of the source alpha.
◆ destinationAlphaBlendFactor
Blend factor of the destination alpha.
◆ alphaBlendOperation
◆ blendConstants
The documentation for this struct was generated from the following file: