<!--
{
  "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/MTLDevice/makeIOCommandQueue(descriptor:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLDevice(im)newIOCommandQueueWithDescriptor:error:"
  },
  "title" : "makeIOCommandQueue(descriptor:)"
}
-->

# makeIOCommandQueue(descriptor:)

Creates an input/output command queue you use to submit commands that load assets from the file system into GPU resources or system memory.

```
func makeIOCommandQueue(descriptor: MTLIOCommandQueueDescriptor) throws -> any MTLIOCommandQueue
```

## Parameters

`descriptor`

A descriptor instance that configures the command queue.

## Return Value

A new [`MTLIOCommandQueue`](/documentation/Metal/MTLIOCommandQueue) instance if the method completes successfully;
otherwise Swift throws an error and Objective-C returns `nil`.

## Discussion

For information about using input/output command queues and file handles, see [Resource loading](/documentation/Metal/resource-loading).

---

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)