<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTL4ComputePipelineDescriptor/computeFunctionDescriptor",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTL4ComputePipelineDescriptor(py)computeFunctionDescriptor"
  },
  "title" : "computeFunctionDescriptor"
}
-->

# computeFunctionDescriptor

A descriptor representing the compute pipeline’s function.

```
@NSCopying var computeFunctionDescriptor: MTL4FunctionDescriptor? { get set }
```

## Discussion

You don’t assign instances of [`MTL4FunctionDescriptor`](/documentation/Metal/MTL4FunctionDescriptor) to this property directly, instead
assign an instance of one of its subclasses, such as [`MTL4LibraryFunctionDescriptor`](/documentation/Metal/MTL4LibraryFunctionDescriptor), which
represents a function from a Metal library.

---

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)