pub fn stage_ranges(map: &LayerDeviceMap) -> Vec<Range<usize>>Expand description
Derive contiguous stage ranges from a LayerDeviceMap.
Each maximal run of consecutive layers mapped to the same device becomes one
stage [a..b). A single-device map yields exactly one stage 0..N.