API

Interface RenderDrawTask

A frame-graph task that records an ordered list of draws into one render pass on one target.

interface RenderDrawTask {
    clear: boolean;
    clearColor: GPUColorDict;
    draws: readonly RenderDraw[];
    engine: EngineContext;
    executionEnabled: boolean;
    name: string;
    scene?: SceneContext;
    target: RenderTarget;
    dispose(): void;
    execute?(): number;
    record(): void;
}

Hierarchy (View Summary)

  • Task
    • RenderDrawTask
Index
clear: boolean

Load op of the next frames: true clears, false keeps the target's contents.

clearColor: GPUColorDict
draws: readonly RenderDraw[]

Engine captured at task creation.

executionEnabled: boolean

Runtime execution gate, as on every task.

name: string
scene?: SceneContext

Owning scene for scene-bound tasks. Undefined for scene-less standalone frame graphs.

target: RenderTarget

Current target; change it with setRenderDrawTaskTarget.