---
title: "MPSGetCustomKernelBroadcastSourceIndex(_:_:_:)"
framework: metalperformanceshaders
role: symbol
role_heading: Function
path: "metalperformanceshaders/mpsgetcustomkernelbroadcastsourceindex(_:_:_:)"
---

# MPSGetCustomKernelBroadcastSourceIndex(_:_:_:)

Returns the index of the specified nonbatched source texture argument.

## Declaration

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