VulkanRenderer: Add support for VK_EXT_debug_report

Some older drivers (Android) don't support VK_EXT_debug_utils
This commit is contained in:
SirLynix
2023-02-26 13:48:25 +01:00
parent 5e6a20f479
commit 20ad93f1c9
10 changed files with 186 additions and 52 deletions

View File

@@ -0,0 +1,26 @@
// Copyright (C) 2023 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Vulkan renderer"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/VulkanRenderer/Wrapper/DebugReportCallbackEXT.hpp>
#include <Nazara/VulkanRenderer/Debug.hpp>
namespace Nz::Vk
{
inline bool DebugReportCallbackEXT::IsSupported(Instance& instance)
{
return instance.vkCreateDebugReportCallbackEXT != nullptr;
}
inline VkResult DebugReportCallbackEXT::CreateHelper(Instance& instance, const VkDebugReportCallbackCreateInfoEXT* createInfo, const VkAllocationCallbacks* allocator, VkDebugReportCallbackEXT* handle)
{
return instance.vkCreateDebugReportCallbackEXT(instance, createInfo, allocator, handle);
}
inline void DebugReportCallbackEXT::DestroyHelper(Instance& instance, VkDebugReportCallbackEXT handle, const VkAllocationCallbacks* allocator)
{
return instance.vkDestroyDebugReportCallbackEXT(instance, handle, allocator);
}
}
#include <Nazara/VulkanRenderer/DebugOff.hpp>