Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QGles2SwapChainTimestamps Struct Reference

#include <qrhigles2_p.h>

+ Collaboration diagram for QGles2SwapChainTimestamps:

Public Member Functions

void prepare (QRhiGles2 *rhiD)
 
void destroy (QRhiGles2 *rhiD)
 
bool tryQueryTimestamps (int pairIndex, QRhiGles2 *rhiD, double *elapsedSec)
 

Public Attributes

bool active [TIMESTAMP_PAIRS] = {}
 
GLuint query [TIMESTAMP_PAIRS *2] = {}
 

Static Public Attributes

static const int TIMESTAMP_PAIRS = 2
 

Detailed Description

Definition at line 720 of file qrhigles2_p.h.

Member Function Documentation

◆ destroy()

void QGles2SwapChainTimestamps::destroy ( QRhiGles2 * rhiD)

Definition at line 6660 of file qrhigles2.cpp.

References active, and TIMESTAMP_PAIRS.

◆ prepare()

void QGles2SwapChainTimestamps::prepare ( QRhiGles2 * rhiD)

Definition at line 6654 of file qrhigles2.cpp.

References TIMESTAMP_PAIRS.

Referenced by QGles2SwapChain::createOrResize().

+ Here is the caller graph for this function:

◆ tryQueryTimestamps()

bool QGles2SwapChainTimestamps::tryQueryTimestamps ( int pairIndex,
QRhiGles2 * rhiD,
double * elapsedSec )

Definition at line 6667 of file qrhigles2.cpp.

References active, GL_QUERY_RESULT, GL_QUERY_RESULT_AVAILABLE, and GLuint.

Member Data Documentation

◆ active

bool QGles2SwapChainTimestamps::active[TIMESTAMP_PAIRS] = {}

Definition at line 724 of file qrhigles2_p.h.

Referenced by destroy(), and tryQueryTimestamps().

◆ query

GLuint QGles2SwapChainTimestamps::query[TIMESTAMP_PAIRS *2] = {}

Definition at line 725 of file qrhigles2_p.h.

◆ TIMESTAMP_PAIRS

const int QGles2SwapChainTimestamps::TIMESTAMP_PAIRS = 2
static

Definition at line 722 of file qrhigles2_p.h.

Referenced by destroy(), QRhiGles2::endFrame(), and prepare().


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