Function bevy::render::batching::batch_and_prepare_render_phase
source · 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>
)where
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.