---
title: fragmentFunctionDescriptor
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtl4renderpipelinedescriptor/fragmentfunctiondescriptor
---

# fragmentFunctionDescriptor

Assigns the shader function that this pipeline executes for each fragment.

## Declaration

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

## Discussion

Discussion When you don’t specify a fragment function, you need to disable rasterization by setting property isRasterizationEnabled to false.
