Add more logging
This commit is contained in:
parent
3d0c520b20
commit
8626d23f88
1 changed files with 6 additions and 0 deletions
|
@ -2,6 +2,8 @@ use anyhow::Result;
|
|||
use std::{collections::HashMap, ffi::c_void, mem, ptr};
|
||||
use vulkan_rs::prelude::*;
|
||||
|
||||
use crate::write_log;
|
||||
|
||||
static mut FN_HANDLES: Option<VkTypedefHandles> = None;
|
||||
|
||||
pub fn vk_handles() -> &'static VkTypedefHandles {
|
||||
|
@ -44,6 +46,8 @@ impl VkTypedefHandles {
|
|||
|
||||
if mem::transmute::<PFN_vkVoidFunction, *const c_void>(function) != ptr::null() {
|
||||
self.functions.insert(symbol.clone(), function);
|
||||
} else {
|
||||
write_log!(format!("layer (instance): failed reading {}", symbol));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -57,6 +61,8 @@ impl VkTypedefHandles {
|
|||
|
||||
if mem::transmute::<PFN_vkVoidFunction, *const c_void>(function) != ptr::null() {
|
||||
self.functions.insert(symbol.clone(), function);
|
||||
} else {
|
||||
write_log!(format!("layer (device): failed reading {}", symbol));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue