GPUVertexBufferLayout


class GPUVertexBufferLayout


Describes the layout of a single vertex buffer.

Summary

Public constructors

GPUVertexBufferLayout(
    arrayStride: Long,
    stepMode: Int,
    attributes: Array<GPUVertexAttribute>
)

Public properties

Long
Array<GPUVertexAttribute>

An array of vertex attributes sourced from this buffer.

Int

Public constructors

GPUVertexBufferLayout

Added in 1.0.0-alpha04
GPUVertexBufferLayout(
    arrayStride: Long,
    stepMode: Int = VertexStepMode.Undefined,
    attributes: Array<GPUVertexAttribute> = arrayOf()
)

Public properties

arrayStride

Added in 1.0.0-alpha04
var arrayStrideLong

attributes

Added in 1.0.0-alpha04
var attributesArray<GPUVertexAttribute>

An array of vertex attributes sourced from this buffer.

stepMode

Added in 1.0.0-alpha04
var stepModeInt