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

    Function writeDeviceSortedIndexOrdering

    • Stage a depth-sort permutation that a GPU-side producer writes itself (the WebGPU compute sort, #3162). The device sibling of writeSortedIndexOrdering: same validation of op.count, same staging, holding and supersede rules, same lifecycle callbacks. The pump calls op.write with the INACTIVE attribute and flips on success, so the device ordering is just as atomic. Returns op.count when staged, 0 when rejected.

      Parameters

      Returns number