Luxar Viewer API Documentation - v2026.10.22
    Preparing search index...

    Host side-effects, passed once at construction.

    interface WebGPUDeviceRecoveryDeps {
        getDevice(): GpuDeviceLike | undefined;
        recreateRenderer(): Promise<boolean>;
        onLost(info: DeviceLostInfo): void;
        onRestored(): void;
        onUnrecoverable(info: DeviceLostInfo): void;
        delay?: (ms: number) => Promise<void>;
        retryDelayMs?: number;
    }
    Index
    delay?: (ms: number) => Promise<void>

    Wait before the second attempt. Injected for tests; defaults to setTimeout.

    retryDelayMs?: number

    Pause between the two attempts (ms).