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

View file

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

View file

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

View file

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