Describe the base of a geometry buffer, which is made of a Buffer and a typed array.

interface GeometryBuffer {
    array: TypedArray;
    buffer: Buffer;
    bufferOffset: number;
    bufferSize: number;
}

Hierarchy (view full)

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.