aboutsummaryrefslogtreecommitdiff
path: root/src/systems.rs
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <[email protected]>2024-12-10 16:06:06 -0500
committerLibravatar Silas Bartha <[email protected]>2024-12-10 16:06:06 -0500
commit3c229ff55b3ba1b618e00fb48f2b350709a58c02 (patch)
treed611701543a91b53399cf8029b124a725ccb1548 /src/systems.rs
parent3c711f2012c865c2a17077b2980c53437c4812bc (diff)
Upgraded to Bevy 0.15HEADv0.2.0master
Diffstat (limited to 'src/systems.rs')
-rw-r--r--src/systems.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/systems.rs b/src/systems.rs
index bb0efc7..64cf930 100644
--- a/src/systems.rs
+++ b/src/systems.rs
@@ -9,18 +9,18 @@ use bevy::{
use pollster::FutureExt;
-use crate::{components::HeadlessRenderDestination, render_assets::{HeadlessRenderSource, GpuHeadlessRenderSource}};
+use crate::{
+ components::{HeadlessRenderDestination, HeadlessRenderSource},
+ render_assets::GpuHeadlessRenderSource,
+};
pub fn copy_buffers(
- mut headless_render_query: Query<(
- &Handle<HeadlessRenderSource>,
- &mut HeadlessRenderDestination,
- )>,
+ mut headless_render_query: Query<(&HeadlessRenderSource, &mut HeadlessRenderDestination)>,
sources: Res<RenderAssets<GpuHeadlessRenderSource>>,
device: Res<RenderDevice>,
) {
for (source_handle, destination_handle) in headless_render_query.iter_mut() {
- let Some(gpu_source) = sources.get(source_handle) else {
+ let Some(gpu_source) = sources.get(source_handle.id()) else {
continue;
};