// Copyright (c) 2017 Eric Mellino // Copyright (c) 2019 Jean-Philippe Bruyère // // This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) using System; namespace Vulkan { // Windows namespace Win32 { public struct HINSTANCE { public IntPtr Handle; public static implicit operator IntPtr(HINSTANCE hinst) => hinst.Handle; public static implicit operator HINSTANCE(IntPtr handle) => new HINSTANCE() { Handle = handle }; } public struct HWND { public IntPtr Handle; public static implicit operator IntPtr(HWND hwnd) => hwnd.Handle; public static implicit operator HWND(IntPtr handle) => new HWND() { Handle = handle }; } public struct HANDLE { public IntPtr Handle; public static implicit operator IntPtr(HANDLE handle) => handle.Handle; public static implicit operator HANDLE(IntPtr handle) => new HANDLE() { Handle = handle }; } public struct SECURITY_ATTRIBUTES { public uint nLength; public IntPtr lpSecurityDescriptor; public uint bInheritHandle; } } // Android namespace Android { public struct ANativeWindow { } } // Linux namespace Mir { public struct MirConnection { } public struct MirSurface { } } namespace Wayland { public struct wl_display { } public struct wl_surface { } } namespace Xlib { public struct Display { } public struct Window { public IntPtr Value; } public struct VisualID { public ulong ID; public static implicit operator VisualID(ulong value) => new VisualID() { ID = value }; public static implicit operator ulong(VisualID id) => id.ID; } } namespace Xcb { public struct xcb_connection_t { } public struct xcb_window_t { } public struct xcb_visualid_t { public uint ID; public static implicit operator xcb_visualid_t(uint value) => new xcb_visualid_t() { ID = value }; public static implicit operator uint(xcb_visualid_t id) => id.ID; } } }