Diligent::ITextureMtl class

Exposes Metal-specific functionality of a texture object.

Contents

Base classes

struct ITexture
Texture inteface.

Public functions

auto GetMtlResource() const -> id<MTLResource> pure virtual
Returns a pointer to a Metal resource. For a staging texture, this will be a pointer to a MTLStorageModeShared buffer (MTLBuffer). For all other texture types, this will be a pointer to Metal texture object (MTLTexture).