Add vk_handle debug infos

This commit is contained in:
hodasemi 2023-02-21 19:31:04 +01:00
parent 8b3186094d
commit 7cc1eb54e2

View file

@ -45,6 +45,7 @@ impl VkTypedefHandles {
let function = proc_addr(instance, name.as_ptr()); let function = proc_addr(instance, name.as_ptr());
if mem::transmute::<PFN_vkVoidFunction, *const c_void>(function) != ptr::null() { if mem::transmute::<PFN_vkVoidFunction, *const c_void>(function) != ptr::null() {
write_log!(format!("layer (instance): successfully read: {}", symbol));
self.functions.insert(symbol.clone(), function); self.functions.insert(symbol.clone(), function);
} else { } else {
write_log!(format!("layer (instance): failed reading {}", symbol)); write_log!(format!("layer (instance): failed reading {}", symbol));
@ -60,6 +61,7 @@ impl VkTypedefHandles {
let function = proc_addr(device, name.as_ptr()); let function = proc_addr(device, name.as_ptr());
if mem::transmute::<PFN_vkVoidFunction, *const c_void>(function) != ptr::null() { if mem::transmute::<PFN_vkVoidFunction, *const c_void>(function) != ptr::null() {
write_log!(format!("layer (device): successfully read: {}", symbol));
self.functions.insert(symbol.clone(), function); self.functions.insert(symbol.clone(), function);
} else { } else {
write_log!(format!("layer (device): failed reading {}", symbol)); write_log!(format!("layer (device): failed reading {}", symbol));