Public Member Functions | Private Attributes | Friends | List of all members
gte::DX11PerformanceCounter Class Reference

#include <GteDX11PerformanceCounter.h>

Public Member Functions

void AccumulateTime ()
 
 DX11PerformanceCounter (ID3D11Device *device)
 
double GetAverageSeconds () const
 
unsigned int GetNumMeasurements () const
 
double GetSeconds () const
 
double GetSeconds (int64_t numTicks) const
 
int64_t GetTicks () const
 
int64_t GetTicks (double seconds) const
 
void ResetAccumulateTime ()
 
 ~DX11PerformanceCounter ()
 

Private Attributes

int64_t mFinalTime
 
ID3D11Query * mFinalTimeQuery
 
double mFrequency
 
ID3D11Query * mFrequencyQuery
 
double mInvFrequency
 
unsigned int mNumMeasurements
 
int64_t mStartTime
 
ID3D11Query * mStartTimeQuery
 
D3D11_QUERY_DATA_TIMESTAMP_DISJOINT mTimeStamp
 
double mTotalSeconds
 

Friends

class DX11Engine
 

Detailed Description

Definition at line 17 of file GteDX11PerformanceCounter.h.

Constructor & Destructor Documentation

DX11PerformanceCounter::~DX11PerformanceCounter ( )

Definition at line 14 of file GteDX11PerformanceCounter.cpp.

DX11PerformanceCounter::DX11PerformanceCounter ( ID3D11Device *  device)

Definition at line 21 of file GteDX11PerformanceCounter.cpp.

Member Function Documentation

void DX11PerformanceCounter::AccumulateTime ( )

Definition at line 106 of file GteDX11PerformanceCounter.cpp.

double DX11PerformanceCounter::GetAverageSeconds ( ) const

Definition at line 112 of file GteDX11PerformanceCounter.cpp.

unsigned int DX11PerformanceCounter::GetNumMeasurements ( ) const

Definition at line 121 of file GteDX11PerformanceCounter.cpp.

double DX11PerformanceCounter::GetSeconds ( ) const

Definition at line 76 of file GteDX11PerformanceCounter.cpp.

double DX11PerformanceCounter::GetSeconds ( int64_t  numTicks) const

Definition at line 90 of file GteDX11PerformanceCounter.cpp.

int64_t DX11PerformanceCounter::GetTicks ( ) const

Definition at line 71 of file GteDX11PerformanceCounter.cpp.

int64_t DX11PerformanceCounter::GetTicks ( double  seconds) const

Definition at line 95 of file GteDX11PerformanceCounter.cpp.

void DX11PerformanceCounter::ResetAccumulateTime ( )

Definition at line 100 of file GteDX11PerformanceCounter.cpp.

Friends And Related Function Documentation

friend class DX11Engine
friend

Definition at line 43 of file GteDX11PerformanceCounter.h.

Member Data Documentation

int64_t gte::DX11PerformanceCounter::mFinalTime
private

Definition at line 50 of file GteDX11PerformanceCounter.h.

ID3D11Query* gte::DX11PerformanceCounter::mFinalTimeQuery
private

Definition at line 48 of file GteDX11PerformanceCounter.h.

double gte::DX11PerformanceCounter::mFrequency
private

Definition at line 49 of file GteDX11PerformanceCounter.h.

ID3D11Query* gte::DX11PerformanceCounter::mFrequencyQuery
private

Definition at line 46 of file GteDX11PerformanceCounter.h.

double gte::DX11PerformanceCounter::mInvFrequency
private

Definition at line 49 of file GteDX11PerformanceCounter.h.

unsigned int gte::DX11PerformanceCounter::mNumMeasurements
private

Definition at line 52 of file GteDX11PerformanceCounter.h.

int64_t gte::DX11PerformanceCounter::mStartTime
private

Definition at line 50 of file GteDX11PerformanceCounter.h.

ID3D11Query* gte::DX11PerformanceCounter::mStartTimeQuery
private

Definition at line 47 of file GteDX11PerformanceCounter.h.

D3D11_QUERY_DATA_TIMESTAMP_DISJOINT gte::DX11PerformanceCounter::mTimeStamp
private

Definition at line 45 of file GteDX11PerformanceCounter.h.

double gte::DX11PerformanceCounter::mTotalSeconds
private

Definition at line 51 of file GteDX11PerformanceCounter.h.


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


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:05