---
title: "functionHandle(function:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtldevice/functionhandle(function:)-4bw39"
---

# functionHandle(function:)

## Declaration

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

## Discussion

Discussion Returns the function handle for a function that was compiled with MTLFunctionOptionPipelineIndependent and MTLFunctionOptionCompileToBinary.
