---
title: fragmentFunction
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlmeshrenderpipelinedescriptor/fragmentfunction
---

# fragmentFunction

## Declaration

```swift
var fragmentFunction: (any MTLFunction)? { get set }
```
