---
title: "definition(stage:)"
framework: Compute Graph
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "computegraph/computenodegraph/library/definition(stage:)"
---

# definition(stage:)

Returns a definition for the given stage.

## Declaration

```swift
final func definition(stage: ComputeNodeGraph.Stage) -> ComputeNodeGraph.NodeDefinition?
```
