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

# stride

The number of bytes from one buffer entry to the next.

## Declaration

```swift
var stride: Int { get set }
```

## Discussion

Discussion The default value is 1. Check the Metal feature set tables (PDF) for potential alignment restrictions.

## See Also

### Describing fetch behavior

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