Instance Method

newHeapWithDescriptor:

Creates a heap.

Required.

Declaration

- (id<MTLHeap>)newHeapWithDescriptor:(MTLHeapDescriptor *)descriptor;

Parameters

descriptor

A descriptor object that describes the properties of the heap.

Return Value

A new heap object.

See Also

Creating Resource Heaps

- heapBufferSizeAndAlignWithLength:options:

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

Required.

- heapTextureSizeAndAlignWithDescriptor:

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

Required.