useResidencySets(_:)
Applies multiple residency sets to a command buffer.
Declaration
func useResidencySets(_ residencySets: [any MTLResidencySet])Parameters
- residencySets:
An array of residency sets, each of which contains resource allocations, such as Mtlbuffer, Mtltexture, and Mtlheap instances.
Discussion
Each command buffer can maintain a list of up to 32 different residency sets. See Simplifying GPU resource management with residency sets and MTLResidencySet for more information.