Update from dev #53

Merged
hodasemi merged 10 commits from dev into master 2023-08-16 07:05:12 +00:00
Showing only changes of commit 8626d23f88 - Show all commits

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