Add logs of physical devices
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s

This commit is contained in:
Florian RICHER 2024-11-07 17:18:10 +01:00
parent 06cc558baf
commit 56ad167b0f
5 changed files with 12 additions and 4 deletions

View file

@ -36,7 +36,12 @@ impl ApplicationHandler for App {
.and_then(|w| Some(VkInstance::new(w)));
if let Some(instance) = self.instance.as_ref() {
let _ = instance.get_physical_devices();
let physical_devices = instance.get_physical_devices();
println!("Physical Devices:");
for physical_device in physical_devices {
println!("\tNom: {:?}, Priorité: {}", physical_device.properties.device_name_as_c_str().unwrap_or_default(), physical_device.priority())
}
}
}