PassStatistics

Functions

CID

GetClassID

void *

As

const void *

As

class T_As

As

class T_As

As

PassStatistics

~PassStatistics

RENDERING_PASS

GetPass

float

GetElapsedTime

int

GetDrawCallsCount

int

GetMatrixSwapsCount

int

GetMaterialSetupsCount

Detailed Description

class PassStatistics : public RED::Object

Data record of a single rendering pass.

This class is accessed from the RED::ViewpointStatistics class.

Public Functions

virtual void *As(const RED::CID &iCID)

Converts the object to an instance of the given type.

Parameters

iCID – Requested class.

Returns

An object pointer of the given class on success, NULL otherwise.

virtual const void *As(const RED::CID &iCID) const

Converts the object to an instance of the given type.

Parameters

iCID – Requested class.

Returns

An object pointer of the given class on success, NULL otherwise.

template<class T_As>
inline T_As *As()
template<class T_As>
inline const T_As *As() const
PassStatistics()

PassStatistics default construction method.

~PassStatistics()

PassStatistics destruction method.

inline RED::RENDERING_PASS GetPass() const

Access the kind of rendering pass that was rendered.

Returns

The pass identifier.

inline float 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

The elapsed time for that pass, in milliseconds.

inline int GetDrawCallsCount() const

Access the number of rendering calls for that pass.

Note that this does not cover any immediate mode rendering calls.

Returns

The number of draw calls processed for that pass.

inline int 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

The number of matrix swaps processed for that pass.

inline int 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

The number of material setups processed for that pass.

Public Static Functions

static inline RED::CID GetClassID()