pixi.js
Version:
PixiJS — The HTML5 Creation Engine =============
29 lines (28 loc) • 1.34 kB
TypeScript
import { ExtensionType } from '../../../extensions/Extensions';
import type { Container } from '../../../scene/container/Container';
import type { Effect } from '../../../scene/container/Effect';
import type { Instruction } from '../../renderers/shared/instructions/Instruction';
import type { InstructionSet } from '../../renderers/shared/instructions/InstructionSet';
import type { InstructionPipe } from '../../renderers/shared/instructions/RenderPipe';
import type { Renderer } from '../../renderers/types';
export interface ColorMaskInstruction extends Instruction {
renderPipeId: 'colorMask';
colorMask: number;
}
export declare class ColorMaskPipe implements InstructionPipe<ColorMaskInstruction> {
/** @ignore */
static extension: {
readonly type: readonly [ExtensionType.WebGLPipes, ExtensionType.WebGPUPipes, ExtensionType.CanvasPipes];
readonly name: "colorMask";
};
private readonly _renderer;
private _colorStack;
private _colorStackIndex;
private _currentColor;
constructor(renderer: Renderer);
buildStart(): void;
push(mask: Effect, _container: Container, instructionSet: InstructionSet): void;
pop(_mask: Effect, _container: Container, instructionSet: InstructionSet): void;
execute(instruction: ColorMaskInstruction): void;
destroy(): void;
}