---
title: computeFunctionDescriptor
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtl4computepipelinedescriptor/computefunctiondescriptor
---

# computeFunctionDescriptor

A descriptor representing the compute pipeline’s function.

## Declaration

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

## Discussion

Discussion You don’t assign instances of MTL4FunctionDescriptor to this property directly, instead assign an instance of one of its subclasses, such as MTL4LibraryFunctionDescriptor, which represents a function from a Metal library.
