QSSGRhiGraphicsPipelineState Class
空間シーングラフのグラフィックスパイプラインの状態。詳細...
| Header: | #include <qssgrhicontext.h> |
| Since: | Qt 6.7 |
パブリック型
| enum class | Flag { DepthTestEnabled, DepthWriteEnabled, BlendEnabled, UsesStencilRef, UsesScissor } |
| flags | Flags |
パブリック変数
| int | colorAttachmentCount |
| QRhiGraphicsPipeline::CullMode | cullMode |
| int | depthBias |
| QRhiGraphicsPipeline::CompareOp | depthFunc |
| float | lineWidth |
| QRhiGraphicsPipeline::PolygonMode | polygonMode |
| int | samples |
| QRhiScissor | scissor |
| float | slopeScaledDepthBias |
| QRhiGraphicsPipeline::StencilOpState | stencilOpFrontState |
| quint32 | stencilRef |
| quint32 | stencilWriteMask |
| std::array<QRhiGraphicsPipeline::TargetBlend, 8> | targetBlend |
| QRhiViewport | viewport |
詳細な説明
このクラスは、QtQuick3D が、QRhiGraphicsPipeline などのQRhi クラスから関連するパイプライン状態をラップするために使用する利便性クラスです。したがって、QSSGRhiGraphicsPipelineState で使用される型や値のほとんどは、同等のQRhi の型またはクラスに直接対応します。
メンバ型のドキュメント
enum class QSSGRhiGraphicsPipelineState::Flag
flags QSSGRhiGraphicsPipelineState::Flags
| 定数 | 定数 |
|---|---|
QSSGRhiGraphicsPipelineState::Flag::DepthTestEnabled | 0x1 |
QSSGRhiGraphicsPipelineState::Flag::DepthWriteEnabled | 0x2 |
QSSGRhiGraphicsPipelineState::Flag::BlendEnabled | 0x4 |
QSSGRhiGraphicsPipelineState::Flag::UsesStencilRef | 0x8 |
QSSGRhiGraphicsPipelineState::Flag::UsesScissor | 0x10 |
Flags 型は、QFlags<Flag> の typedef です。Flag 値の OR 結合を格納します。
メンバ変数のドキュメント
int QSSGRhiGraphicsPipelineState::colorAttachmentCount
カラーアタッチメントの数。デフォルトは 1 です。
QRhiTextureRenderTargetDescription::setColorAttachments() およびQRhiTextureRenderTargetDescription::colorAttachmentCount()も参照してください 。
QRhiGraphicsPipeline::CullMode QSSGRhiGraphicsPipelineState::cullMode
カリングモードを指定します。
QRhiGraphicsPipeline::CullModeも参照してください 。
int QSSGRhiGraphicsPipelineState::depthBias
深度バイアス。デフォルト値は 0 です。
QRhiGraphicsPipeline::depthBias()も参照してください 。
QRhiGraphicsPipeline::CompareOp QSSGRhiGraphicsPipelineState::depthFunc
深度比較関数。
QRhiGraphicsPipeline::CompareOpも参照してください 。
float QSSGRhiGraphicsPipelineState::lineWidth
使用する線幅。デフォルトは 1.0 です
注: 1.0 以外の値を設定する場合 、実行時に機能「QRhi::WideLines 」がサポートされていることが報告されている必要があります。
QRhiGraphicsPipeline::PolygonMode QSSGRhiGraphicsPipelineState::polygonMode
ポリゴンモードの値。デフォルトはFill です。
QRhiGraphicsPipeline::polygonMode()も参照してください 。
int QSSGRhiGraphicsPipelineState::samples
サンプル数。
注:サンプル数が 1 の場合、マルチサンプルアンチエイリアシングは行われません。
QRhiSwapChain::sampleCount()も参照してください 。
QRhiScissor QSSGRhiGraphicsPipelineState::scissor
シザー矩形。
注: UsesScissor が設定されている場合にのみ 使用されます。
「QRhiCommandBuffer::setScissor()」も参照してください 。
float QSSGRhiGraphicsPipelineState::slopeScaledDepthBias
勾配スケーリングによる深度バイアス。デフォルト値は 0 です。
QRhiGraphicsPipeline::slopeScaledDepthBias()も参照してください 。
QRhiGraphicsPipeline::StencilOpState QSSGRhiGraphicsPipelineState::stencilOpFrontState
ステンシルの動作状態について説明します。
QRhiGraphicsPipeline::StencilOpStateも参照してください 。
quint32 QSSGRhiGraphicsPipelineState::stencilRef
アクティブなステンシルの基準値。
注: `UsesStencilRef ` が設定されている場合にのみ 使用されます。
「QRhiCommandBuffer::setStencilRef()」も参照してください 。
quint32 QSSGRhiGraphicsPipelineState::stencilWriteMask
ステンシル書き込みマスクの値。デフォルト値は0xFF です。
QRhiGraphicsPipeline::stencilWriteMask()も参照してください 。
std::array<QRhiGraphicsPipeline::TargetBlend, 8> QSSGRhiGraphicsPipelineState::targetBlend
1つのカラーアタッチメントのブレンド状態。
QRhiGraphicsPipeline::TargetBlendも参照してください 。
QRhiViewport QSSGRhiGraphicsPipelineState::viewport
レンダリングに使用されるビューポートの寸法。
© 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.