Class

MDLMeshBufferMap

An object that manages access to a memory buffer used for the data storage of a Model I/O mesh.

Declaration

@interface MDLMeshBufferMap : NSObject

Overview

Typically, you do not create MDLMeshBufferMap objects directly. Instead, you use classes supporting the MDLMeshBuffer protocol to manage mesh buffer memory shared with a rendering technology—for example, the MTKMeshBuffer class for rendering with Metal. A mesh buffer object vends a MDLMeshBufferMap objects when you use the map method to gain temporary access to the shared memory.

Topics

Creating a Buffer Map

- initWithBytes:deallocator:

Initializes a buffer map object to manage access to the specified memory.

Accessing Buffer Data

bytes

A pointer to the mutable memory managed by the buffer map.

Relationships

Inherits From

See Also

Managing Mesh Data

MDLMeshBuffer

The general interface for managing storage of vertex and index data used in loading, processing, and rendering meshes.

MDLMeshBufferAllocator

The general interface for managing allocation of data buffers to be used in loading, processing, and rendering meshes.

MDLMeshBufferData

A memory buffer that stores vertex or index data for a Model I/O mesh.

MDLMeshBufferDataAllocator

A basic allocator implementation that allocates from main memory using data objects.

MDLMeshBufferZone

The general interface for logical pools of memory used in allocation of related mesh data buffers.

MDLMeshBufferZoneDefault

A standard implementation of the MDLMeshBufferZone protocol.

MDLVertexAttribute

A description of the format of per-vertex data for a single vertex attribute in a mesh object.

MDLVertexAttributeData

An object that provides convenience access to vertex data for a specific vertex attribute of a mesh.

MDLVertexBufferLayout

A MDLVertexBufferLayout object describes layout information for a vertex buffer in a MDLMesh object. A collection of vertex layer objects, vertex attribute objects, and additional information forms a MDLVertexDescriptor object, which completely describes the layout of vertex buffers for a mesh.

MDLVertexDescriptor

A description of the structure, format, and layout for vertex data buffers associated with a mesh.