vulkan_directfb.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef VULKAN_DIRECTFB_H_
  2. #define VULKAN_DIRECTFB_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_EXT_directfb_surface is a preprocessor guard. Do not pass it to API calls.
  16. #define VK_EXT_directfb_surface 1
  17. #define VK_EXT_DIRECTFB_SURFACE_SPEC_VERSION 1
  18. #define VK_EXT_DIRECTFB_SURFACE_EXTENSION_NAME "VK_EXT_directfb_surface"
  19. typedef VkFlags VkDirectFBSurfaceCreateFlagsEXT;
  20. typedef struct VkDirectFBSurfaceCreateInfoEXT {
  21. VkStructureType sType;
  22. const void* pNext;
  23. VkDirectFBSurfaceCreateFlagsEXT flags;
  24. IDirectFB* dfb;
  25. IDirectFBSurface* surface;
  26. } VkDirectFBSurfaceCreateInfoEXT;
  27. typedef VkResult (VKAPI_PTR *PFN_vkCreateDirectFBSurfaceEXT)(VkInstance instance, const VkDirectFBSurfaceCreateInfoEXT* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
  28. typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceDirectFBPresentationSupportEXT)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, IDirectFB* dfb);
  29. #ifndef VK_NO_PROTOTYPES
  30. #ifndef VK_ONLY_EXPORTED_PROTOTYPES
  31. VKAPI_ATTR VkResult VKAPI_CALL vkCreateDirectFBSurfaceEXT(
  32. VkInstance instance,
  33. const VkDirectFBSurfaceCreateInfoEXT* pCreateInfo,
  34. const VkAllocationCallbacks* pAllocator,
  35. VkSurfaceKHR* pSurface);
  36. #endif
  37. #ifndef VK_ONLY_EXPORTED_PROTOTYPES
  38. VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceDirectFBPresentationSupportEXT(
  39. VkPhysicalDevice physicalDevice,
  40. uint32_t queueFamilyIndex,
  41. IDirectFB* dfb);
  42. #endif
  43. #endif
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47. #endif