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, 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(
|
||||||
|
|
Loading…
Reference in a new issue