public interface MPSHeapProvider
| Modifier and Type | Method and Description |
|---|---|
MTLHeap |
newHeapWithDescriptor(MTLHeapDescriptor descriptor)
Return a heap of the size indicated
|
default void |
retireHeapCacheDelay(MTLHeap heap,
double seconds)
Retire a heap
|
MTLHeap newHeapWithDescriptor(MTLHeapDescriptor descriptor)
The heap may be larger than requested.
id
descriptor - A descriptor for the new heapdefault void retireHeapCacheDelay(MTLHeap heap, double seconds)
When MPS is done with the heap, this is called to return the heap to the heap provider MPS will release the heap after this is called.
heap - The heap to be retiredseconds - A hint for how long to cache the heap before retiring it. See MPSSetHeapCacheDuration().