Merge the descriptor-set-layout bindings contributed by several stages for a single descriptor set. Bindings sharing a binding number are combined: their stageFlags are OR-ed and their descriptorCounts maxed. A descriptorType disagreement is a Left. The result is ascending by binding number.
Each input binding should carry the one stage that declares it (its stageFlags set to that stage); the merge turns the per-stage bindings into one multi-stage binding per binding number.