Skip to main content

MTLBuffer

The MTLBuffer class is a Metal-specific implementation of the Buffer class, providing access to internal resources in Metal-based applications. It supports the creation of external buffers from raw pointer data and offers methods to retrieve the Metal buffer and shared pointer for interop with other systems. The class also inherits the create method from the Buffer class to allow for flexible buffer creation and management.

#include <platform/TellusimBuffer.h>

Inheritance

Constructors

MTLBuffer()

Methods

Create external buffer.

bool create(Flags flags, void *buffer)
void *getMTLBuffer() const
void *getSharedPtr() const