---
title: "init(configuration:renderContext:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/lowlevelrenderer/resources/init(configuration:rendercontext:)"
---

# init(configuration:renderContext:)

Asynchronously compiles all shader and pipeline resources for the given configuration and render context.

## Declaration

```swift
nonisolated(nonsending) init(configuration: LowLevelRenderer.Configuration, renderContext: any LowLevelRenderContext) async throws
```

## Parameters

- `configuration`: The renderer configuration that determines which pipelines to compile.
- `renderContext`: The render context that provides the Metal device and factory methods.

## Discussion

Discussion note: An error if shader or pipeline compilation fails.
