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

#include <qssgrhicontext_p.h>

Collaboration diagram for QSSGRhiContextStats:

Classes

struct  DrawInfo
struct  InstancedDrawInfo
struct  RenderPassInfo
struct  PerLayerInfo
struct  GlobalInfo

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 *layerlayer)
void stop (QSSGRenderLayer *layerlayer)
void beginRenderPass (QRhiTextureRenderTarget *rt)
void endRenderPass ()
void printRenderPass (const RenderPassInfo &rp)
void cleanupLayerInfo (QSSGRenderLayer *layerlayer)

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

Detailed Description

Definition at line 1061 of file qssgrhicontext_p.h.

Constructor & Destructor Documentation

◆ QSSGRhiContextStats()

QSSGRhiContextStats::QSSGRhiContextStats ( QSSGRhiContext & context)
inline

Definition at line 1111 of file qssgrhicontext_p.h.

Member Function Documentation

◆ beginRenderPass()

void QSSGRhiContextStats::beginRenderPass ( QRhiTextureRenderTarget * rt)

Definition at line 1921 of file qssgrhicontext.cpp.

◆ cleanupLayerInfo()

void QSSGRhiContextStats::cleanupLayerInfo ( QSSGRenderLayer * layer)

Definition at line 1915 of file qssgrhicontext.cpp.

◆ draw()

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

Definition at line 1979 of file qssgrhicontext.cpp.

◆ drawIndexed()

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

Definition at line 1964 of file qssgrhicontext.cpp.

◆ endRenderPass()

void QSSGRhiContextStats::endRenderPass ( )

Definition at line 1929 of file qssgrhicontext.cpp.

◆ get() [1/2]

const QSSGRhiContextStats & QSSGRhiContextStats::get ( const QSSGRhiContext & rhiCtx)
staticnodiscard

Definition at line 1941 of file qssgrhicontext.cpp.

◆ get() [2/2]

QSSGRhiContextStats & QSSGRhiContextStats::get ( QSSGRhiContext & rhiCtx)
staticnodiscard

Definition at line 1936 of file qssgrhicontext.cpp.

◆ imageDataSizeChanges()

void QSSGRhiContextStats::imageDataSizeChanges ( quint64 newSize)
inline

Definition at line 1141 of file qssgrhicontext_p.h.

◆ isEnabled()

bool QSSGRhiContextStats::isEnabled ( ) const

Definition at line 1958 of file qssgrhicontext.cpp.

◆ meshDataSizeChanges()

void QSSGRhiContextStats::meshDataSizeChanges ( quint64 newSize)
inline

Definition at line 1136 of file qssgrhicontext_p.h.

◆ printRenderPass()

void QSSGRhiContextStats::printRenderPass ( const RenderPassInfo & rp)

Definition at line 1994 of file qssgrhicontext.cpp.

◆ profilingEnabled()

bool QSSGRhiContextStats::profilingEnabled ( )
static

Definition at line 1946 of file qssgrhicontext.cpp.

◆ registerEffectShaderGenerationTime()

void QSSGRhiContextStats::registerEffectShaderGenerationTime ( qint64 ms)
inline

Definition at line 1151 of file qssgrhicontext_p.h.

◆ registerMaterialShaderGenerationTime()

void QSSGRhiContextStats::registerMaterialShaderGenerationTime ( qint64 ms)
inline

Definition at line 1146 of file qssgrhicontext_p.h.

◆ rendererDebugEnabled()

bool QSSGRhiContextStats::rendererDebugEnabled ( )
static

Definition at line 1952 of file qssgrhicontext.cpp.

◆ start()

void QSSGRhiContextStats::start ( QSSGRenderLayer * layer)

Definition at line 1878 of file qssgrhicontext.cpp.

◆ stop()

void QSSGRhiContextStats::stop ( QSSGRenderLayer * layer)

Definition at line 1887 of file qssgrhicontext.cpp.

◆ totalDrawCallCountForPass()

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

Definition at line 1156 of file qssgrhicontext_p.h.

◆ totalVertexCountForPass()

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

Definition at line 1164 of file qssgrhicontext_p.h.

Member Data Documentation

◆ dynamicDataSources

QSet<QSSGRenderLayer *> QSSGRhiContextStats::dynamicDataSources

Definition at line 1181 of file qssgrhicontext_p.h.

◆ globalInfo

GlobalInfo QSSGRhiContextStats::globalInfo

Definition at line 1109 of file qssgrhicontext_p.h.

◆ layerKey

QSSGRenderLayer* QSSGRhiContextStats::layerKey = nullptr

Definition at line 1180 of file qssgrhicontext_p.h.

◆ perLayerInfo

QHash<QSSGRenderLayer *, PerLayerInfo> QSSGRhiContextStats::perLayerInfo

Definition at line 1108 of file qssgrhicontext_p.h.

◆ rhiCtx

QSSGRhiContext* QSSGRhiContextStats::rhiCtx

Definition at line 1179 of file qssgrhicontext_p.h.


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