#include <LinuxNativeWindow.h>
Public Attributes | |
| Uint32 | WindowId = 0 |
| Native window ID for X11 backends (XCB/Xlib). Must be non-zero to create an X11 surface. | |
| void * | pDisplay = nullptr |
Display handle: Display* (Xlib) or wl_display* (Wayland). | |
| void * | pXCBConnection = nullptr |
XCB connection handle: xcb_connection_t* (XCB only). | |
| void * | pWaylandSurface = nullptr |
Wayland surface handle: wl_surface* (Wayland only). | |
Platform-native handles for creating a Vulkan surface on Linux (XCB, Xlib, Wayland).
Surface creation selection (in order):
VK_USE_PLATFORM_XCB_KHR): use pXCBConnection + WindowId (both valid) -> vkCreateXcbSurfaceKHR.VK_USE_PLATFORM_XLIB_KHR): use pDisplay + WindowId (both valid) and no surface yet -> vkCreateXlibSurfaceKHR.VK_USE_PLATFORM_WAYLAND_KHR): use pDisplay + pWaylandSurface (both valid) and no surface yet -> vkCreateWaylandSurfaceKHR.Notes:
Display* (Xlib) or wl_display* (Wayland).