Type Alias

MTLNewComputePipelineStateWithReflectionCompletionHandler

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

Declaration

typedef void (^MTLNewComputePipelineStateWithReflectionCompletionHandler)(id<MTLComputePipelineState> computePipelineState, MTLComputePipelineReflection *reflection, NSError *error);

Discussion

The completion handler takes the following parameters:

renderPipelineState

A new compute pipeline state object that contains the compiled compute pipeline state, or nil if an error occurred.

reflection

A new reflection object that contains the reflection data about the compute function, including details about function arguments. If the pipeline state could not be compiled, this parameter is nil.

error

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