Function batch_and_prepare_sorted_render_phase

Source
pub fn batch_and_prepare_sorted_render_phase<I, GFBD>(
    phase_batched_instance_buffers: ResMut<'_, PhaseBatchedInstanceBuffers<I, GFBD::BufferData>>,
    phase_indirect_parameters_buffers: ResMut<'_, PhaseIndirectParametersBuffers<I>>,
    sorted_render_phases: ResMut<'_, ViewSortedRenderPhases<I>>,
    views: Query<'_, '_, (&ExtractedView, Has<NoIndirectDrawing>, Has<OcclusionCulling>)>,
    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.