Add logs of physical devices
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
This commit is contained in:
parent
06cc558baf
commit
56ad167b0f
5 changed files with 12 additions and 4 deletions
|
@ -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())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue