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

#include <RenderStats.h>

Public Types

enum class  EType { INTEGER , REAL }
 
using IntegerType = int64
 
using RealType = float32
 

Public Member Functions

 RenderStats ()=default
 
IntegerType getInteger (std::size_t index) const
 
RealType getReal (std::size_t index) const
 
void setInteger (std::size_t index, IntegerType value)
 
void setReal (std::size_t index, RealType value)
 

Static Public Member Functions

static constexpr std::size_t numStats (EType type)
 

Static Public Attributes

static constexpr std::size_t NUM_INTEGERS = 4
 
static constexpr std::size_t NUM_REALS = 4
 

Member Typedef Documentation

◆ IntegerType

◆ RealType

using ph::RenderStats::RealType = float32

Member Enumeration Documentation

◆ EType

enum class ph::RenderStats::EType
strong
Enumerator
INTEGER 
REAL 

Constructor & Destructor Documentation

◆ RenderStats()

ph::RenderStats::RenderStats ( )
default

Member Function Documentation

◆ getInteger()

auto ph::RenderStats::getInteger ( std::size_t index) const
inline

◆ getReal()

auto ph::RenderStats::getReal ( std::size_t index) const
inline

◆ numStats()

std::size_t ph::RenderStats::numStats ( EType type)
inlinestaticconstexpr

◆ setInteger()

void ph::RenderStats::setInteger ( std::size_t index,
IntegerType value )
inline

◆ setReal()

void ph::RenderStats::setReal ( std::size_t index,
RealType value )
inline

Member Data Documentation

◆ NUM_INTEGERS

std::size_t ph::RenderStats::NUM_INTEGERS = 4
staticconstexpr

◆ NUM_REALS

std::size_t ph::RenderStats::NUM_REALS = 4
staticconstexpr

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