<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelRenderContextShaderGraph",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer32LowLevelRenderContextShaderGraphP"
  },
  "title" : "LowLevelRenderContextShaderGraph"
}
-->

# LowLevelRenderContextShaderGraph

The interface for creating Metal shader functions from a ShaderGraph.

```
protocol LowLevelRenderContextShaderGraph
```

## Overview

Access this through [`shaderGraph`](/documentation/RealityKit/LowLevelRenderContext/shaderGraph).

## Topics

### Creating shader graph functions

[`func makeShaderGraphFunctions(shaderGraph: ShaderGraph, constantValues: MTLFunctionConstantValues) throws -> sending LowLevelMaterialResource.ShaderGraphOutput`](/documentation/RealityKit/LowLevelRenderContextShaderGraph/makeShaderGraphFunctions(shaderGraph:constantValues:)-791l3)

A synchronous variant of [`makeShaderGraphFunctions(shaderGraph:constantValues:)`](/documentation/RealityKit/LowLevelRenderContextShaderGraph/makeShaderGraphFunctions(shaderGraph:constantValues:)-791l3) for non-async callers.

[`func makeShaderGraphFunctions(shaderGraph: ShaderGraph, constantValues: MTLFunctionConstantValues) async throws -> sending LowLevelMaterialResource.ShaderGraphOutput`](/documentation/RealityKit/LowLevelRenderContextShaderGraph/makeShaderGraphFunctions(shaderGraph:constantValues:)-9d8oc)

Compiles a ShaderGraph into a geometry modifier and surface shader.

### Instance Methods

[`func makeShaderGraphFunctions(shaderGraph:constantValues:)`](/documentation/RealityKit/LowLevelRenderContextShaderGraph/makeShaderGraphFunctions(shaderGraph:constantValues:))

A synchronous variant of [`makeShaderGraphFunctions(shaderGraph:constantValues:)`](/documentation/RealityKit/LowLevelRenderContextShaderGraph/makeShaderGraphFunctions(shaderGraph:constantValues:)) for non-async callers.

## Relationships

### Conforming Types

[`LowLevelRenderContextStandalone`](/documentation/RealityKit/LowLevelRenderContextStandalone)

---

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)