reset()
Marks the command allocator’s heaps for reuse.
Declaration
func reset()Mentioned in
Discussion
Calling this method allows new MTL4CommandBuffer to reuse its existing internal memory heaps to encode new GPU commands.
You are responsible to ensure that all command buffers with memory originating from this allocator instance are complete before calling resetting it.