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

    Interface DisplayReport

    What the page renders with, as serve.py reads it.

    interface DisplayReport {
        api: "webgl2" | "webgpu" | null;
        backend: "webgl" | "webgpu-native" | "webgpu-gl" | null;
        error?: string;
        datasetError?: string;
        nonce: string;
        requested: "webgpu" | "webgl" | null;
        webgpuAvailable: boolean;
        adapter:
            | {
                vendor: string;
                architecture: string;
                device: string;
                description: string;
                isFallbackAdapter: boolean;
            }
            | null;
        screen: { width: number; height: number };
        window: { width: number; height: number };
        devicePixelRatio: number;
        userAgent: string;
    }
    Index
    api: "webgl2" | "webgpu" | null

    The API the renderer exposes: 'webgpu' or 'webgl2'; null if none came up.

    backend: "webgl" | "webgpu-native" | "webgpu-gl" | null

    What actually runs: 'webgpu-native', 'webgpu-gl' (WebGL2 backend) or 'webgl'; null if no renderer came up.

    error?: string

    Why the viewer failed to start, when it did; absent otherwise.

    datasetError?: string

    Why the first dataset failed to load, when it did; absent otherwise.

    nonce: string

    The ?displayReport= value, echoed so the server knows the report is its page's.

    requested: "webgpu" | "webgl" | null

    The renderer the URL asked for (?renderer=), or null for the default policy.

    webgpuAvailable: boolean

    Whether the browser exposes WebGPU at all (navigator.gpu).

    adapter:
        | {
            vendor: string;
            architecture: string;
            device: string;
            description: string;
            isFallbackAdapter: boolean;
        }
        | null

    The high-performance WebGPU adapter, when one answers.

    screen: { width: number; height: number }
    window: { width: number; height: number }
    devicePixelRatio: number
    userAgent: string