prepare more function loading
This commit is contained in:
parent
98282c5a42
commit
b35b12d1dc
1 changed files with 147 additions and 148 deletions
21
src/lib.rs
21
src/lib.rs
|
@ -253,22 +253,21 @@ fn get_function(function_name: *const c_char) -> PFN_vkVoidFunction {
|
|||
[ray_tracing_pipeline_functions, vkGetRayTracingShaderGroupHandlesKHR],
|
||||
[ray_tracing_pipeline_functions, vkGetRayTracingShaderGroupStackSizeKHR],
|
||||
[maintenance3_functions, vkGetDescriptorSetLayoutSupport],
|
||||
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
match s {
|
||||
"vkCreateDevice" => Functions::CreateDevice(create_device),
|
||||
"vkDestroyDevice" => Functions::DestroyDevice(destroy_device),
|
||||
"vkCreateInstance" => Functions::CreateInstance(create_instance),
|
||||
"vkDestroyInstance" => Functions::DestroyInstance(destroy_instance),
|
||||
"vkCreateDevice" => return Functions::CreateDevice(create_device).convert(),
|
||||
"vkDestroyDevice" => return Functions::DestroyDevice(destroy_device).convert(),
|
||||
"vkCreateInstance" => return Functions::CreateInstance(create_instance).convert(),
|
||||
"vkDestroyInstance" => return Functions::DestroyInstance(destroy_instance).convert(),
|
||||
|
||||
_ => (),
|
||||
};
|
||||
|
||||
_ => {
|
||||
write_log(format!("\trequested fn: {}", s));
|
||||
write_log(format!("\t-> not found"));
|
||||
Functions::Null
|
||||
}
|
||||
}
|
||||
.convert()
|
||||
Functions::Null.convert()
|
||||
}
|
||||
|
||||
extern "system" fn create_instance(
|
||||
|
|
Loading…
Reference in a new issue