bevy_render::batching::gpu_preprocessing

Function delete_old_work_item_buffers

Source
pub fn delete_old_work_item_buffers<GFBD>(
    gpu_batched_instance_buffers: ResMut<'_, BatchedInstanceBuffers<GFBD::BufferData, GFBD::BufferInputData>>,
    view_targets: Query<'_, '_, Entity, With<ViewTarget>>,
)
where GFBD: GetFullBatchData,
Expand description

A system that removes GPU preprocessing work item buffers that correspond to deleted ViewTargets.

This is a separate system from clear_batched_gpu_instance_buffers because ViewTargets aren’t created until after the extraction phase is completed.