Instance Property

allocator

The allocator object that created the buffer.

Required.

Declaration

var allocator: 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.

See Also

Inspecting a Buffer

var zone: MDLMeshBufferZone

The memory pool from which the buffer was created.

Required.

var type: MDLMeshBufferType

The type of data contained in a buffer.

Required.