Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QMetalTextureData Struct Reference
+ Collaboration diagram for QMetalTextureData:

Public Member Functions

 QMetalTextureData (QMetalTexture *t)
 
id< MTLTexture > viewForLevel (int level)
 

Public Attributes

QMetalTextureq
 
MTLPixelFormat format
 
id< MTLTexture > tex = nil
 
id< MTLBuffer > stagingBuf [QMTL_FRAMES_IN_FLIGHT]
 
bool owns = true
 
id< MTLTexture > perLevelViews [QRhi::MAX_MIP_LEVELS]
 

Detailed Description

Definition at line 277 of file qrhimetal.mm.

Constructor & Destructor Documentation

◆ QMetalTextureData()

QMetalTextureData::QMetalTextureData ( QMetalTexture t)
inline

Definition at line 279 of file qrhimetal.mm.

Member Function Documentation

◆ viewForLevel()

id< MTLTexture > QMetalTextureData::viewForLevel ( int  level)

Definition at line 3867 of file qrhimetal.mm.

References QRhiTexture::CubeMap, perLevelViews, Q_ASSERT, qMax(), tex, QRhiTexture::TextureArray, and view.

Referenced by QRhiMetal::enqueueShaderResourceBindings().

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

Member Data Documentation

◆ format

MTLPixelFormat QMetalTextureData::format

◆ owns

bool QMetalTextureData::owns = true

◆ perLevelViews

id<MTLTexture> QMetalTextureData::perLevelViews[QRhi::MAX_MIP_LEVELS]

◆ q

QMetalTexture* QMetalTextureData::q

Definition at line 281 of file qrhimetal.mm.

◆ stagingBuf

id<MTLBuffer> QMetalTextureData::stagingBuf[QMTL_FRAMES_IN_FLIGHT]

◆ tex


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