---
title: MTLFunctionType.fragment
framework: metal
role: symbol
role_heading: Case
path: metal/mtlfunctiontype/fragment
---

# MTLFunctionType.fragment

A fragment function you can use in a render pipeline state object.

## Declaration

```swift
case fragment
```

## See Also

### Function types

- [MTLFunctionType.vertex](metal/mtlfunctiontype/vertex.md)
- [MTLFunctionType.kernel](metal/mtlfunctiontype/kernel.md)
- [MTLFunctionType.intersection](metal/mtlfunctiontype/intersection.md)
- [MTLFunctionType.visible](metal/mtlfunctiontype/visible.md)
