vulkan_xcb.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #ifndef VULKAN_XCB_H_
  2. #define VULKAN_XCB_H_ 1
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /*
  7. ** Copyright (c) 2015-2018 The Khronos Group Inc.
  8. **
  9. ** Licensed under the Apache License, Version 2.0 (the "License");
  10. ** you may not use this file except in compliance with the License.
  11. ** You may obtain a copy of the License at
  12. **
  13. ** http://www.apache.org/licenses/LICENSE-2.0
  14. **
  15. ** Unless required by applicable law or agreed to in writing, software
  16. ** distributed under the License is distributed on an "AS IS" BASIS,
  17. ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18. ** See the License for the specific language governing permissions and
  19. ** limitations under the License.
  20. */
  21. /*
  22. ** This header is generated from the Khronos Vulkan XML API Registry.
  23. **
  24. */
  25. #define VK_KHR_xcb_surface 1
  26. #define VK_KHR_XCB_SURFACE_SPEC_VERSION 6
  27. #define VK_KHR_XCB_SURFACE_EXTENSION_NAME "VK_KHR_xcb_surface"
  28. typedef VkFlags VkXcbSurfaceCreateFlagsKHR;
  29. typedef struct VkXcbSurfaceCreateInfoKHR {
  30. VkStructureType sType;
  31. const void* pNext;
  32. VkXcbSurfaceCreateFlagsKHR flags;
  33. xcb_connection_t* connection;
  34. xcb_window_t window;
  35. } VkXcbSurfaceCreateInfoKHR;
  36. typedef VkResult (VKAPI_PTR *PFN_vkCreateXcbSurfaceKHR)(VkInstance instance, const VkXcbSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
  37. typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, xcb_connection_t* connection, xcb_visualid_t visual_id);
  38. #ifndef VK_NO_PROTOTYPES
  39. VKAPI_ATTR VkResult VKAPI_CALL vkCreateXcbSurfaceKHR(
  40. VkInstance instance,
  41. const VkXcbSurfaceCreateInfoKHR* pCreateInfo,
  42. const VkAllocationCallbacks* pAllocator,
  43. VkSurfaceKHR* pSurface);
  44. VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceXcbPresentationSupportKHR(
  45. VkPhysicalDevice physicalDevice,
  46. uint32_t queueFamilyIndex,
  47. xcb_connection_t* connection,
  48. xcb_visualid_t visual_id);
  49. #endif
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif