---
title: MTLNewRenderPipelineStateCompletionHandler
framework: metal
role: symbol
role_heading: Type Alias
path: metal/mtlnewrenderpipelinestatecompletionhandler
---

# MTLNewRenderPipelineStateCompletionHandler

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

## Declaration

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

## Parameters

- `renderPipelineState`: An doc://com.apple.metal/documentation/Metal/MTLRenderPipelineState instance if the method completes successfully; otherwise nil.
- `error`: If an error occurs, an error information instance; otherwise nil.

## See Also

### Supporting types

- [MTLNewRenderPipelineStateWithReflectionCompletionHandler](metal/mtlnewrenderpipelinestatewithreflectioncompletionhandler.md)
- [MTLNewComputePipelineStateCompletionHandler](metal/mtlnewcomputepipelinestatecompletionhandler.md)
- [MTLNewComputePipelineStateWithReflectionCompletionHandler](metal/mtlnewcomputepipelinestatewithreflectioncompletionhandler.md)
