![]() |
Qt 6.x
The Qt SDK
|
#include <qrhi_p.h>
Classes | |
struct | BufferOp |
struct | TextureOp |
Public Member Functions | |
void | free () |
void | merge (QRhiResourceUpdateBatchPrivate *other) |
bool | hasOptimalCapacity () const |
void | trimOpLists () |
Static Public Member Functions | |
static QRhiResourceUpdateBatchPrivate * | get (QRhiResourceUpdateBatch *b) |
Public Attributes | |
int | activeBufferOpCount = 0 |
QVarLengthArray< BufferOp, BUFFER_OPS_STATIC_ALLOC > | bufferOps |
int | activeTextureOpCount = 0 |
QVarLengthArray< TextureOp, TEXTURE_OPS_STATIC_ALLOC > | textureOps |
QRhiResourceUpdateBatch * | q = nullptr |
QRhiImplementation * | rhi = nullptr |
int | poolIndex = -1 |
Static Public Attributes | |
static const int | BUFFER_OPS_STATIC_ALLOC = 1024 |
static const int | TEXTURE_OPS_STATIC_ALLOC = 256 |
void QRhiResourceUpdateBatchPrivate::free | ( | ) |
Definition at line 8914 of file qrhi.cpp.
References activeBufferOpCount, activeTextureOpCount, poolIndex, Q_ASSERT, rhi, and textureOps.
Referenced by QRhiD3D11::enqueueResourceUpdates(), QRhiGles2::enqueueResourceUpdates(), QRhiVulkan::enqueueResourceUpdates(), QRhiResourceUpdateBatch::release(), and QRhiNull::resourceUpdate().
|
inlinestatic |
Definition at line 523 of file qrhi_p.h.
Referenced by QRhiD3D11::enqueueResourceUpdates(), QRhiGles2::enqueueResourceUpdates(), QRhiMetal::enqueueResourceUpdates(), QRhiVulkan::enqueueResourceUpdates(), QRhi::nextResourceUpdateBatch(), and QRhiNull::resourceUpdate().
bool QRhiResourceUpdateBatchPrivate::hasOptimalCapacity | ( | ) | const |
Definition at line 8953 of file qrhi.cpp.
References activeBufferOpCount, activeTextureOpCount, BUFFER_OPS_STATIC_ALLOC, and TEXTURE_OPS_STATIC_ALLOC.
Referenced by QRhiResourceUpdateBatch::hasOptimalCapacity().
void QRhiResourceUpdateBatchPrivate::merge | ( | QRhiResourceUpdateBatchPrivate * | other | ) |
Definition at line 8936 of file qrhi.cpp.
References activeBufferOpCount, activeTextureOpCount, bufferOps, i, other(), and textureOps.
Referenced by QRhiResourceUpdateBatch::merge().
void QRhiResourceUpdateBatchPrivate::trimOpLists | ( | ) |
Definition at line 8959 of file qrhi.cpp.
References activeBufferOpCount, activeTextureOpCount, bufferOps, and textureOps.
Referenced by QRhi::nextResourceUpdateBatch().
int QRhiResourceUpdateBatchPrivate::activeBufferOpCount = 0 |
Definition at line 506 of file qrhi_p.h.
Referenced by QRhiD3D11::enqueueResourceUpdates(), QRhiGles2::enqueueResourceUpdates(), QRhiMetal::enqueueResourceUpdates(), QRhiVulkan::enqueueResourceUpdates(), free(), hasOptimalCapacity(), merge(), QRhiResourceUpdateBatch::readBackBuffer(), QRhiNull::resourceUpdate(), trimOpLists(), QRhiResourceUpdateBatch::updateDynamicBuffer(), QRhiResourceUpdateBatch::uploadStaticBuffer(), and QRhiResourceUpdateBatch::uploadStaticBuffer().
int QRhiResourceUpdateBatchPrivate::activeTextureOpCount = 0 |
Definition at line 510 of file qrhi_p.h.
Referenced by QRhiResourceUpdateBatch::copyTexture(), QRhiD3D11::enqueueResourceUpdates(), QRhiGles2::enqueueResourceUpdates(), QRhiVulkan::enqueueResourceUpdates(), free(), QRhiResourceUpdateBatch::generateMips(), hasOptimalCapacity(), merge(), QRhiResourceUpdateBatch::readBackTexture(), QRhiNull::resourceUpdate(), trimOpLists(), and QRhiResourceUpdateBatch::uploadTexture().
|
static |
Definition at line 507 of file qrhi_p.h.
Referenced by hasOptimalCapacity().
QVarLengthArray<BufferOp, BUFFER_OPS_STATIC_ALLOC> QRhiResourceUpdateBatchPrivate::bufferOps |
Definition at line 508 of file qrhi_p.h.
Referenced by QRhiD3D11::enqueueResourceUpdates(), QRhiGles2::enqueueResourceUpdates(), QRhiMetal::enqueueResourceUpdates(), QRhiVulkan::enqueueResourceUpdates(), merge(), QRhiResourceUpdateBatch::readBackBuffer(), QRhiNull::resourceUpdate(), trimOpLists(), QRhiResourceUpdateBatch::updateDynamicBuffer(), QRhiResourceUpdateBatch::uploadStaticBuffer(), and QRhiResourceUpdateBatch::uploadStaticBuffer().
int QRhiResourceUpdateBatchPrivate::poolIndex = -1 |
Definition at line 516 of file qrhi_p.h.
Referenced by free(), and QRhi::nextResourceUpdateBatch().
QRhiResourceUpdateBatch* QRhiResourceUpdateBatchPrivate::q = nullptr |
QRhiImplementation* QRhiResourceUpdateBatchPrivate::rhi = nullptr |
|
static |
Definition at line 511 of file qrhi_p.h.
Referenced by hasOptimalCapacity().
QVarLengthArray<TextureOp, TEXTURE_OPS_STATIC_ALLOC> QRhiResourceUpdateBatchPrivate::textureOps |
Definition at line 512 of file qrhi_p.h.
Referenced by QRhiResourceUpdateBatch::copyTexture(), QRhiD3D11::enqueueResourceUpdates(), QRhiGles2::enqueueResourceUpdates(), QRhiVulkan::enqueueResourceUpdates(), free(), QRhiResourceUpdateBatch::generateMips(), merge(), QRhiResourceUpdateBatch::readBackTexture(), QRhiNull::resourceUpdate(), trimOpLists(), and QRhiResourceUpdateBatch::uploadTexture().