Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
std::array< QRhiGraphicsPipeline::TargetBlend, 8 > 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.

◆ 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.

◆ cullMode

QRhiGraphicsPipeline::CullMode QSSGRhiGraphicsPipelineState::cullMode = QRhiGraphicsPipeline::None

Definition at line 40 of file qssgrhicontext.h.

◆ depthBias

int QSSGRhiGraphicsPipelineState::depthBias = 0

Definition at line 46 of file qssgrhicontext.h.

◆ depthFunc

QRhiGraphicsPipeline::CompareOp QSSGRhiGraphicsPipelineState::depthFunc = QRhiGraphicsPipeline::LessOrEqual

Definition at line 39 of file qssgrhicontext.h.

◆ flags

Flags QSSGRhiGraphicsPipelineState::flags

Definition at line 52 of file qssgrhicontext.h.

◆ lineWidth

float QSSGRhiGraphicsPipelineState::lineWidth = 1.0f

Definition at line 51 of file qssgrhicontext.h.

◆ polygonMode

QRhiGraphicsPipeline::PolygonMode QSSGRhiGraphicsPipelineState::polygonMode = QRhiGraphicsPipeline::Fill

Definition at line 42 of file qssgrhicontext.h.

◆ samples

int QSSGRhiGraphicsPipelineState::samples = 1

Definition at line 47 of file qssgrhicontext.h.

◆ scissor

QRhiScissor QSSGRhiGraphicsPipelineState::scissor

Definition at line 54 of file qssgrhicontext.h.

◆ slopeScaledDepthBias

float QSSGRhiGraphicsPipelineState::slopeScaledDepthBias = 0.0f

Definition at line 50 of file qssgrhicontext.h.

◆ 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

std::array<QRhiGraphicsPipeline::TargetBlend, 8> QSSGRhiGraphicsPipelineState::targetBlend

Definition at line 41 of file qssgrhicontext.h.

◆ viewCount

int QSSGRhiGraphicsPipelineState::viewCount = 1

Definition at line 49 of file qssgrhicontext.h.

◆ viewport

QRhiViewport QSSGRhiGraphicsPipelineState::viewport

Definition at line 53 of file qssgrhicontext.h.


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