summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan/VKMain.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2022-12-28 14:16:51 -0500
committerGitHub <noreply@github.com>2022-12-28 14:16:51 -0500
commit82e5f438f954ad822a25eb3261eb9a5d6972ab7f (patch)
treedb55ab9c34300bcef3cff2f7adf5068b2f38bd90 /Source/Core/VideoBackends/Vulkan/VKMain.cpp
parentcc768b1ea3a902f9b617f58846e97e1324d15b59 (diff)
parent19a4653203e9459bb43607a1656194c9601f96d0 (diff)
Merge pull request #11219 from K0bin/android-vk-alidation
VideoBackends:Vulkan: Migrate to VK_EXT_debug_utils
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/VKMain.cpp')
-rw-r--r--Source/Core/VideoBackends/Vulkan/VKMain.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/VKMain.cpp b/Source/Core/VideoBackends/Vulkan/VKMain.cpp
index e81c5d066b..46d535ce75 100644
--- a/Source/Core/VideoBackends/Vulkan/VKMain.cpp
+++ b/Source/Core/VideoBackends/Vulkan/VKMain.cpp
@@ -84,13 +84,13 @@ static bool IsHostGPULoggingEnabled()
Common::Log::LogLevel::LERROR);
}
-// Helper method to determine whether to enable the debug report extension.
-static bool ShouldEnableDebugReports(bool enable_validation_layers)
+// Helper method to determine whether to enable the debug utils extension.
+static bool ShouldEnableDebugUtils(bool enable_validation_layers)
{
- // Enable debug reports if the Host GPU log option is checked, or validation layers are enabled.
+ // Enable debug utils if the Host GPU log option is checked, or validation layers are enabled.
// The only issue here is that if Host GPU is not checked when the instance is created, the debug
// report extension will not be enabled, requiring the game to be restarted before any reports
- // will be logged. Otherwise, we'd have to enable debug reports on every instance, when most
+ // will be logged. Otherwise, we'd have to enable debug utils on every instance, when most
// users will never check the Host GPU logging category.
return enable_validation_layers || IsHostGPULoggingEnabled();
}
@@ -114,10 +114,10 @@ bool VideoBackend::Initialize(const WindowSystemInfo& wsi)
// Create Vulkan instance, needed before we can create a surface, or enumerate devices.
// We use this instance to fill in backend info, then re-use it for the actual device.
bool enable_surface = wsi.type != WindowSystemType::Headless;
- bool enable_debug_reports = ShouldEnableDebugReports(enable_validation_layer);
+ bool enable_debug_utils = ShouldEnableDebugUtils(enable_validation_layer);
u32 vk_api_version = 0;
VkInstance instance = VulkanContext::CreateVulkanInstance(
- wsi.type, enable_debug_reports, enable_validation_layer, &vk_api_version);
+ wsi.type, enable_debug_utils, enable_validation_layer, &vk_api_version);
if (instance == VK_NULL_HANDLE)
{
PanicAlertFmt("Failed to create Vulkan instance.");
@@ -174,8 +174,8 @@ bool VideoBackend::Initialize(const WindowSystemInfo& wsi)
// Now we can create the Vulkan device. VulkanContext takes ownership of the instance and surface.
g_vulkan_context =
- VulkanContext::Create(instance, gpu_list[selected_adapter_index], surface,
- enable_debug_reports, enable_validation_layer, vk_api_version);
+ VulkanContext::Create(instance, gpu_list[selected_adapter_index], surface, enable_debug_utils,
+ enable_validation_layer, vk_api_version);
if (!g_vulkan_context)
{
PanicAlertFmt("Failed to create Vulkan device");