Add vk_handle debug infos
This commit is contained in:
parent
8b3186094d
commit
7cc1eb54e2
1 changed files with 2 additions and 0 deletions
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue