Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...
    interface SortResult {
        generation: number;
        ordering: Uint32Array;
        kernelMs: number;
        workerMs: number;
    }
    Index
    generation: number

    Generation the ordering was computed for (re-checked on the main thread).

    ordering: Uint32Array

    Back-to-front permutation [count] — TRANSFERRED to the main thread.

    kernelMs: number

    Time spent inside the backend sort_splats_by_depth call, in ms. For compiled WASM this INCLUDES the wasm-bindgen boundary copies (centers copy-in, ordering copy-in/out, mallocs) — the shim performs them inside the exported function; for the TS fallback it is the pure kernel. Measured with performance.now() on the worker's clock.

    workerMs: number

    Whole sortNode body duration in ms (registry lookup + output allocation + kernel). workerMs - kernelMs is the worker-side overhead around the backend call. Same clock as kernelMs, so the difference is meaningful; both are durations, safe to compare with main-thread-measured durations.