gpu-curtains
    Preparing search index...

    Interface VertexBuffer

    A VertexBuffer is an object regrouping one or multiple VertexBufferAttribute into a single array and its associated GPUBuffer.

    interface VertexBuffer {
        array?: TypedArray;
        arrayBuffer?: ArrayBuffer;
        buffer: Buffer;
        bufferOffset: number;
        bufferSize: number;
        name: string;
        stepMode: GPUVertexStepMode;
        arrayStride: number;
        bufferLength: number;
        attributes: VertexBufferAttribute[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    array?: TypedArray

    VertexBuffer data array with already interleaved values to be used to fill the ArrayBuffer.

    arrayBuffer?: ArrayBuffer

    VertexBuffer data ArrayBuffer to be used by the GPUBuffer.

    buffer: Buffer
    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.

    name: string

    The name of the VertexBuffer.

    stepMode: GPUVertexStepMode

    Whether this VertexBuffer holds data relative to vertices or instances.

    arrayStride: number
    bufferLength: number

    Total buffer length in bytes.

    attributes: VertexBufferAttribute[]

    Array of VertexBufferAttribute used by this VertexBuffer.