<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLIOScratchBufferAllocator",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLIOScratchBufferAllocator"
  },
  "title" : "MTLIOScratchBufferAllocator"
}
-->

# MTLIOScratchBufferAllocator

A protocol your app implements to provide scratch memory to an input/output command queue.

```
protocol MTLIOScratchBufferAllocator : NSObjectProtocol
```

## Overview

An allocator returns instances of [`MTLIOScratchBuffer`](/documentation/Metal/MTLIOScratchBuffer), another type your app implements.

## Topics

### Providing scratch memory to a queue

[`makeScratchBuffer(minimumSize:)`](/documentation/Metal/MTLIOScratchBufferAllocator/makeScratchBuffer(minimumSize:))

Creates a scratch memory buffer for an input/output command queue.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)