![]() |
Qt 6.x
The Qt SDK
|
#include <qssgrhicontext_p.h>
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 *, PerLayerInfo > | perLayerInfo |
GlobalInfo | globalInfo |
QSSGRhiContext & | context |
QSSGRenderLayer * | layerKey = nullptr |
QSet< QSSGRenderLayer * > | dynamicDataSources |
Definition at line 791 of file qssgrhicontext_p.h.
|
inline |
Definition at line 838 of file qssgrhicontext_p.h.
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().
void QSSGRhiContextStats::cleanupLayerInfo | ( | QSSGRenderLayer * | layer | ) |
Definition at line 1194 of file qssgrhicontext.cpp.
References dynamicDataSources, perLayerInfo, and QSet< T >::remove().
Referenced by QQuick3DSceneRenderer::~QQuick3DSceneRenderer().
Definition at line 1236 of file qssgrhicontext.cpp.
References QSSGRhiContextStats::InstancedDrawInfo::callCount, info, instanceCount, QSSGRhiContextStats::RenderPassInfo::instancedDraws, layerKey, perLayerInfo, and Q_TRACE.
Definition at line 1221 of file qssgrhicontext.cpp.
References QSSGRhiContextStats::InstancedDrawInfo::callCount, info, instanceCount, QSSGRhiContextStats::RenderPassInfo::instancedIndexedDraws, layerKey, perLayerInfo, and Q_TRACE.
void QSSGRhiContextStats::endRenderPass | ( | ) |
Definition at line 1208 of file qssgrhicontext.cpp.
References info, layerKey, perLayerInfo, and Q_TRACE.
Definition at line 877 of file qssgrhicontext_p.h.
References QSSGRhiContextStats::GlobalInfo::imageDataSize.
bool QSSGRhiContextStats::isEnabled | ( | ) | const |
Definition at line 1215 of file qssgrhicontext.cpp.
References dynamicDataSources, QSet< T >::isEmpty(), profilingEnabled(), Q_TRACE_ENABLED, and rendererDebugEnabled().
Definition at line 872 of file qssgrhicontext_p.h.
References QSSGRhiContextStats::GlobalInfo::meshDataSize.
void QSSGRhiContextStats::printRenderPass | ( | const RenderPassInfo & | rp | ) |
Definition at line 1251 of file qssgrhicontext.cpp.
References QSSGRhiContextStats::DrawInfo::callCount, QSSGRhiContextStats::InstancedDrawInfo::callCount, QSSGRhiContextStats::RenderPassInfo::draws, QSSGRhiContextStats::RenderPassInfo::indexedDraws, QSSGRhiContextStats::InstancedDrawInfo::instanceCount, QSSGRhiContextStats::RenderPassInfo::instancedDraws, QSSGRhiContextStats::RenderPassInfo::instancedIndexedDraws, qDebug, QSSGRhiContextStats::DrawInfo::vertexOrIndexCount, and QSSGRhiContextStats::InstancedDrawInfo::vertexOrIndexCount.
Referenced by stop().
|
inlinestatic |
Definition at line 856 of file qssgrhicontext_p.h.
References enabled, and Q_QUICK3D_PROFILING_ENABLED.
Referenced by isEnabled().
Definition at line 887 of file qssgrhicontext_p.h.
References QSSGRhiContextStats::GlobalInfo::effectGenerationTime.
Definition at line 882 of file qssgrhicontext_p.h.
References QSSGRhiContextStats::GlobalInfo::materialGenerationTime.
|
inlinestatic |
Definition at line 862 of file qssgrhicontext_p.h.
References QByteArray::contains(), enabled, QByteArrayLiteral, and qgetenv().
Referenced by isEnabled(), and stop().
void QSSGRhiContextStats::start | ( | QSSGRenderLayer * | layer | ) |
Definition at line 1157 of file qssgrhicontext.cpp.
References info, layerKey, and perLayerInfo.
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().
|
inlinestatic |
Definition at line 892 of file qssgrhicontext_p.h.
References QSSGRhiContextStats::DrawInfo::callCount, QSSGRhiContextStats::InstancedDrawInfo::callCount, QSSGRhiContextStats::RenderPassInfo::draws, QSSGRhiContextStats::RenderPassInfo::indexedDraws, QSSGRhiContextStats::RenderPassInfo::instancedDraws, and QSSGRhiContextStats::RenderPassInfo::instancedIndexedDraws.
Referenced by printRenderPassDetails().
|
inlinestatic |
Definition at line 900 of file qssgrhicontext_p.h.
References QSSGRhiContextStats::RenderPassInfo::draws, QSSGRhiContextStats::RenderPassInfo::indexedDraws, QSSGRhiContextStats::RenderPassInfo::instancedDraws, QSSGRhiContextStats::RenderPassInfo::instancedIndexedDraws, QSSGRhiContextStats::DrawInfo::vertexOrIndexCount, and QSSGRhiContextStats::InstancedDrawInfo::vertexOrIndexCount.
Referenced by printRenderPassDetails().
QSSGRhiContext& QSSGRhiContextStats::context |
Definition at line 915 of file qssgrhicontext_p.h.
Referenced by QQuick3DRenderStats::setRhiContext().
QSet<QSSGRenderLayer *> QSSGRhiContextStats::dynamicDataSources |
Definition at line 917 of file qssgrhicontext_p.h.
Referenced by cleanupLayerInfo(), isEnabled(), QQuick3DRenderStats::setExtendedDataCollectionEnabled(), and QQuick3DRenderStats::setRhiContext().
GlobalInfo QSSGRhiContextStats::globalInfo |
Definition at line 836 of file qssgrhicontext_p.h.
QSSGRenderLayer* QSSGRhiContextStats::layerKey = nullptr |
Definition at line 916 of file qssgrhicontext_p.h.
Referenced by beginRenderPass(), draw(), drawIndexed(), endRenderPass(), start(), and stop().
QHash<QSSGRenderLayer *, PerLayerInfo> QSSGRhiContextStats::perLayerInfo |
Definition at line 835 of file qssgrhicontext_p.h.
Referenced by beginRenderPass(), cleanupLayerInfo(), draw(), drawIndexed(), endRenderPass(), start(), and stop().