![]() |
Qt 6.x
The Qt SDK
|
#include <qrhid3d11_p.h>
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 |
Definition at line 561 of file qrhid3d11_p.h.
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().
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().
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().
bool QD3D11Timestamps::active[MAX_TIMESTAMP_PAIRS] = {} |
Definition at line 564 of file qrhid3d11_p.h.
Referenced by QRhiD3D11::beginFrame(), QRhiD3D11::beginOffscreenFrame(), destroy(), QRhiD3D11::endFrame(), QRhiD3D11::endOffscreenFrame(), QRhiD3D11::executeCommandBuffer(), and tryQueryTimestamps().
ID3D11Query* QD3D11Timestamps::disjointQuery[MAX_TIMESTAMP_PAIRS] = {} |
Definition at line 565 of file qrhid3d11_p.h.
Referenced by destroy(), QRhiD3D11::endFrame(), QRhiD3D11::endOffscreenFrame(), QRhiD3D11::executeCommandBuffer(), prepare(), and tryQueryTimestamps().
|
static |
Definition at line 563 of file qrhid3d11_p.h.
int QD3D11Timestamps::pairCount = 0 |
Definition at line 567 of file qrhid3d11_p.h.
Referenced by prepare(), and tryQueryTimestamps().
ID3D11Query* QD3D11Timestamps::query[MAX_TIMESTAMP_PAIRS *2] = {} |
Definition at line 566 of file qrhid3d11_p.h.
Referenced by QRhiD3D11::endFrame(), QRhiD3D11::endOffscreenFrame(), and QRhiD3D11::executeCommandBuffer().