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 > textureForSampling () const
id< MTLTexture > textureForWrite () const
bool createViews ()
id< MTLTexture > viewForLevel (int level)
 QMetalTextureData (QMetalTexture *t)
id< MTLTexture > textureForSampling () const
id< MTLTexture > textureForWrite () const
bool createViews ()
id< MTLTexture > viewForLevel (int level)

Public Attributes

QMetalTexture * q
MTLPixelFormat format
MTLPixelFormat viewFormat = MTLPixelFormatInvalid
MTLPixelFormat viewFormatForSampling = MTLPixelFormatInvalid
id< MTLTexture > tex = nil
id< MTLTexture > samplingView = nil
id< MTLTexture > writeView = nil
id< MTLBuffer > stagingBuf [QMTL_FRAMES_IN_FLIGHT]
bool owns = true
id< MTLTexture > perLevelViews [QRhi::MAX_MIP_LEVELS]

Detailed Description

Definition at line 363 of file qrhimetal.mm.

Constructor & Destructor Documentation

◆ QMetalTextureData() [1/2]

QMetalTextureData::QMetalTextureData ( QMetalTexture * t)
inline

Definition at line 365 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 365 of file qrhimetal.mm.

Member Function Documentation

◆ createViews() [1/2]

bool QMetalTextureData::createViews ( )

Definition at line 5682 of file qrhimetal.mm.

References QMetalTexture::mipLevelCount, and q.

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

Here is the caller graph for this function:

◆ createViews() [2/2]

bool QMetalTextureData::createViews ( )

◆ textureForSampling() [1/2]

id< MTLTexture > QMetalTextureData::textureForSampling ( ) const
inline

Definition at line 378 of file qrhimetal.mm.

◆ textureForSampling() [2/2]

id< MTLTexture > QMetalTextureData::textureForSampling ( ) const
inline

Definition at line 378 of file qrhimetal.mm.

◆ textureForWrite() [1/2]

id< MTLTexture > QMetalTextureData::textureForWrite ( ) const
inline

Definition at line 379 of file qrhimetal.mm.

◆ textureForWrite() [2/2]

id< MTLTexture > QMetalTextureData::textureForWrite ( ) const
inline

Definition at line 379 of file qrhimetal.mm.

◆ viewForLevel() [1/2]

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

Definition at line 5724 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 368 of file qrhimetal.mm.

◆ owns

bool QMetalTextureData::owns = true

Definition at line 375 of file qrhimetal.mm.

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

◆ perLevelViews

id< MTLTexture > QMetalTextureData::perLevelViews

Definition at line 376 of file qrhimetal.mm.

◆ q

QMetalTexture * QMetalTextureData::q

Definition at line 367 of file qrhimetal.mm.

Referenced by QMetalTextureData(), createViews(), and viewForLevel().

◆ samplingView

id< MTLTexture > QMetalTextureData::samplingView = nil

Definition at line 372 of file qrhimetal.mm.

◆ stagingBuf

id< MTLBuffer > QMetalTextureData::stagingBuf

Definition at line 374 of file qrhimetal.mm.

◆ tex

id< MTLTexture > QMetalTextureData::tex = nil

Definition at line 371 of file qrhimetal.mm.

◆ viewFormat

MTLPixelFormat QMetalTextureData::viewFormat = MTLPixelFormatInvalid

Definition at line 369 of file qrhimetal.mm.

◆ viewFormatForSampling

MTLPixelFormat QMetalTextureData::viewFormatForSampling = MTLPixelFormatInvalid

Definition at line 370 of file qrhimetal.mm.

◆ writeView

id< MTLTexture > QMetalTextureData::writeView = nil

Definition at line 373 of file qrhimetal.mm.


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