3#include <Common/assertion.h>
4#include <Common/primitive_type.h>
45 PH_ASSERT_LT(index, NUM_INTEGERS);
47 return m_integers[index];
52 PH_ASSERT_LT(index, NUM_REALS);
54 return m_reals[index];
61 m_integers[index] = value;
68 m_reals[index] = value;
Definition RenderStats.h:12
int64 IntegerType
Definition RenderStats.h:14
EType
Definition RenderStats.h:21
float32 RealType
Definition RenderStats.h:15
IntegerType getInteger(std::size_t index) const
Definition RenderStats.h:43
static constexpr std::size_t NUM_INTEGERS
Definition RenderStats.h:17
static constexpr std::size_t numStats(EType type)
Definition RenderStats.h:71
void setInteger(std::size_t index, IntegerType value)
Definition RenderStats.h:57
void setReal(std::size_t index, RealType value)
Definition RenderStats.h:64
RealType getReal(std::size_t index) const
Definition RenderStats.h:50
static constexpr std::size_t NUM_REALS
Definition RenderStats.h:18
The root for all renderer implementations.
Definition EEngineProject.h:6