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

    Interface HDRCapabilities

    HDR capability detection results

    interface HDRCapabilities {
        p3Gamut: boolean;
        rec2020Gamut: boolean;
        hdr: boolean;
        deepColor: boolean;
        floatTextures: boolean;
        filterableFloatTextures: boolean;
        colorDepth: { red: number; green: number; blue: number };
        recommendedColorSpace: "srgb" | "display-p3" | "rec2020";
    }
    Index
    p3Gamut: boolean

    Display supports P3 wide color gamut

    rec2020Gamut: boolean

    Display supports Rec2020 color gamut

    hdr: boolean

    Display supports high dynamic range

    deepColor: boolean

    Display supports 10-bit or higher color depth

    floatTextures: boolean

    The renderer can RENDER TO a float color buffer.

    Probed from EXT_color_buffer_float and friends. Deliberately distinct from filterableFloatTextures below — the two are separate extensions and a device may have either without the other, which is exactly why reusing this one to decide how to upload a sampled texture would be wrong.

    filterableFloatTextures: boolean

    The renderer can SAMPLE a 32-bit float texture with LINEAR filtering.

    A different capability from floatTextures, and the one an HDR mesh texture actually needs: OES_texture_float_linear on WebGL2, float32-filterable on WebGPU. Core WebGL2 allows a FloatType texture to exist and to be sampled with NEAREST, but linear filtering on it is an extension — and the failure when it is missing is silent, since the sampler falls back to nearest rather than erroring.

    Every float DataTexture in the tree before mesh textures used NearestFilter (the element store) or was 8-bit (the colormap LUTs), so nothing probed this. An HDR texture uploads as HalfFloatType — linearly filterable in core WebGL2 — unless this is present.

    colorDepth: { red: number; green: number; blue: number }

    WebGL color buffer bit depth

    recommendedColorSpace: "srgb" | "display-p3" | "rec2020"

    Recommended color space for this display