feat(wayland): add vulkano infra
Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
@@ -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>) {
|
||||
|
||||
Reference in New Issue
Block a user