rullino
    Preparing search index...

    Interface RendererOptions

    interface RendererOptions {
        backend?: "gpu" | "cpu" | "auto";
        filters?: readonly Filter<any>[];
        gpu?: GPU;
        onError?: (error: GpuError) => void;
        resolveLut?: (ref: string) => Lut | undefined;
        worker?: boolean;
    }
    Index
    backend?: "gpu" | "cpu" | "auto"

    'auto' (default): WebGPU if the browser has a usable adapter, else the CPU (see reason). 'gpu': WebGPU or a WebGpuUnavailableError. 'cpu': the CPU.

    filters?: readonly Filter<any>[]

    The filters documents may use. Default: every filter of @rullino/filters. Functions cannot be sent to a worker, so with custom filters the CPU backend runs on the main thread.

    gpu?: GPU

    A WebGPU entry point to use instead of navigator.gpu.

    onError?: (error: GpuError) => void

    GPU errors (shaders that do not compile, validation, out of memory). Default: console.error.

    resolveLut?: (ref: string) => Lut | undefined

    Resolves LUT names in documents. Default: the looks of @rullino/presets (look:<id>).

    worker?: boolean

    Run the CPU backend in a Web Worker (default), so rendering never blocks the page.