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
QSSGRenderer Class Reference

#include <qssgrenderer_p.h>

+ Collaboration diagram for QSSGRenderer:

Public Member Functions

 QSSGRenderer ()
 
 ~QSSGRenderer ()
 
bool prepareLayerForRender (QSSGRenderLayer &inLayer)
 
void rhiPrepare (QSSGRenderLayer &inLayer)
 
void rhiRender (QSSGRenderLayer &inLayer)
 
void beginFrame (QSSGRenderLayer &layer, bool allowRecursion=true)
 
bool endFrame (QSSGRenderLayer &layer, bool allowRecursion=true)
 
constexpr quint32 frameCount () const
 
void setViewport (QRect inViewport)
 
QRect viewport () const
 
void setDpr (float dpr)
 
float dpr () const
 
void setScissorRect (QRect inScissorRect)
 
QRect scissorRect () const
 
const std::unique_ptr< QSSGRhiQuadRenderer > & rhiQuadRenderer () const
 
const std::unique_ptr< QSSGRhiCubeRenderer > & rhiCubeRenderer () const
 
QSSGRenderContextInterfacecontextInterface () const
 

Protected Member Functions

void cleanupResources (QList< QSSGRenderGraphObject * > &resources)
 
void cleanupResources (QSet< QSSGRenderGraphObject * > &resources)
 

Friends

class QSSGRendererPrivate
 
class QSSGLayerRenderData
 
class QSSGRenderContextInterface
 
class QQuick3DSceneRenderer
 
class QQuick3DWindowAttachment
 

Detailed Description

Definition at line 38 of file qssgrenderer_p.h.

Constructor & Destructor Documentation

◆ QSSGRenderer()

QSSGRenderer::QSSGRenderer ( )
default

◆ ~QSSGRenderer()

QSSGRenderer::~QSSGRenderer ( )

Definition at line 80 of file qssgrenderer.cpp.

Member Function Documentation

◆ beginFrame()

void QSSGRenderer::beginFrame ( QSSGRenderLayer & layer,
bool allowRecursion = true )

Definition at line 279 of file qssgrenderer.cpp.

References QSSGRHICTX_STAT, and QSSGRenderContextInterface::rhiContext().

+ Here is the call graph for this function:

◆ cleanupResources() [1/2]

void QSSGRenderer::cleanupResources ( QList< QSSGRenderGraphObject * > & resources)
protected

Definition at line 182 of file qssgrenderer.cpp.

References cleanupResourcesImpl().

+ Here is the call graph for this function:

◆ cleanupResources() [2/2]

void QSSGRenderer::cleanupResources ( QSet< QSSGRenderGraphObject * > & resources)
protected

Definition at line 188 of file qssgrenderer.cpp.

References cleanupResourcesImpl().

+ Here is the call graph for this function:

◆ contextInterface()

◆ dpr()

float QSSGRenderer::dpr ( ) const
inline

Definition at line 67 of file qssgrenderer_p.h.

Referenced by QSSGLayerRenderData::prepareForRender().

+ Here is the caller graph for this function:

◆ endFrame()

bool QSSGRenderer::endFrame ( QSSGRenderLayer & layer,
bool allowRecursion = true )

Definition at line 289 of file qssgrenderer.cpp.

References QSet< T >::clear(), QSSGRHICTX_STAT, and QSSGRenderContextInterface::rhiContext().

+ Here is the call graph for this function:

◆ frameCount()

constexpr quint32 QSSGRenderer::frameCount ( ) const
inlineconstexpr

Definition at line 61 of file qssgrenderer_p.h.

Referenced by QSSGLayerRenderData::getOrCreateExtensionContext().

+ Here is the caller graph for this function:

◆ prepareLayerForRender()

bool QSSGRenderer::prepareLayerForRender ( QSSGRenderLayer & inLayer)

Definition at line 97 of file qssgrenderer.cpp.

References Q_ASSERT.

◆ rhiCubeRenderer()

const std::unique_ptr< QSSGRhiCubeRenderer > & QSSGRenderer::rhiCubeRenderer ( ) const

Definition at line 387 of file qssgrenderer.cpp.

◆ rhiPrepare()

void QSSGRenderer::rhiPrepare ( QSSGRenderLayer & inLayer)

Definition at line 109 of file qssgrenderer.cpp.

References contextInterface(), QRhi::isRecordingFrame(), QSSGRhiContext::isValid(), QSSG_ASSERT, QSSGRhiContext::rhi(), and QSSGRenderContextInterface::rhiContext().

+ Here is the call graph for this function:

◆ rhiQuadRenderer()

const std::unique_ptr< QSSGRhiQuadRenderer > & QSSGRenderer::rhiQuadRenderer ( ) const

Definition at line 379 of file qssgrenderer.cpp.

◆ rhiRender()

void QSSGRenderer::rhiRender ( QSSGRenderLayer & inLayer)

Definition at line 137 of file qssgrenderer.cpp.

References QSSG_ASSERT.

◆ scissorRect()

QRect QSSGRenderer::scissorRect ( ) const
inline

Definition at line 70 of file qssgrenderer_p.h.

◆ setDpr()

void QSSGRenderer::setDpr ( float dpr)
inline

Definition at line 66 of file qssgrenderer_p.h.

References dpr().

+ Here is the call graph for this function:

◆ setScissorRect()

void QSSGRenderer::setScissorRect ( QRect inScissorRect)
inline

Definition at line 69 of file qssgrenderer_p.h.

◆ setViewport()

void QSSGRenderer::setViewport ( QRect inViewport)
inline

Definition at line 63 of file qssgrenderer_p.h.

◆ viewport()

QRect QSSGRenderer::viewport ( ) const
inline

Definition at line 64 of file qssgrenderer_p.h.

Referenced by QSSGLayerRenderData::prepareForRender().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ QQuick3DSceneRenderer

friend class QQuick3DSceneRenderer
friend

Definition at line 85 of file qssgrenderer_p.h.

◆ QQuick3DWindowAttachment

friend class QQuick3DWindowAttachment
friend

Definition at line 86 of file qssgrenderer_p.h.

◆ QSSGLayerRenderData

friend class QSSGLayerRenderData
friend

Definition at line 83 of file qssgrenderer_p.h.

◆ QSSGRenderContextInterface

friend class QSSGRenderContextInterface
friend

Definition at line 84 of file qssgrenderer_p.h.

◆ QSSGRendererPrivate

friend class QSSGRendererPrivate
friend

Definition at line 82 of file qssgrenderer_p.h.


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