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

# MTLNewComputePipelineStateWithReflectionCompletionHandler

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

```
typealias MTLNewComputePipelineStateWithReflectionCompletionHandler = ((any MTLComputePipelineState)?, MTLComputePipelineReflection?, (any Error)?) -> Void
```

## Parameters

`computePipelineState`

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

`reflection`

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

`error`

On return, if an error occurs, a pointer to 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)