Add more logging

This commit is contained in:
hodasemi 2023-02-20 10:21:33 +01:00
parent 3d0c520b20
commit 8626d23f88

View file

@ -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));
}
}
}