feat(wayland): add vulkano infra

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2025-07-14 18:20:51 +02:00
parent 3571fa96aa
commit f855ca9820
4 changed files with 340 additions and 40 deletions

View File

@@ -1,6 +1,7 @@
pub mod core;
pub mod dmabuf;
pub mod util;
pub mod vulkano_data;
pub mod xdg;
use crate::PreFrameWait;
@@ -39,6 +40,7 @@ use std::{
use tokio::{net::UnixStream, sync::mpsc, task::AbortHandle};
use tokio_stream::StreamExt;
use tracing::{debug_span, instrument};
use vulkano_data::setup_vulkano_context;
use waynest::{
server::{
self,
@@ -294,6 +296,10 @@ impl Plugin for WaylandPlugin {
init_render_device.run_if(|| RENDER_DEVICE.get().is_none()),
);
}
fn finish(&self, app: &mut App) {
app.sub_app_mut(RenderApp)
.add_systems(Render, setup_vulkano_context);
}
}
fn init_render_device(dev: Res<RenderDevice>) {