Initial
This commit is contained in:
23
resources/app/node_modules/@pixi/utils/lib/media/caches.mjs
generated
vendored
Normal file
23
resources/app/node_modules/@pixi/utils/lib/media/caches.mjs
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
const ProgramCache = {}, TextureCache = /* @__PURE__ */ Object.create(null), BaseTextureCache = /* @__PURE__ */ Object.create(null);
|
||||
function destroyTextureCache() {
|
||||
let key;
|
||||
for (key in TextureCache)
|
||||
TextureCache[key].destroy();
|
||||
for (key in BaseTextureCache)
|
||||
BaseTextureCache[key].destroy();
|
||||
}
|
||||
function clearTextureCache() {
|
||||
let key;
|
||||
for (key in TextureCache)
|
||||
delete TextureCache[key];
|
||||
for (key in BaseTextureCache)
|
||||
delete BaseTextureCache[key];
|
||||
}
|
||||
export {
|
||||
BaseTextureCache,
|
||||
ProgramCache,
|
||||
TextureCache,
|
||||
clearTextureCache,
|
||||
destroyTextureCache
|
||||
};
|
||||
//# sourceMappingURL=caches.mjs.map
|
||||
Reference in New Issue
Block a user