Contents

makeComputePipelineState(descriptor:dynamicLinkingDescriptor:)

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

Declaration

func makeComputePipelineState(descriptor: MTL4ComputePipelineDescriptor, dynamicLinkingDescriptor: MTL4PipelineStageDynamicLinkingDescriptor? = nil) throws -> any MTLComputePipelineState

Parameters

  • descriptor:

    A compute 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.