---
title: functionType
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlfunctionhandle/functiontype
---

# functionType

The shader function’s type.

## Declaration

```swift
var functionType: MTLFunctionType { get }
```

## Discussion

Discussion A function’s type determines what kind of pipeline state objects you can create from it.

## See Also

### Querying handle properties

- [device](metal/mtlfunctionhandle/device.md)
- [name](metal/mtlfunctionhandle/name.md)
