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

# init(configuration:resources:)

Creates a standalone render context using pre-compiled shader and pipeline resources.

## Declaration

```swift
init(configuration: LowLevelRenderContextStandalone.Configuration, resources: LowLevelRenderContextStandalone.Resources) throws
```

## Parameters

- `configuration`: The Metal device and optional memory owner for the new context.
- `resources`: Pre-compiled shader and pipeline resources to share across render contexts.

## Discussion

Discussion Prefer this overload when sharing compiled resources across multiple render contexts. To create a single context without pre-compiling resources, use init(configuration:) instead. note: LowLevelRenderContextError if the context cannot be created.

## See Also

### Creating a render context

- [init(configuration:)](realitykit/lowlevelrendercontextstandalone/init(configuration:).md)
- [LowLevelRenderContextStandalone.Configuration](realitykit/lowlevelrendercontextstandalone/configuration.md)
- [LowLevelRenderContextStandalone.Resources](realitykit/lowlevelrendercontextstandalone/resources.md)
