playcanvas
Version:
Open-source WebGL/WebGPU 3D engine for the web
19 lines (18 loc) • 415 B
JavaScript
import { RefCountedCache } from "../../core/ref-counted-cache.js";
class LightmapCache {
static cache = new RefCountedCache();
// add texture reference to lightmap cache
static incRef(texture) {
this.cache.incRef(texture);
}
// remove texture reference from lightmap cache
static decRef(texture) {
this.cache.decRef(texture);
}
static destroy() {
this.cache.destroy();
}
}
export {
LightmapCache
};