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.
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 lifecyclecallbacks. The pump callsop.writewith the INACTIVE attribute and flips on success, so the device ordering is just as atomic. Returnsop.countwhen staged, 0 when rejected.