Skip to main content

MTLTexture

The MTLTexture class is a Metal-specific implementation of the Texture class, offering access to Metal resources and enabling texture management in Metal applications. It supports external texture creation through raw pointer data and provides methods to retrieve the Metal texture, buffer, and shared pointer for interoperability. The class inherits the create method from the Texture class, facilitating flexible texture creation and management.

#include <platform/TellusimTexture.h>

Inheritance

Constructors

MTLTexture()

Methods

Create external texture.

bool create(void *texture, Flags flags = DefaultFlags, Format format = FormatUnknown)
uint32_t getPixelFormat() const
uint32_t getTextureType() const
void *getMTLTexture() const
void *getMTLBuffer() const
void *getSharedPtr() const