TargetBlend Struct
struct QRhiGraphicsPipeline::TargetBlendDescribes the blend state for one color attachment. More...
Public Variables
ColorMask | colorWrite |
BlendFactor | dstAlpha |
BlendFactor | dstColor |
bool | enable |
BlendOp | opAlpha |
BlendOp | opColor |
BlendFactor | srcAlpha |
BlendFactor | srcColor |
Detailed Description
\inmodule
QtGui \since
6.6
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.
Note: This is a RHI API with limited compatibility guarantees, see QRhi for details.