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

    How a depth-sort ordering reaches the aSortedIndex / aSortedIndexB pair.

    interface OrderingUploadPolicy {
        chunked: boolean;
        adoptHostBuffer: boolean;
        usage: Usage;
    }
    Index
    chunked: boolean

    Stream large orderings in slices with upload back-pressure (element-storage.ts, issue #715). Classic WebGL only: the back-pressure waits on the attribute's onUploadCallback, which neither WebGPU backend fires, so the WebGPU backends write an ordering whole.

    adoptHostBuffer: boolean

    Adopt the worker's capacity-sized ordering buffer as the attribute's array instead of copying it. Only for a whole-ordering write: a sliced stream copies slice by slice.

    usage: Usage

    Buffer usage for the ordering pair. StaticDrawUsage on both WebGPU backends: three's shared attribute cache (renderers/common/Attributes.js) re-uploads a DynamicDrawUsage attribute on every render even when its version is unchanged, which cost a full writeBuffer of both buffers per node per frame (80 MB/frame at 10M elements, #2944). Every buffer three creates there carries COPY_DST, so a static attribute still uploads on each version bump. Classic WebGL keeps DynamicDrawUsage, where usage is only the bufferData hint.