Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QSSGRhiContextStats Class Reference

#include <qssgrhicontext_p.h>

+ Collaboration diagram for QSSGRhiContextStats:

Classes

struct  DrawInfo
 
struct  GlobalInfo
 
struct  InstancedDrawInfo
 
struct  PerLayerInfo
 
struct  RenderPassInfo
 

Public Member Functions

 QSSGRhiContextStats (QSSGRhiContext &context)
 
bool isEnabled () const
 
void drawIndexed (quint32 indexCount, quint32 instanceCount)
 
void draw (quint32 vertexCount, quint32 instanceCount)
 
void meshDataSizeChanges (quint64 newSize)
 
void imageDataSizeChanges (quint64 newSize)
 
void registerMaterialShaderGenerationTime (qint64 ms)
 
void registerEffectShaderGenerationTime (qint64 ms)
 
void start (QSSGRenderLayer *layer)
 
void stop (QSSGRenderLayer *layer)
 
void beginRenderPass (QRhiTextureRenderTarget *rt)
 
void endRenderPass ()
 
void printRenderPass (const RenderPassInfo &rp)
 
void cleanupLayerInfo (QSSGRenderLayer *layer)
 

Static Public Member Functions

static bool profilingEnabled ()
 
static bool rendererDebugEnabled ()
 
static quint64 totalDrawCallCountForPass (const QSSGRhiContextStats::RenderPassInfo &pass)
 
static quint64 totalVertexCountForPass (const QSSGRhiContextStats::RenderPassInfo &pass)
 

Public Attributes

QHash< QSSGRenderLayer *, PerLayerInfoperLayerInfo
 
GlobalInfo globalInfo
 
QSSGRhiContextcontext
 
QSSGRenderLayerlayerKey = nullptr
 
QSet< QSSGRenderLayer * > dynamicDataSources
 

Detailed Description

Definition at line 791 of file qssgrhicontext_p.h.

Constructor & Destructor Documentation

◆ QSSGRhiContextStats()

QSSGRhiContextStats::QSSGRhiContextStats ( QSSGRhiContext context)
inline

Definition at line 838 of file qssgrhicontext_p.h.

Member Function Documentation

◆ beginRenderPass()

void QSSGRhiContextStats::beginRenderPass ( QRhiTextureRenderTarget rt)

Definition at line 1200 of file qssgrhicontext.cpp.

References QString::fromUtf8(), info, layerKey, QRhiResource::name(), perLayerInfo, QRhiRenderTarget::pixelSize(), Q_TRACE, and QFileInfo::size().

+ Here is the call graph for this function:

◆ cleanupLayerInfo()

void QSSGRhiContextStats::cleanupLayerInfo ( QSSGRenderLayer layer)

Definition at line 1194 of file qssgrhicontext.cpp.

References dynamicDataSources, perLayerInfo, and QSet< T >::remove().

Referenced by QQuick3DSceneRenderer::~QQuick3DSceneRenderer().

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

◆ draw()

void QSSGRhiContextStats::draw ( quint32  vertexCount,
quint32  instanceCount 
)

◆ drawIndexed()

void QSSGRhiContextStats::drawIndexed ( quint32  indexCount,
quint32  instanceCount 
)

◆ endRenderPass()

void QSSGRhiContextStats::endRenderPass ( )

Definition at line 1208 of file qssgrhicontext.cpp.

References info, layerKey, perLayerInfo, and Q_TRACE.

◆ imageDataSizeChanges()

void QSSGRhiContextStats::imageDataSizeChanges ( quint64  newSize)
inline

◆ isEnabled()

bool QSSGRhiContextStats::isEnabled ( ) const

Definition at line 1215 of file qssgrhicontext.cpp.

References dynamicDataSources, QSet< T >::isEmpty(), profilingEnabled(), Q_TRACE_ENABLED, and rendererDebugEnabled().

+ Here is the call graph for this function:

◆ meshDataSizeChanges()

void QSSGRhiContextStats::meshDataSizeChanges ( quint64  newSize)
inline

Definition at line 872 of file qssgrhicontext_p.h.

References QSSGRhiContextStats::GlobalInfo::meshDataSize.

◆ printRenderPass()

◆ profilingEnabled()

static bool QSSGRhiContextStats::profilingEnabled ( )
inlinestatic

Definition at line 856 of file qssgrhicontext_p.h.

References enabled, and Q_QUICK3D_PROFILING_ENABLED.

Referenced by isEnabled().

+ Here is the caller graph for this function:

◆ registerEffectShaderGenerationTime()

void QSSGRhiContextStats::registerEffectShaderGenerationTime ( qint64  ms)
inline

◆ registerMaterialShaderGenerationTime()

void QSSGRhiContextStats::registerMaterialShaderGenerationTime ( qint64  ms)
inline

◆ rendererDebugEnabled()

static bool QSSGRhiContextStats::rendererDebugEnabled ( )
inlinestatic

Definition at line 862 of file qssgrhicontext_p.h.

References QByteArray::contains(), enabled, QByteArrayLiteral, and qgetenv().

Referenced by isEnabled(), and stop().

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

◆ start()

void QSSGRhiContextStats::start ( QSSGRenderLayer layer)

Definition at line 1157 of file qssgrhicontext.cpp.

References info, layerKey, and perLayerInfo.

◆ stop()

void QSSGRhiContextStats::stop ( QSSGRenderLayer layer)

Definition at line 1166 of file qssgrhicontext.cpp.

References QByteArray::constData(), QSize::height(), i, info, layerKey, perLayerInfo, QSSGRhiContextStats::RenderPassInfo::pixelSize, printRenderPass(), qDebug, rendererDebugEnabled(), QSSGRhiContextStats::RenderPassInfo::rtName, QFileInfo::size(), and QSize::width().

+ Here is the call graph for this function:

◆ totalDrawCallCountForPass()

static quint64 QSSGRhiContextStats::totalDrawCallCountForPass ( const QSSGRhiContextStats::RenderPassInfo pass)
inlinestatic

◆ totalVertexCountForPass()

static quint64 QSSGRhiContextStats::totalVertexCountForPass ( const QSSGRhiContextStats::RenderPassInfo pass)
inlinestatic

Member Data Documentation

◆ context

QSSGRhiContext& QSSGRhiContextStats::context

Definition at line 915 of file qssgrhicontext_p.h.

Referenced by QQuick3DRenderStats::setRhiContext().

◆ dynamicDataSources

◆ globalInfo

GlobalInfo QSSGRhiContextStats::globalInfo

Definition at line 836 of file qssgrhicontext_p.h.

◆ layerKey

QSSGRenderLayer* QSSGRhiContextStats::layerKey = nullptr

Definition at line 916 of file qssgrhicontext_p.h.

Referenced by beginRenderPass(), draw(), drawIndexed(), endRenderPass(), start(), and stop().

◆ perLayerInfo

QHash<QSSGRenderLayer *, PerLayerInfo> QSSGRhiContextStats::perLayerInfo

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