mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-12 13:49:12 +00:00
Fix Formatting
This commit is contained in:
parent
486aaf8e5e
commit
68378caa69
6 changed files with 11 additions and 12 deletions
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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.");
|
||||
|
|
|
@ -250,7 +250,7 @@ namespace Ryujinx.Ui.Windows
|
|||
{
|
||||
_shaderCacheToggle.Click();
|
||||
}
|
||||
|
||||
|
||||
if (ConfigurationState.Instance.Graphics.EnableOGLSpirV)
|
||||
{
|
||||
_enableOGLSpirV.Click();
|
||||
|
|
Loading…
Reference in a new issue