Instance Method

makeComputePipelineState(descriptor:options:completionHandler:)

Asynchronously creates a compute pipeline state object, and associated reflection information, using a compute pipeline descriptor.

Required.

Declaration

func makeComputePipelineState(descriptor: MTLComputePipelineDescriptor, options: MTLPipelineOption, completionHandler: @escaping MTLNewComputePipelineStateWithReflectionCompletionHandler)

Parameters

descriptor

A descriptor object that contains compute properties.

options

The type of reflection information that should be returned.

completionHandler

A block of code that is invoked when the logic to create the compute pipeline state object is completed.

Discussion

To use the compute pipeline state for a compute pass, call the setComputePipelineState(_:) method of a MTLComputeCommandEncoder object with the MTLComputePipelineState object.

Topics

Pipeline Options

struct MTLPipelineOption

The compilation options that determine which argument information to provide.

Completion Handler

typealias MTLNewComputePipelineStateWithReflectionCompletionHandler

A block of code that is invoked when the logic to create a MTLComputePipelineState object is completed.

See Also

Creating a Compute Pipeline

func makeComputePipelineState(function: MTLFunction, completionHandler: MTLNewComputePipelineStateCompletionHandler)

Asynchronously creates a new compute pipeline state object using a function object.

Required.

func makeComputePipelineState(function: MTLFunction, options: MTLPipelineOption, completionHandler: MTLNewComputePipelineStateWithReflectionCompletionHandler)

Asynchronously creates a new compute pipeline state object, and associated reflection information, using a function object.

Required.

func makeComputePipelineState(function: MTLFunction) -> MTLComputePipelineState

Synchronously creates a new compute pipeline state object using a function object.

Required.