This commit is contained in:
Bill 2024-07-25 10:37:29 -04:00
parent 5eff3f00a1
commit 7bee66f02c
2 changed files with 8 additions and 14 deletions

View File

@ -1,5 +1,4 @@
import { BufferImageSource, Filter, FilterSystem, GlProgram, RenderSurface, Texture } from 'pixi.js'; import { BufferImageSource, Filter, FilterSystem, GlProgram, RenderSurface, Texture } from 'pixi.js';
import { TextureUtils } from '../TextureUtils';
export interface PaletteMapFilterOptions export interface PaletteMapFilterOptions
{ {
@ -98,11 +97,6 @@ export class PaletteMapFilter extends Filter
}) })
}); });
(async () =>
{
console.log(await TextureUtils.generateImageUrl(lutTexture));
})();
super({ super({
gpuProgram: null, gpuProgram: null,
glProgram, glProgram,

View File

@ -9,17 +9,17 @@ declare global
{ {
NitroDevTools?: NitroDevTools?:
{ {
roomEngine(): RoomEngine; roomEngine: RoomEngine;
textureCache(): TextureSource<any>[]; textureCache: TextureSource<any>[];
texturePool(): { [index: string]: { [index: string]: Texture[] } }; texturePool: { [index: string]: { [index: string]: Texture[] } };
textureGC(): TextureGCSystem; textureGC: TextureGCSystem;
}; };
} }
} }
window.NitroDevTools = { window.NitroDevTools = {
roomEngine: () => GetRoomEngine(), roomEngine: GetRoomEngine(),
textureCache: () => GetRenderer().texture.managedTextures, textureCache: GetRenderer().texture.managedTextures,
texturePool: () => GetTexturePool().textures, texturePool: GetTexturePool().textures,
textureGC: () => GetRenderer().textureGC textureGC: GetRenderer().textureGC
}; };