Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QRhiResourceUpdateBatchPrivate::TextureOp Struct Reference

#include <qrhi_p.h>

+ Collaboration diagram for QRhiResourceUpdateBatchPrivate::TextureOp:

Public Types

enum  Type { Upload , Copy , Read , GenMips }
 
using MipLevelUploadList = std::array< QVector< QRhiTextureSubresourceUploadDescription >, QRhi::MAX_MIP_LEVELS >
 

Static Public Member Functions

static TextureOp upload (QRhiTexture *tex, const QRhiTextureUploadDescription &desc)
 
static TextureOp copy (QRhiTexture *dst, QRhiTexture *src, const QRhiTextureCopyDescription &desc)
 
static TextureOp read (const QRhiReadbackDescription &rb, QRhiReadbackResult *result)
 
static TextureOp genMips (QRhiTexture *tex)
 

Public Attributes

Type type
 
QRhiTexturedst
 
QVarLengthArray< MipLevelUploadList, 6 > subresDesc
 
QRhiTexturesrc
 
QRhiTextureCopyDescription desc
 
QRhiReadbackDescription rb
 
QRhiReadbackResultresult
 

Detailed Description

Definition at line 442 of file qrhi_p.h.

Member Typedef Documentation

◆ MipLevelUploadList

Member Enumeration Documentation

◆ Type

Enumerator
Upload 
Copy 
Read 
GenMips 

Definition at line 443 of file qrhi_p.h.

Member Function Documentation

◆ copy()

static TextureOp QRhiResourceUpdateBatchPrivate::TextureOp::copy ( QRhiTexture dst,
QRhiTexture src,
const QRhiTextureCopyDescription desc 
)
inlinestatic

Definition at line 478 of file qrhi_p.h.

References Copy, desc, dst, src, and type.

Referenced by QRhiResourceUpdateBatch::copyTexture().

+ Here is the caller graph for this function:

◆ genMips()

static TextureOp QRhiResourceUpdateBatchPrivate::TextureOp::genMips ( QRhiTexture tex)
inlinestatic

Definition at line 497 of file qrhi_p.h.

References dst, GenMips, and type.

Referenced by QRhiResourceUpdateBatch::generateMips().

+ Here is the caller graph for this function:

◆ read()

static TextureOp QRhiResourceUpdateBatchPrivate::TextureOp::read ( const QRhiReadbackDescription rb,
QRhiReadbackResult result 
)
inlinestatic

Definition at line 488 of file qrhi_p.h.

References rb, Read, result, and type.

Referenced by QRhiResourceUpdateBatch::readBackTexture().

+ Here is the caller graph for this function:

◆ upload()

static TextureOp QRhiResourceUpdateBatchPrivate::TextureOp::upload ( QRhiTexture tex,
const QRhiTextureUploadDescription desc 
)
inlinestatic

Definition at line 462 of file qrhi_p.h.

References QVarLengthArray< T, Prealloc >::append(), desc, dst, it, QVarLengthArray< T, Prealloc >::resize(), subresDesc, type, and Upload.

Referenced by QRhiResourceUpdateBatch::uploadTexture().

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

Member Data Documentation

◆ desc

◆ dst

◆ rb

◆ result

◆ src

◆ subresDesc

◆ type


The documentation for this struct was generated from the following file: