Contents

init(configuration:)

Creates a standalone render context, asynchronously compiling all required shader and pipeline resources.

Declaration

nonisolated(nonsending) init(configuration: LowLevelRenderContextStandalone.Configuration) async throws

Parameters

  • 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.

See Also

Creating a render context