---
title: MTLNewRenderPipelineStateWithReflectionCompletionHandler
framework: metal
role: symbol
role_heading: Type Alias
path: metal/mtlnewrenderpipelinestatewithreflectioncompletionhandler
---

# MTLNewRenderPipelineStateWithReflectionCompletionHandler

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

## Declaration

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

## Parameters

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

## See Also

### Supporting types

- [MTLNewRenderPipelineStateCompletionHandler](metal/mtlnewrenderpipelinestatecompletionhandler.md)
- [MTLNewComputePipelineStateCompletionHandler](metal/mtlnewcomputepipelinestatecompletionhandler.md)
- [MTLNewComputePipelineStateWithReflectionCompletionHandler](metal/mtlnewcomputepipelinestatewithreflectioncompletionhandler.md)
