addAllocation(_:)
Stages a single resource to join the residency set’s list of allocations.
Declaration
func addAllocation(_ allocation: any MTLAllocation)Parameters
- allocation:
A resource allocation, such as an Mtlbuffer, Mtltexture, or Mtlheap.
Mentioned in
Discussion
Finalize the inclusion of these resource allocations, and all other changes you stage, by calling a residency set’s commit() method.