Groups consecutive items that share a texture into runs (§55 atlas
grouping; §65's "texture atlas grouping" remainder).
Does not reorder. Two sprites that share a texture but are
separated by a third stay in two runs — merging them would change
draw order. A packer that wants one run per texture sorts first;
this helper only reports the runs the current order already has.
Groups consecutive items that share a texture into runs (§55 atlas grouping; §65's "texture atlas grouping" remainder).
Does not reorder. Two sprites that share a texture but are separated by a third stay in two runs — merging them would change draw order. A packer that wants one run per texture sorts first; this helper only reports the runs the current order already has.