---
title: "MPSGetCustomKernelBatchedSourceIndex(_:_:_:)"
framework: metalperformanceshaders
role: symbol
role_heading: Function
path: "metalperformanceshaders/mpsgetcustomkernelbatchedsourceindex(_:_:_:)"
---

# MPSGetCustomKernelBatchedSourceIndex(_:_:_:)

Returns the index of the specified batched source texture argument.

## Declaration

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