QRhiGraphicsPipeline::TargetBlend Struct
struct QRhiGraphicsPipeline::TargetBlendDécrit le mode de fusion pour un élément de couleur. En savoir plus...
Cette structure a été introduite dans Qt 6.6.
Variables publiques
| QRhiGraphicsPipeline::ColorMask | colorWrite |
| QRhiGraphicsPipeline::BlendFactor | dstAlpha |
| QRhiGraphicsPipeline::BlendFactor | dstColor |
| bool | enable |
| QRhiGraphicsPipeline::BlendOp | opAlpha |
| QRhiGraphicsPipeline::BlendOp | opColor |
| QRhiGraphicsPipeline::BlendFactor | srcAlpha |
| QRhiGraphicsPipeline::BlendFactor | srcColor |
Description détaillée
Par défaut, l'écriture de couleur est activée et la fusion est désactivée. Les valeurs de fusion sont configurées par défaut pour l'alpha pré-multiplié (One, OneMinusSrcAlpha, One, OneMinusSrcAlpha). Cela signifie que pour obtenir le mode de fusion alpha utilisé par Qt Quick, il suffit de définir le drapeau enable sur true tout en laissant les autres valeurs à leurs valeurs par défaut.
Remarque : il s’agit d’une API RHI dont la compatibilité n’est pas entièrement garantie ; voir QRhi pour plus de détails.
Documentation sur les variables membres
QRhiGraphicsPipeline::ColorMask TargetBlend::colorWrite
QRhiGraphicsPipeline::BlendFactor TargetBlend::dstAlpha
QRhiGraphicsPipeline::BlendFactor TargetBlend::dstColor
bool TargetBlend::enable
QRhiGraphicsPipeline::BlendOp TargetBlend::opAlpha
QRhiGraphicsPipeline::BlendOp TargetBlend::opColor
QRhiGraphicsPipeline::BlendFactor TargetBlend::srcAlpha
QRhiGraphicsPipeline::BlendFactor TargetBlend::srcColor
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.