Documentation
    Preparing search index...

    Interface PickingRendererHost

    The live window a WebgpuRenderer opens for its picking services — the narrow slice of renderer state an id pass genuinely needs, and nothing else.

    Every member is a live accessor (a method), not a snapshot, because the caches change identity under the renderer's feet: a §61 device loss drops them (the allocations belong to a device that no longer exists), so a service that captured geometries once would draw with a cache the renderer has already abandoned. A service re-reads all of them per pass, and detects a lost device by the flag plus cache identity (wgpu-picking.ts).

    Sharing the renderer's caches — rather than the service owning twins — is deliberate: the id pass draws the same geometries the frame drew.

    interface PickingRendererHost {
        device(): GpuDevice | null;
        deviceLost(): boolean;
        disposed(): boolean;
        geometries(): WgpuGeometryCache | null;
        particles(): WgpuParticleCache | null;
        renderTargets(): WgpuRenderTargetCache | null;
        surfaceHeight(): number;
        surfaceWidth(): number;
    }
    Index
    • The renderer's device, or null before initialize / after dispose.

      Returns GpuDevice | null

    • Whether the device is currently lost (§61).

      Returns boolean

    • Whether the renderer has been disposed (§83).

      Returns boolean

    • The renderer's geometry cache, or null when the device is down.

      Returns WgpuGeometryCache | null

    • The renderer's particle-instance cache, or null when the device is down — the live accessor the id pass uses to instance §36 systems rather than rasterising the shared unit quad.

      Returns WgpuParticleCache | null

    • The renderer's render-target cache, or null when the device is down.

      Returns WgpuRenderTargetCache | null

    • Drawing-buffer height in device pixels.

      Returns number

    • Drawing-buffer width in device pixels — what §48 rectangles resolve against.

      Returns number