get method
dynamic
get(
- dynamic scene,
- 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;
}