---
title: controlDependencies
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlfunctionstitchingfunctionnode/controldependencies
---

# controlDependencies

The list of nodes that need to execute before executing the node.

## Declaration

```swift
var controlDependencies: [MTLFunctionStitchingFunctionNode] { get set }
```

## Discussion

Discussion When a stitched function calls functions that have side effects on their input data, you often need the GPU to execute functions in a specific order. In such cases, use the controlDependencies property to specify which nodes need to run before executing this node.

## See Also

### Configuring a function node

- [name](metal/mtlfunctionstitchingfunctionnode/name.md)
- [arguments](metal/mtlfunctionstitchingfunctionnode/arguments.md)
