Contents

makeComputePipelineState(descriptor:dynamicLinkingDescriptor:compilerTaskOptions:)

Creates a compute pipeline state synchronously.

Declaration

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

Parameters

  • descriptor:

    A compute pipeline state descriptor that describes the pipeline the compiler creates.

  • dynamicLinkingDescriptor:

    An optional descriptor that configures dynamic linking for the pipeline state.

  • compilerTaskOptions:

    Options that control the compilation process.

Return Value

A compute pipeline state upon success, otherwise this method throws.