Expand description
Configures how the color output of the fragment shader is written to the attachment.
Blending in details
There are three kinds of color attachments for the purpose of blending:
- Attachments with a floating-point or fixed point format.
- Attachments with a (non-normalized) integer format.
- Attachments with a normalized integer format.
For floating-point and fixed-point formats, the blending operation is applied. For integer formats, the logic operation is applied. For normalized integer formats, the logic operation will take precedence if it is activated, otherwise the blending operation is applied.
Structs
Describes how the blending system should behave for an attachment.
Describes how a framebuffer color attachment is handled in the pipeline during the color
blend stage.
Describes how the color output of the fragment shader is written to the attachment. See the
documentation of the
blend
module for more info.A mask specifying color components that can be written to a framebuffer attachment.
Enums
The operation that takes
source
(output from the fragment shader), destination
(value
currently in the framebuffer attachment) and blend_constant
input values,
and produces new inputs to be fed to BlendOp
.The arithmetic operation that is applied between the
source
and destination
component
values, after the appropriate BlendFactor
is applied to both.Which logical operation to apply to the output values.