<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLDevice/makeCommandQueue()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLDevice(im)newCommandQueue"
  },
  "title" : "makeCommandQueue()"
}
-->

# makeCommandQueue()

Creates a queue you use to submit rendering and computation commands to a GPU.

```
func makeCommandQueue() -> (any MTLCommandQueue)?
```

## Return Value

A new [`MTLCommandQueue`](/documentation/Metal/MTLCommandQueue) instance if the method completed successfully; otherwise `nil`.

## Discussion

A command queue can only submit commands to the GPU device instance that created it.

> Important:
> The command queues you create with this method allow up to 64 uncompleted command buffers at time.

This method is the equivalent of passing `64` to the [`makeCommandQueue(maxCommandBufferCount:)`](/documentation/Metal/MTLDevice/makeCommandQueue(maxCommandBufferCount:)) method.

```objective-c
id<MTLCommandQueue> commandQueue;

NSUInteger capacity = 64;
commandQueue = [device newCommandQueueWithMaxCommandBufferCount:capacity];
```

---

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)