Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QSSGRhiInputAssemblerState Struct Reference

#include <qssgrhicontext_p.h>

+ Collaboration diagram for QSSGRhiInputAssemblerState:

Public Types

enum  InputSemantic {
  PositionSemantic , NormalSemantic , TexCoord0Semantic , TexCoord1Semantic ,
  TangentSemantic , BinormalSemantic , ColorSemantic , MaxTargetSemantic = ColorSemantic ,
  JointSemantic , WeightSemantic , TexCoordLightmapSemantic
}
 

Public Member Functions

void bakeVertexInputLocations (const QSSGRhiShaderPipeline &shaders, int instanceBufferBinding=0)
 

Static Public Member Functions

static QRhiVertexInputAttribute::Format toVertexInputFormat (QSSGRenderComponentType compType, quint32 numComps)
 
static QRhiGraphicsPipeline::Topology toTopology (QSSGRenderDrawMode drawMode)
 

Public Attributes

QRhiVertexInputLayout inputLayout
 
QVarLengthArray< InputSemantic, 8 > inputs
 
QRhiGraphicsPipeline::Topology topology
 
std::array< quint8, MaxTargetSemantic+1 > targetOffsets
 
quint8 targetCount = 0
 

Detailed Description

Definition at line 35 of file qssgrhicontext_p.h.

Member Enumeration Documentation

◆ InputSemantic

Enumerator
PositionSemantic 
NormalSemantic 
TexCoord0Semantic 
TexCoord1Semantic 
TangentSemantic 
BinormalSemantic 
ColorSemantic 
MaxTargetSemantic 
JointSemantic 
WeightSemantic 
TexCoordLightmapSemantic 

Definition at line 37 of file qssgrhicontext_p.h.

Member Function Documentation

◆ bakeVertexInputLocations()

void QSSGRhiInputAssemblerState::bakeVertexInputLocations ( const QSSGRhiShaderPipeline shaders,
int  instanceBufferBinding = 0 
)

Definition at line 110 of file qssgrhicontext.cpp.

References QVarLengthArray< T, Prealloc >::at(), attrs, QRhiVertexInputLayout::cbeginAttributes(), QRhiVertexInputLayout::cendAttributes(), QRhiVertexInputAttribute::Float4, inputLayout, inputs, it, sem, and QRhiVertexInputLayout::setAttributes().

Referenced by RenderHelpers::rhiPrepareRenderable(), QSSGCustomMaterialSystem::rhiPrepareRenderable(), and rhiPrepareResourcesForShadowMap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toTopology()

◆ toVertexInputFormat()

Member Data Documentation

◆ inputLayout

◆ inputs

◆ targetCount

quint8 QSSGRhiInputAssemblerState::targetCount = 0

Definition at line 57 of file qssgrhicontext_p.h.

Referenced by QSSGLayerRenderData::prepareModelsForRender().

◆ targetOffsets

std::array<quint8, MaxTargetSemantic + 1> QSSGRhiInputAssemblerState::targetOffsets
Initial value:
= { UINT8_MAX, UINT8_MAX, UINT8_MAX, UINT8_MAX,
UINT8_MAX, UINT8_MAX, UINT8_MAX }

Definition at line 55 of file qssgrhicontext_p.h.

Referenced by QSSGLayerRenderData::prepareModelsForRender().

◆ topology


The documentation for this struct was generated from the following files: