Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::glHardwareQueryRing Class Referencefinal

#include <glHardwareQuery.h>

+ Inheritance diagram for Divide::glHardwareQueryRing:

Public Member Functions

 glHardwareQueryRing (GFXDevice &context, gl46core::GLenum queryType, U16 queueLength, U32 id=0)
 
 ~glHardwareQueryRing () override
 
void resize (U16 queueLength) override
 
U32 id () const noexcept
 
void begin () const
 
void end () const
 
bool isResultAvailable () const
 
I64 getResult () const
 
I64 getResultNoWait () const
 
gl46core::GLenum type () const noexcept
 
- Public Member Functions inherited from Divide::RingBufferSeparateWrite
 RingBufferSeparateWrite (U16 queueLength, bool separateReadWrite, bool writeAhead=true) noexcept
 
virtual ~RingBufferSeparateWrite ()=default
 
virtual void resize (U16 queueLength)
 
U16 queueLength () const noexcept
 
I32 queueWriteIndex () const noexcept
 
I32 queueReadIndex () const noexcept
 
I32 incQueue () noexcept
 
I32 decQueue () noexcept
 
- Public Member Functions inherited from Divide::NonCopyable
 NonCopyable (const NonCopyable &)=delete
 
NonCopyableoperator= (const NonCopyable &)=delete
 
 NonCopyable (NonCopyable &&)=default
 
NonCopyableoperator= (NonCopyable &&)=default
 

Protected Member Functions

const glHardwareQueryreadQuery () const
 
const glHardwareQuerywriteQuery () const
 
- Protected Member Functions inherited from Divide::NonCopyable
 NonCopyable ()=default
 
 ~NonCopyable ()=default
 

Protected Attributes

GFXDevice_context
 
vector< glHardwareQuery_queries
 
U32 _id = 0u
 
gl46core::GLenum _queryType = gl46core::GL_NONE
 

Detailed Description

Definition at line 65 of file glHardwareQuery.h.

Constructor & Destructor Documentation

◆ glHardwareQueryRing()

Divide::glHardwareQueryRing::glHardwareQueryRing ( GFXDevice context,
gl46core::GLenum  queryType,
U16  queueLength,
U32  id = 0 
)
explicit

Definition at line 49 of file glHardwareQuery.cpp.

◆ ~glHardwareQueryRing()

Divide::glHardwareQueryRing::~glHardwareQueryRing ( )
override

Definition at line 59 of file glHardwareQuery.cpp.

Member Function Documentation

◆ begin()

void Divide::glHardwareQueryRing::begin ( ) const

Definition at line 106 of file glHardwareQuery.cpp.

◆ end()

void Divide::glHardwareQueryRing::end ( ) const

Definition at line 111 of file glHardwareQuery.cpp.

◆ getResult()

I64 Divide::glHardwareQueryRing::getResult ( ) const
inline

Definition at line 82 of file glHardwareQuery.h.

◆ getResultNoWait()

I64 Divide::glHardwareQueryRing::getResultNoWait ( ) const
inline

Definition at line 86 of file glHardwareQuery.h.

◆ id()

U32 Divide::glHardwareQueryRing::id ( ) const
inlinenoexcept

Definition at line 73 of file glHardwareQuery.h.

◆ isResultAvailable()

bool Divide::glHardwareQueryRing::isResultAvailable ( ) const
inline

Definition at line 78 of file glHardwareQuery.h.

◆ readQuery()

const glHardwareQuery & Divide::glHardwareQueryRing::readQuery ( ) const
protected

Definition at line 67 of file glHardwareQuery.cpp.

◆ resize()

void Divide::glHardwareQueryRing::resize ( U16  queueLength)
overridevirtual

Reimplemented from Divide::RingBufferSeparateWrite.

Definition at line 77 of file glHardwareQuery.cpp.

◆ type()

gl46core::GLenum Divide::glHardwareQueryRing::type ( ) const
inlinenoexcept

Definition at line 90 of file glHardwareQuery.h.

◆ writeQuery()

const glHardwareQuery & Divide::glHardwareQueryRing::writeQuery ( ) const
protected

Definition at line 72 of file glHardwareQuery.cpp.

Member Data Documentation

◆ _context

GFXDevice& Divide::glHardwareQueryRing::_context
protected

Definition at line 98 of file glHardwareQuery.h.

◆ _id

U32 Divide::glHardwareQueryRing::_id = 0u
protected

Definition at line 100 of file glHardwareQuery.h.

◆ _queries

vector<glHardwareQuery> Divide::glHardwareQueryRing::_queries
protected

Definition at line 99 of file glHardwareQuery.h.

◆ _queryType

gl46core::GLenum Divide::glHardwareQueryRing::_queryType = gl46core::GL_NONE
protected

Definition at line 101 of file glHardwareQuery.h.


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