Documentation
    Preparing search index...

    Interface AddPassOptions

    Extras for RenderGraph.addPass — §63's { inputs: [...] }.

    interface AddPassOptions {
        enabled?: boolean;
        inputs?: readonly string[];
    }
    Index
    enabled?: boolean

    Whether the pass runs. Defaults to true; see RenderGraph.setPassEnabled for §63's enable/disable.

    inputs?: readonly string[]

    Names of passes this one consumes, exactly as §63 writes them (graph.addPass("bloom", bloomPass, { inputs: ["world"] })).

    Every name must already have been added, which is what makes a cycle and a forward reference unconstructable rather than merely diagnosed — the list is in execution order, so "already added" and "runs earlier" are the same statement. Removing a pass another pass names is refused for the same reason.

    Inputs are a declaration of intent: they document the graph, they gate removal, and they print in RenderGraph.describe. What a pass really samples is discovered by RenderGraph.validate, which is why a correct inputs list does not by itself make a graph valid — and why an absent one does not make it invalid.