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

Functions

QRhiVertexInputAttribute::Format toVertexInputFormat (QSSGRenderComponentType compType, quint32 numComps)
QRhiGraphicsPipeline::Topology toTopology (QSSGRenderDrawMode drawMode)
void bakeVertexInputLocations (QSSGRhiInputAssemblerState *ia, const QSSGRhiShaderPipeline &shadersshaders, int instanceBufferBinding)
QShaderDescription::VariableType samplerType (const QSSGRhiShaderPipeline &shadersshaders, const QByteArray &namename)
QRhiTexture * dummyTextureForSampler (QSSGRhiContext *rhiCtx, QShaderDescription::VariableType samplerType, QRhiResourceUpdateBatch *rub, int arraySize, const QSize &sizesize, const QColor &fillColor)
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 = -1 )

Definition at line 335 of file qssgrhicontext.cpp.

◆ dummyTextureForSampler()

QRhiTexture * QSSGRhiHelpers::dummyTextureForSampler ( QSSGRhiContext * rhiCtx,
QShaderDescription::VariableType samplerType,
QRhiResourceUpdateBatch * rub,
int arraySize = 2,
const QSize & size = QSize(64, 64),
const QColor & fillColor = Qt::black )

Definition at line 407 of file qssgrhicontext.cpp.

◆ samplerType()

QShaderDescription::VariableType QSSGRhiHelpers::samplerType ( const QSSGRhiShaderPipeline & shaders,
const QByteArray & name )

Definition at line 395 of file qssgrhicontext.cpp.

◆ toCullMode()

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

Definition at line 99 of file qssgrhicontext_p.h.

◆ toRhi() [1/2]

QRhiSampler::AddressMode QSSGRhiHelpers::toRhi ( QSSGRenderTextureCoordOp tiling)
inline

Definition at line 83 of file qssgrhicontext_p.h.

◆ toRhi() [2/2]

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

Definition at line 69 of file qssgrhicontext_p.h.

◆ toTopology()

QRhiGraphicsPipeline::Topology QSSGRhiHelpers::toTopology ( QSSGRenderDrawMode drawMode)

Definition at line 313 of file qssgrhicontext.cpp.

◆ toVertexInputFormat()

QRhiVertexInputAttribute::Format QSSGRhiHelpers::toVertexInputFormat ( QSSGRenderComponentType compType,
quint32 numComps )

Definition at line 267 of file qssgrhicontext.cpp.