pub fn batch_and_prepare_sorted_render_phase<I, GBD>(
    batched_instance_buffer: ResMut<'_, BatchedInstanceBuffer<<GBD as GetBatchData>::BufferData>>,
    views: Query<'_, '_, &mut SortedRenderPhase<I>>,
    param: StaticSystemParam<'_, '_, <GBD as GetBatchData>::Param>
)
Expand description

Batch the items in a sorted render phase, when GPU instance buffer building isn’t in use. This means comparing metadata needed to draw each phase item and trying to combine the draws into a batch.