class
RenderStats
Tracks various render system statistics.
Public
Methods
IncNumDrawCalls
Increments draw call counter indicating how many times were render system API Draw methods called.
IncNumComputeCalls
Increments compute call counter indicating how many times were compute shaders dispatched.
IncNumRenderTargetChanges
Increments render target change counter indicating how many times did the active render target change.
IncNumPresents
Increments render target present counter indicating how many times did the buffer swap happen.
IncNumClears
Increments render target clear counter indicating how many times did the target the cleared, entirely or partially.
AddNumVertices
Increments vertex draw counter indicating how many vertices were sent to the pipeline.
AddNumPrimitives
Increments primitive draw counter indicating how many primitives were sent to the pipeline.
IncNumPipelineStateChanges
Increments pipeline state change counter indicating how many times was a pipeline state bound.
IncNumGpuParamBinds
Increments GPU parameter change counter indicating how many times were GPU parameters bound to the pipeline.
IncNumVertexBufferBinds
Increments vertex buffer change counter indicating how many times was a vertex buffer bound to the pipeline.
IncNumIndexBufferBinds
Increments index buffer change counter indicating how many times was a index buffer bound to the pipeline.
IncResCreated
Increments created GPU resource counter.
- category
- Category of the resource.
IncResDestroyed
Increments destroyed GPU resource counter.
- category
- Category of the resource.
IncResRead
Increments GPU resource read counter.
- category
- Category of the resource.
IncResWrite
Increments GPU resource write counter.
- category
- Category of the resource.
staticInstance
Returns a reference to the module instance.
Module has to have been started up first otherwise an exception will be thrown.
staticInstancePtr
Returns a pointer to the module instance.
Module has to have been started up first otherwise an exception will be thrown.
staticShutDown
Shuts down this module and frees any resources it is using.
staticIsStarted
Query if the module has been started.
Protected
Methods
~Module<T>
OnStartUp
Override if you want your module to be notified once it has been constructed and started.
OnShutDown
Override if you want your module to be notified just before it is deleted.
staticInstanceInternal
Returns a singleton instance of this module.