RenderMan API
23.0
|
#include <RixInterfaces.h>
Public Types | |
enum | Fmt { k_fmtAsTimeInterval, k_fmtAsMemory, k_fmtAsUInt, k_fmtAsInt, k_fmtAsFloat } |
Public Member Functions | |
virtual | ~SimpleStat () |
virtual void | Reset ()=0 |
virtual const char * | GetName ()=0 |
virtual const char * | GetDescription ()=0 |
virtual void | GetResults (uint64_t *result, Fmt *fmt)=0 |
Add a generic statistic via a subclass of the SimpleStat class interface. Rix takes ownership of the SimpleStat object and may destroy the object when the Rix session changes state. A duplicate call with the same name as a previously added statistic is ignored and will be deleted. We use uint64_t as the information exchange since it is both portable and can hold large numbers. AddSimpleStat returns 0 on success, non-zero on failure.
Definition at line 1191 of file RixInterfaces.h.
Enumerator | |
---|---|
k_fmtAsTimeInterval | |
k_fmtAsMemory | |
k_fmtAsUInt | |
k_fmtAsInt | |
k_fmtAsFloat |
Definition at line 1194 of file RixInterfaces.h.
|
inlinevirtual |
Definition at line 1202 of file RixInterfaces.h.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |