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>.
|
#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 QSSGRhiContextStats & | get (QSSGRhiContext &rhiCtx) |
static const QSSGRhiContextStats & | get (const QSSGRhiContext &rhiCtx) |
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 * | rhiCtx |
QSSGRenderLayer * | layerKey = nullptr |
QSet< QSSGRenderLayer * > | dynamicDataSources |
Definition at line 737 of file qssgrhicontext_p.h.
|
inline |
Definition at line 787 of file qssgrhicontext_p.h.
void QSSGRhiContextStats::beginRenderPass | ( | QRhiTextureRenderTarget * | rt | ) |
Definition at line 1463 of file qssgrhicontext.cpp.
References QString::fromUtf8(), info, layerKey, QRhiResource::name(), perLayerInfo, QRhiRenderTarget::pixelSize(), and Q_TRACE.
void QSSGRhiContextStats::cleanupLayerInfo | ( | QSSGRenderLayer * | layer | ) |
Definition at line 1457 of file qssgrhicontext.cpp.
References dynamicDataSources, perLayerInfo, and QSet< T >::remove().
Definition at line 1521 of file qssgrhicontext.cpp.
References QSSGRhiContextStats::InstancedDrawInfo::callCount, info, instanceCount, QSSGRhiContextStats::RenderPassInfo::instancedDraws, layerKey, perLayerInfo, and Q_TRACE.
Definition at line 1506 of file qssgrhicontext.cpp.
References QSSGRhiContextStats::InstancedDrawInfo::callCount, info, instanceCount, QSSGRhiContextStats::RenderPassInfo::instancedIndexedDraws, layerKey, perLayerInfo, and Q_TRACE.
void QSSGRhiContextStats::endRenderPass | ( | ) |
Definition at line 1471 of file qssgrhicontext.cpp.
References info, layerKey, perLayerInfo, and Q_TRACE.
|
static |
Definition at line 1483 of file qssgrhicontext.cpp.
References QSSGRhiContextPrivate::get(), and rhiCtx.
|
static |
Definition at line 1478 of file qssgrhicontext.cpp.
References QSSGRhiContextPrivate::get(), and rhiCtx.
Referenced by QQuick3DSceneRenderer::~QQuick3DSceneRenderer(), QSSGBufferManager::decreaseMemoryStat(), QSSGBufferManager::decreaseMemoryStat(), QSSGRendererPrivate::getShaderPipelineForDefaultMaterial(), QSSGBufferManager::increaseMemoryStat(), QSSGBufferManager::increaseMemoryStat(), QQuick3DSGRenderNode::render(), QQuick3DSceneRenderer::renderToRhiTexture(), QQuick3DRenderStats::setRhiContext(), and QSSGCustomMaterialSystem::shadersForCustomMaterial().
Definition at line 817 of file qssgrhicontext_p.h.
References QSSGRhiContextStats::GlobalInfo::imageDataSize.
bool QSSGRhiContextStats::isEnabled | ( | ) | const |
Definition at line 1500 of file qssgrhicontext.cpp.
References dynamicDataSources, QSet< T >::isEmpty(), profilingEnabled(), Q_TRACE_ENABLED, and rendererDebugEnabled().
Definition at line 812 of file qssgrhicontext_p.h.
References QSSGRhiContextStats::GlobalInfo::meshDataSize.
void QSSGRhiContextStats::printRenderPass | ( | const RenderPassInfo & | rp | ) |
Definition at line 1536 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().
|
static |
Definition at line 1488 of file qssgrhicontext.cpp.
References enabled, and Q_QUICK3D_PROFILING_ENABLED.
Referenced by isEnabled().
Definition at line 827 of file qssgrhicontext_p.h.
References QSSGRhiContextStats::GlobalInfo::effectGenerationTime.
Definition at line 822 of file qssgrhicontext_p.h.
References QSSGRhiContextStats::GlobalInfo::materialGenerationTime.
|
static |
Definition at line 1494 of file qssgrhicontext.cpp.
References enabled, QByteArrayLiteral, and qgetenv().
Referenced by isEnabled(), and stop().
void QSSGRhiContextStats::start | ( | QSSGRenderLayer * | layer | ) |
Definition at line 1420 of file qssgrhicontext.cpp.
References info, layerKey, and perLayerInfo.
void QSSGRhiContextStats::stop | ( | QSSGRenderLayer * | layer | ) |
Definition at line 1429 of file qssgrhicontext.cpp.
References QByteArray::constData(), QSize::height(), i, info, layerKey, perLayerInfo, QSSGRhiContextStats::RenderPassInfo::pixelSize, printRenderPass(), qDebug, rendererDebugEnabled(), QSSGRhiContextStats::RenderPassInfo::rtName, and QSize::width().
|
inlinestatic |
Definition at line 832 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 840 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().
QSet<QSSGRenderLayer *> QSSGRhiContextStats::dynamicDataSources |
Definition at line 857 of file qssgrhicontext_p.h.
Referenced by cleanupLayerInfo(), isEnabled(), QQuick3DRenderStats::setExtendedDataCollectionEnabled(), and QQuick3DRenderStats::setRhiContext().
GlobalInfo QSSGRhiContextStats::globalInfo |
Definition at line 785 of file qssgrhicontext_p.h.
QSSGRenderLayer* QSSGRhiContextStats::layerKey = nullptr |
Definition at line 856 of file qssgrhicontext_p.h.
Referenced by beginRenderPass(), draw(), drawIndexed(), endRenderPass(), start(), and stop().
QHash<QSSGRenderLayer *, PerLayerInfo> QSSGRhiContextStats::perLayerInfo |
Definition at line 784 of file qssgrhicontext_p.h.
Referenced by beginRenderPass(), cleanupLayerInfo(), draw(), drawIndexed(), endRenderPass(), start(), and stop().
QSSGRhiContext* QSSGRhiContextStats::rhiCtx |
Definition at line 855 of file qssgrhicontext_p.h.
Referenced by get(), get(), and QQuick3DRenderStats::setRhiContext().