feat: dmatex!! (sorta, borken)

This commit is contained in:
Nova
2025-07-10 10:13:38 -07:00
parent 929ea054f3
commit 63cf0db448
12 changed files with 146 additions and 277 deletions

View File

@@ -8,7 +8,6 @@ mod session;
#[cfg(feature = "wayland")]
mod wayland;
use crate::core::destroy_queue;
use crate::nodes::input;
use bevy::MinimalPlugins;
@@ -46,7 +45,6 @@ use bevy_mod_xr::session::{XrFirst, XrHandleEvents, XrSessionPlugin};
use clap::Parser;
use core::client::{Client, tick_internal_client};
use core::entity_handle::EntityHandlePlugin;
use core::graphics_info::GraphicsInfo;
use core::task;
use directories::ProjectDirs;
use nodes::audio::AudioNodePlugin;
@@ -449,13 +447,6 @@ fn add_oit(
}
fn xr_step(world: &mut World) {
// camera::update(token);
#[cfg(feature = "wayland")]
Wayland::early_frame(&mut GraphicsInfo {
_images: world.resource_mut::<Assets<Image>>(),
});
destroy_queue::clear();
// update things like the Xr input methods
world.run_schedule(PreFrameWait);
input::process_input();
@@ -487,8 +478,4 @@ fn xr_step(world: &mut World) {
}
tick_internal_client();
#[cfg(feature = "wayland")]
world.resource_scope::<Assets<BevyMaterial>, _>(|world, mut materials| {
Wayland::update_graphics(&mut materials, &mut world.resource_mut::<Assets<Image>>());
});
}