---
title: functions
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlstitchedlibrarydescriptor/functions
---

# functions

The list of functions for creating the stitched library.

## Declaration

```swift
var functions: [any MTLFunction] { get set }
```

## Discussion

Discussion The function objects need to all be created by the same Metal device object that you’ll use to create the library. The MSL functions referenced by these function objects need to be declared with the stitchable attribute, as in the example below: [[stitchable]]  float add(float a, float b) {     return a + b; }

## See Also

### Configuring a stitched library

- [functionGraphs](metal/mtlstitchedlibrarydescriptor/functiongraphs.md)
