Skip to content

Commit

Permalink
VK: Add VK_EXT_DEBUG_REPORT_EXTENSION_NAME to included extensions for…
Browse files Browse the repository at this point in the history
… debugging.
  • Loading branch information
jamievlin committed Feb 29, 2024
1 parent 7570bdf commit 124e85e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/vkrender.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1207,10 +1207,16 @@ void AsyVkRender::createLogicalDevice()
}

#if defined(DEBUG)
if (supportedDeviceExtensions.find(VK_EXT_DEBUG_MARKER_EXTENSION_NAME) != supportedDeviceExtensions.end())
auto const hasDebugMarkerExt=
supportedDeviceExtensions.find(VK_EXT_DEBUG_MARKER_EXTENSION_NAME) != supportedDeviceExtensions.end();
auto const hasDebugReportExt=
supportedDeviceExtensions.find(VK_EXT_DEBUG_REPORT_EXTENSION_NAME) != supportedDeviceExtensions.end();

if (hasDebugReportExt && hasDebugMarkerExt)
{
hasDebugMarker=true;
extensions.emplace_back(VK_EXT_DEBUG_MARKER_EXTENSION_NAME);
extensions.emplace_back(VK_EXT_DEBUG_REPORT_EXTENSION_NAME);
}
else
{
Expand Down

0 comments on commit 124e85e

Please sign in to comment.