Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::performance_profiler::per_frame_data Struct Reference

#include <profiler.h>

Public Member Functions

 per_frame_data ()=default
 
 per_frame_data (float t)
 
 operator float () const
 
auto operator+= (float t) -> per_frame_data &
 

Public Attributes

float time = 0.0f
 
uint32_t samples = 0
 

Detailed Description

Definition at line 24 of file profiler.h.

Constructor & Destructor Documentation

◆ per_frame_data() [1/2]

unravel::performance_profiler::per_frame_data::per_frame_data ( )
default

◆ per_frame_data() [2/2]

unravel::performance_profiler::per_frame_data::per_frame_data ( float t)
inline

Definition at line 30 of file profiler.h.

Member Function Documentation

◆ operator float()

unravel::performance_profiler::per_frame_data::operator float ( ) const
inline

Definition at line 34 of file profiler.h.

◆ operator+=()

auto unravel::performance_profiler::per_frame_data::operator+= ( float t) -> per_frame_data&
inline

Definition at line 38 of file profiler.h.

Member Data Documentation

◆ samples

uint32_t unravel::performance_profiler::per_frame_data::samples = 0

Definition at line 27 of file profiler.h.

◆ time

float unravel::performance_profiler::per_frame_data::time = 0.0f

Definition at line 26 of file profiler.h.


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