---
title: "init(program:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/shadergraphmaterial/init(program:)"
---

# init(program:)

Create a ShaderGraphMaterial with an already initialized Program. Use this method when you want to preload a library of shaders and create instances of them quickly and synchronously via ShaderGraphMaterials at runtime.

## Declaration

```swift
init(program: ShaderGraphMaterial.Program)
```
