Contents

makeRenderPipelineState(descriptor:dynamicLinkingDescriptor:)

Creates a render pipeline state from the archive with a render descriptor and a dynamic linking descriptor.

Declaration

func makeRenderPipelineState(descriptor: MTL4PipelineDescriptor, dynamicLinkingDescriptor: MTL4RenderPipelineDynamicLinkingDescriptor? = nil) throws -> any MTLRenderPipelineState

Parameters

  • descriptor:

    A render pipeline descriptor.

  • dynamicLinkingDescriptor:

    A descriptor that provides additional properties to link other functions with the pipeline.

Return Value

A compute pipeline state object upon success, otherwise this function throws.

Discussion

You create any kind of render pipeline states with this method, including:

  • Traditional render pipelines

  • Mesh render pipelines

  • Tile render pipelines