このページでは

QRhiGraphicsPipeline::TargetBlend Struct

struct QRhiGraphicsPipeline::TargetBlend

1つのカラーアタッチメントのブレンド状態を記述します。詳細...

この構造体は 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

詳細な説明

デフォルトでは、カラー書き込みが有効、ブレンディングが無効になっています。ブレンディング値は、デフォルトでプリマルチプライドアルファ (One,OneMinusSrcAlpha, One,OneMinusSrcAlpha) 用に設定されています。つまり、Qt Quick が使用するアルファブレンディングモードを得るには、他の値をデフォルトのままにして、enable フラグを true に設定するだけで十分です。

注:これは 互換性の保証が限定的な RHI API です。詳細についてはQRhi を参照してください。

メンバ変数のドキュメント

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.