---
title: vertexStride
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtl4accelerationstructuremotiontrianglegeometrydescriptor/vertexstride
---

# vertexStride

Sets the stride, in bytes, between vertices in all the vertex buffer.

## Declaration

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

## Discussion

Discussion All keyframes share the same vertex stride. This stride needs to be a multiple of the size of the vertex format you provide in the vertexFormat property. Similarly, you are responsible for ensuring this stride matches the vertex format data type’s alignment. Defaults to 0, which signals the stride matches the size of the vertexFormat data.
