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

    Everything that depends on the backend, derived from RendererBackendKind.

    interface RendererBackendPolicy {
        kind: "webgl" | "webgpu-native" | "webgpu-gl";
        ordering: OrderingUploadPolicy;
        evictRenderObjects: boolean;
        gpuCompute: boolean;
    }
    Index
    kind: "webgl" | "webgpu-native" | "webgpu-gl"
    evictRenderObjects: boolean

    Flush three's cached RenderObject after a pool rebuild (invalidate-render-object.ts). Both WebGPU backends cache the vertex buffers there; on classic WebGL the same dispose dispatch would instead destroy the compiled program and force a recompile on every commit.

    gpuCompute: boolean

    A real WebGPU device runs, so compute pipelines are available. False on three's internal WebGL2 backend (webgpu-gl), which has no compute.