Contents

MDLMeshBuffer

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

Declaration

protocol MDLMeshBuffer : NSCopying, NSObjectProtocol

Overview

Model I/O creates buffers using an allocator that you specify when loading mesh data from a file with the MDLAsset class or generating meshes with the MDLMesh class. You can also create buffers using an allocator method such as newBuffer(with:type:). The allocator you choose determines the concrete class of a mesh buffer and thus its storage mechanism—for example, the MetalKit MTKMeshBufferAllocator class allocates MTKMeshBuffer objects, which share storage with Metal buffers for use in rendering.

Topics

Working with Data in a Buffer

Inspecting a Buffer

Constants

See Also

Managing Mesh Data