setIndexBuffer method

void setIndexBuffer(
  1. GPUBuffer buffer,
  2. GPUIndexFormat indexFormat, [
  3. int? offset = 0,
  4. int? size,
])

Implementation

void setIndexBuffer(GPUBuffer buffer, GPUIndexFormat indexFormat,
        [int? offset = 0, int? size]) =>
    js_util.callMethod(
        this, 'setIndexBuffer', [buffer, indexFormat.value, offset, size]);