Interface EffectRenderTask
interface EffectRenderTask {
engine: EngineContext;
executionEnabled?: boolean;
name: string;
scene?: SceneContext;
scissor?: NormalizedViewport | null;
dispose(): void;
execute?(): number;
record(): void;
}
engine: EngineContext;
executionEnabled?: boolean;
name: string;
scene?: SceneContext;
scissor?: NormalizedViewport | null;
dispose(): void;
execute?(): number;
record(): void;
}
Hierarchy (View Summary)
- Task
- EffectRenderTask
Properties
Readonlyengine
Engine captured at task creation.
Optionalexecution Enabled
executionEnabled?: boolean
Runtime frame-graph execution gate; undefined means enabled. 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
Optional Readonlyscene
Owning scene for scene-bound tasks. Undefined for scene-less standalone frame graphs.
Optionalscissor
Optional draw region, normalized to the target (origin bottom-left, like a camera viewport). When set, the
fullscreen pass only rasterizes this rectangle (a scissor; the target is still cleared whole when clear is on);
an empty rectangle draws nothing. null/absent draws the whole target. Plain data: update it any frame.
A frame-graph task that renders an
EffectWrapperas a fullscreen pass into an offscreenRenderTarget.