Instance Method

newZone(_:)

Creates a zone for related memory allocations.

Required.

Declaration

func newZone(_ capacity: Int) -> MDLMeshBufferZone

Parameters

capacity

The capacity of the zone to be created.

Return Value

A new memory zone.

Discussion

Objects implementing the MDLMeshBufferZone protocol describe a logical pool of memory for allocation of related buffers. The actual class of buffer zone objects vended by an allocator may be private.

See Also

Allocating Mesh Buffers

func newZoneForBuffers(withSize: [NSNumber], andType: [NSNumber]) -> MDLMeshBufferZone

Creates a zone large enough to fit the specified group of allocation sizes.

Required.

func newBuffer(Int, type: MDLMeshBufferType) -> MDLMeshBuffer

Creates a new buffer of the specified length.

Required.

func newBuffer(from: MDLMeshBufferZone?, length: Int, type: MDLMeshBufferType) -> MDLMeshBuffer?

Creates a new buffer of the specified length in the specified zone.

Required.

func newBuffer(with: Data, type: MDLMeshBufferType) -> MDLMeshBuffer

Creates a new buffer containing the specified data.

Required.

func newBuffer(from: MDLMeshBufferZone?, data: Data, type: MDLMeshBufferType) -> MDLMeshBuffer?

Creates a new buffer containing the specified data in the specified zone.

Required.

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