![]() |
Qt 6.x
The Qt SDK
|
Public Member Functions | |
QMetalTextureData (QMetalTexture *t) | |
id< MTLTexture > | viewForLevel (int level) |
Public Attributes | |
QMetalTexture * | q |
MTLPixelFormat | format |
id< MTLTexture > | tex = nil |
id< MTLBuffer > | stagingBuf [QMTL_FRAMES_IN_FLIGHT] |
bool | owns = true |
id< MTLTexture > | perLevelViews [QRhi::MAX_MIP_LEVELS] |
Definition at line 277 of file qrhimetal.mm.
|
inline |
Definition at line 279 of file qrhimetal.mm.
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().
MTLPixelFormat QMetalTextureData::format |
Definition at line 282 of file qrhimetal.mm.
Referenced by QMetalTexture::create(), QMetalTextureRenderTarget::newCompatibleRenderPassDescriptor(), and QMetalTexture::prepareCreate().
bool QMetalTextureData::owns = true |
Definition at line 285 of file qrhimetal.mm.
Referenced by QMetalTexture::create(), QMetalTexture::createFrom(), and QMetalTexture::destroy().
id<MTLTexture> QMetalTextureData::perLevelViews[QRhi::MAX_MIP_LEVELS] |
Definition at line 286 of file qrhimetal.mm.
Referenced by QMetalTexture::QMetalTexture(), QMetalTexture::destroy(), and viewForLevel().
QMetalTexture* QMetalTextureData::q |
Definition at line 281 of file qrhimetal.mm.
id<MTLBuffer> QMetalTextureData::stagingBuf[QMTL_FRAMES_IN_FLIGHT] |
Definition at line 284 of file qrhimetal.mm.
Referenced by QMetalTexture::QMetalTexture(), QMetalTexture::destroy(), and QRhiMetal::enqueueSubresUpload().
id<MTLTexture> QMetalTextureData::tex = nil |
Definition at line 283 of file qrhimetal.mm.
Referenced by QMetalTexture::create(), QMetalTextureRenderTarget::create(), QMetalTexture::createFrom(), QMetalTexture::destroy(), QRhiMetal::enqueueShaderResourceBindings(), QRhiMetal::enqueueSubresUpload(), QMetalTexture::nativeTexture(), QMetalTexture::prepareCreate(), and viewForLevel().