---
title: makeCommandBuffer()
framework: metal
role: symbol
role_heading: Instance Method
path: metal/mtliocommandqueue/makecommandbuffer()
---

# makeCommandBuffer()

Creates an input/output command buffer for the command queue.

## Declaration

```swift
func makeCommandBuffer() -> any MTLIOCommandBuffer
```

## See Also

### Creating a input/output command buffer

- [makeCommandBufferWithUnretainedReferences()](metal/mtliocommandqueue/makecommandbufferwithunretainedreferences().md)
