Defines an index buffer

interface IndexBuffer {
    bufferFormat: GPUIndexFormat;
    array: Uint16Array | Uint32Array;
    bufferLength: number;
    buffer: Buffer;
    bufferOffset: number;
    bufferSize: number;
}

Hierarchy (view full)

Properties

bufferFormat: GPUIndexFormat

index buffer format

array: Uint16Array | Uint32Array

index buffer array

bufferLength: number

index buffer length

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.