<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ShaderGraph/NodeLibrary/definitions(function:output:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:11ShaderGraphAAC11NodeLibraryC11definitions8function6outputSayAB0C10DefinitionVGSS_AB8DataTypeOtF"
  },
  "title" : "definitions(function:output:)"
}
-->

# definitions(function:output:)

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

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

---

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)