API

Interface ComputeTask

A frame-graph task that records an ordered dispatch list into one compute pass.

interface ComputeTask {
    dispatches: readonly ComputeDispatch[];
    engine: EngineContext;
    executionEnabled: boolean;
    name: string;
    scene?: SceneContext;
    dispose(): void;
    execute?(): number;
    record(): void;
}

Hierarchy (View Summary)

Index
dispatches: readonly ComputeDispatch[]

Engine captured at task creation.

executionEnabled: boolean

Runtime execution gate used by reusable and one-shot compute scheduling.

name: string
scene?: SceneContext

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