1// Copyright (c) 2015 The Khronos Group Inc.
2//
3// Permission is hereby granted, free of charge, to any person obtaining a
4// copy of this software and/or associated documentation files (the
5// "Materials"), to deal in the Materials without restriction, including
6// without limitation the rights to use, copy, modify, merge, publish,
7// distribute, sublicense, and/or sell copies of the Materials, and to
8// permit persons to whom the Materials are furnished to do so, subject to
9// the following conditions:
10//
11// The above copyright notice and this permission notice shall be included
12// in all copies or substantial portions of the Materials.
13//
14// THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
21
22// Platform types, as defined or included in vk_platform.h
23
24type u64 size_t
25
26// VK_USE_PLATFORM_XLIB_KHR
27@internal class Display {}
28@internal class Window {}
29@internal type u64 VisualID
30
31// VK_USE_PLATFORM_XCB_KHR
32@internal class xcb_connection_t {}
33@internal type u32 xcb_window_t
34@internal type u32 xcb_visualid_t
35
36// VK_USE_PLATFORM_WAYLAND_KHR
37@internal class wl_display {}
38@internal class wl_surface {}
39
40// VK_USE_PLATFORM_MIR_KHR
41@internal class MirConnection {}
42@internal class MirSurface {}
43
44// VK_USE_PLATFORM_ANDROID_KHR
45@internal class ANativeWindow {}
46@internal type void* buffer_handle_t
47
48// VK_USE_PLATFORM_WIN32_KHR
49@internal type void* HINSTANCE
50@internal type void* HWND
51