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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software