Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::RenderProgress Class Referencefinal

#include <RenderProgress.h>

Public Member Functions

 RenderProgress ()
 Represents no progress.
 
 RenderProgress (uint64 totalWork, uint64 workDone, uint64 elapsedMs)
 
uint64 getTotalWork () const
 
uint64 getWorkDone () const
 
uint64 getElapsedMs () const
 
real getNormalizedProgress () const
 
real getPercentageProgress () const
 
RenderProgressoperator+= (const RenderProgress &rhs)
 

Constructor & Destructor Documentation

◆ RenderProgress() [1/2]

ph::RenderProgress::RenderProgress ( )
inline

Represents no progress.

◆ RenderProgress() [2/2]

ph::RenderProgress::RenderProgress ( uint64 totalWork,
uint64 workDone,
uint64 elapsedMs )
inline

Member Function Documentation

◆ getElapsedMs()

uint64 ph::RenderProgress::getElapsedMs ( ) const
inline
Returns
Time spent for getting the work done. Whether the time will be in wall clock time or CPU time (or any other measurements) is up to the progress provider.

◆ getNormalizedProgress()

real ph::RenderProgress::getNormalizedProgress ( ) const
inline

◆ getPercentageProgress()

real ph::RenderProgress::getPercentageProgress ( ) const
inline

◆ getTotalWork()

uint64 ph::RenderProgress::getTotalWork ( ) const
inline

◆ getWorkDone()

uint64 ph::RenderProgress::getWorkDone ( ) const
inline

◆ operator+=()

RenderProgress & ph::RenderProgress::operator+= ( const RenderProgress & rhs)
inline

The documentation for this class was generated from the following file: