setIndexBuffer

open fun setIndexBuffer(buffer: GPUBuffer, indexFormat: GPUIndexFormat, offset: GPUSize64 = definedExternally, size: GPUSize64 = definedExternally)(source)

MDN Reference