Interface SmaaPostProcessTask
alphaMode: PostProcessAlphaMode;
clear: boolean;
cornerDetection: boolean;
diagonalDetection: boolean;
dominantAxisBlend: boolean;
edgesTexture: RenderTarget;
engine: EngineContext;
executionEnabled?: boolean;
maxSearchSteps: number;
minDiagonalRun: number;
name: string;
outputTexture: RenderTarget;
scene?: SceneContext;
sourceIsSrgb: boolean;
sourceSamplingMode?: PostProcessSamplingMode;
sourceTexture: RenderTarget;
targetTexture: RenderTarget | null;
threshold: number;
viewport: NormalizedViewport | null;
weightsTexture: RenderTarget;
dispose(): void;
execute?(): number;
record(): void;
updateUniforms(): void;
}
Hierarchy (View Summary)
- Task
- PostProcessTaskSettings
- SmaaPostProcessTask
Properties
alpha Mode
clear
Clear the target before drawing. Set false when several viewport passes share a target.
corner Detection
Whether axis-aligned corner-pattern attenuation is enabled. Call updateUniforms() after.
diagonal Detection
Whether 45-degree patterns are detected. Call updateUniforms() after changing it.
dominant Axis Blend
Whether blending commits to the stronger axis. Call updateUniforms() after changing it.
Readonlyedges Texture
Intermediate edge and weight targets, exposed for debugging the filter.
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.
max Search Steps
How far the pattern search runs along an edge, in pixels. Shallow-angle edges make long
runs, so raising this can matter on hard-surface content. Call updateUniforms() after.
min Diagonal Run
Shortest diagonal run that counts as a 45-degree pattern. Call updateUniforms() after.
Readonlyname
output Texture
Optional Readonlyscene
Owning scene for scene-bound tasks. Undefined for scene-less standalone frame graphs.
source Is Srgb
Whether the source texture is an sRGB view. Call updateUniforms() after changing it.
Optionalsource Sampling Mode
source Texture
target Texture
These four are narrowed to non-optional (as PostProcessTask does) because record()
forwards them to the presenting pass every frame, so mutating them genuinely takes effect.
threshold
Luma difference that counts as an edge. Call updateUniforms() after changing it.
viewport
Readonlyweights Texture
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
-
Re-upload the pass uniforms. Required after mutating any of
threshold,maxSearchSteps,diagonalDetection,minDiagonalRun,cornerDetection,sourceIsSrgbordominantAxisBlend.Returns void
A Subpixel Morphological Anti-Aliasing post-process task.