---
title: makeMTL4CommandQueue()
framework: metal
role: symbol
role_heading: Instance Method
path: metal/mtldevice/makemtl4commandqueue()
---

# makeMTL4CommandQueue()

Creates a new command queue.

## Declaration

```swift
func makeMTL4CommandQueue() -> (any MTL4CommandQueue)?
```

## Mentioned in

Understanding the Metal 4 core API

## Return Value

Return Value A MTL4CommandQueue instance, or nil if the function failed.
