Aller au contenu

VertexBufferLayout

data class VertexBufferLayout(
    val arrayStride: GPUSize64, 
    val attributes: List<GPUVertexAttribute>, 
    val stepMode: GPUVertexStepMode = GPUVertexStepMode.Vertex
) : GPUVertexBufferLayout
Describes the stride, step mode, and attributes of a vertex buffer.

Constructors

VertexBufferLayout

constructor(
    arrayStride: GPUSize64, 
    attributes: List<GPUVertexAttribute>, 
    stepMode: GPUVertexStepMode = GPUVertexStepMode.Vertex
)

Properties

arrayStride

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

attributes

open override val attributes: List<GPUVertexAttribute>
An array defining the layout of the vertex attributes within each element.

stepMode

open override val stepMode: GPUVertexStepMode
Whether each element of this array represents per-vertex data or per-instance data