-
Notifications
You must be signed in to change notification settings - Fork 0
/
vulkan_xcb.h
55 lines (46 loc) · 2.3 KB
/
vulkan_xcb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef VULKAN_XCB_H_
#define VULKAN_XCB_H_ 1
/*
** copyright (c) 2015-2020 the khronos group inc.
**
** SPDX-license-identifier: apache-2.0
*/
/*
** this header is generated from the khronos vulkan XML API registry.
**
*/
#ifdef __cplusplus
extern "C" {
#endif
#define vk_khr_xcb_surface 1
#define VK_KHR_XCB_SURFACE_SPEC_VERSION 6
#define VK_KHR_XCB_SURFACE_EXTENSION_NAME "VK_KHR_xcb_surface"
typedef VkFlags VkXcbSurfaceCreateFlagsKHR;
typedef struct VkXcbSurfaceCreateInfoKHR {
VkStructureType s_type;
const void* p_next;
VkXcbSurfaceCreateFlagsKHR flags;
xcb_connection_t* connection;
xcb_window_t window;
} VkXcbSurfaceCreateInfoKHR;
typedef VkResult(VKAPI_PTR* pfn_vk_create_xcb_surface_khr)(VkInstance instance,
const VkXcbSurfaceCreateInfoKHR* p_create_info,
const VkAllocationCallbacks* p_allocator,
VkSurfaceKHR* p_surface);
typedef VkBool32(VKAPI_PTR* pfn_vk_get_physical_device_xcb_presentation_support_khr)(VkPhysicalDevice physical_device,
uint32_t queue_family_index,
xcb_connection_t* connection,
xcb_visualid_t visual_id);
#ifndef VK_NO_PROTOTYPES
VKAPI_ATTR VkResult VKAPI_CALL vk_create_xcb_surface_khr(VkInstance instance,
const VkXcbSurfaceCreateInfoKHR* p_create_info,
const VkAllocationCallbacks* p_allocator,
VkSurfaceKHR* p_surface) __asm("vkCreateXcbSurfaceKHR");
VKAPI_ATTR VkBool32 VKAPI_CALL vk_get_physical_device_xcb_presentation_support_khr(
VkPhysicalDevice physical_device, uint32_t queue_family_index, xcb_connection_t* connection,
xcb_visualid_t visual_id) __asm("vkGetPhysicalDeviceXcbPresentationSupportKHR");
#endif
#ifdef __cplusplus
}
#endif
#endif