/** * Creates the lookup textures of SMAA. They are created empty and filled once the lookup data is * decoded, which takes a frame or two the first time - until then, the textures giving no area to * any edge, SMAA leaves the scene unchanged. * * @param {GraphicsDevice} device - The graphics device. * @returns {{ area: Texture, search: Texture, ready: Promise }} The textures, and a promise * resolved once they are filled - or left empty, when they were destroyed before, or the data could * not be decoded. * @ignore */ export function createSmaaLookupTextures(device: GraphicsDevice): { area: Texture; search: Texture; ready: Promise; }; /** * Returns the decoded lookup data, decoding it on the first call. * * @returns {Promise<{ area: Uint8Array, search: Uint8Array }>} The area and search texture data. * @ignore */ export function getSmaaLookupData(): Promise<{ area: Uint8Array; search: Uint8Array; }>; import type { GraphicsDevice } from '../../../platform/graphics/graphics-device.js'; import { Texture } from '../../../platform/graphics/texture.js';