blob: 980722db0c03c278f5d9d7b4797f33a7b3ca9013 [file] [log] [blame]
Jesse Halld27f6aa2015-08-15 17:58:48 -07001// 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
Jesse Hall1356b0d2015-11-23 17:24:58 -080025
Jesse Halla6429252015-11-29 18:59:42 -080026// VK_USE_PLATFORM_XLIB_KHR
Jesse Hall1356b0d2015-11-23 17:24:58 -080027@internal class Display {}
28@internal class Window {}
Jesse Halla6429252015-11-29 18:59:42 -080029@internal type u64 VisualID
Jesse Hall1356b0d2015-11-23 17:24:58 -080030
31// VK_USE_PLATFORM_XCB_KHR
32@internal class xcb_connection_t {}
33@internal type u32 xcb_window_t
Jesse Halla6429252015-11-29 18:59:42 -080034@internal type u32 xcb_visualid_t
Jesse Hall1356b0d2015-11-23 17:24:58 -080035
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
47// VK_USE_PLATFORM_WIN32_KHR
48@internal type void* HINSTANCE
49@internal type void* HWND