Taos API Reference
    Preparing search index...

    Type Alias ForwardTargetSpec

    ForwardTargetSpec: ResourceHandle | "backbuffer" | "auto"

    How a ForwardPass attachment slot is sourced.

    • ResourceHandle — write into the supplied handle (caller provides the texture).
    • 'backbuffer' — write into the graph's registered backbuffer / backbuffer depth. Requires RenderGraph.setBackbuffer (and, for depth, RenderGraph.setBackbufferDepth) to have been called.
    • 'auto' — use the backbuffer when one is registered; otherwise fall back to creating a transient texture. The caller is responsible for choosing loadOp ('clear' if this pass is the first writer, 'load' if a previous pass already cleared/wrote to the same backbuffer).
    • undefined — always create a transient texture (HDR rgba16float for color, depth32float for depth). This is the legacy default.