Skip to main content

MTLDevice

The MTLDevice class extends the Device class to provide Metal-specific functionality for managing a rendering device. It offers access to the Metal device, command queue, and command context, enabling efficient rendering workflows on macOS and iOS platforms.

#include <platform/TellusimDevice.h>

Inheritance

Constructors

MTLDevice()
explicit MTLDevice(Context &context)
explicit MTLDevice(Surface &surface)
explicit MTLDevice(Window &window)

Methods

Command context.

void *getMTLDevice() const
void *getQueue() const
void *getCommand() const

Command encoder.

void *getEncoder() const
void *getRenderEncoder(void *descriptor) const
void *getComputeEncoder() const
void *getTracingEncoder() const
void *getBlitEncoder() const
void endEncoder() const