---
title: functionType
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlfunction/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 and whether you can use it as a callable function in a function table.

## See Also

### Identifying shader functions

- [device](metal/mtlfunction/device.md)
- [label](metal/mtlfunction/label.md)
- [name](metal/mtlfunction/name.md)
- [MTLFunctionType](metal/mtlfunctiontype.md)
- [options](metal/mtlfunction/options.md)
- [MTLFunctionOptions](metal/mtlfunctionoptions.md)
