UNPKG

pixi.js

Version:

<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">

39 lines (38 loc) 1.45 kB
import type { Renderable } from '../Renderable'; import type { Instruction } from './Instruction'; /** * A set of instructions that can be executed by the renderer. * Basically wraps an array, but with some extra properties that help the renderer * to keep things nice and optimised. * * Note: * InstructionSet.instructions contains all the instructions, but does not resize (for performance). * So for the true length of the instructions you need to use InstructionSet.instructionSize * @category rendering * @advanced */ export declare class InstructionSet { /** a unique id for this instruction set used through the renderer */ readonly uid: number; /** the array of instructions */ readonly instructions: Instruction[]; /** the actual size of the array (any instructions passed this should be ignored) */ instructionSize: number; /** allows for access to the render pipes of the renderer */ renderPipes: any; renderables: Renderable[]; /** used by the garbage collector to track when the instruction set was last used */ gcTick: number; /** reset the instruction set so it can be reused set size back to 0 */ reset(): void; /** * Add an instruction to the set * @param instruction - add an instruction to the set */ add(instruction: Instruction): void; /** * Log the instructions to the console (for debugging) * @internal */ log(): void; }