RenderManAPI
24.0
|
Add a generic statistic via a subclass of the SimpleStat class interface. More...
#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.
|
inlinevirtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |