MTLIOScratchBuffer
A protocol your app implements that wraps a Metal buffer instance to serve as scratch memory for an input/output command queue.
Declaration
protocol MTLIOScratchBuffer : NSObjectProtocolOverview
Your app can reintegrate an MTLIOScratchBuffer instance’s underlying memory back into a memory pool by overriding your type’s dealloc method. The system calls the method when an input/output command queue no longer needs a scratch buffer.