makeRenderPipelineState(descriptor:)
Asynchronously compiles a Metal render pipeline state from the given descriptor.
Declaration
nonisolated(nonsending) func makeRenderPipelineState(descriptor: LowLevelRenderPipelineState.Descriptor) async throws -> sending LowLevelRenderPipelineStateParameters
- descriptor:
The mesh descriptor, material, render targets, and optional blending configuration.
Return Value
A compiled LowLevelRenderPipelineState.
Discussion
The descriptor’s mesh format, material, and render target configuration are baked into the pipeline at compile time. Create pipeline states once and reuse them across frames.