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
QRhiResourceUpdateBatchPrivate Class Reference

#include <qrhi_p.h>

+ Collaboration diagram for QRhiResourceUpdateBatchPrivate:

Classes

struct  BufferOp
 
struct  TextureOp
 

Public Member Functions

void free ()
 
void merge (QRhiResourceUpdateBatchPrivate *other)
 
bool hasOptimalCapacity () const
 
void trimOpLists ()
 

Static Public Member Functions

static QRhiResourceUpdateBatchPrivateget (QRhiResourceUpdateBatch *b)
 

Public Attributes

int activeBufferOpCount = 0
 
QVarLengthArray< BufferOp, BUFFER_OPS_STATIC_ALLOCbufferOps
 
int activeTextureOpCount = 0
 
QVarLengthArray< TextureOp, TEXTURE_OPS_STATIC_ALLOCtextureOps
 
QRhiResourceUpdateBatchq = nullptr
 
QRhiImplementationrhi = nullptr
 
int poolIndex = -1
 

Static Public Attributes

static const int BUFFER_OPS_STATIC_ALLOC = 1024
 
static const int TEXTURE_OPS_STATIC_ALLOC = 256
 

Detailed Description

Definition at line 387 of file qrhi_p.h.

Member Function Documentation

◆ free()

void QRhiResourceUpdateBatchPrivate::free ( )

Definition at line 9312 of file qrhi.cpp.

References activeBufferOpCount, activeTextureOpCount, poolIndex, Q_ASSERT, rhi, and textureOps.

Referenced by QRhiResourceUpdateBatch::release().

+ Here is the caller graph for this function:

◆ get()

static QRhiResourceUpdateBatchPrivate * QRhiResourceUpdateBatchPrivate::get ( QRhiResourceUpdateBatch * b)
inlinestatic

Definition at line 536 of file qrhi_p.h.

Referenced by QRhiD3D11::enqueueResourceUpdates(), QRhiGles2::enqueueResourceUpdates(), QRhiMetal::enqueueResourceUpdates(), QRhiVulkan::enqueueResourceUpdates(), QRhi::nextResourceUpdateBatch(), and QRhiNull::resourceUpdate().

+ Here is the caller graph for this function:

◆ hasOptimalCapacity()

bool QRhiResourceUpdateBatchPrivate::hasOptimalCapacity ( ) const

Definition at line 9351 of file qrhi.cpp.

References activeBufferOpCount, activeTextureOpCount, BUFFER_OPS_STATIC_ALLOC, and TEXTURE_OPS_STATIC_ALLOC.

Referenced by QRhiResourceUpdateBatch::hasOptimalCapacity().

+ Here is the caller graph for this function:

◆ merge()

void QRhiResourceUpdateBatchPrivate::merge ( QRhiResourceUpdateBatchPrivate * other)

Definition at line 9334 of file qrhi.cpp.

References activeBufferOpCount, activeTextureOpCount, bufferOps, i, other(), and textureOps.

Referenced by QRhiResourceUpdateBatch::merge().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ trimOpLists()

void QRhiResourceUpdateBatchPrivate::trimOpLists ( )

Definition at line 9357 of file qrhi.cpp.

References activeBufferOpCount, activeTextureOpCount, bufferOps, and textureOps.

Referenced by QRhi::nextResourceUpdateBatch().

+ Here is the caller graph for this function:

Member Data Documentation

◆ activeBufferOpCount

◆ activeTextureOpCount

◆ BUFFER_OPS_STATIC_ALLOC

const int QRhiResourceUpdateBatchPrivate::BUFFER_OPS_STATIC_ALLOC = 1024
static

Definition at line 520 of file qrhi_p.h.

Referenced by hasOptimalCapacity().

◆ bufferOps

◆ poolIndex

int QRhiResourceUpdateBatchPrivate::poolIndex = -1

Definition at line 529 of file qrhi_p.h.

Referenced by free().

◆ q

QRhiResourceUpdateBatch* QRhiResourceUpdateBatchPrivate::q = nullptr

Definition at line 527 of file qrhi_p.h.

◆ rhi

QRhiImplementation* QRhiResourceUpdateBatchPrivate::rhi = nullptr

Definition at line 528 of file qrhi_p.h.

Referenced by free().

◆ TEXTURE_OPS_STATIC_ALLOC

const int QRhiResourceUpdateBatchPrivate::TEXTURE_OPS_STATIC_ALLOC = 256
static

Definition at line 524 of file qrhi_p.h.

Referenced by hasOptimalCapacity().

◆ textureOps


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