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, 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(