GPUVertexBufferLayout


class GPUVertexBufferLayout


Defines the memory layout and step rate for a single vertex buffer.

Summary

Public constructors

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

Public properties

Long
Array<GPUVertexAttribute>

An array of attributes contained within this vertex buffer.

Int

Public constructors

GPUVertexBufferLayout

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

Public properties

arrayStride

Added in 1.0.0-alpha02
var arrayStrideLong

attributes

Added in 1.0.0-alpha02
var attributesArray<GPUVertexAttribute>

An array of attributes contained within this vertex buffer.

stepMode

Added in 1.0.0-alpha02
var stepModeInt