3#include <Common/assertion.h>
4#include <Common/primitive_type.h>
50 const uint64 totalWork,
51 const uint64 workDone,
52 const uint64 elapsedMs) :
53 m_totalWork(totalWork),
55 m_elapsedMs(elapsedMs)
77 return static_cast<real
>(m_workDone) /
static_cast<real
>(m_totalWork);
92 m_totalWork += rhs.m_totalWork;
93 m_workDone += rhs.m_workDone;
94 m_elapsedMs += rhs.m_elapsedMs;
Definition RenderProgress.h:12
RenderProgress()
Represents no progress.
Definition RenderProgress.h:45
uint64 getTotalWork() const
Definition RenderProgress.h:58
uint64 getWorkDone() const
Definition RenderProgress.h:63
real getPercentageProgress() const
Definition RenderProgress.h:85
real getNormalizedProgress() const
Definition RenderProgress.h:73
uint64 getElapsedMs() const
Definition RenderProgress.h:68
RenderProgress & operator+=(const RenderProgress &rhs)
Definition RenderProgress.h:90
The root for all renderer implementations.
Definition EEngineProject.h:6