PassStatistics

Functions

SET_CID

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

SET_CID (CID_class_REDPassStatistics) IMPLEMENT_AS()
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.