Parameters used to create a VertexBuffer

interface VertexBufferParams {
    array?: TypedArray;
    buffer?: Buffer;
    bufferOffset?: number;
    bufferSize?: number;
    stepMode?: GPUVertexStepMode;
    name?: string;
    attributes?: VertexBufferAttributeParams[];
}

Hierarchy

Properties

array?: TypedArray

VertexBuffer data array to be used by the GPUBuffer

buffer?: Buffer

GPUBuffer sent to the render pipeline

bufferOffset?: number

Number representing the offset at which the data begins in the GPUBuffer.

bufferSize?: number

Size in bytes of the data contained in the GPUBuffer.

stepMode?: GPUVertexStepMode

Whether this VertexBuffer should hold data relative to vertices or instances

name?: string

The name of the VertexBuffer

Array of VertexBufferAttribute to be used by this VertexBuffer