mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-01-09 15:51:59 +00:00
misc: always log backend when creating embeddedwindow
This commit is contained in:
parent
ff667a5c84
commit
b05eab21a2
1 changed files with 10 additions and 5 deletions
|
@ -62,11 +62,6 @@ namespace Ryujinx.Ava.UI.Renderer
|
||||||
KnownGreatMetalTitles.ContainsIgnoreCase(titleId)
|
KnownGreatMetalTitles.ContainsIgnoreCase(titleId)
|
||||||
? new EmbeddedWindowMetal()
|
? new EmbeddedWindowMetal()
|
||||||
: new EmbeddedWindowVulkan();
|
: new EmbeddedWindowVulkan();
|
||||||
|
|
||||||
string backendText = EmbeddedWindow is EmbeddedWindowVulkan ? "Vulkan" : "Metal";
|
|
||||||
|
|
||||||
Logger.Info?.PrintMsg(LogClass.Gpu, $"Auto: Using {backendText}");
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case GraphicsBackend.OpenGl:
|
case GraphicsBackend.OpenGl:
|
||||||
EmbeddedWindow = new EmbeddedWindowOpenGL();
|
EmbeddedWindow = new EmbeddedWindowOpenGL();
|
||||||
|
@ -78,6 +73,16 @@ namespace Ryujinx.Ava.UI.Renderer
|
||||||
EmbeddedWindow = new EmbeddedWindowVulkan();
|
EmbeddedWindow = new EmbeddedWindowVulkan();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
string backendText = EmbeddedWindow switch
|
||||||
|
{
|
||||||
|
EmbeddedWindowVulkan => "Vulkan",
|
||||||
|
EmbeddedWindowOpenGL => "OpenGL",
|
||||||
|
EmbeddedWindowMetal => "Metal",
|
||||||
|
_ => throw new NotImplementedException()
|
||||||
|
};
|
||||||
|
|
||||||
|
Logger.Info?.PrintMsg(LogClass.Gpu, $"Backend ({ConfigurationState.Instance.Graphics.GraphicsBackend.Value}): {backendText}");
|
||||||
|
|
||||||
Initialize();
|
Initialize();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue