Add GLFW_X11_XCB_VULKAN_SURFACE init hint

This hint controls whether GLFW will try to use VK_KHR_xcb_surface
before falling back to VK_KHR_xlib_surface.

Closes #1793.
This commit is contained in:
Nicolas Caramelli
2020-10-23 18:55:37 +02:00
committed by Camilla Löwy
parent f4a7329604
commit 84f95a7d7f
4 changed files with 21 additions and 3 deletions

View File

@@ -1250,6 +1250,11 @@ extern "C" {
* macOS specific [init hint](@ref GLFW_COCOA_MENUBAR_hint).
*/
#define GLFW_COCOA_MENUBAR 0x00051002
/*! @brief X11 specific init hint.
*
* X11 specific [init hint](@ref GLFW_X11_XCB_VULKAN_SURFACE_hint).
*/
#define GLFW_X11_XCB_VULKAN_SURFACE 0x00052001
/*! @} */
#define GLFW_DONT_CARE -1