---
title: instanceDescriptorStride
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtl4indirectinstanceaccelerationstructuredescriptor/instancedescriptorstride
---

# instanceDescriptorStride

Sets the stride, in bytes, between instance descriptors in the instance descriptor buffer.

## Declaration

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

## Discussion

Discussion You are responsible for ensuring this stride is at least the size of the structure type corresponding to the instance descriptor type and a multiple of 4 bytes. Defaults to 0, indicating the instance descriptors are tightly packed.
