Type Alias

MTLNewRenderPipelineStateCompletionHandler

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

Declaration

typealias MTLNewRenderPipelineStateCompletionHandler = (MTLRenderPipelineState?, Error?) -> Void

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.

error

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