Contents

requestResidency()

Tells Metal to do as much preparatory work as it can, with the system’s current conditions, to make the set’s resource allocations resident.

Declaration

func requestResidency()

Mentioned in

Discussion

Call the method anytime after calling a residency set’s commit() method, ideally well before calling the commit() method of any MTLCommandBuffer that uses it.

The method may postpone some of the necessary steps to make resources resident in scenarios where other apps concurrently need resources in residency.