Defines an index buffer

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

Hierarchy (View Summary)

Properties

bufferFormat: GPUIndexFormat

index buffer format

index buffer array

bufferLength: number

index buffer length

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.