Type Alias

MTLNewRenderPipelineStateWithReflectionCompletionHandler

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

Declaration

typedef void (^MTLNewRenderPipelineStateWithReflectionCompletionHandler)(id<MTLRenderPipelineState> renderPipelineState, MTLRenderPipelineReflection *reflection, NSError *error);

Discussion

The completion handler takes the following parameters:

renderPipelineState

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

reflection

A new reflection object that contains the reflection data about the vertex and fragment functions, 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.