QRhiGraphicsPipeline::TargetBlend Struct
struct QRhiGraphicsPipeline::TargetBlendDécrit l'état du mélange pour une pièce jointe d'une couleur. 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 des couleurs est activée, le mélange est désactivé. Les valeurs de mélange sont configurées pour un alpha pré-multiplié (Un, OneMinusSrcAlpha, Un, OneMinusSrcAlpha) par défaut. Cela signifie que pour obtenir le mode de mélange alpha utilisé par Qt Quick, il suffit de mettre l'indicateur enable à true tout en laissant les autres valeurs à leur valeur par défaut.
Remarque : il s'agit d'une API RHI avec des garanties de compatibilité limitées, 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.