More logging for instance creation
This commit is contained in:
parent
8626d23f88
commit
8e09841dad
1 changed files with 4 additions and 0 deletions
|
@ -144,6 +144,8 @@ pub(crate) extern "system" fn create_instance(
|
||||||
|
|
||||||
// DXVK workaround, it creates the instance twice with different properties
|
// DXVK workaround, it creates the instance twice with different properties
|
||||||
if ext_names.contains(&VkString::new("VK_KHR_surface")) {
|
if ext_names.contains(&VkString::new("VK_KHR_surface")) {
|
||||||
|
write_log!("found VK_KHR_surface");
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
let panic_result =
|
let panic_result =
|
||||||
match std::panic::catch_unwind(|| -> anyhow::Result<std::sync::Arc<Instance>> {
|
match std::panic::catch_unwind(|| -> anyhow::Result<std::sync::Arc<Instance>> {
|
||||||
|
@ -178,6 +180,8 @@ pub(crate) extern "system" fn create_instance(
|
||||||
write_log!("-> created local instance handle");
|
write_log!("-> created local instance handle");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
write_log!("returning from create_instance");
|
||||||
|
|
||||||
VK_SUCCESS
|
VK_SUCCESS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue