<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLNewRenderPipelineStateCompletionHandler",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@T@MTLNewRenderPipelineStateCompletionHandler"
  },
  "title" : "MTLNewRenderPipelineStateCompletionHandler"
}
-->

# MTLNewRenderPipelineStateCompletionHandler

A completion handler signature a method calls when it finishes creating a render pipeline.

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

## Parameters

`renderPipelineState`

An [`MTLRenderPipelineState`](/documentation/Metal/MTLRenderPipelineState) instance if the method completes successfully; otherwise `nil`.

`error`

If an error occurs, an error information instance; otherwise `nil`.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)