pub fn clear_batched_gpu_instance_buffers<GFBD>(
    gpu_batched_instance_buffers: Option<ResMut<'_, BatchedInstanceBuffers<GFBD::BufferData, GFBD::BufferInputData>>>
)
where GFBD: GetFullBatchData,
Expand description

A system that runs early in extraction and clears out all the BatchedInstanceBuffers for the frame.

We have to run this during extraction because, if GPU preprocessing is in use, the extraction phase will write to the mesh input uniform buffers directly, so the buffers need to be cleared before then.