Skip to main content

MTLContext

The MTLContext class is a Metal-specific implementation of the Context class. It allows initializing the rendering context using externally provided Metal device and command queue pointers. The class provides access to the underlying device, command queue, command buffer, and Metal command encoders.

#include <platform/TellusimContext.h>

Inheritance

Constructors

MTLContext()

Methods

Create context.

bool create(void *device, void *queue)

Current device.

void *getDevice() 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