<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTL4AccelerationStructureMotionTriangleGeometryDescriptor/vertexStride",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTL4AccelerationStructureMotionTriangleGeometryDescriptor(py)vertexStride"
  },
  "title" : "vertexStride"
}
-->

# vertexStride

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

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

## 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`](/documentation/Metal/MTL4AccelerationStructureMotionTriangleGeometryDescriptor/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`](/documentation/Metal/MTL4AccelerationStructureMotionTriangleGeometryDescriptor/vertexFormat) data.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)