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
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 288 of file qrhimetal.mm.

Constructor & Destructor Documentation

◆ QMetalTextureData()

QMetalTextureData::QMetalTextureData ( QMetalTexture * t)
inline

Definition at line 290 of file qrhimetal.mm.

Member Function Documentation

◆ viewForLevel()

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

Definition at line 3923 of file qrhimetal.mm.

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

+ Here is the call graph for this function:

Member Data Documentation

◆ format

MTLPixelFormat QMetalTextureData::format

Definition at line 293 of file qrhimetal.mm.

Referenced by QMetalTexture::create(), and QMetalTexture::prepareCreate().

◆ owns

bool QMetalTextureData::owns = true

◆ perLevelViews

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

◆ q

QMetalTexture* QMetalTextureData::q

Definition at line 292 of file qrhimetal.mm.

◆ stagingBuf

id<MTLBuffer> QMetalTextureData::stagingBuf[QMTL_FRAMES_IN_FLIGHT]

Definition at line 295 of file qrhimetal.mm.

Referenced by QMetalTexture::QMetalTexture(), and QMetalTexture::destroy().

◆ tex


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