setIndexBuffer method
void
setIndexBuffer(
- GPUBuffer buffer,
- GPUIndexFormat indexFormat, [
- GPUSize64 offset,
- GPUSize64 size,
The setIndexBuffer()
method of the
GPURenderPassEncoder interface sets the current GPUBuffer that will
provide index data for subsequent drawing commands.
Implementation
external void setIndexBuffer(
GPUBuffer buffer,
GPUIndexFormat indexFormat, [
GPUSize64 offset,
GPUSize64 size,
]);