![]() |
Qt 6.x
The Qt SDK
|
#include <qssgrhicontext_p.h>
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 |
Definition at line 35 of file qssgrhicontext_p.h.
Enumerator | |
---|---|
PositionSemantic | |
NormalSemantic | |
TexCoord0Semantic | |
TexCoord1Semantic | |
TangentSemantic | |
BinormalSemantic | |
ColorSemantic | |
MaxTargetSemantic | |
JointSemantic | |
WeightSemantic | |
TexCoordLightmapSemantic |
Definition at line 37 of file qssgrhicontext_p.h.
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().
|
static |
Definition at line 88 of file qssgrhicontext.cpp.
References LineLoop, QRhiGraphicsPipeline::Lines, Lines, QRhiGraphicsPipeline::LineStrip, LineStrip, QRhiGraphicsPipeline::Points, Points, QSSG_ASSERT_X, QRhiGraphicsPipeline::TriangleFan, TriangleFan, QRhiGraphicsPipeline::Triangles, Triangles, QRhiGraphicsPipeline::TriangleStrip, and TriangleStrip.
|
static |
Definition at line 42 of file qssgrhicontext.cpp.
References QRhiVertexInputAttribute::Float, QRhiVertexInputAttribute::Float2, QRhiVertexInputAttribute::Float3, Float32, QRhiVertexInputAttribute::Float4, Int32, Q_ASSERT, QRhiVertexInputAttribute::SInt, QRhiVertexInputAttribute::SInt2, QRhiVertexInputAttribute::SInt3, QRhiVertexInputAttribute::SInt4, QRhiVertexInputAttribute::UInt, QRhiVertexInputAttribute::UInt2, QRhiVertexInputAttribute::UInt3, QRhiVertexInputAttribute::UInt4, and UnsignedInt32.
QRhiVertexInputLayout QSSGRhiInputAssemblerState::inputLayout |
Definition at line 51 of file qssgrhicontext_p.h.
Referenced by bakeVertexInputLocations(), QSSGRhiCubeRenderer::recordRenderCube(), QSSGDebugDrawSystem::recordRenderDebugObjects(), QSSGRhiQuadRenderer::recordRenderQuad(), QSSGCustomMaterialSystem::rhiPrepareRenderable(), QSSGParticleRenderer::rhiPrepareRenderable(), and setupInstancing().
QVarLengthArray<InputSemantic, 8> QSSGRhiInputAssemblerState::inputs |
Definition at line 52 of file qssgrhicontext_p.h.
Referenced by bakeVertexInputLocations(), QSSGLayerRenderData::prepareModelsForRender(), QSSGRhiCubeRenderer::recordRenderCube(), QSSGDebugDrawSystem::recordRenderDebugObjects(), QSSGRhiQuadRenderer::recordRenderQuad(), and QSSGParticleRenderer::rhiPrepareRenderable().
quint8 QSSGRhiInputAssemblerState::targetCount = 0 |
Definition at line 57 of file qssgrhicontext_p.h.
Referenced by QSSGLayerRenderData::prepareModelsForRender().
std::array<quint8, MaxTargetSemantic + 1> QSSGRhiInputAssemblerState::targetOffsets |
Definition at line 55 of file qssgrhicontext_p.h.
Referenced by QSSGLayerRenderData::prepareModelsForRender().
QRhiGraphicsPipeline::Topology QSSGRhiInputAssemblerState::topology |