VulkanRenderer: Fix VK_EXT_debug_utils with MoltenVK

This commit is contained in:
Jérôme Leclercq
2022-03-20 14:54:38 +01:00
parent 48b87cc99b
commit d86f61cd82
6 changed files with 42 additions and 33 deletions

View File

@@ -88,16 +88,17 @@ namespace Nz
#define NAZARA_VULKANRENDERER_DEVICE_EXT_BEGIN(ext) if (IsExtensionLoaded(#ext)) {
#define NAZARA_VULKANRENDERER_DEVICE_EXT_END() }
#define NAZARA_VULKANRENDERER_DEVICE_FUNCTION(func) func = reinterpret_cast<PFN_##func>(GetProcAddr(#func));
#define NAZARA_VULKANRENDERER_DEVICE_FUNCTION(func) func = reinterpret_cast<PFN_##func>(GetProcAddr(#func, false));
#define NAZARA_VULKANRENDERER_DEVICE_OR_INSTANCE_FUNCTION(func) func = reinterpret_cast<PFN_##func>(GetProcAddr(#func, true));
#define NAZARA_VULKANRENDERER_INSTANCE_EXT_BEGIN(ext) if (m_instance.IsExtensionLoaded(#ext)) {
#define NAZARA_VULKANRENDERER_INSTANCE_EXT_END() }
#define NAZARA_VULKANRENDERER_DEVICE_CORE_EXT_FUNCTION(func, coreVersion, suffix, extName) \
if (deviceVersion >= coreVersion) \
func = reinterpret_cast<PFN_##func>(GetProcAddr(#func)); \
func = reinterpret_cast<PFN_##func>(GetProcAddr(#func, false)); \
else if (IsExtensionLoaded("VK_" #suffix "_" #extName)) \
func = reinterpret_cast<PFN_##func##suffix>(GetProcAddr(#func #suffix));
func = reinterpret_cast<PFN_##func##suffix>(GetProcAddr(#func #suffix, false));
#include <Nazara/VulkanRenderer/Wrapper/DeviceFunctions.hpp>
}