Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 = 64
static const int TEXTURE_OPS_STATIC_ALLOC = 32

Detailed Description

Definition at line 419 of file qrhi_p.h.

Member Function Documentation

◆ free()

void QRhiResourceUpdateBatchPrivate::free ( )

Definition at line 9937 of file qrhi.cpp.

References activeBufferOpCount, activeTextureOpCount, poolIndex, q, and rhi.

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

Here is the caller graph for this function:

◆ get()

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

Definition at line 590 of file qrhi_p.h.

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

Here is the caller graph for this function:

◆ hasOptimalCapacity()

bool QRhiResourceUpdateBatchPrivate::hasOptimalCapacity ( ) const

◆ merge()

void QRhiResourceUpdateBatchPrivate::merge ( QRhiResourceUpdateBatchPrivate * other)

Definition at line 9985 of file qrhi.cpp.

References activeBufferOpCount, and activeTextureOpCount.

◆ trimOpLists()

void QRhiResourceUpdateBatchPrivate::trimOpLists ( )

Definition at line 10008 of file qrhi.cpp.

References activeBufferOpCount, and activeTextureOpCount.

Member Data Documentation

◆ activeBufferOpCount

◆ activeTextureOpCount

◆ BUFFER_OPS_STATIC_ALLOC

const int QRhiResourceUpdateBatchPrivate::BUFFER_OPS_STATIC_ALLOC = 64
static

Definition at line 574 of file qrhi_p.h.

Referenced by hasOptimalCapacity().

◆ bufferOps

QVarLengthArray<BufferOp, BUFFER_OPS_STATIC_ALLOC> QRhiResourceUpdateBatchPrivate::bufferOps

Definition at line 575 of file qrhi_p.h.

◆ poolIndex

int QRhiResourceUpdateBatchPrivate::poolIndex = -1

Definition at line 583 of file qrhi_p.h.

Referenced by free().

◆ q

QRhiResourceUpdateBatch* QRhiResourceUpdateBatchPrivate::q = nullptr

Definition at line 581 of file qrhi_p.h.

Referenced by free().

◆ rhi

QRhiImplementation* QRhiResourceUpdateBatchPrivate::rhi = nullptr

Definition at line 582 of file qrhi_p.h.

Referenced by free().

◆ TEXTURE_OPS_STATIC_ALLOC

const int QRhiResourceUpdateBatchPrivate::TEXTURE_OPS_STATIC_ALLOC = 32
static

Definition at line 578 of file qrhi_p.h.

Referenced by hasOptimalCapacity().

◆ textureOps

QVarLengthArray<TextureOp, TEXTURE_OPS_STATIC_ALLOC> QRhiResourceUpdateBatchPrivate::textureOps

Definition at line 579 of file qrhi_p.h.


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