remove method

void remove(
  1. BufferAttribute<NativeArray<num>> attribute
)

Implementation

void remove(BufferAttribute attribute) {
  if (attribute.type == "InterleavedBufferAttribute") {
    final data = buffers.get(attribute.data);

    if (data != null) {
      gl.deleteBuffer(data.buffer);
      buffers.delete(attribute.data);
    }
  } else {
    final data = buffers.get(attribute);

    if (data != null) {
      gl.deleteBuffer(data["buffer"]);

      buffers.delete(attribute);
    }
  }
}