The general interface for managing storage of vertex and index data used in loading, processing, and rendering meshes.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- Model I/O
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
new. The allocator you choose determines the concrete class of a mesh buffer and thus its storage mechanism—for example, the MetalKit
MTKMesh class allocates
MTKMesh objects, which share storage with Metal buffers for use in rendering.