Contents

MDLMeshBufferDataAllocator

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

Declaration

class MDLMeshBufferDataAllocator

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:vertexDescriptor:bufferAllocator:) 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 MTKMeshBufferAllocator or GLKMeshBufferAllocator class instead.This class declares no methods or properties of its own. For the key functionality of all mesh buffer allocator objects, see MDLMeshBufferAllocator.

See Also

Managing Mesh Data