Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QD3D11Timestamps Struct Reference

#include <qrhid3d11_p.h>

+ Collaboration diagram for QD3D11Timestamps:

Public Member Functions

bool prepare (int pairCount, QRhiD3D11 *rhiD)
 
void destroy ()
 
bool tryQueryTimestamps (int idx, ID3D11DeviceContext *context, double *elapsedSec)
 

Public Attributes

bool active [MAX_TIMESTAMP_PAIRS] = {}
 
ID3D11Query * disjointQuery [MAX_TIMESTAMP_PAIRS] = {}
 
ID3D11Query * query [MAX_TIMESTAMP_PAIRS *2] = {}
 
int pairCount = 0
 

Static Public Attributes

static const int MAX_TIMESTAMP_PAIRS = QD3D11_SWAPCHAIN_BUFFER_COUNT
 

Detailed Description

Definition at line 561 of file qrhid3d11_p.h.

Member Function Documentation

◆ destroy()

void QD3D11Timestamps::destroy ( )

Definition at line 4731 of file qrhid3d11.cpp.

References active, disjointQuery, i, j, and MAX_TIMESTAMP_PAIRS.

Referenced by QD3D11SwapChain::destroy(), and QRhiD3D11::destroy().

+ Here is the caller graph for this function:

◆ prepare()

bool QD3D11Timestamps::prepare ( int  pairCount,
QRhiD3D11 rhiD 
)

Definition at line 4697 of file qrhid3d11.cpp.

References QRhiD3D11::dev, disjointQuery, i, j, MAX_TIMESTAMP_PAIRS, pairCount, Q_ASSERT, qPrintable, and qWarning.

Referenced by QRhiD3D11::create(), and QD3D11SwapChain::createOrResize().

+ Here is the caller graph for this function:

◆ tryQueryTimestamps()

bool QD3D11Timestamps::tryQueryTimestamps ( int  idx,
ID3D11DeviceContext *  context,
double *  elapsedSec 
)

Definition at line 4749 of file qrhid3d11.cpp.

References active, context, disjointQuery, ok, and pairCount.

Referenced by QRhiD3D11::beginFrame(), and QRhiD3D11::beginOffscreenFrame().

+ Here is the caller graph for this function:

Member Data Documentation

◆ active

◆ disjointQuery

ID3D11Query* QD3D11Timestamps::disjointQuery[MAX_TIMESTAMP_PAIRS] = {}

◆ MAX_TIMESTAMP_PAIRS

const int QD3D11Timestamps::MAX_TIMESTAMP_PAIRS = QD3D11_SWAPCHAIN_BUFFER_COUNT
static

Definition at line 563 of file qrhid3d11_p.h.

Referenced by destroy(), and prepare().

◆ pairCount

int QD3D11Timestamps::pairCount = 0

Definition at line 567 of file qrhid3d11_p.h.

Referenced by prepare(), and tryQueryTimestamps().

◆ query

ID3D11Query* QD3D11Timestamps::query[MAX_TIMESTAMP_PAIRS *2] = {}

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