Contents

vertexStride

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

Declaration

var vertexStride: Int { get set }

Discussion

The stride you specify 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.