Split app, window render context and vulkan context
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 26m52s

This commit is contained in:
Florian RICHER 2025-04-03 19:59:10 +02:00
parent f32db72101
commit 15c273b93d
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
9 changed files with 426 additions and 325 deletions

View file

@ -1,7 +1,8 @@
use std::error::Error;
use winit::event_loop::{ControlFlow, EventLoop};
mod vulkan;
pub mod core;
pub mod vulkan;
fn main() -> Result<(), impl Error> {
env_logger::init();
@ -9,7 +10,8 @@ fn main() -> Result<(), impl Error> {
let event_loop = EventLoop::new().unwrap();
event_loop.set_control_flow(ControlFlow::Poll);
let mut app = vulkan::App::new(&event_loop);
let vulkan_context = vulkan::vulkan_context::VulkanContext::from(&event_loop);
let mut app = core::app::App::from(vulkan_context);
event_loop.run_app(&mut app)
}