Function bevy::render::batching::gpu_preprocessing::delete_old_work_item_buffers
source · pub fn delete_old_work_item_buffers<GFBD>(
gpu_batched_instance_buffers: ResMut<'_, BatchedInstanceBuffers<<GFBD as GetBatchData>::BufferData, <GFBD as GetFullBatchData>::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 ViewTarget
s.
This is a separate system from clear_batched_gpu_instance_buffers
because ViewTarget
s aren’t created until after the extraction phase is
completed.