xref: /aosp_15_r20/external/swiftshader/include/vulkan/vulkan_xcb.h (revision 03ce13f70fcc45d86ee91b7ee4cab1936a95046e)
1*03ce13f7SAndroid Build Coastguard Worker #ifndef VULKAN_XCB_H_
2*03ce13f7SAndroid Build Coastguard Worker #define VULKAN_XCB_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_xcb_surface is a preprocessor guard. Do not pass it to API calls.
23*03ce13f7SAndroid Build Coastguard Worker #define VK_KHR_xcb_surface 1
24*03ce13f7SAndroid Build Coastguard Worker #define VK_KHR_XCB_SURFACE_SPEC_VERSION   6
25*03ce13f7SAndroid Build Coastguard Worker #define VK_KHR_XCB_SURFACE_EXTENSION_NAME "VK_KHR_xcb_surface"
26*03ce13f7SAndroid Build Coastguard Worker typedef VkFlags VkXcbSurfaceCreateFlagsKHR;
27*03ce13f7SAndroid Build Coastguard Worker typedef struct VkXcbSurfaceCreateInfoKHR {
28*03ce13f7SAndroid Build Coastguard Worker     VkStructureType               sType;
29*03ce13f7SAndroid Build Coastguard Worker     const void*                   pNext;
30*03ce13f7SAndroid Build Coastguard Worker     VkXcbSurfaceCreateFlagsKHR    flags;
31*03ce13f7SAndroid Build Coastguard Worker     xcb_connection_t*             connection;
32*03ce13f7SAndroid Build Coastguard Worker     xcb_window_t                  window;
33*03ce13f7SAndroid Build Coastguard Worker } VkXcbSurfaceCreateInfoKHR;
34*03ce13f7SAndroid Build Coastguard Worker 
35*03ce13f7SAndroid Build Coastguard Worker typedef VkResult (VKAPI_PTR *PFN_vkCreateXcbSurfaceKHR)(VkInstance instance, const VkXcbSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
36*03ce13f7SAndroid Build Coastguard Worker typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, xcb_connection_t* connection, xcb_visualid_t visual_id);
37*03ce13f7SAndroid Build Coastguard Worker 
38*03ce13f7SAndroid Build Coastguard Worker #ifndef VK_NO_PROTOTYPES
39*03ce13f7SAndroid Build Coastguard Worker VKAPI_ATTR VkResult VKAPI_CALL vkCreateXcbSurfaceKHR(
40*03ce13f7SAndroid Build Coastguard Worker     VkInstance                                  instance,
41*03ce13f7SAndroid Build Coastguard Worker     const VkXcbSurfaceCreateInfoKHR*            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 vkGetPhysicalDeviceXcbPresentationSupportKHR(
46*03ce13f7SAndroid Build Coastguard Worker     VkPhysicalDevice                            physicalDevice,
47*03ce13f7SAndroid Build Coastguard Worker     uint32_t                                    queueFamilyIndex,
48*03ce13f7SAndroid Build Coastguard Worker     xcb_connection_t*                           connection,
49*03ce13f7SAndroid Build Coastguard Worker     xcb_visualid_t                              visual_id);
50*03ce13f7SAndroid Build Coastguard Worker #endif
51*03ce13f7SAndroid Build Coastguard Worker 
52*03ce13f7SAndroid Build Coastguard Worker #ifdef __cplusplus
53*03ce13f7SAndroid Build Coastguard Worker }
54*03ce13f7SAndroid Build Coastguard Worker #endif
55*03ce13f7SAndroid Build Coastguard Worker 
56*03ce13f7SAndroid Build Coastguard Worker #endif
57