---
title: maxKernelBufferBindCount
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlindirectcommandbufferdescriptor/maxkernelbufferbindcount
---

# maxKernelBufferBindCount

The maximum number of buffers that you can set per command for the compute kernel.

## Declaration

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

## Discussion

Discussion Metal ignores this property if inheritBuffers is true or if you configured commandTypes for rendering commands. Metal needs to reserve enough memory in each command to store this many arguments. Use the smallest value that works for all commands you plan to encode into the indirect command buffer.

## See Also

### Declaring the maximum number of argument buffers per command

- [maxVertexBufferBindCount](metal/mtlindirectcommandbufferdescriptor/maxvertexbufferbindcount.md)
- [maxFragmentBufferBindCount](metal/mtlindirectcommandbufferdescriptor/maxfragmentbufferbindcount.md)
