vulkan_xcb.h revision 01e04c3f
101e04c3fSmrg#ifndef VULKAN_XCB_H_
201e04c3fSmrg#define VULKAN_XCB_H_ 1
301e04c3fSmrg
401e04c3fSmrg#ifdef __cplusplus
501e04c3fSmrgextern "C" {
601e04c3fSmrg#endif
701e04c3fSmrg
801e04c3fSmrg/*
901e04c3fSmrg** Copyright (c) 2015-2018 The Khronos Group Inc.
1001e04c3fSmrg**
1101e04c3fSmrg** Licensed under the Apache License, Version 2.0 (the "License");
1201e04c3fSmrg** you may not use this file except in compliance with the License.
1301e04c3fSmrg** You may obtain a copy of the License at
1401e04c3fSmrg**
1501e04c3fSmrg**     http://www.apache.org/licenses/LICENSE-2.0
1601e04c3fSmrg**
1701e04c3fSmrg** Unless required by applicable law or agreed to in writing, software
1801e04c3fSmrg** distributed under the License is distributed on an "AS IS" BASIS,
1901e04c3fSmrg** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2001e04c3fSmrg** See the License for the specific language governing permissions and
2101e04c3fSmrg** limitations under the License.
2201e04c3fSmrg*/
2301e04c3fSmrg
2401e04c3fSmrg/*
2501e04c3fSmrg** This header is generated from the Khronos Vulkan XML API Registry.
2601e04c3fSmrg**
2701e04c3fSmrg*/
2801e04c3fSmrg
2901e04c3fSmrg
3001e04c3fSmrg#define VK_KHR_xcb_surface 1
3101e04c3fSmrg#define VK_KHR_XCB_SURFACE_SPEC_VERSION   6
3201e04c3fSmrg#define VK_KHR_XCB_SURFACE_EXTENSION_NAME "VK_KHR_xcb_surface"
3301e04c3fSmrg
3401e04c3fSmrgtypedef VkFlags VkXcbSurfaceCreateFlagsKHR;
3501e04c3fSmrg
3601e04c3fSmrgtypedef struct VkXcbSurfaceCreateInfoKHR {
3701e04c3fSmrg    VkStructureType               sType;
3801e04c3fSmrg    const void*                   pNext;
3901e04c3fSmrg    VkXcbSurfaceCreateFlagsKHR    flags;
4001e04c3fSmrg    xcb_connection_t*             connection;
4101e04c3fSmrg    xcb_window_t                  window;
4201e04c3fSmrg} VkXcbSurfaceCreateInfoKHR;
4301e04c3fSmrg
4401e04c3fSmrg
4501e04c3fSmrgtypedef VkResult (VKAPI_PTR *PFN_vkCreateXcbSurfaceKHR)(VkInstance instance, const VkXcbSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
4601e04c3fSmrgtypedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, xcb_connection_t* connection, xcb_visualid_t visual_id);
4701e04c3fSmrg
4801e04c3fSmrg#ifndef VK_NO_PROTOTYPES
4901e04c3fSmrgVKAPI_ATTR VkResult VKAPI_CALL vkCreateXcbSurfaceKHR(
5001e04c3fSmrg    VkInstance                                  instance,
5101e04c3fSmrg    const VkXcbSurfaceCreateInfoKHR*            pCreateInfo,
5201e04c3fSmrg    const VkAllocationCallbacks*                pAllocator,
5301e04c3fSmrg    VkSurfaceKHR*                               pSurface);
5401e04c3fSmrg
5501e04c3fSmrgVKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceXcbPresentationSupportKHR(
5601e04c3fSmrg    VkPhysicalDevice                            physicalDevice,
5701e04c3fSmrg    uint32_t                                    queueFamilyIndex,
5801e04c3fSmrg    xcb_connection_t*                           connection,
5901e04c3fSmrg    xcb_visualid_t                              visual_id);
6001e04c3fSmrg#endif
6101e04c3fSmrg
6201e04c3fSmrg#ifdef __cplusplus
6301e04c3fSmrg}
6401e04c3fSmrg#endif
6501e04c3fSmrg
6601e04c3fSmrg#endif
67