prepare more function loading

This commit is contained in:
hodasemi 2023-01-10 19:41:45 +01:00
parent 98282c5a42
commit b35b12d1dc

View file

@ -253,22 +253,21 @@ fn get_function(function_name: *const c_char) -> PFN_vkVoidFunction {
[ray_tracing_pipeline_functions, vkGetRayTracingShaderGroupHandlesKHR], [ray_tracing_pipeline_functions, vkGetRayTracingShaderGroupHandlesKHR],
[ray_tracing_pipeline_functions, vkGetRayTracingShaderGroupStackSizeKHR], [ray_tracing_pipeline_functions, vkGetRayTracingShaderGroupStackSizeKHR],
[maintenance3_functions, vkGetDescriptorSetLayoutSupport], [maintenance3_functions, vkGetDescriptorSetLayoutSupport],
}
}); );
match s { match s {
"vkCreateDevice" => Functions::CreateDevice(create_device), "vkCreateDevice" => return Functions::CreateDevice(create_device).convert(),
"vkDestroyDevice" => Functions::DestroyDevice(destroy_device), "vkDestroyDevice" => return Functions::DestroyDevice(destroy_device).convert(),
"vkCreateInstance" => Functions::CreateInstance(create_instance), "vkCreateInstance" => return Functions::CreateInstance(create_instance).convert(),
"vkDestroyInstance" => Functions::DestroyInstance(destroy_instance), "vkDestroyInstance" => return Functions::DestroyInstance(destroy_instance).convert(),
_ => (),
};
_ => {
write_log(format!("\trequested fn: {}", s)); write_log(format!("\trequested fn: {}", s));
write_log(format!("\t-> not found")); write_log(format!("\t-> not found"));
Functions::Null Functions::Null.convert()
}
}
.convert()
} }
extern "system" fn create_instance( extern "system" fn create_instance(