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

# definitions(function:inputs:)

Returns all definitions that implement the given function with the specified input types, in order.

## Declaration

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