Skip to main content

MTLSurface

The MTLSurface class extends the Surface class to provide Metal-specific functionality for managing a rendering surface. It includes methods for interacting with Metal devices, queues, and command buffers, enabling rendering operations in the context of Metal. The class supports managing render pass descriptors and surface formats, which are essential for rendering operations.

#include <platform/TellusimSurface.h>

Inheritance

Constructors

MTLSurface()
explicit MTLSurface(MTLContext &context)

Methods

Current device.

void *getDevice() const
void *getQueue() const
void *getCommand() const

Render pass descriptor.

void setDescriptor(void *descriptor)
void *getDescriptor() const

Surface formats.

uint32_t getColorPixelFormat() const
uint32_t getDepthPixelFormat() const