Contents

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 : NSObjectProtocol

Overview

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.

Topics

Wrapping a buffer

See Also

I/O command queues