allocator
The allocator object that created the buffer.
Declaration
var allocator: any MDLMeshBufferAllocator { get }Discussion
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.