---
title: maxCommandBufferCount
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtliocommandqueuedescriptor/maxcommandbuffercount
---

# maxCommandBufferCount

Sets the largest number of outstanding input/output command buffers a queue can have at any point in time.

## Declaration

```swift
var maxCommandBufferCount: Int { get set }
```

## Discussion

Discussion The input/output command buffers that count against this limit are those that are currently executing in a queue or waiting to execute. The command buffers that have finished executing no longer count against this limit.

## See Also

### Configuring the input/output command queue

- [priority](metal/mtliocommandqueuedescriptor/priority.md)
- [type](metal/mtliocommandqueuedescriptor/type.md)
- [maxCommandsInFlight](metal/mtliocommandqueuedescriptor/maxcommandsinflight.md)
