stk-code_catmod/lib/graphics_engine/include/vulkan_wrapper.h

29 lines
803 B
C
Raw Normal View History

#ifndef HEADER_VULKAN_WRAPPER_HPP
#define HEADER_VULKAN_WRAPPER_HPP
#if !defined(__APPLE__) || defined(DLOPEN_MOLTENVK)
#include <glad/vulkan.h>
2022-04-15 05:05:38 -04:00
2022-07-11 00:58:03 -04:00
#define VK_API_VERSION_MAJOR(version) (((uint32_t)(version) >> 22) & 0x7FU)
#define VK_API_VERSION_MINOR(version) (((uint32_t)(version) >> 12) & 0x3FFU)
#define VK_API_VERSION_PATCH(version) ((uint32_t)(version) & 0xFFFU)
2022-04-15 05:05:38 -04:00
#ifdef DLOPEN_MOLTENVK
#define VK_NO_PROTOTYPES 1
#include <vk_mvk_moltenvk.h>
extern PFN_vkGetMoltenVKConfigurationMVK vkGetMoltenVKConfigurationMVK;
extern PFN_vkSetMoltenVKConfigurationMVK vkSetMoltenVKConfigurationMVK;
extern PFN_vkGetPhysicalDeviceMetalFeaturesMVK vkGetPhysicalDeviceMetalFeaturesMVK;
#endif
#else
#include <vulkan/vulkan.h>
2022-04-15 05:05:38 -04:00
#if defined(__APPLE__)
#include <MoltenVK/vk_mvk_moltenvk.h>
#endif
#endif
#endif