clearBuffer abstract method

void clearBuffer(
  1. GpuBuffer buffer, {
  2. int offset = 0,
  3. int? size,
})

Clears a buffer to zeros.

If size is null, clears from offset to the end of the buffer.

Implementation

void clearBuffer(GpuBuffer buffer, {int offset = 0, int? size});