A basic allocator implementation that allocates from main memory using data objects.
SDKs
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- Model I/O
Declaration
class MDLMeshBufferDataAllocator : NSObject
Overview
Model I/O uses this allocator by default if you do not specify an allocator when loading, creating, or modifying objects that require mesh buffer storage (for example, when loading an asset with the init(url:
initializer). Use this allocator only if sharing mesh buffer memory with GPU-based renderers is not a concern. To minimize data copying when rendering with Metal or OpenGL, use the MTKMesh
or GLKMesh
class instead.This class declares no methods or properties of its own. For the key functionality of all mesh buffer allocator objects, see MDLMesh
.