Defines the available options to create an index buffer

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

Hierarchy

Properties

bufferFormat?: GPUIndexFormat

index buffer format

array?: Uint16Array | Uint32Array

index buffer array

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.