scratchBufferAllocator
An optional memory allocator that you implement to manage the scratch memory that an input/output command queue requests.
Declaration
var scratchBufferAllocator: (any MTLIOScratchBufferAllocator)? { get set }Discussion
Your app can manage an input/output command queue’s scratch memory by an implementing MTLIOScratchBufferAllocator in one of your types, and assigning an instance of it to scratchBufferAllocator. Otherwise, set to nil to instruct the input/output command queue to allocate and manage its own scratch buffers.