Segmented subgroup reductions: per-lane inclusive reductions that reset at every non-zero headFlag, mirroring the Python binding's segmented_reduce_{add,min,max}_tiled semantics over the active subgroup.

Lane i combines values from the nearest lane at or below i whose headFlag is non-zero (lane 0 is an implicit head). The implementation is the classic flag-carrying Hillis-Steele scan over Subgroup.shuffle, so it stays portable across every backend that supports subgroup shuffles, and it degenerates to the identity on width-1 subgroups (for example the CPU backend). Callers must keep control flow uniform across the subgroup.

Static methods

@:qdFuncstaticsegmentedReduceAddF32(value:F32, headFlag:I32):F32

@:qdFuncstaticsegmentedReduceAddI32(value:I32, headFlag:I32):I32

@:qdFuncstaticsegmentedReduceMaxF32(value:F32, headFlag:I32):F32

@:qdFuncstaticsegmentedReduceMaxI32(value:I32, headFlag:I32):I32

@:qdFuncstaticsegmentedReduceMinF32(value:F32, headFlag:I32):F32

@:qdFuncstaticsegmentedReduceMinI32(value:I32, headFlag:I32):I32