---
title: "functionHandle(function:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlcomputepipelinestate/functionhandle(function:)-8spaa"
---

# functionHandle(function:)

Gets the function handle for a function this pipeline links at the binary level.

## Declaration

```swift
func functionHandle(function: any MTL4BinaryFunction) -> (any MTLFunctionHandle)?
```

## Parameters

- `function`: A binary function object representing the function binary to find.

## Return Value

Return Value A function handle corresponding to the function if the binary function matches a function in this pipeline state, otherwise nil.
