diff options
author | Silas Bartha <[email protected]> | 2024-07-24 11:46:40 -0400 |
---|---|---|
committer | Silas Bartha <[email protected]> | 2024-07-24 11:47:21 -0400 |
commit | d7e1903369330c5438892c5ddfdbc7c1ef179633 (patch) | |
tree | 1913fc25e8d35e8743ea432ec80390f0f23538b2 /src/systems.rs | |
parent | 52005369648e06cb2e1b36bb5dd7c19445aa4ee4 (diff) |
Renamed + Updated to Bevy 0.14 + Added 0BSD Option
Diffstat (limited to 'src/systems.rs')
-rw-r--r-- | src/systems.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/systems.rs b/src/systems.rs index 74f8dc8..bb0efc7 100644 --- a/src/systems.rs +++ b/src/systems.rs @@ -9,17 +9,17 @@ use bevy::{ use pollster::FutureExt; -use crate::{components::FramebufferExtractDestination, render_assets::FramebufferExtractSource}; +use crate::{components::HeadlessRenderDestination, render_assets::{HeadlessRenderSource, GpuHeadlessRenderSource}}; -pub fn extract_framebuffers( - mut extract_bundles: Query<( - &Handle<FramebufferExtractSource>, - &mut FramebufferExtractDestination, +pub fn copy_buffers( + mut headless_render_query: Query<( + &Handle<HeadlessRenderSource>, + &mut HeadlessRenderDestination, )>, - sources: Res<RenderAssets<FramebufferExtractSource>>, + sources: Res<RenderAssets<GpuHeadlessRenderSource>>, device: Res<RenderDevice>, ) { - for (source_handle, destination_handle) in extract_bundles.iter_mut() { + for (source_handle, destination_handle) in headless_render_query.iter_mut() { let Some(gpu_source) = sources.get(source_handle) else { continue; }; |