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