<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLFunctionStitchingFunctionNode"
  },
  "title" : "MTLFunctionStitchingFunctionNode"
}
-->

# MTLFunctionStitchingFunctionNode

A call graph node that describes a function call and its inputs.

```
class MTLFunctionStitchingFunctionNode
```

## Overview

When the Metal device object evaluates the function graph to compile the stitched function, it evaluates the nodes stored in the [`arguments`](/documentation/Metal/MTLFunctionStitchingFunctionNode/arguments) property that it hasn’t already evaluated, and then calls the function specified by [`name`](/documentation/Metal/MTLFunctionStitchingFunctionNode/name) to generate the node’s output.

If the function has side effects on the input data, use the [`controlDependencies`](/documentation/Metal/MTLFunctionStitchingFunctionNode/controlDependencies) property on other nodes to specify whether the Metal device object needs to evaluate this node first.

## Topics

### Initializing a function node

[`init(name:arguments:controlDependencies:)`](/documentation/Metal/MTLFunctionStitchingFunctionNode/init(name:arguments:controlDependencies:))

Creates a new function node.

### Configuring a function node

[`name`](/documentation/Metal/MTLFunctionStitchingFunctionNode/name)

The name of the function to call.

[`arguments`](/documentation/Metal/MTLFunctionStitchingFunctionNode/arguments)

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

[`controlDependencies`](/documentation/Metal/MTLFunctionStitchingFunctionNode/controlDependencies)

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



---

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)