---
title: "definitions(function:input:)"
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:input:)"
---

# definitions(function:input:)

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

## Declaration

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