Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QSSGRhiGraphicsPipelineState Class Reference

\inmodule QtQuick3D More...

#include <qssgrhicontext.h>

+ Collaboration diagram for QSSGRhiGraphicsPipelineState:

Public Types

enum class  Flag : quint32 {
  DepthTestEnabled = 0x1 , DepthWriteEnabled = 0x2 , BlendEnabled = 0x4 , UsesStencilRef = 0x8 ,
  UsesScissor = 0x10
}
 \variable QSSGRhiGraphicsPipelineState::samples More...
 

Public Attributes

QRhiGraphicsPipeline::CompareOp depthFunc = QRhiGraphicsPipeline::LessOrEqual
 
QRhiGraphicsPipeline::CullMode cullMode = QRhiGraphicsPipeline::None
 
QRhiGraphicsPipeline::TargetBlend targetBlend
 
QRhiGraphicsPipeline::PolygonMode polygonMode = QRhiGraphicsPipeline::Fill
 
QRhiGraphicsPipeline::StencilOpState stencilOpFrontState {}
 
quint32 stencilWriteMask = 0xFF
 
quint32 stencilRef = 0
 
int depthBias = 0
 
int samples = 1
 
int colorAttachmentCount = 1
 
int viewCount = 1
 
float slopeScaledDepthBias = 0.0f
 
float lineWidth = 1.0f
 
Flags flags
 
QRhiViewport viewport
 
QRhiScissor scissor
 

Friends

struct QSSGRhiGraphicsPipelineStatePrivate
 
struct QSSGRhiInputAssemblerStatePrivate
 

Detailed Description

\inmodule QtQuick3D

Since
6.7

Graphics pipeline state for the spatial scene graph.

This class is a convenience class used by QtQuick3D to wrap relevant pipeline state from the QRhi classes, like \l QRhiGraphicsPipeline. Most of the types and value used in QSSGRhiGraphicsPipelineState will therefore map directly to an equivalent QRhi type or class.

Definition at line 26 of file qssgrhicontext.h.

Member Enumeration Documentation

◆ Flag

\variable QSSGRhiGraphicsPipelineState::samples

The sample count.

Note
A sample count of 1 means no multisample antialiasing.
See also
QRhiSwapChain::sampleCount()

\value DepthTestEnabled \value DepthWriteEnabled \value BlendEnabled \value UsesStencilRef \value UsesScissor

Enumerator
DepthTestEnabled 
DepthWriteEnabled 
BlendEnabled 
UsesStencilRef 
UsesScissor 

Definition at line 29 of file qssgrhicontext.h.

Friends And Related Symbol Documentation

◆ QSSGRhiGraphicsPipelineStatePrivate

Definition at line 57 of file qssgrhicontext.h.

◆ QSSGRhiInputAssemblerStatePrivate

friend struct QSSGRhiInputAssemblerStatePrivate
friend

Definition at line 58 of file qssgrhicontext.h.

Member Data Documentation

◆ colorAttachmentCount

int QSSGRhiGraphicsPipelineState::colorAttachmentCount = 1

Definition at line 48 of file qssgrhicontext.h.

Referenced by RenderHelpers::rhiRenderShadowMap().

◆ cullMode

◆ depthBias

int QSSGRhiGraphicsPipelineState::depthBias = 0

Definition at line 46 of file qssgrhicontext.h.

Referenced by ShadowMapPass::renderPrep().

◆ depthFunc

◆ flags

◆ lineWidth

float QSSGRhiGraphicsPipelineState::lineWidth = 1.0f

Definition at line 51 of file qssgrhicontext.h.

◆ polygonMode

◆ samples

◆ scissor

QRhiScissor QSSGRhiGraphicsPipelineState::scissor

Definition at line 54 of file qssgrhicontext.h.

Referenced by QSSGLayerRenderData::prepareForRender().

◆ slopeScaledDepthBias

float QSSGRhiGraphicsPipelineState::slopeScaledDepthBias = 0.0f

Definition at line 50 of file qssgrhicontext.h.

Referenced by ShadowMapPass::renderPrep().

◆ stencilOpFrontState

QRhiGraphicsPipeline::StencilOpState QSSGRhiGraphicsPipelineState::stencilOpFrontState {}

Definition at line 43 of file qssgrhicontext.h.

◆ stencilRef

quint32 QSSGRhiGraphicsPipelineState::stencilRef = 0

Definition at line 45 of file qssgrhicontext.h.

◆ stencilWriteMask

quint32 QSSGRhiGraphicsPipelineState::stencilWriteMask = 0xFF

Definition at line 44 of file qssgrhicontext.h.

◆ targetBlend

◆ viewCount

◆ viewport


The documentation for this class was generated from the following file: