Instance Method

newComputePipelineStateWithFunction:options:completionHandler:

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

Required.

Declaration

- (void)newComputePipelineStateWithFunction:(id<MTLFunction>)computeFunction options:(MTLPipelineOption)options completionHandler:(MTLNewComputePipelineStateWithReflectionCompletionHandler)completionHandler;

Parameters

function

A function object to be compiled into a compute pipeline state object.

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

MTLPipelineOption

The compilation options that determine which argument information to provide.

Completion Handler

MTLNewComputePipelineStateWithReflectionCompletionHandler

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

See Also

Creating a Compute Pipeline

- newComputePipelineStateWithDescriptor:options:completionHandler:

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

Required.

- newComputePipelineStateWithFunction:completionHandler:

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

Required.

- newComputePipelineStateWithDescriptor:options:reflection:error:

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

Required.

- newComputePipelineStateWithFunction:error:

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

Required.

- newComputePipelineStateWithFunction:options:reflection:error:

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

Required.