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

    Descriptor parameterizing the generic layout math per geometry type.

    interface ElementTextureLayout {
        texelsPerElement: number;
        floatsPerElement: number;
        label: string;
        widthDefine: string;
        clampHint: string;
        sortCenter: "texel0" | "midpoint01";
    }
    Index
    texelsPerElement: number

    Texels consumed per element (all four floats of each texel).

    floatsPerElement: number

    texelsPerElement * 4.

    label: string

    Element noun for log messages ('splat' | 'point' | 'segment').

    widthDefine: string

    Name of the GLSL define carrying this layout's texture width (see elementTextureWidthDefines).

    clampHint: string

    Remediation hint appended to the capacity-clamp warning.

    sortCenter: "texel0" | "midpoint01"

    Where an element's depth-sort center sits in its texels: the xyz of texel 0, or the midpoint of texels 0 and 1 (a line segment's endpoints). The commit paths hand the SortWorker the same centers, and the GPU depth sort (rendering/gpu-depth-sort/) reads them from the texture by this rule.