Fix Formatting

This commit is contained in:
sunshineinabox 2023-08-14 16:45:04 -07:00
parent 486aaf8e5e
commit 68378caa69
6 changed files with 11 additions and 12 deletions

View file

@ -25,7 +25,6 @@ using System.Net.NetworkInformation;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using TimeZone = Ryujinx.Ava.UI.Models.TimeZone;
using Ryujinx.Graphics.OpenGL;
namespace Ryujinx.Ava.UI.ViewModels
{
@ -112,7 +111,7 @@ namespace Ryujinx.Ava.UI.ViewModels
OnPropertyChanged();
}
}
public bool IsOpenGLAvailable => !OperatingSystem.IsMacOS();
public bool IsHypervisorAvailable => OperatingSystem.IsMacOS() && RuntimeInformation.ProcessArchitecture == Architecture.Arm64;
@ -216,9 +215,9 @@ namespace Ryujinx.Ava.UI.ViewModels
OnPropertyChanged(nameof(IsOpenGLSelected));
}
}
public bool IsOpenGLSelected => !IsVulkanSelected;
public int ScalingFilter
{
get => _scalingFilter;

View file

@ -57,7 +57,7 @@ namespace Ryujinx.Graphics.Gpu
/// Enables or disables the shader cache.
/// </summary>
public static bool EnableShaderCache;
/// <summary>
/// Enables or disables Spir-V on OpenGL.
/// </summary>

View file

@ -101,7 +101,7 @@ namespace Ryujinx.Graphics.Gpu.Shader
_programsToSaveQueue = new Queue<ProgramToSave>();
string diskCacheTitleId = GetDiskCachePath();
_computeShaderCache = new ComputeShaderCacheHashTable();
_graphicsShaderCache = new ShaderCacheHashTable();
_diskCacheHostStorage = new DiskCacheHostStorage(diskCacheTitleId);
@ -160,7 +160,7 @@ namespace Ryujinx.Graphics.Gpu.Shader
{
Logger.Warning?.PrintMsg(LogClass.Gpu, $"Spir-V Not Available on OpenGL for your GPU");
}
if (_diskCacheHostStorage.CacheEnabled)
{
ParallelDiskCacheLoader loader = new(
@ -724,7 +724,7 @@ namespace Ryujinx.Graphics.Gpu.Shader
_ => 0,
};
}
/// <summary>
/// Creates shader translation options with the requested graphics API and flags.
/// The shader language is choosen based on the current configuration and graphics API.

View file

@ -175,7 +175,7 @@ namespace Ryujinx.Ui.Common.Configuration
/// Enables or disables Shader cache
/// </summary>
public bool EnableShaderCache { get; set; }
/// <summary>
/// Enables or disables Spir-V Shaders on OpenGL
/// </summary>

View file

@ -474,7 +474,7 @@ namespace Ryujinx.Ui.Common.Configuration
/// Enables or disables Shader cache
/// </summary>
public ReactiveObject<bool> EnableShaderCache { get; private set; }
/// <summary>
/// Enables or disables Spir-V Shaders on OpenGL
/// </summary>
@ -1417,7 +1417,7 @@ namespace Ryujinx.Ui.Common.Configuration
configurationFileUpdated = true;
}
if (configurationFileFormat.Version < 49)
{
Ryujinx.Common.Logging.Logger.Warning?.Print(LogClass.Application, $"Outdated configuration version {configurationFileFormat.Version}, migrating to version 48.");

View file

@ -250,7 +250,7 @@ namespace Ryujinx.Ui.Windows
{
_shaderCacheToggle.Click();
}
if (ConfigurationState.Instance.Graphics.EnableOGLSpirV)
{
_enableOGLSpirV.Click();