Contents

addAllocations(_:)

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

Declaration

func addAllocations(_ allocations: [any MTLAllocation])

Parameters

  • allocations:

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

Mentioned in

Discussion

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

See Also

Adding allocations