Qt 6.x
The Qt SDK
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 374 of file qrhi_p.h.

Member Function Documentation

◆ free()

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().

+ Here is the caller graph for this function:

◆ get()

static QRhiResourceUpdateBatchPrivate * QRhiResourceUpdateBatchPrivate::get ( QRhiResourceUpdateBatch b)
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().

+ Here is the caller graph for this function:

◆ hasOptimalCapacity()

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().

+ Here is the caller graph for this function:

◆ merge()

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().

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

◆ trimOpLists()

void QRhiResourceUpdateBatchPrivate::trimOpLists ( )

Definition at line 8959 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 507 of file qrhi_p.h.

Referenced by hasOptimalCapacity().

◆ bufferOps

◆ poolIndex

int QRhiResourceUpdateBatchPrivate::poolIndex = -1

Definition at line 516 of file qrhi_p.h.

Referenced by free(), and QRhi::nextResourceUpdateBatch().

◆ q

QRhiResourceUpdateBatch* QRhiResourceUpdateBatchPrivate::q = nullptr

Definition at line 514 of file qrhi_p.h.

◆ rhi

QRhiImplementation* QRhiResourceUpdateBatchPrivate::rhi = nullptr

Definition at line 515 of file qrhi_p.h.

Referenced by free().

◆ TEXTURE_OPS_STATIC_ALLOC

const int QRhiResourceUpdateBatchPrivate::TEXTURE_OPS_STATIC_ALLOC = 256
static

Definition at line 511 of file qrhi_p.h.

Referenced by hasOptimalCapacity().

◆ textureOps


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