API

Interface IFrameGraphPass

Defines a pass in the frame graph.

interface IFrameGraphPass {
    disabled: boolean;
    name: string;
    setExecuteFunc(func: (context: FrameGraphContext) => void): void;
    setInitializeFunc(func: (context: FrameGraphContext) => void): void;
}
Index
disabled: boolean

Whether the pass is disabled.

name: string

The name of the pass.

  • Sets the function to execute when the pass is executed

    Parameters

    • func: (context: FrameGraphContext) => void

      The function to execute when the pass is executed

    Returns void

  • Initializes the pass. This function is called once before the first execution of the pass.

    Parameters

    • func: (context: FrameGraphContext) => void

      The function to initialize the pass.

    Returns void