Merge branch 'master' into master
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user