mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-19 14:45:29 +00:00
The gpu_driver option is an ordered list of the GPU drivers to try, defaulting to metal, vulkan, opengl. Drivers that are not part of the build are skipped. Add connect() to the GPU driver API. It is called once the windowing system has been initialized, with the connection to the display, so that drivers can check that they are able to render to windows on it, before any windows are created. The driver is now loaded after glfwInit() for this reason. If a driver cannot connect, the next one is tried. If the driver fails to choose a visual or create a surface for the first window, before any GPU resources exist, kitty switches to the next usable driver and creates the window again. --debug-rendering reports the driver used and why others were rejected. |
||
|---|---|---|
| .. | ||
| opengl | ||
| api.h | ||