xref: /aosp_15_r20/external/vulkan-headers/include/vulkan/vulkan_wayland.h (revision 902771965e4c6d39c75c62130a6a330c08b024db)
1*90277196SAndroid Build Coastguard Worker #ifndef VULKAN_WAYLAND_H_
2*90277196SAndroid Build Coastguard Worker #define VULKAN_WAYLAND_H_ 1
3*90277196SAndroid Build Coastguard Worker 
4*90277196SAndroid Build Coastguard Worker /*
5*90277196SAndroid Build Coastguard Worker ** Copyright 2015-2024 The Khronos Group Inc.
6*90277196SAndroid Build Coastguard Worker **
7*90277196SAndroid Build Coastguard Worker ** SPDX-License-Identifier: Apache-2.0
8*90277196SAndroid Build Coastguard Worker */
9*90277196SAndroid Build Coastguard Worker 
10*90277196SAndroid Build Coastguard Worker /*
11*90277196SAndroid Build Coastguard Worker ** This header is generated from the Khronos Vulkan XML API Registry.
12*90277196SAndroid Build Coastguard Worker **
13*90277196SAndroid Build Coastguard Worker */
14*90277196SAndroid Build Coastguard Worker 
15*90277196SAndroid Build Coastguard Worker 
16*90277196SAndroid Build Coastguard Worker #ifdef __cplusplus
17*90277196SAndroid Build Coastguard Worker extern "C" {
18*90277196SAndroid Build Coastguard Worker #endif
19*90277196SAndroid Build Coastguard Worker 
20*90277196SAndroid Build Coastguard Worker 
21*90277196SAndroid Build Coastguard Worker 
22*90277196SAndroid Build Coastguard Worker // VK_KHR_wayland_surface is a preprocessor guard. Do not pass it to API calls.
23*90277196SAndroid Build Coastguard Worker #define VK_KHR_wayland_surface 1
24*90277196SAndroid Build Coastguard Worker #define VK_KHR_WAYLAND_SURFACE_SPEC_VERSION 6
25*90277196SAndroid Build Coastguard Worker #define VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME "VK_KHR_wayland_surface"
26*90277196SAndroid Build Coastguard Worker typedef VkFlags VkWaylandSurfaceCreateFlagsKHR;
27*90277196SAndroid Build Coastguard Worker typedef struct VkWaylandSurfaceCreateInfoKHR {
28*90277196SAndroid Build Coastguard Worker     VkStructureType                   sType;
29*90277196SAndroid Build Coastguard Worker     const void*                       pNext;
30*90277196SAndroid Build Coastguard Worker     VkWaylandSurfaceCreateFlagsKHR    flags;
31*90277196SAndroid Build Coastguard Worker     struct wl_display*                display;
32*90277196SAndroid Build Coastguard Worker     struct wl_surface*                surface;
33*90277196SAndroid Build Coastguard Worker } VkWaylandSurfaceCreateInfoKHR;
34*90277196SAndroid Build Coastguard Worker 
35*90277196SAndroid Build Coastguard Worker typedef VkResult (VKAPI_PTR *PFN_vkCreateWaylandSurfaceKHR)(VkInstance instance, const VkWaylandSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
36*90277196SAndroid Build Coastguard Worker typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, struct wl_display* display);
37*90277196SAndroid Build Coastguard Worker 
38*90277196SAndroid Build Coastguard Worker #ifndef VK_NO_PROTOTYPES
39*90277196SAndroid Build Coastguard Worker VKAPI_ATTR VkResult VKAPI_CALL vkCreateWaylandSurfaceKHR(
40*90277196SAndroid Build Coastguard Worker     VkInstance                                  instance,
41*90277196SAndroid Build Coastguard Worker     const VkWaylandSurfaceCreateInfoKHR*        pCreateInfo,
42*90277196SAndroid Build Coastguard Worker     const VkAllocationCallbacks*                pAllocator,
43*90277196SAndroid Build Coastguard Worker     VkSurfaceKHR*                               pSurface);
44*90277196SAndroid Build Coastguard Worker 
45*90277196SAndroid Build Coastguard Worker VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceWaylandPresentationSupportKHR(
46*90277196SAndroid Build Coastguard Worker     VkPhysicalDevice                            physicalDevice,
47*90277196SAndroid Build Coastguard Worker     uint32_t                                    queueFamilyIndex,
48*90277196SAndroid Build Coastguard Worker     struct wl_display*                          display);
49*90277196SAndroid Build Coastguard Worker #endif
50*90277196SAndroid Build Coastguard Worker 
51*90277196SAndroid Build Coastguard Worker #ifdef __cplusplus
52*90277196SAndroid Build Coastguard Worker }
53*90277196SAndroid Build Coastguard Worker #endif
54*90277196SAndroid Build Coastguard Worker 
55*90277196SAndroid Build Coastguard Worker #endif
56