update method

dynamic update(
  1. dynamic object
)

Implementation

update(object) {
  var geometry = object.geometry;
  var updateMap = this.updateMap;
  var frame = this.info.render["frame"];

  if (geometry is! BufferGeometry) {
    throw ('THREE.WebGPURenderer: This renderer only supports THREE.BufferGeometry for geometries.');
  }

  if (updateMap.get(geometry) != frame) {
    this.geometries.update(geometry);

    updateMap.set(geometry, frame);
  }
}