blob: 889ac2c5e7bbb2f758cfd73880896e2799b63f60 [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
26// VK_USE_PLATFORM_X11_KHR
27@internal class Display {}
28@internal class Window {}
29
30// VK_USE_PLATFORM_XCB_KHR
31@internal class xcb_connection_t {}
32@internal type u32 xcb_window_t
33
34// VK_USE_PLATFORM_WAYLAND_KHR
35@internal class wl_display {}
36@internal class wl_surface {}
37
38// VK_USE_PLATFORM_MIR_KHR
39@internal class MirConnection {}
40@internal class MirSurface {}
41
42// VK_USE_PLATFORM_ANDROID_KHR
43@internal class ANativeWindow {}
44
45// VK_USE_PLATFORM_WIN32_KHR
46@internal type void* HINSTANCE
47@internal type void* HWND