---
title: "init(functionName:nodes:outputNode:attributes:)"
framework: metal
role: symbol
role_heading: Initializer
path: "metal/mtlfunctionstitchinggraph/init(functionname:nodes:outputnode:attributes:)"
---

# init(functionName:nodes:outputNode:attributes:)

Creates a description of a new function call graph.

## Declaration

```swift
init(functionName: String, nodes: [MTLFunctionStitchingFunctionNode], outputNode: MTLFunctionStitchingFunctionNode?, attributes: [any MTLFunctionStitchingAttribute])
```

## Parameters

- `functionName`: The name of the new function.
- `nodes`: The nodes in the function’s call graph.
- `outputNode`: The node whose output is the output of the new stitched function.
- `attributes`: A list of attributes used to generate the new stitched function.
