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
QMetalTextureData Struct Reference
Collaboration diagram for QMetalTextureData:

Public Member Functions

 QMetalTextureData (QMetalTexture *t)
id< MTLTexture > viewForLevel (int level)
 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 299 of file qrhimetal.mm.

Constructor & Destructor Documentation

◆ QMetalTextureData() [1/2]

QMetalTextureData::QMetalTextureData ( QMetalTexture * t)
inline

Definition at line 301 of file qrhimetal.mm.

References q.

Referenced by QMetalTexture::QMetalTexture().

Here is the caller graph for this function:

◆ QMetalTextureData() [2/2]

QMetalTextureData::QMetalTextureData ( QMetalTexture * t)
inline

Definition at line 301 of file qrhimetal.mm.

Member Function Documentation

◆ viewForLevel() [1/2]

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

Definition at line 4018 of file qrhimetal.mm.

References QMetalTexture::mipLevelCount, and q.

◆ viewForLevel() [2/2]

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

Member Data Documentation

◆ format

MTLPixelFormat QMetalTextureData::format

Definition at line 304 of file qrhimetal.mm.

◆ owns

bool QMetalTextureData::owns = true

Definition at line 307 of file qrhimetal.mm.

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

◆ perLevelViews

id< MTLTexture > QMetalTextureData::perLevelViews

Definition at line 308 of file qrhimetal.mm.

◆ q

QMetalTexture * QMetalTextureData::q

Definition at line 303 of file qrhimetal.mm.

Referenced by QMetalTextureData(), and viewForLevel().

◆ stagingBuf

id< MTLBuffer > QMetalTextureData::stagingBuf

Definition at line 306 of file qrhimetal.mm.

◆ tex

id< MTLTexture > QMetalTextureData::tex = nil

Definition at line 305 of file qrhimetal.mm.


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