Describes the blend state for one color attachment. 更多...
This struct was introduced in Qt 6.6.
QRhiGraphicsPipeline::ColorMask | colorWrite |
QRhiGraphicsPipeline::BlendFactor | dstAlpha |
QRhiGraphicsPipeline::BlendFactor | dstColor |
bool | enable |
QRhiGraphicsPipeline::BlendOp | opAlpha |
QRhiGraphicsPipeline::BlendOp | opColor |
QRhiGraphicsPipeline::BlendFactor | srcAlpha |
QRhiGraphicsPipeline::BlendFactor | srcColor |
Defaults to color write enabled, blending disabled. The blend values are set up for pre-multiplied alpha (One,
OneMinusSrcAlpha
, One,
OneMinusSrcAlpha
) by default. This means that to get the alpha blending mode Qt Quick uses, it is enough to set the
enable
flag to true while leaving other values at their defaults.
注意: This is a RHI API with limited compatibility guarantees, see QRhi 了解细节。