<!--
{
  "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/MTLFunctionStitchingFunctionNode/init(name:arguments:controlDependencies:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLFunctionStitchingFunctionNode(im)initWithName:arguments:controlDependencies:"
  },
  "title" : "init(name:arguments:controlDependencies:)"
}
-->

# init(name:arguments:controlDependencies:)

Creates a new function node.

```
init(name: String, arguments: [any MTLFunctionStitchingNode], controlDependencies: [MTLFunctionStitchingFunctionNode])
```

## Parameters

`name`

The name of the function to call.

`arguments`

An ordered list of the nodes that provide the function’s arguments.

`controlDependencies`

The list of nodes that need to run before executing this node.

## 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)