Enumeration Case

MTLHeapTypeAutomatic

A heap that automatically places new resource allocations.

Declaration

MTLHeapTypeAutomatic = 0

Discussion

In an automatic heap, Metal automatically determines the locations of resources allocated by the heap, with a layout specific to the GPU. Automatic heaps may perform better than manually placing resources in the heap (MTLHeapTypePlacement).

Use automatic heaps when the heap primarily contains temporary resources that you write to often.

See Also

Specifying the Heap Type

MTLHeapTypePlacement

The app controls placement of resources on the heap.

MTLHeapTypeSparse

The heap contains sparse texture tiles.