Function bevy_render::batching::batch_and_prepare_render_phase
source · pub fn batch_and_prepare_render_phase<I: CachedRenderPipelinePhaseItem, F: GetBatchData>(
gpu_array_buffer: ResMut<'_, GpuArrayBuffer<F::BufferData>>,
views: Query<'_, '_, &mut RenderPhase<I>>,
param: StaticSystemParam<'_, '_, F::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.