pub fn batch_and_prepare_render_phase<I, F>(
    gpu_array_buffer: ResMut<'_, GpuArrayBuffer<<F as GetBatchData>::BufferData>>,
    views: Query<'_, '_, &mut RenderPhase<I>>,
    param: StaticSystemParam<'_, '_, <F as GetBatchData>::Param>
)
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.