Instance Method

newComputePipelineStateWithDescriptor:options:reflection:error:

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

Required.

Declaration

- (id<MTLComputePipelineState>)newComputePipelineStateWithDescriptor:(MTLComputePipelineDescriptor *)descriptor options:(MTLPipelineOption)options reflection:(MTLAutoreleasedComputePipelineReflection *)reflection error:(NSError * _Nullable *)error;

Parameters

descriptor

A descriptor object that contains compute properties.

options

The type of reflection information that should be returned.

reflection

Reflection data about the compute function, including details about function arguments.

error

An error object that describes the problem, or nil if the operation succeeded.

Return Value

A new object with the compiled compute pipeline state.

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.

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.

- newComputePipelineStateWithFunction:options:completionHandler:

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

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.