pub fn batch_and_prepare_render_phase<I, F>(
    gpu_array_buffer: ResMut<'_, GpuArrayBuffer<<F as GetBatchData>::BufferData>>,
    views: Query<'_, '_, &mut RenderPhase<I>, ()>,
    query: Query<'_, '_, <F as GetBatchData>::Query, <F as GetBatchData>::QueryFilter>,
    param: StaticSystemParam<'_, '_, <F as GetBatchData>::Param>
    I: CachedRenderPipelinePhaseItem,
    F: GetBatchData,
Expand description

Batch the items in a render phase. This means comparing metadata needed to draw each phase item and trying to combine the draws into a batch.