class RED::PassStatistics
Data record of a single rendering pass. More...
#include <REDFrameStatistics.h>
Inherits: Object.
Public functions:
PassStatistics ( ) | |
~PassStatistics ( ) | |
virtual void * | As ( const RED::CID & iCID ) |
virtual const void * | As ( const RED::CID & iCID ) const |
template< class T_As > const T_As * | As ( ) const |
template< class T_As > T_As * | As ( ) |
int | GetDrawCallsCount ( ) const |
float | GetElapsedTime ( ) const |
int | GetMaterialSetupsCount ( ) const |
int | GetMatrixSwapsCount ( ) const |
RED::RENDERING_PASS | GetPass ( ) const |
Public static functions:
static RED::CID | GetClassID ( ) |
Detailed description:
Data record of a single rendering pass.
This class is accessed from the RED::ViewpointStatistics class.
Functions documentation
public RED::PassStatistics::PassStatistics | ( | ) |
PassStatistics default construction method.
public RED::PassStatistics::~PassStatistics | ( | ) |
PassStatistics destruction method.
public static RED::CID RED::PassStatistics::GetClassID | ( | ) |
Reimplements: RED::Object::GetClassID.
public virtual void * RED::PassStatistics::As | ( | const RED::CID & | iCID | ) |
Converts the object to an instance of the given type.
Parameters:
iCID: | Requested class. |
Returns:
Reimplements: RED::Object::As.
public virtual const void * RED::PassStatistics::As | ( | const RED::CID & | iCID | ) const |
Converts the object to an instance of the given type.
Parameters:
iCID: | Requested class. |
Returns:
Reimplements: RED::Object::As.
template< class T_As > public const T_As * RED::PassStatistics::As | ( | ) const |
Template version of the as const method.
Simply set T to be the class you want to retrieve an interface to.
Returns:
Reimplements: RED::Object::As.
template< class T_As > public T_As * RED::PassStatistics::As | ( | ) |
Template version of the as method.
Simply set T to be the class you want to retrieve an interface to.
Returns:
Reimplements: RED::Object::As.
public int RED::PassStatistics::GetDrawCallsCount | ( | ) const |
Access the number of rendering calls for that pass.
Note that this does not cover any immediate mode rendering calls.
Returns:
public float RED::PassStatistics::GetElapsedTime | ( | ) const |
Access the time spent in processing that pass.
The elapsed time in a pass is only valid if that pass has been declared as being synchronized. Otherwise, the returned time is 0.0f.
Returns:
public int RED::PassStatistics::GetMaterialSetupsCount | ( | ) const |
Access the number of material setups for that pass.
This is the number of times the material setup been changed for that frame.
Returns:
public int RED::PassStatistics::GetMatrixSwapsCount | ( | ) const |
Access the number of matrix swaps for that pass.
This is the number of times the current transformation matrix has been changed for that frame.
Returns:
public RED::RENDERING_PASS RED::PassStatistics::GetPass | ( | ) const |
Access the kind of rendering pass that was rendered.
Returns: