pub fn batch_and_prepare_sorted_render_phase<I, GFBD>(
    gpu_array_buffer: ResMut<'_, BatchedInstanceBuffers<GFBD::BufferData, GFBD::BufferInputData>>,
    indirect_parameters_buffer: ResMut<'_, IndirectParametersBuffer>,
    sorted_render_phases: ResMut<'_, ViewSortedRenderPhases<I>>,
    views: Query<'_, '_, (Entity, Has<GpuCulling>)>,
    system_param_item: StaticSystemParam<'_, '_, GFBD::Param>,
)
Expand description

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