-
Notifications
You must be signed in to change notification settings - Fork 0
/
vulkan_wayland.h
52 lines (43 loc) · 1.92 KB
/
vulkan_wayland.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
#ifndef VULKAN_WAYLAND_H_
#define VULKAN_WAYLAND_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_wayland_surface 1
#define VK_KHR_WAYLAND_SURFACE_SPEC_VERSION 6
#define VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME "VK_KHR_wayland_surface"
typedef VkFlags VkWaylandSurfaceCreateFlagsKHR;
typedef struct VkWaylandSurfaceCreateInfoKHR {
VkStructureType s_type;
const void* p_next;
VkWaylandSurfaceCreateFlagsKHR flags;
struct wl_display* display;
struct wl_surface* surface;
} VkWaylandSurfaceCreateInfoKHR;
typedef VkResult(VKAPI_PTR* pfn_vk_create_wayland_surface_khr)(VkInstance instance,
const VkWaylandSurfaceCreateInfoKHR* p_create_info,
const VkAllocationCallbacks* p_allocator,
VkSurfaceKHR* p_surface);
typedef VkBool32(VKAPI_PTR* pfn_vk_get_physical_device_wayland_presentation_support_khr)(
VkPhysicalDevice physical_device, uint32_t queue_family_index, struct wl_display* display);
#ifndef VK_NO_PROTOTYPES
VKAPI_ATTR VkResult VKAPI_CALL vk_create_wayland_surface_khr(
VkInstance instance, const VkWaylandSurfaceCreateInfoKHR* p_create_info, const VkAllocationCallbacks* p_allocator,
VkSurfaceKHR* p_surface) __asm("vkCreateWaylandSurfaceKHR");
VKAPI_ATTR VkBool32 VKAPI_CALL vk_get_physical_device_wayland_presentation_support_khr(
VkPhysicalDevice physical_device, uint32_t queue_family_index,
struct wl_display* display) __asm("vkGetPhysicalDeviceWaylandPresentationSupportKHR");
#endif
#ifdef __cplusplus
}
#endif
#endif