---
title: "definitions(function:output:)"
framework: realitykit
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "realitykit/shadergraph/nodelibrary/definitions(function:output:)"
---

# definitions(function:output:)

Returns all definitions that implement the given function with the specified output type.

## Declaration

```swift
final func definitions(function: String, output outputType: ShaderGraph.DataType) -> [ShaderGraph.NodeDefinition]
```
