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

    Interface DeviceOrderingWrite

    A GPU-side producer of one ordering (the WebGPU compute sort, #3162): it fills an ordering attribute's GPU buffer directly instead of handing the pump a CPU array to upload.

    interface DeviceOrderingWrite {
        count: number;
        write(target: InstancedBufferAttribute): boolean;
    }
    Index
    count: number

    Elements the ordering covers: the committed population it was computed for.

    • Write the ordering into target's GPU buffer. The pump calls it once, with the INACTIVE attribute, right before the flip. Return false when the ordering can no longer be written (its population was superseded, the device went away); that abandons it. Must not touch target.array or bump its version: three would then upload the host array over the result. The pump waits for any earlier host upload on target before calling this.

      Parameters

      • target: InstancedBufferAttribute

      Returns boolean