Merge branch 'master' into master

This commit is contained in:
Vladimir Sokolov
2025-02-23 21:27:12 +10:00
committed by GitHub
135 changed files with 302 additions and 15073 deletions

View File

@@ -318,15 +318,14 @@ namespace Ryujinx.Ava.Utilities.Configuration
private static GraphicsBackend DefaultGraphicsBackend()
{
// Any system running macOS should default to auto, so it uses Vulkan everywhere and Metal in games where it works well.
if (OperatingSystem.IsMacOS())
return GraphicsBackend.Auto;
// Any system returning any amount of valid Vulkan devices should default to Vulkan.
// Any system running macOS or returning any amount of valid Vulkan devices should default to Vulkan.
// Checks for if the Vulkan version and featureset is compatible should be performed within VulkanRenderer.
return VulkanRenderer.GetPhysicalDevices().Length > 0
? GraphicsBackend.Vulkan
: GraphicsBackend.OpenGl;
if (OperatingSystem.IsMacOS() || VulkanRenderer.GetPhysicalDevices().Length > 0)
{
return GraphicsBackend.Vulkan;
}
return GraphicsBackend.OpenGl;
}
}
}
}
}