gpu-curtains
    Preparing search index...

    Interface VertexBufferParams

    Parameters used to create a VertexBuffer.

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

    Hierarchy

    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.

    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.