Aller au contenu

GPUVertexBufferLayout

Describes the stride, step mode, and attributes of a vertex buffer.

Properties

arrayStride

abstract val arrayStride: GPUSize64
The stride, in bytes, between elements of this array.

attributes

An array defining the layout of the vertex attributes within each element.

stepMode

Whether each element of this array represents per-vertex data or per-instance data