A memory buffer that stores vertex or index data for a Model I/O mesh.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- Model I/O
This class is the simplest concrete implementation of the
MDLMesh protocol—use this class when you need only a single data store for loading or processing mesh data. To share mesh data for other uses, use another concrete implementation of the
MDLMesh protocol—for example, the
MTKMesh class shares mesh data with Metal buffers, ensuring that data is copied a minimal number of times between loading, processing, and rendering.If you do not specify a
MDLMesh object for loading meshes from a file with the
MDLAsset class or generating meshes with the
MDLMesh class, Model I/O uses
MDLMesh objects to store mesh data.