Closed YaaZ closed 1 month ago
NB: we decided to split WLToolkit initialization in two phases so that the dependency of the toolkit initialization and Vulkan initialization on the Wayland display can be made apparent and easy to impose. See https://github.com/JetBrains/JetBrainsRuntime/pull/397 for the first part.
This adds asynchronous Vulkan initialization.
WLGraphicsEnvironment
starts Vulkan initialization in separate thread and proceeds with Wayland initializationvkGetPhysicalDeviceWaylandPresentationSupportKHR
Vulkan init waits for thewl_display
to become availableVKInstance.isVulkanEnabled()
which is used later byWLGraphicsDevice
waits for the Vulkan initialization to finish