init(configuration:)
Creates a standalone render context, asynchronously compiling all required shader and pipeline resources.
Declaration
nonisolated(nonsending) init(configuration: LowLevelRenderContextStandalone.Configuration) async throwsParameters
- configuration:
The Metal device and optional memory owner for the new context.
Discussion
Prefer this overload when creating a single render context. If you need to share compiled resources across multiple contexts, create a LowLevelRenderContextStandalone.Resources value first and use init(configuration:resources:) instead.