Browse Source

UI: Log backend used when Auto is selected

Evan Husted 1 year ago
parent
commit
3cb996bf5c
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/Ryujinx/UI/Renderer/RendererHost.axaml.cs

+ 6 - 0
src/Ryujinx/UI/Renderer/RendererHost.axaml.cs

@@ -2,6 +2,7 @@ using Avalonia;
 using Avalonia.Controls;
 using Gommon;
 using Ryujinx.Common.Configuration;
+using Ryujinx.Common.Logging;
 using Ryujinx.UI.Common.Configuration;
 using System;
 using System.Runtime.InteropServices;
@@ -61,6 +62,11 @@ namespace Ryujinx.Ava.UI.Renderer
                         KnownGreatMetalTitles.ContainsIgnoreCase(titleId) 
                             ? new EmbeddedWindowMetal() 
                             : new EmbeddedWindowVulkan();
+
+                    string backendText = EmbeddedWindow is EmbeddedWindowVulkan ? "Vulkan" : "Metal";
+                    
+                    Logger.Info?.Print(LogClass.Gpu, $"Auto: Using {backendText}");
+                    
                     break;
                 case GraphicsBackend.OpenGl:
                     EmbeddedWindow = new EmbeddedWindowOpenGL();