---
title: stepFunction
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/lowlevelmesh/layout/stepfunction
---

# stepFunction

Determines how the vertex shader steps through the data in this layout.

## Declaration

```swift
var stepFunction: MTLVertexStepFunction
```

## Discussion

Discussion Set to .perInstance to supply per-instance data (for example, per-instance color) from a vertex buffer. Defaults to .perVertex.

## See Also

### Configuring vertex stepping

- [stepRate](realitykit/lowlevelmesh/layout/steprate.md)
