QSSGRhiGraphicsPipelineState Class

Graphics pipeline state for the spatial scene graph. 更多...

头: #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.

成员类型文档编制

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 类型是 typedef 对于 QFlags <Flag>。它存储 Flag 值的 OR 组合。

成员变量文档编制

int QSSGRhiGraphicsPipelineState:: colorAttachmentCount

The number of color attachments. The default is 1.

另请参阅 QRhiTextureRenderTargetDescription::setColorAttachments () 和 QRhiTextureRenderTargetDescription::colorAttachmentCount ().

QRhiGraphicsPipeline::CullMode QSSGRhiGraphicsPipelineState:: cullMode

Specifies the culling mode.

另请参阅 QRhiGraphicsPipeline::CullMode .

int QSSGRhiGraphicsPipelineState:: depthBias

The depth bias. The default value is 0.

另请参阅 QRhiGraphicsPipeline::depthBias ().

QRhiGraphicsPipeline::CompareOp QSSGRhiGraphicsPipelineState:: depthFunc

The depth comparison function.

另请参阅 QRhiGraphicsPipeline::CompareOp .

float QSSGRhiGraphicsPipelineState:: lineWidth

The line width used. The default is 1.0

注意: For values other than 1.0 it's required that feature QRhi::WideLines is reported as supported at runtime.

QRhiGraphicsPipeline::PolygonMode QSSGRhiGraphicsPipelineState:: polygonMode

The polygon mode value. The default is Fill .

另请参阅 QRhiGraphicsPipeline::polygonMode ().

int QSSGRhiGraphicsPipelineState:: samples

The sample count.

注意: A sample count of 1 means no multisample antialiasing.

另请参阅 QRhiSwapChain::sampleCount ().

QRhiScissor QSSGRhiGraphicsPipelineState:: scissor

The scissor rect.

注意: Only used if UsesScissor is set.

另请参阅 QRhiCommandBuffer::setScissor ().

float QSSGRhiGraphicsPipelineState:: slopeScaledDepthBias

The slope scaled depth bias. The default value is 0.

另请参阅 QRhiGraphicsPipeline::slopeScaledDepthBias ().

QRhiGraphicsPipeline::StencilOpState QSSGRhiGraphicsPipelineState:: stencilOpFrontState

Describes the stencil operation state.

另请参阅 QRhiGraphicsPipeline::StencilOpState .

quint32 QSSGRhiGraphicsPipelineState:: stencilRef

The active stencil reference value.

注意: Only used when UsesStencilRef is set.

另请参阅 QRhiCommandBuffer::stencilRef().

quint32 QSSGRhiGraphicsPipelineState:: stencilWriteMask

The stencil write mask value. The default value is 0xFF .

另请参阅 QRhiGraphicsPipeline::stencilWriteMask ().

QRhiGraphicsPipeline::TargetBlend QSSGRhiGraphicsPipelineState:: targetBlend

The blend state for one color attachment.

另请参阅 QRhiGraphicsPipeline::TargetBlend .

QRhiViewport QSSGRhiGraphicsPipelineState:: viewport

The viewport dimensions used for rendering.