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 ( )
intGetDrawCallsCount ( ) const
floatGetElapsedTime ( ) const
intGetMaterialSetupsCount ( ) const
intGetMatrixSwapsCount ( ) const
RED::RENDERING_PASSGetPass ( ) const

Public static functions:

static RED::CIDGetClassID ( )

Detailed description:

Data record of a single rendering pass.

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

Functions documentation

PassStatistics default construction method.

PassStatistics destruction method.

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:

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

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:

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

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:

A pointer to a const instance of class T on success, NULL otherwise.

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:

A pointer to an instance of class T on success, NULL otherwise.

Reimplements: RED::Object::As.

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.

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.

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.

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.

Access the kind of rendering pass that was rendered.

Returns:

The pass identifier.