---
title: "MPSGetCustomKernelMaxBatchSize(_:_:)"
framework: metalperformanceshaders
role: symbol
role_heading: Function
path: "metalperformanceshaders/mpsgetcustomkernelmaxbatchsize(_:_:)"
---

# MPSGetCustomKernelMaxBatchSize(_:_:)

Returns the maximum allowed batch size.

## Declaration

```swift
func MPSGetCustomKernelMaxBatchSize(_ c: MPSCustomKernelArgumentCount, _ MPSMaxTextures: UInt) -> UInt
```
