Split app, window render context and vulkan context
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 26m52s
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 26m52s
This commit is contained in:
parent
f32db72101
commit
15c273b93d
9 changed files with 426 additions and 325 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue