get method

dynamic get(
  1. dynamic scene,
  2. dynamic camera
)

Implementation

get(scene, camera) {
  var lists = this.lists;

  var cameras = lists.get(scene);
  var list;

  if (cameras == undefined) {
    list = new WebGPURenderList();
    lists.set(scene, new WeakMap());
    lists.get(scene).set(camera, list);
  } else {
    list = cameras.get(camera);
    if (list == undefined) {
      list = new WebGPURenderList();
      cameras.set(camera, list);
    }
  }

  return list;
}