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

# init(configuration:renderContext:)

Creates a renderer, asynchronously compiling all required GPU resources.

## Declaration

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

## Parameters

- `configuration`: The immutable configuration for this renderer, including output formats and MSAA settings.
- `renderContext`: The render context that provides the Metal device and factory methods.

## Discussion

Discussion note: An error if GPU resource compilation fails.

## See Also

### Creating a renderer

- [LowLevelRenderer.Configuration](realitykit/lowlevelrenderer/configuration.md)
