Documentation
    Preparing search index...

    Class WgpuNodePipelineStore

    One renderer's node pipeline store — the registry interface implemented (wgpu-node-registry.ts owns each member's contract). Created per device by the registered factory; forgotten on device loss, disposed with the renderer.

    Implements

    Index
    • get compilationErrors(): readonly FourError[]

      Asynchronous GPU compiler errors with graph provenance; authoring diagnostics.

      Returns readonly FourError[]

    • get disposed(): boolean

      Returns boolean

    • get programCount(): number

      Distinct WGSL modules compiled so far.

      Returns number

    • Pre-sizes the frame (the sized-before-recording discipline): resolves — and on first sight compiles — the program of every "node" item in items, and grows the store's own strided uniform buffer to hold one block per node draw per view. Returns whether any node draw may record this frame. Runs material accessors (material.graph), so the renderer re-checks its own disposal after calling it.

      Parameters

      Returns boolean

    • Destroys the store's buffers and drops everything else (§83). Idempotent.

      Returns void

    • Uploads the frame's packed node uniform blocks — one writeBuffer, beside the renderer's own, before the submit that reads them (queue order). A frame that recorded no node draw uploads nothing.

      Returns void

    • Drops every reference without destroying anything — the device-loss path (§61): the allocations belong to a device that no longer exists.

      Returns void

    • Draws one §70 "graph" effect (RFC 0001) in its own pass and encoder — the WGSL twin of GL's #renderGraphEffect, bound by renderEffect's contract: everything that will not resolve skips the effect before anything is recorded, and colorView is called only once the draw is certain (an on-screen destination's getCurrentTexture must not be acquired for an effect that then skips).

      Parameters

      Returns void