summaryrefslogtreecommitdiffstats
path: root/drivers/vulkan/vulkan_context.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-07-31 20:48:27 +0200
committerGitHub <noreply@github.com>2021-07-31 20:48:27 +0200
commitf7d47942adb370b3e031b0ba06ac93ac8114d15d (patch)
treec086cd4a1a27325c4932552a65201e6e5c692c7e /drivers/vulkan/vulkan_context.cpp
parent037f7f70f40237db91b35a3f52bf7b3eb879e6d2 (diff)
parent5920bc32c31830d643ee4e108b8c2a5b8b6f77f7 (diff)
downloadredot-engine-f7d47942adb370b3e031b0ba06ac93ac8114d15d.tar.gz
Merge pull request #51099 from Calinou/vulkan-print-device-release
Print the Vulkan device name in release builds too
Diffstat (limited to 'drivers/vulkan/vulkan_context.cpp')
-rw-r--r--drivers/vulkan/vulkan_context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vulkan/vulkan_context.cpp b/drivers/vulkan/vulkan_context.cpp
index d35c519320..ab43fd6c31 100644
--- a/drivers/vulkan/vulkan_context.cpp
+++ b/drivers/vulkan/vulkan_context.cpp
@@ -757,9 +757,9 @@ Error VulkanContext::_create_physical_device() {
vendor_idx++;
}
}
-#ifdef DEBUG_ENABLED
+
print_line("Using Vulkan Device #" + itos(device_index) + ": " + device_vendor + " - " + device_name);
-#endif
+
device_api_version = gpu_props.apiVersion;
err = vkEnumerateDeviceExtensionProperties(gpu, nullptr, &device_extension_count, nullptr);