Graphics pipeline state for the spatial scene graph. More...
| Header: | #include <QSSGRhiGraphicsPipelineState> |
| 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 |
| QRhiGraphicsPipeline::TargetBlend | targetBlend |
| QRhiViewport | viewport |
This class is a convenience class used by QtQuick3D to wrap relevant pipeline state from the QRhi classes, like QRhiGraphicsPipeline. Most of the types and value used in QSSGRhiGraphicsPipelineState will therefore map directly to an equivalent QRhi type or class.
| Constant | Value |
|---|---|
QSSGRhiGraphicsPipelineState::Flag::DepthTestEnabled |
0x1 |
QSSGRhiGraphicsPipelineState::Flag::DepthWriteEnabled |
0x2 |
QSSGRhiGraphicsPipelineState::Flag::BlendEnabled |
0x4 |
QSSGRhiGraphicsPipelineState::Flag::UsesStencilRef |
0x8 |
QSSGRhiGraphicsPipelineState::Flag::UsesScissor |
0x10 |
The Flags type is a typedef for QFlags<Flag>. It stores an OR combination of Flag values.
The number of color attachments. The default is 1.
See also QRhiTextureRenderTargetDescription::setColorAttachments() and QRhiTextureRenderTargetDescription::colorAttachmentCount().
Specifies the culling mode.
See also QRhiGraphicsPipeline::CullMode.
The depth bias. The default value is 0.
See also QRhiGraphicsPipeline::depthBias().
The depth comparison function.
See also QRhiGraphicsPipeline::CompareOp.
The line width used. The default is 1.0
Note: For values other than 1.0 it's required that feature QRhi::WideLines is reported as supported at runtime.
The polygon mode value. The default is Fill.
See also QRhiGraphicsPipeline::polygonMode().
The sample count.
Note: A sample count of 1 means no multisample antialiasing.
See also QRhiSwapChain::sampleCount().
The scissor rect.
Note: Only used if UsesScissor is set.
See also QRhiCommandBuffer::setScissor().
The slope scaled depth bias. The default value is 0.
See also QRhiGraphicsPipeline::slopeScaledDepthBias().
Describes the stencil operation state.
See also QRhiGraphicsPipeline::StencilOpState.
The active stencil reference value.
Note: Only used when UsesStencilRef is set.
See also QRhiCommandBuffer::setStencilRef().
The stencil write mask value. The default value is 0xFF.
See also QRhiGraphicsPipeline::stencilWriteMask().
The blend state for one color attachment.
See also QRhiGraphicsPipeline::TargetBlend.
The viewport dimensions used for rendering.