Finish vk_instance
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
Add vk_physical_device
This commit is contained in:
parent
f24a6b66bc
commit
06cc558baf
4 changed files with 90 additions and 17 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue