ash/vk/
platform_types.rs

1#![allow(non_camel_case_types)]
2
3use core::ffi::*;
4pub type RROutput = c_ulong;
5pub type VisualID = c_uint;
6pub type Display = c_void;
7pub type Window = c_ulong;
8pub type xcb_connection_t = c_void;
9pub type xcb_window_t = u32;
10pub type xcb_visualid_t = u32;
11pub type MirConnection = *const c_void;
12pub type MirSurface = *const c_void;
13/// <https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/Foundation/struct.HANDLE.html>
14pub type HANDLE = isize;
15/// <https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/Foundation/struct.HINSTANCE.html>
16pub type HINSTANCE = HANDLE;
17/// <https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/Foundation/struct.HWND.html>
18pub type HWND = HANDLE;
19/// <https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/Graphics/Gdi/struct.HMONITOR.html>
20pub type HMONITOR = HANDLE;
21pub type wl_display = c_void;
22pub type wl_surface = c_void;
23pub type DWORD = c_ulong;
24pub type LPCWSTR = *const u16;
25pub type zx_handle_t = u32;
26pub type _screen_buffer = c_void;
27pub type _screen_context = c_void;
28pub type _screen_window = c_void;
29pub type SECURITY_ATTRIBUTES = c_void;
30// Opaque types
31pub type ANativeWindow = c_void;
32pub type AHardwareBuffer = c_void;
33pub type CAMetalLayer = c_void;
34// This definition is behind an NDA with a best effort guess from
35// https://github.com/google/gapid/commit/22aafebec4638c6aaa77667096bca30f6e842d95#diff-ab3ab4a7d89b4fc8a344ff4e9332865f268ea1669ee379c1b516a954ecc2e7a6R20-R21
36pub type GgpStreamDescriptor = u32;
37pub type GgpFrameToken = u64;
38pub type IDirectFB = c_void;
39pub type IDirectFBSurface = c_void;
40pub type __IOSurface = c_void;
41pub type IOSurfaceRef = *mut __IOSurface;
42pub type MTLBuffer_id = *mut c_void;
43pub type MTLCommandQueue_id = *mut c_void;
44pub type MTLDevice_id = *mut c_void;
45pub type MTLSharedEvent_id = *mut c_void;
46pub type MTLTexture_id = *mut c_void;