summaryrefslogtreecommitdiff
path: root/drivers/vulkan
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-03 15:42:41 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-03 15:42:41 +0100
commit6144192bda2f71e2f8a5c5bb01f6a63404cbee85 (patch)
tree0107151095c7b5ab0f8495623e00b0fe2365276a /drivers/vulkan
parent388e3eb8b7ef8ceea092ce2a60c1a1b632939970 (diff)
parentf3e8300b504c090c45acead5405a1a8a8886640a (diff)
Merge pull request #72625 from Calinou/vulkan-print-rendering-method-name
Print name of Vulkan rendering method on startup
Diffstat (limited to 'drivers/vulkan')
-rw-r--r--drivers/vulkan/vulkan_context.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/vulkan/vulkan_context.cpp b/drivers/vulkan/vulkan_context.cpp
index d1391cb53e..864ad5931a 100644
--- a/drivers/vulkan/vulkan_context.cpp
+++ b/drivers/vulkan/vulkan_context.cpp
@@ -1299,8 +1299,15 @@ Error VulkanContext::_create_physical_device(VkSurfaceKHR p_surface) {
// Get device version
device_api_version = gpu_props.apiVersion;
+ String rendering_method;
+ if (OS::get_singleton()->get_current_rendering_method() == "mobile") {
+ rendering_method = "Forward Mobile";
+ } else {
+ rendering_method = "Forward+";
+ }
+
// Output our device version
- print_line("Vulkan API " + get_device_api_version() + " - " + "Using Vulkan Device #" + itos(device_index) + ": " + device_vendor + " - " + device_name);
+ print_line(vformat("Vulkan API %s - %s - Using Vulkan Device #%d: %s - %s", get_device_api_version(), rendering_method, device_index, device_vendor, device_name));
{
Error _err = _initialize_device_extensions();