Contents

removeAllocations(_:)

Stages multiple resources to leave the residency set’s list of allocations.

Declaration

func removeAllocations(_ allocations: [any MTLAllocation])

Parameters

  • allocations:

    An array of resource allocations, whose elements can be an arbitrarily mix of Mtlbuffer, Mtltexture, and Mtlheap instances.

Discussion

Finalize the removal of these resource allocations, and all other changes you stage, by calling a residency set’s commit() method.

See Also

Removing allocations