pub unsafe extern "C" fn glfwInitVulkanLoader(
loader: Option<unsafe extern "C" fn(*mut VkInstance_T, *const i8) -> Option<unsafe extern "C" fn()>>,
)Expand description
@brief Sets the desired Vulkan vkGetInstanceProcAddr function.
This function sets the vkGetInstanceProcAddr function that GLFW will use for all
Vulkan related entry point queries.
This feature is mostly useful on macOS, if your copy of the Vulkan loader is in a location where GLFW cannot find it through dynamic loading, or if you are still using the static library version of the loader.
If set to NULL, GLFW will try to load the Vulkan loader dynamically by its standard
name and get this function from there. This is the default behavior.
The standard name of the loader is vulkan-1.dll on Windows, libvulkan.so.1 on
Linux and other Unix-like systems and libvulkan.1.dylib on macOS. If your code is
also loading it via these names then you probably don’t need to use this function.
The function address you set is never reset by GLFW, but it only takes effect during initialization. Once GLFW has been initialized, any updates will be ignored until the library is terminated and initialized again.
@param[in] loader The address of the function to use, or NULL.
@par Loader function signature @code PFN_vkVoidFunction vkGetInstanceProcAddr(VkInstance instance, const char* name) @endcode For more information about this function, see the Vulkan Registry.
@errors None.
@remark This function may be called before @ref glfwInit.
@thread_safety This function must only be called from the main thread.
@sa @ref vulkan_loader @sa @ref glfwInit
@since Added in version 3.4.
@ingroup init