Interface DepthOfFieldPostProcessTask
alphaMode?: PostProcessAlphaMode;
clear?: boolean;
engine: EngineContext;
executionEnabled?: boolean;
focalLength: number;
focusDistance: number;
fStop: number;
lensSize: number;
name: string;
outputTexture: RenderTarget;
scene?: SceneContext;
sourceSamplingMode?: PostProcessSamplingMode;
sourceTexture: RenderTarget;
targetTexture: RenderTarget | null;
viewport?: NormalizedViewport | null;
dispose(): void;
execute?(): number;
record(): void;
updateUniforms(): void;
}
Hierarchy (View Summary)
- Task
- PostProcessTaskSettings
- DepthOfFieldPostProcessTask
Properties
Optionalalpha Mode
Optionalclear
Clear the target before drawing. Set false when several viewport passes share a target.
Readonlyengine
Engine captured at task creation.
Optionalexecution Enabled
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.
focal Length
focus Distance
f Stop
lens Size
Readonlyname
output Texture
Optional Readonlyscene
Owning scene for scene-bound tasks. Undefined for scene-less standalone frame graphs.
Optionalsource Sampling Mode
source Texture
target Texture
Optionalviewport
Methods
dispose
-
Free all GPU resources owned by this task.
Returns void
Optionalexecute
-
Optional fast path for built-in tasks that execute without recorded Pass objects.
Returns number
record
-
Called once when the frame graph is built. Must complete synchronously.
Returns void
update Uniforms
-
Recompute and upload the uniforms of every sub-pass (CoC, blurs, merge).
Returns void
A composite depth-of-field post-process task: circle-of-confusion → CoC-weighted blur pyramid → merge.