---
title: "makeShaderGraphFunctions(shaderGraph:constantValues:)"
framework: RealityKit
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "realitykit/lowlevelrendercontextstandalone/makeshadergraphfunctions(shadergraph:constantvalues:)-7p4ye"
---

# makeShaderGraphFunctions(shaderGraph:constantValues:)

Compiles a ShaderGraph into a geometry modifier and surface shader.

## Declaration

```swift
nonisolated(nonsending) final func makeShaderGraphFunctions(shaderGraph: ShaderGraph, constantValues: MTLFunctionConstantValues) async throws -> sending LowLevelMaterialResource.ShaderGraphOutput
```

## Parameters

- `shaderGraph`: The ShaderGraph to compile.
- `constantValues`: The Metal function constant values used to specialize the compiled functions.

## Return Value

Return Value The compiled functions for use in a LowLevelMaterialResource.
