HDK
|
#include <BRAY_Stats.h>
Classes | |
struct | AutoBucket |
struct | Value |
Public Member Functions | |
Stats (const BRAY_Renderer &renderer) | |
~Stats () | |
BRAY_RenderStage | renderStage () const |
Lightweight method to get the render stage. More... | |
fpreal | percentComplete () const |
Lightweight method to get the percent complete (between 0 and 100) More... | |
Value | get (Key key) const |
Get the value of the stat. More... | |
Value | get (DeviceKey key, int device) const |
Get the value of the device stat. More... | |
void | initDevices () |
void | clear () |
Clear for next render. More... | |
Static Public Member Functions | |
static const UT_StringHolder & | keyName (Key key) |
static const UT_StringHolder & | deviceKeyName (DeviceKey key) |
void | setPercentDone (fpreal v) |
void | setTTFP (fpreal v) |
void | setProgressAnnotation (const UT_StringHolder &s) |
void | setStatsAnnotation (const UT_StringHolder &s) |
void | setAnnotations (const UT_StringHolder &progress_annotation, const UT_StringHolder &stats_annotation) |
void | startBucket (const UT_DimRect &bounds, int pass) |
void | endBucket () |
Definition at line 28 of file BRAY_Stats.h.
Enumerator | |
---|---|
DEVICE_LABEL | |
DEVICE_TYPE | |
DEVICE_STATUS | |
DEVICE_ERROR | |
DEVICE_MEMORY | |
DEVICE_SAMPLES | |
DEVICE_CONTRIB | |
DEVICE_MAX_KEYS |
Definition at line 124 of file BRAY_Stats.h.
enum BRAY::Stats::Key |
Definition at line 35 of file BRAY_Stats.h.
BRAY::Stats::Stats | ( | const BRAY_Renderer & | renderer | ) |
BRAY::Stats::~Stats | ( | ) |
void BRAY::Stats::clear | ( | ) |
Clear for next render.
|
static |
void BRAY::Stats::endBucket | ( | ) |
Get the value of the stat.
Definition at line 172 of file BRAY_Stats.h.
Get the value of the device stat.
Definition at line 176 of file BRAY_Stats.h.
void BRAY::Stats::initDevices | ( | ) |
After XPU devices are initialized, call this method to configure the stats.
|
static |
fpreal BRAY::Stats::percentComplete | ( | ) | const |
Lightweight method to get the percent complete (between 0 and 100)
BRAY_RenderStage BRAY::Stats::renderStage | ( | ) | const |
Lightweight method to get the render stage.
void BRAY::Stats::setAnnotations | ( | const UT_StringHolder & | progress_annotation, |
const UT_StringHolder & | stats_annotation | ||
) |
void BRAY::Stats::setProgressAnnotation | ( | const UT_StringHolder & | s | ) |
void BRAY::Stats::setStatsAnnotation | ( | const UT_StringHolder & | s | ) |
void BRAY::Stats::startBucket | ( | const UT_DimRect & | bounds, |
int | pass | ||
) |