diff options
author | GPUCode <geoster3d@gmail.com> | 2023-09-08 21:47:39 +0200 |
---|---|---|
committer | GPUCode <geoster3d@gmail.com> | 2023-09-08 22:28:46 +0200 |
commit | cad28abe613638cddf25569f746a602262352dab (patch) | |
tree | 471e7e01f7c85097bff2b72eb2d3c7c94aa0d069 /src/video_core/vulkan_common/vulkan_debug_callback.cpp | |
parent | cmake: Add option to fetch validation layer binary on android (diff) | |
download | yuzu-cad28abe613638cddf25569f746a602262352dab.tar yuzu-cad28abe613638cddf25569f746a602262352dab.tar.gz yuzu-cad28abe613638cddf25569f746a602262352dab.tar.bz2 yuzu-cad28abe613638cddf25569f746a602262352dab.tar.lz yuzu-cad28abe613638cddf25569f746a602262352dab.tar.xz yuzu-cad28abe613638cddf25569f746a602262352dab.tar.zst yuzu-cad28abe613638cddf25569f746a602262352dab.zip |
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_debug_callback.cpp')
-rw-r--r-- | src/video_core/vulkan_common/vulkan_debug_callback.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/video_core/vulkan_common/vulkan_debug_callback.cpp b/src/video_core/vulkan_common/vulkan_debug_callback.cpp index 67e8065a4..448df2d3a 100644 --- a/src/video_core/vulkan_common/vulkan_debug_callback.cpp +++ b/src/video_core/vulkan_common/vulkan_debug_callback.cpp @@ -63,22 +63,6 @@ VkBool32 DebugUtilCallback(VkDebugUtilsMessageSeverityFlagBitsEXT severity, return VK_FALSE; } -VkBool32 DebugReportCallback(VkDebugReportFlagsEXT flags, VkDebugReportObjectTypeEXT objectType, - uint64_t object, size_t location, int32_t messageCode, - const char* pLayerPrefix, const char* pMessage, void* pUserData) { - const VkDebugReportFlagBitsEXT severity = static_cast<VkDebugReportFlagBitsEXT>(flags); - const std::string_view message{pMessage}; - if (severity & VK_DEBUG_REPORT_ERROR_BIT_EXT) { - LOG_CRITICAL(Render_Vulkan, "{}", message); - } else if (severity & VK_DEBUG_REPORT_WARNING_BIT_EXT) { - LOG_WARNING(Render_Vulkan, "{}", message); - } else if (severity & VK_DEBUG_REPORT_INFORMATION_BIT_EXT) { - LOG_INFO(Render_Vulkan, "{}", message); - } else if (severity & VK_DEBUG_REPORT_DEBUG_BIT_EXT) { - LOG_DEBUG(Render_Vulkan, "{}", message); - } - return VK_FALSE; -} } // Anonymous namespace vk::DebugUtilsMessenger CreateDebugUtilsCallback(const vk::Instance& instance) { @@ -98,15 +82,4 @@ vk::DebugUtilsMessenger CreateDebugUtilsCallback(const vk::Instance& instance) { }); } -vk::DebugReportCallback CreateDebugReportCallback(const vk::Instance& instance) { - return instance.CreateDebugReportCallback({ - .sType = VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT, - .pNext = nullptr, - .flags = VK_DEBUG_REPORT_DEBUG_BIT_EXT | VK_DEBUG_REPORT_INFORMATION_BIT_EXT | - VK_DEBUG_REPORT_ERROR_BIT_EXT | VK_DEBUG_REPORT_WARNING_BIT_EXT, - .pfnCallback = DebugReportCallback, - .pUserData = nullptr, - }); -} - } // namespace Vulkan |