Clears a buffer to zeros.
If size is null, clears from offset to the end of the buffer.
size
offset
void clearBuffer(GpuBuffer buffer, {int offset = 0, int? size});