private void DisplayErrorCallback(void *data, wl_display *display, uint objectId, uint code, byte *messagePtr) { var message = Util.Utf8ToString(messagePtr); LogError($"Irrecoverable error reported by Wayland server: ({message})"); // todo get error from enum in iface type throw new OpenWindowException($"Irrecoverable error reported by Wayland server: {message}"); }
internal static unsafe extern Bool32 vkGetPhysicalDeviceWaylandPresentationSupportKHR(IntPtr physicalDevice, UInt32 queueFamilyIndex, wl_display *display);
public static extern int wl_display_get_error(wl_display *dpy);
public static extern int wl_display_dispatch_pending(wl_display *dpy);
public static extern int wl_display_dispatch(wl_display *dpy);
public static extern int wl_display_flush(wl_display *dpy);
public static extern int wl_display_roundtrip(wl_display *dpy);
public static extern void wl_display_disconnect(wl_display *dpy);