<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLFunctionStitchingGraph/init(functionName:nodes:outputNode:attributes:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLFunctionStitchingGraph(im)initWithFunctionName:nodes:outputNode:attributes:"
  },
  "title" : "init(functionName:nodes:outputNode:attributes:)"
}
-->

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

Creates a description of a new function call graph.

```
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.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)