Interface ClearTextureTask
interface ClearTextureTask {
clearColor: boolean;
clearDepth: boolean;
clearStencil: boolean;
color: GPUColorDict;
convertColorToLinearSpace: boolean;
depthTexture: RenderTarget | undefined;
engine: EngineContext;
executionEnabled?: boolean;
name: string;
outputDepthTexture: RenderTarget | undefined;
outputTexture: RenderTarget | undefined;
scene?: SceneContext;
stencilValue: number;
targetTexture: RenderTarget | RenderTarget[] | undefined;
dispose(): void;
execute?(): number;
record(): void;
}
clearColor: boolean;
clearDepth: boolean;
clearStencil: boolean;
color: GPUColorDict;
convertColorToLinearSpace: boolean;
depthTexture: RenderTarget | undefined;
engine: EngineContext;
executionEnabled?: boolean;
name: string;
outputDepthTexture: RenderTarget | undefined;
outputTexture: RenderTarget | undefined;
scene?: SceneContext;
stencilValue: number;
targetTexture: RenderTarget | RenderTarget[] | undefined;
dispose(): void;
execute?(): number;
record(): void;
}
Hierarchy (View Summary)
- Task
- ClearTextureTask
Properties
clear Color
clearColor: boolean
clear Depth
clearDepth: boolean
clear Stencil
clearStencil: boolean
color
color: GPUColorDict
convert Color To Linear Space
convertColorToLinearSpace: boolean
depth Texture
Readonlyengine
Engine captured at task creation.
Optionalexecution Enabled
executionEnabled?: boolean
Runtime frame-graph execution gate, default true. When false, the frame graph keeps the task recorded
and its resources alive but skips every pass or built-in execute() call for that frame. This is
independent from any task-specific enabled state whose disabled transition may still execute work.
Readonlyname
name: string
Readonlyoutput Depth Texture
Readonlyoutput Texture
First color target, or undefined for a depth-only clear.
Optional Readonlyscene
Owning scene for scene-bound tasks. Undefined for scene-less standalone frame graphs.
stencil Value
stencilValue: number
Clear selected color, depth, and stencil aspects in place. Input targets are borrowed.