new IndexBuffer(options: IndexBufferOptions): IndexBuffer
baseIndex: number
canvas: HTMLCanvasElement
canvasFormat: GPUTextureFormat
context: GPUCanvasContext
cpuBuffer: IndexArray
firstIndex: number
gpuBuffer: GPUBuffer
indexCount: number
label: string
usage: number
getDevice(): Promise<GPUDevice>
setBaseIndex(baseIndex: number): void
setCanvas(canvas: HTMLCanvasElement): void
setCpuBuffer(indexBuffer: IndexArray): Promise<void>
setDevice(d: GPUDevice): void
setFirstIndex(firstIndex: number): void
setIndexCount(indexCount: number): void
setLabel(label: string): void
updateGpuBuffer(): Promise<void>
You are viewing the beta docs. You may find the legacy docs more helpful.