Instance Method

makeHeap(descriptor:)

Creates a heap.

Required.

Declaration

func makeHeap(descriptor: MTLHeapDescriptor) -> MTLHeap?

Parameters

descriptor

A descriptor object that describes the properties of the heap.

Return Value

A new heap object.

See Also

Creating Resource Heaps

func heapBufferSizeAndAlign(length: Int, options: MTLResourceOptions) -> MTLSizeAndAlign

Returns the size and alignment, in bytes, of a buffer sub-allocated from a heap.

Required.

func heapTextureSizeAndAlign(descriptor: MTLTextureDescriptor) -> MTLSizeAndAlign

Returns the size and alignment, in bytes, of a texture sub-allocated from a heap.

Required.