Add logical device struct and surface handling for Vulkan
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
Introduce the VkLogicalDevice struct and add surface creation logic in VkInstance. Also, import necessary extensions and refine Vulkan physical device and window handling. Included a dependency on 'anyhow' for error management.
This commit is contained in:
parent
4048937a6c
commit
da0be47b14
14 changed files with 258 additions and 153 deletions
|
@ -1,5 +1,4 @@
|
|||
use winit::event_loop::EventLoop;
|
||||
use winit::window::Window;
|
||||
|
||||
mod display;
|
||||
mod vulkan;
|
||||
|
@ -9,7 +8,7 @@ fn main() {
|
|||
|
||||
let event_loop = EventLoop::new().unwrap();
|
||||
|
||||
let window_attributes = Window::default_attributes()
|
||||
let window_attributes = winit::window::Window::default_attributes()
|
||||
.with_title("Rust ASH Test")
|
||||
.with_visible(true)
|
||||
.with_inner_size(winit::dpi::LogicalSize::new(
|
||||
|
@ -17,7 +16,8 @@ fn main() {
|
|||
f64::from(600),
|
||||
));
|
||||
|
||||
let mut app = display::App::new(window_attributes);
|
||||
let window = display::Window::new(window_attributes);
|
||||
let mut app = display::App::new(window);
|
||||
|
||||
let _ = event_loop.run_app(&mut app);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue