---
title: "makeIOCommandQueue(descriptor:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtldevice/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.

## Declaration

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

## Parameters

- `descriptor`: A descriptor instance that configures the command queue.

## Return Value

Return Value A new MTLIOCommandQueue instance if the method completes successfully; otherwise Swift throws an error and Objective-C returns nil.

## Discussion

Discussion For information about using input/output command queues and file handles, see Resource loading.
