diff --git a/src/Ryujinx.Graphics.Metal/EncoderState.cs b/src/Ryujinx.Graphics.Metal/EncoderState.cs index 54f30e985e..81cc7d3bf5 100644 --- a/src/Ryujinx.Graphics.Metal/EncoderState.cs +++ b/src/Ryujinx.Graphics.Metal/EncoderState.cs @@ -78,7 +78,7 @@ namespace Ryujinx.Graphics.Metal public EncoderState() { } - public EncoderState Clone() + public readonly EncoderState Clone() { // Certain state (like viewport and scissor) doesn't need to be cloned, as it is always reacreated when assigned to EncoderState clone = this; diff --git a/src/Ryujinx.Graphics.Metal/Window.cs b/src/Ryujinx.Graphics.Metal/Window.cs index 67585f1806..38ee6459ba 100644 --- a/src/Ryujinx.Graphics.Metal/Window.cs +++ b/src/Ryujinx.Graphics.Metal/Window.cs @@ -18,16 +18,16 @@ namespace Ryujinx.Graphics.Metal private int _width; private int _height; - private bool _vsyncEnabled; + // private bool _vsyncEnabled; private AntiAliasing _currentAntiAliasing; private bool _updateEffect; private IPostProcessingEffect _effect; private IScalingFilter _scalingFilter; private bool _isLinear; - private float _scalingFilterLevel; + // private float _scalingFilterLevel; private bool _updateScalingFilter; private ScalingFilter _currentScalingFilter; - private bool _colorSpacePassthroughEnabled; + // private bool _colorSpacePassthroughEnabled; public Window(MetalRenderer renderer, CAMetalLayer metalLayer) { @@ -119,7 +119,7 @@ namespace Ryujinx.Graphics.Metal public void ChangeVSyncMode(bool vsyncEnabled) { - _vsyncEnabled = vsyncEnabled; + // _vsyncEnabled = vsyncEnabled; } public void SetAntiAliasing(AntiAliasing effect) @@ -148,13 +148,13 @@ namespace Ryujinx.Graphics.Metal public void SetScalingFilterLevel(float level) { - _scalingFilterLevel = level; + // _scalingFilterLevel = level; _updateScalingFilter = true; } public void SetColorSpacePassthrough(bool colorSpacePassThroughEnabled) { - _colorSpacePassthroughEnabled = colorSpacePassThroughEnabled; + // _colorSpacePassthroughEnabled = colorSpacePassThroughEnabled; } private void UpdateEffect() @@ -177,7 +177,7 @@ namespace Ryujinx.Graphics.Metal case AntiAliasing.SmaaMedium: case AntiAliasing.SmaaHigh: case AntiAliasing.SmaaUltra: - var quality = _currentAntiAliasing - AntiAliasing.SmaaLow; + // var quality = _currentAntiAliasing - AntiAliasing.SmaaLow; Logger.Warning?.PrintMsg(LogClass.Gpu, "SMAA not implemented for Metal backend!"); break; }