vulkan_wayland.h 1.9 KB

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