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