From ab927decbb2dec56ceef2f63ab350810470a1db9 Mon Sep 17 00:00:00 2001 From: Patrick Owen Date: Mon, 19 Feb 2024 14:06:22 -0500 Subject: [PATCH] Add the list of Vulkan instance layers to the log --- client/src/graphics/core.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/client/src/graphics/core.rs b/client/src/graphics/core.rs index c7eb53fa..25448165 100644 --- a/client/src/graphics/core.rs +++ b/client/src/graphics/core.rs @@ -52,6 +52,15 @@ impl Core { info!("vulkan debugging unavailable"); } + let instance_layers = entry.enumerate_instance_layer_properties().unwrap(); + tracing::info!( + "Vulkan instance layers: {:?}", + instance_layers + .iter() + .map(|layer| CStr::from_ptr(layer.layer_name.as_ptr()).to_str().unwrap()) + .collect::>() + ); + let name = cstr!("hypermine"); let app_info = vk::ApplicationInfo::builder()