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
QSSGRhiHelpers Namespace Reference

Functions

QRhiVertexInputAttribute::Format toVertexInputFormat (QSSGRenderComponentType compType, quint32 numComps)
 
QRhiGraphicsPipeline::Topology toTopology (QSSGRenderDrawMode drawMode)
 
void bakeVertexInputLocations (QSSGRhiInputAssemblerState *ia, const QSSGRhiShaderPipeline &shaders, int instanceBufferBinding)
 
QRhiSampler::Filter toRhi (QSSGRenderTextureFilterOp op)
 
QRhiSampler::AddressMode toRhi (QSSGRenderTextureCoordOp tiling)
 
QRhiGraphicsPipeline::CullMode toCullMode (QSSGCullFaceMode cullFaceMode)
 

Function Documentation

◆ bakeVertexInputLocations()

void QSSGRhiHelpers::bakeVertexInputLocations ( QSSGRhiInputAssemblerState * ia,
const QSSGRhiShaderPipeline & shaders,
int instanceBufferBinding )

Definition at line 324 of file qssgrhicontext.cpp.

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

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

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

◆ toCullMode()

QRhiGraphicsPipeline::CullMode QSSGRhiHelpers::toCullMode ( QSSGCullFaceMode cullFaceMode)
inline

Definition at line 87 of file qssgrhicontext_p.h.

References QRhiGraphicsPipeline::Back, Back, Disabled, QRhiGraphicsPipeline::Front, Front, FrontAndBack, QRhiGraphicsPipeline::None, qWarning, and Unknown.

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

+ Here is the caller graph for this function:

◆ toRhi() [1/2]

◆ toRhi() [2/2]

QRhiSampler::Filter QSSGRhiHelpers::toRhi ( QSSGRenderTextureFilterOp op)
inline

Definition at line 57 of file qssgrhicontext_p.h.

References QRhiSampler::Linear, Linear, QRhiSampler::Nearest, Nearest, and None.

Referenced by addOpaqueDepthPrePassBindings(), RenderHelpers::rhiPrepareRenderable(), QSSGCustomMaterialSystem::rhiPrepareRenderable(), and QSSGParticleRenderer::rhiPrepareRenderable().

+ Here is the caller graph for this function:

◆ toTopology()

◆ toVertexInputFormat()