1 | import { GC_MODES } from '@pixi/constants';
|
2 | import type { ISystem } from '../system/ISystem';
|
3 | import type { Renderer } from '../Renderer';
|
4 | import type { Texture } from './Texture';
|
5 | import type { RenderTexture } from '../renderTexture/RenderTexture';
|
6 | import type { ExtensionMetadata } from '@pixi/extensions';
|
7 | export interface IUnloadableTexture {
|
8 | _texture: Texture | RenderTexture;
|
9 | children: IUnloadableTexture[];
|
10 | }
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | export declare class TextureGCSystem implements ISystem {
|
17 |
|
18 | static extension: ExtensionMetadata;
|
19 | |
20 |
|
21 |
|
22 |
|
23 | count: number;
|
24 | |
25 |
|
26 |
|
27 |
|
28 | checkCount: number;
|
29 | |
30 |
|
31 |
|
32 |
|
33 | maxIdle: number;
|
34 | |
35 |
|
36 |
|
37 |
|
38 | checkCountMax: number;
|
39 | |
40 |
|
41 |
|
42 |
|
43 | mode: GC_MODES;
|
44 | private renderer;
|
45 |
|
46 | constructor(renderer: Renderer);
|
47 | /**
|
48 | * Checks to see when the last time a texture was used
|
49 | * if the texture has not been used for a specified amount of time it will be removed from the GPU
|
50 | */
|
51 | protected postrender(): void;
|
52 | /**
|
53 | * Checks to see when the last time a texture was used
|
54 | * if the texture has not been used for a specified amount of time it will be removed from the GPU
|
55 | */
|
56 | run(): void;
|
57 | /**
|
58 | * Removes all the textures within the specified displayObject and its children from the GPU
|
59 | * @param {PIXI.DisplayObject} displayObject - the displayObject to remove the textures from.
|
60 | */
|
61 | unload(displayObject: IUnloadableTexture): void;
|
62 | destroy(): void;
|
63 | }
|