makeHeap(descriptor:)
Creates a new GPU heap instance.
Declaration
func makeHeap(descriptor: MTLHeapDescriptor) -> (any MTLHeap)?Parameters
- descriptor:
An Mtlheapdescriptor instance.
Return Value
A new MTLHeap instance if the method completed successfully; otherwise nil.
Discussion
For more information about using heaps, see Memory heaps.