Finish vk_instance
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s

Add vk_physical_device
This commit is contained in:
Florian RICHER 2024-11-07 14:05:09 +01:00
parent f24a6b66bc
commit 06cc558baf
4 changed files with 90 additions and 17 deletions

View file

@ -34,6 +34,10 @@ impl ApplicationHandler for App {
self.instance = self.window
.as_ref()
.and_then(|w| Some(VkInstance::new(w)));
if let Some(instance) = self.instance.as_ref() {
let _ = instance.get_physical_devices();
}
}
fn window_event(&mut self, event_loop: &ActiveEventLoop, id: WindowId, event: WindowEvent) {