Documentation
    Preparing search index...

    Interface WgpuNodeFrameState

    The per-draw frame state a node draw reads — a pooled, mutable record the renderer rewrites per draw (plan D7: the frame loop allocates nothing); the store must read it during the call and never retain it.

    interface WgpuNodeFrameState {
        activeTarget: RenderTarget | null;
        colorFormat: string;
        depthFormat: string | null;
        frameStencil: boolean;
        renderTime: number;
        statistics: RenderStatistics | null;
        stencilReference: number;
        viewProjection: Matrix4;
    }
    Index
    activeTarget: RenderTarget | null

    The R-4 feedback identity: the target this frame draws into, or null.

    colorFormat: string

    The frame's colour-attachment format (#frameFormat).

    depthFormat: string | null

    The frame's depth-attachment format, or null (WP-R1.6).

    frameStencil: boolean

    Whether the frame's depth attachment carries §67's stencil planes.

    renderTime: number

    §9 render time in seconds (WebgpuRenderer.renderTime).

    statistics: RenderStatistics | null

    §84's counters, or null to count nothing.

    stencilReference: number

    The pass's mirrored stencil reference; draw returns the new value.

    viewProjection: Matrix4

    The current view's projection × view (§47).