#include <DebugOverlays.hpp>
◆ DebugOverlays()
castor3d::DebugOverlays::DebugOverlays |
( |
Engine & |
engine | ) |
|
|
explicit |
◆ ~DebugOverlays()
castor3d::DebugOverlays::~DebugOverlays |
( |
| ) |
|
◆ beginFrame()
RenderInfo & castor3d::DebugOverlays::beginFrame |
( |
| ) |
|
Resets all frame counters.
- Returns
- The render infos.
◆ cleanup()
void castor3d::DebugOverlays::cleanup |
( |
| ) |
|
◆ dumpFrameTimes()
void castor3d::DebugOverlays::dumpFrameTimes |
( |
Parameters & |
params | ) |
|
Fills the parameters with all passes times, in nanoseconds.
- Parameters
-
[in,out] | params | Receives the times. |
◆ endCpuTask()
void castor3d::DebugOverlays::endCpuTask |
( |
| ) |
|
Used to add to the GPU time, the time elapsed between now and the last call of either endGpuTask or endCpuTask.
◆ endFrame()
castor::Microseconds castor3d::DebugOverlays::endFrame |
( |
bool |
first | ) |
|
Updates the overlays texts.
- Parameters
-
[in] | first | Tells if this is the first pass. |
- Returns
- The elapsed time for this frame.
◆ endGpuTask()
void castor3d::DebugOverlays::endGpuTask |
( |
| ) |
|
Used to add to the GPU time, the time elapsed between now and the last call of either endGpuTask or endCpuTask.
◆ getAvgFrameTime()
castor::Nanoseconds castor3d::DebugOverlays::getAvgFrameTime |
( |
| ) |
const |
|
inline |
◆ initialise()
void castor3d::DebugOverlays::initialise |
( |
OverlayCache & |
cache | ) |
|
Initialisation function, retrieves the overlays from the given overlay cache.
- Parameters
-
[in] | cache | The overlay cache. |
◆ isShown()
bool castor3d::DebugOverlays::isShown |
( |
| ) |
const |
|
inline |
- Returns
- The debug overlays shown status.
◆ registerTimer()
uint32_t castor3d::DebugOverlays::registerTimer |
( |
castor::String const & |
category, |
|
|
FramePassTimer & |
timer |
|
) |
| |
Registers a render pass timer.
- Parameters
-
[in] | category | The timer category name. |
[in] | timer | The timer to register. |
- Returns
- The query ID.
◆ show()
void castor3d::DebugOverlays::show |
( |
bool |
show | ) |
|
Show or hide debug overlays.
- Parameters
-
◆ unregisterTimer()
void castor3d::DebugOverlays::unregisterTimer |
( |
castor::String const & |
category, |
|
|
FramePassTimer & |
timer |
|
) |
| |
Unregisters a render pass timer.
- Parameters
-
[in] | category | The timer category name. |
[in] | timer | The timer to unregister. |
The documentation for this class was generated from the following file: