pub fn batch_and_prepare_sorted_render_phase<I, GBD>(
batched_instance_buffer: ResMut<'_, BatchedInstanceBuffer<GBD::BufferData>>,
phases: ResMut<'_, ViewSortedRenderPhases<I>>,
param: StaticSystemParam<'_, '_, GBD::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.