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

Functions

std::pair< QSSGBounds3, QSSGBounds3calculateSortedObjectBounds (const QSSGRenderableObjectList &sortedOpaqueObjects, const QSSGRenderableObjectList &sortedTransparentObjects)
void rhiRenderShadowMap (QSSGRhiContext *rhiCtx, QSSGPassKey passKey, QSSGRhiGraphicsPipelineState &ps, QSSGRenderShadowMap &shadowMapManager, const QSSGRenderCamera &camera, QSSGRenderCamera *debugCamera, const QSSGShaderLightList &globalLights, const QSSGRenderableObjectList &sortedOpaqueObjects, QSSGRenderer &renderer, const QSSGBounds3 &castingObjectsBox, const QSSGBounds3 &receivingObjectsBox)
void rhiRenderReflectionMap (QSSGRhiContext *rhiCtx, QSSGPassKey passKey, const QSSGLayerRenderData &inData, QSSGRhiGraphicsPipelineState *ps, QSSGRenderReflectionMap &reflectionMapManager, const QVector< QSSGRenderReflectionProbe * > &reflectionProbes, const QSSGRenderableObjectList &reflectionPassObjects, QSSGRenderer &renderer)
bool rhiPrepareDepthPass (QSSGRhiContext *rhiCtx, QSSGPassKey passKey, const QSSGRhiGraphicsPipelineState &basePipelineState, QRhiRenderPassDescriptor *rpDesc, QSSGLayerRenderData &inData, const QSSGRenderableObjectList &sortedOpaqueObjects, const QSSGRenderableObjectList &sortedTransparentObjects, int samples, int viewCount)
void rhiRenderDepthPass (QSSGRhiContext *rhiCtx, const QSSGRhiGraphicsPipelineState &ps, const QSSGRenderableObjectList &sortedOpaqueObjects, const QSSGRenderableObjectList &sortedTransparentObjects, bool *needsSetViewport)
bool rhiPrepareNormalPass (QSSGRhiContext *rhiCtx, QSSGPassKey passKey, const QSSGRhiGraphicsPipelineState &basePipelineState, QRhiRenderPassDescriptor *rpDesc, QSSGLayerRenderData &inData, const QSSGRenderableObjectList &sortedOpaqueObjects)
void rhiRenderNormalPass (QSSGRhiContext *rhiCtx, const QSSGRhiGraphicsPipelineState &ps, const QSSGRenderableObjectList &sortedOpaqueObjects, bool *needsSetViewport)
bool rhiPrepareAoTexture (QSSGRhiContext *rhiCtx, const QSize &size, QSSGRhiRenderableTexture *renderableTex, quint8 viewCount)
void rhiRenderAoTexture (QSSGRhiContext *rhiCtx, QSSGPassKey passKey, QSSGRenderer &renderer, QSSGRhiShaderPipeline &shaderPipeline, QSSGRhiGraphicsPipelineState &ps, const QSSGAmbientOcclusionSettings &ao, const QSSGRhiRenderableTexture &rhiAoTexture, const QSSGRhiRenderableTexture &rhiDepthTexture, const QSSGRenderCamera &camera)
bool rhiPrepareScreenTexture (QSSGRhiContext *rhiCtx, const QSize &size, bool wantsMips, QSSGRhiRenderableTexture *renderableTex, quint8 viewCount)
void rhiPrepareGrid (QSSGRhiContext *rhiCtx, QSSGPassKey passKey, QSSGRenderLayer &layer, QSSGRenderCameraList &cameras, QSSGRenderer &renderer)
void rhiPrepareSkyBox (QSSGRhiContext *rhiCtx, QSSGPassKey passKey, QSSGRenderLayer &layer, QSSGRenderCameraList &cameras, QSSGRenderer &renderer)
void rhiPrepareSkyBoxForReflectionMap (QSSGRhiContext *rhiCtx, QSSGPassKey passKey, QSSGRenderLayer &layer, QSSGRenderCamera &inCamera, QSSGRenderer &renderer, QSSGReflectionMapEntry *entry, QSSGRenderTextureCubeFace cubeFace)
Q_QUICK3DRUNTIMERENDER_EXPORT void rhiPrepareRenderable (QSSGRhiContext *rhiCtx, QSSGPassKey passKey, const QSSGLayerRenderData &inData, QSSGRenderableObject &inObject, QRhiRenderPassDescriptor *renderPassDescriptor, QSSGRhiGraphicsPipelineState *ps, QSSGShaderFeatures featureSet, int samples, int viewCount, QSSGRenderCamera *alteredCamera=nullptr, QMatrix4x4 *alteredModelViewProjection=nullptr, QSSGRenderTextureCubeFace cubeFace=QSSGRenderTextureCubeFaceNone, QSSGReflectionMapEntry *entry=nullptr, bool oit=false)
Q_QUICK3DRUNTIMERENDER_EXPORT void rhiRenderRenderable (QSSGRhiContext *rhiCtx, const QSSGRhiGraphicsPipelineState &state, QSSGRenderableObject &object, bool *needsSetViewport, QSSGRenderTextureCubeFace cubeFace=QSSGRenderTextureCubeFaceNone)
bool rhiPrepareDepthTexture (QSSGRhiContext *rhiCtx, const QSize &size, QSSGRhiRenderableTexture *renderableTex, quint8 viewCount, int samples=1)
QRect correctViewportCoordinates (const QRectF &layerViewport, const QRect &deviceRect)

Function Documentation

◆ calculateSortedObjectBounds()

std::pair< QSSGBounds3, QSSGBounds3 > RenderHelpers::calculateSortedObjectBounds ( const QSSGRenderableObjectList & sortedOpaqueObjects,
const QSSGRenderableObjectList & sortedTransparentObjects )

Definition at line 104 of file qssgrenderhelpers.cpp.

◆ correctViewportCoordinates()

QRect RenderHelpers::correctViewportCoordinates ( const QRectF & layerViewport,
const QRect & deviceRect )
inline

Definition at line 155 of file qssgrenderhelpers_p.h.

◆ rhiPrepareAoTexture()

bool RenderHelpers::rhiPrepareAoTexture ( QSSGRhiContext * rhiCtx,
const QSize & size,
QSSGRhiRenderableTexture * renderableTex,
quint8 viewCount )

Definition at line 1861 of file qssgrenderhelpers.cpp.

◆ rhiPrepareDepthPass()

bool RenderHelpers::rhiPrepareDepthPass ( QSSGRhiContext * rhiCtx,
QSSGPassKey passKey,
const QSSGRhiGraphicsPipelineState & basePipelineState,
QRhiRenderPassDescriptor * rpDesc,
QSSGLayerRenderData & inData,
const QSSGRenderableObjectList & sortedOpaqueObjects,
const QSSGRenderableObjectList & sortedTransparentObjects,
int samples,
int viewCount )

Definition at line 2260 of file qssgrenderhelpers.cpp.

References QSSGRenderContextInterface::QSSGLayerRenderData.

Here is the call graph for this function:

◆ rhiPrepareDepthTexture()

bool RenderHelpers::rhiPrepareDepthTexture ( QSSGRhiContext * rhiCtx,
const QSize & size,
QSSGRhiRenderableTexture * renderableTex,
quint8 viewCount,
int samples = 1 )

Definition at line 2507 of file qssgrenderhelpers.cpp.

◆ rhiPrepareGrid()

void RenderHelpers::rhiPrepareGrid ( QSSGRhiContext * rhiCtx,
QSSGPassKey passKey,
QSSGRenderLayer & layer,
QSSGRenderCameraList & cameras,
QSSGRenderer & renderer )

Definition at line 2061 of file qssgrenderhelpers.cpp.

◆ rhiPrepareNormalPass()

bool RenderHelpers::rhiPrepareNormalPass ( QSSGRhiContext * rhiCtx,
QSSGPassKey passKey,
const QSSGRhiGraphicsPipelineState & basePipelineState,
QRhiRenderPassDescriptor * rpDesc,
QSSGLayerRenderData & inData,
const QSSGRenderableObjectList & sortedOpaqueObjects )

Definition at line 2556 of file qssgrenderhelpers.cpp.

◆ rhiPrepareRenderable()

void RenderHelpers::rhiPrepareRenderable ( QSSGRhiContext * rhiCtx,
QSSGPassKey passKey,
const QSSGLayerRenderData & inData,
QSSGRenderableObject & inObject,
QRhiRenderPassDescriptor * renderPassDescriptor,
QSSGRhiGraphicsPipelineState * ps,
QSSGShaderFeatures featureSet,
int samples,
int viewCount,
QSSGRenderCamera * alteredCamera = nullptr,
QMatrix4x4 * alteredModelViewProjection = nullptr,
QSSGRenderTextureCubeFace cubeFace = QSSGRenderTextureCubeFaceNone,
QSSGReflectionMapEntry * entry = nullptr,
bool oit = false )

Definition at line 905 of file qssgrenderhelpers.cpp.

◆ rhiPrepareScreenTexture()

bool RenderHelpers::rhiPrepareScreenTexture ( QSSGRhiContext * rhiCtx,
const QSize & size,
bool wantsMips,
QSSGRhiRenderableTexture * renderableTex,
quint8 viewCount )

Definition at line 1981 of file qssgrenderhelpers.cpp.

◆ rhiPrepareSkyBox()

void RenderHelpers::rhiPrepareSkyBox ( QSSGRhiContext * rhiCtx,
QSSGPassKey passKey,
QSSGRenderLayer & layer,
QSSGRenderCameraList & cameras,
QSSGRenderer & renderer )

Definition at line 2229 of file qssgrenderhelpers.cpp.

◆ rhiPrepareSkyBoxForReflectionMap()

void RenderHelpers::rhiPrepareSkyBoxForReflectionMap ( QSSGRhiContext * rhiCtx,
QSSGPassKey passKey,
QSSGRenderLayer & layer,
QSSGRenderCamera & inCamera,
QSSGRenderer & renderer,
QSSGReflectionMapEntry * entry,
QSSGRenderTextureCubeFace cubeFace )

Definition at line 2243 of file qssgrenderhelpers.cpp.

◆ rhiRenderAoTexture()

void RenderHelpers::rhiRenderAoTexture ( QSSGRhiContext * rhiCtx,
QSSGPassKey passKey,
QSSGRenderer & renderer,
QSSGRhiShaderPipeline & shaderPipeline,
QSSGRhiGraphicsPipelineState & ps,
const QSSGAmbientOcclusionSettings & ao,
const QSSGRhiRenderableTexture & rhiAoTexture,
const QSSGRhiRenderableTexture & rhiDepthTexture,
const QSSGRenderCamera & camera )

Definition at line 1907 of file qssgrenderhelpers.cpp.

◆ rhiRenderDepthPass()

void RenderHelpers::rhiRenderDepthPass ( QSSGRhiContext * rhiCtx,
const QSSGRhiGraphicsPipelineState & ps,
const QSSGRenderableObjectList & sortedOpaqueObjects,
const QSSGRenderableObjectList & sortedTransparentObjects,
bool * needsSetViewport )

Definition at line 2437 of file qssgrenderhelpers.cpp.

◆ rhiRenderNormalPass()

void RenderHelpers::rhiRenderNormalPass ( QSSGRhiContext * rhiCtx,
const QSSGRhiGraphicsPipelineState & ps,
const QSSGRenderableObjectList & sortedOpaqueObjects,
bool * needsSetViewport )

Definition at line 2713 of file qssgrenderhelpers.cpp.

◆ rhiRenderReflectionMap()

void RenderHelpers::rhiRenderReflectionMap ( QSSGRhiContext * rhiCtx,
QSSGPassKey passKey,
const QSSGLayerRenderData & inData,
QSSGRhiGraphicsPipelineState * ps,
QSSGRenderReflectionMap & reflectionMapManager,
const QVector< QSSGRenderReflectionProbe * > & reflectionProbes,
const QSSGRenderableObjectList & reflectionPassObjects,
QSSGRenderer & renderer )

Definition at line 1747 of file qssgrenderhelpers.cpp.

◆ rhiRenderRenderable()

void RenderHelpers::rhiRenderRenderable ( QSSGRhiContext * rhiCtx,
const QSSGRhiGraphicsPipelineState & state,
QSSGRenderableObject & object,
bool * needsSetViewport,
QSSGRenderTextureCubeFace cubeFace = QSSGRenderTextureCubeFaceNone )

Definition at line 1246 of file qssgrenderhelpers.cpp.

◆ rhiRenderShadowMap()

void RenderHelpers::rhiRenderShadowMap ( QSSGRhiContext * rhiCtx,
QSSGPassKey passKey,
QSSGRhiGraphicsPipelineState & ps,
QSSGRenderShadowMap & shadowMapManager,
const QSSGRenderCamera & camera,
QSSGRenderCamera * debugCamera,
const QSSGShaderLightList & globalLights,
const QSSGRenderableObjectList & sortedOpaqueObjects,
QSSGRenderer & renderer,
const QSSGBounds3 & castingObjectsBox,
const QSSGBounds3 & receivingObjectsBox )

Definition at line 1350 of file qssgrenderhelpers.cpp.

References ShadowmapHelpers::addDebugBox(), ShadowmapHelpers::addDirectionalLightDebugBox(), QSSGRenderableObjectHandle::obj, QSSGRenderContextInterface::QSSGLayerRenderData, and QSSGRenderContextInterface::QSSGRenderer.

Here is the call graph for this function: