<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLComputePipelineReflection",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLComputePipelineReflection"
  },
  "title" : "MTLComputePipelineReflection"
}
-->

# MTLComputePipelineReflection

Information about the arguments of a compute function.

```
class MTLComputePipelineReflection
```

## Overview

An [`MTLComputePipelineReflection`](/documentation/Metal/MTLComputePipelineReflection) object provides access to the arguments of the compute function used in an [`MTLComputePipelineState`](/documentation/Metal/MTLComputePipelineState) object. An [`MTLComputePipelineReflection`](/documentation/Metal/MTLComputePipelineReflection) object can be created along with an [`MTLComputePipelineState`](/documentation/Metal/MTLComputePipelineState) object. Don’t create an [`MTLComputePipelineReflection`](/documentation/Metal/MTLComputePipelineReflection) object directly. Instead, call either the [`makeComputePipelineState(function:options:reflection:)`](/documentation/Metal/MTLDevice/makeComputePipelineState(function:options:reflection:)) or [`makeComputePipelineState(function:options:completionHandler:)`](/documentation/Metal/MTLDevice/makeComputePipelineState(function:options:completionHandler:)) method of [`MTLDevice`](/documentation/Metal/MTLDevice) to create both an [`MTLComputePipelineState`](/documentation/Metal/MTLComputePipelineState) object and an [`MTLComputePipelineReflection`](/documentation/Metal/MTLComputePipelineReflection) object.

[`MTLComputePipelineReflection`](/documentation/Metal/MTLComputePipelineReflection) objects can use a significant amount of memory; release any strong references to them after you finish creating pipeline objects.

## Topics

### Obtaining the arguments of the compute function

[`arguments`](/documentation/Metal/MTLComputePipelineReflection/arguments)

An array of instances that describe the arguments of a compute function.



---

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)