init(configuration:resources:)
Creates a standalone render context using pre-compiled shader and pipeline resources.
Declaration
init(configuration: LowLevelRenderContextStandalone.Configuration, resources: LowLevelRenderContextStandalone.Resources) throwsParameters
- 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
Prefer this overload when sharing compiled resources across multiple render contexts. To create a single context without pre-compiling resources, use init(configuration:) instead.