Instance Property


The allocator object that created the buffer.



var allocator: MDLMeshBufferAllocator { get }


Certain operations on the MDLMesh object that owns this buffer—for example, generating new vertex attributes with methods such as addNormals(withAttributeNamed:creaseThreshold:), or changing the format and layout of vertex data by assigning a new value to the vertexDescriptor property—may require reallocation of buffer memory. When you perform such operations, Model I/O uses the same allocator that was used to create the buffer.

See Also

Inspecting a Buffer

var zone: MDLMeshBufferZone

The memory pool from which the buffer was created.


var type: MDLMeshBufferType

The type of data contained in a buffer.


Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software