---
title: tileFunction
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtltilerenderpipelinedescriptor/tilefunction
---

# tileFunction

The compute kernel or fragment function the pipeline calls.

## Declaration

```swift
var tileFunction: any MTLFunction { get set }
```

## Discussion

Discussion Kernel-based and fragment-based tile pipeline dispatches act as a barrier against previous draw commands and other dispatches. Kernel-based pipelines wait until all prior access to the tile completes. Fragment-based pipelines wait only until all prior access to the fragment’s location completes.

## See Also

### Specifying graphics functions and associated data

- [tileBuffers](metal/mtltilerenderpipelinedescriptor/tilebuffers.md)
- [maxCallStackDepth](metal/mtltilerenderpipelinedescriptor/maxcallstackdepth.md)
