UI: Only allow ARM macs to select Metal backend

This commit is contained in:
Evan Husted 2024-12-23 22:35:28 -06:00
parent e82a90993c
commit 3aaeaf3540
2 changed files with 3 additions and 2 deletions

View File

@ -120,7 +120,8 @@ namespace Ryujinx.Ava.UI.ViewModels
}
}
public bool IsMetalAvailable => OperatingSystem.IsMacOS();
public bool IsMetalAvailable =>
OperatingSystem.IsMacOS() && RuntimeInformation.ProcessArchitecture == Architecture.Arm64;
public bool IsOpenGLAvailable => !OperatingSystem.IsMacOS();

View File

@ -46,7 +46,7 @@
<TextBlock Text="OpenGL" />
</ComboBoxItem>
<ComboBoxItem IsEnabled="{Binding IsMetalAvailable}">
<TextBlock Text="Metal (Experimental)" />
<TextBlock Text="Metal (ARM Mac only, Experimental)" />
</ComboBoxItem>
</ComboBox>
</StackPanel>