Skip to content

Commit

Permalink
Add the list of Vulkan instance layers to the log
Browse files Browse the repository at this point in the history
  • Loading branch information
patowen authored and Ralith committed Feb 19, 2024
1 parent 0b1b31e commit ebc779d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions client/src/graphics/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Vec<_>>()
);

let name = cstr!("hypermine");

let app_info = vk::ApplicationInfo::builder()
Expand Down

0 comments on commit ebc779d

Please sign in to comment.