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

# stride

The number of bytes between the first byte of two consecutive vertices in a buffer.

## Declaration

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

## Discussion

Discussion Check the Metal feature set tables (PDF) for potential alignment restrictions.

## See Also

### Organizing the vertex buffer layout

- [stepFunction](metal/mtlvertexbufferlayoutdescriptor/stepfunction.md)
- [stepRate](metal/mtlvertexbufferlayoutdescriptor/steprate.md)
- [MTLVertexStepFunction](metal/mtlvertexstepfunction.md)
