blob: 41f398d271884159ab0a836bcef86d77161048a4 [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 {}
Jesse Halle2be6b82018-01-18 15:04:37 -080046@internal class AHardwareBuffer {}
Chia-I Wub262ddc2016-03-22 07:38:20 +080047@internal type void* buffer_handle_t
Jesse Hall1356b0d2015-11-23 17:24:58 -080048
49// VK_USE_PLATFORM_WIN32_KHR
50@internal type void* HINSTANCE
51@internal type void* HWND
Jesse Halleb02c472017-02-24 15:13:45 -080052@internal type void* HANDLE
53@internal type u32 DWORD
Jesse Hallad250842017-03-10 18:35:38 -080054@internal type u16* LPCWSTR
Jesse Halleb02c472017-02-24 15:13:45 -080055@internal class SECURITY_ATTRIBUTES {}
Jesse Hall77ad05b2017-03-10 22:02:20 -080056
57// VK_USE_PLATFORM_XLIB_XRANDR_EXT
58@internal type u64 RROutput