---
title: stepFunction
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlbufferlayoutdescriptor/stepfunction
---

# stepFunction

Determines how and when compute functions fetch data.

## Declaration

```swift
var stepFunction: MTLStepFunction { get set }
```

## See Also

### Describing fetch behavior

- [stride](metal/mtlbufferlayoutdescriptor/stride.md)
- [stepRate](metal/mtlbufferlayoutdescriptor/steprate.md)
- [MTLStepFunction](metal/mtlstepfunction.md)
