Type Alias


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


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


The completion handler takes the following parameters:


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


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