vulkano_test/src/main.rs
Florian RICHER da0be47b14
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
Add logical device struct and surface handling for Vulkan
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.
2024-11-10 18:18:59 +01:00

23 lines
560 B
Rust

use winit::event_loop::EventLoop;
mod display;
mod vulkan;
fn main() {
env_logger::init();
let event_loop = EventLoop::new().unwrap();
let window_attributes = winit::window::Window::default_attributes()
.with_title("Rust ASH Test")
.with_visible(true)
.with_inner_size(winit::dpi::LogicalSize::new(
f64::from(800),
f64::from(600),
));
let window = display::Window::new(window_attributes);
let mut app = display::App::new(window);
let _ = event_loop.run_app(&mut app);
}