mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-27 02:53:04 +00:00
Make dotnet format happy
This commit is contained in:
parent
e423f81155
commit
dc01de61cd
2 changed files with 8 additions and 8 deletions
|
@ -78,7 +78,7 @@ namespace Ryujinx.Graphics.Metal
|
||||||
|
|
||||||
public EncoderState() { }
|
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
|
// Certain state (like viewport and scissor) doesn't need to be cloned, as it is always reacreated when assigned to
|
||||||
EncoderState clone = this;
|
EncoderState clone = this;
|
||||||
|
|
|
@ -18,16 +18,16 @@ namespace Ryujinx.Graphics.Metal
|
||||||
|
|
||||||
private int _width;
|
private int _width;
|
||||||
private int _height;
|
private int _height;
|
||||||
private bool _vsyncEnabled;
|
// private bool _vsyncEnabled;
|
||||||
private AntiAliasing _currentAntiAliasing;
|
private AntiAliasing _currentAntiAliasing;
|
||||||
private bool _updateEffect;
|
private bool _updateEffect;
|
||||||
private IPostProcessingEffect _effect;
|
private IPostProcessingEffect _effect;
|
||||||
private IScalingFilter _scalingFilter;
|
private IScalingFilter _scalingFilter;
|
||||||
private bool _isLinear;
|
private bool _isLinear;
|
||||||
private float _scalingFilterLevel;
|
// private float _scalingFilterLevel;
|
||||||
private bool _updateScalingFilter;
|
private bool _updateScalingFilter;
|
||||||
private ScalingFilter _currentScalingFilter;
|
private ScalingFilter _currentScalingFilter;
|
||||||
private bool _colorSpacePassthroughEnabled;
|
// private bool _colorSpacePassthroughEnabled;
|
||||||
|
|
||||||
public Window(MetalRenderer renderer, CAMetalLayer metalLayer)
|
public Window(MetalRenderer renderer, CAMetalLayer metalLayer)
|
||||||
{
|
{
|
||||||
|
@ -119,7 +119,7 @@ namespace Ryujinx.Graphics.Metal
|
||||||
|
|
||||||
public void ChangeVSyncMode(bool vsyncEnabled)
|
public void ChangeVSyncMode(bool vsyncEnabled)
|
||||||
{
|
{
|
||||||
_vsyncEnabled = vsyncEnabled;
|
// _vsyncEnabled = vsyncEnabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetAntiAliasing(AntiAliasing effect)
|
public void SetAntiAliasing(AntiAliasing effect)
|
||||||
|
@ -148,13 +148,13 @@ namespace Ryujinx.Graphics.Metal
|
||||||
|
|
||||||
public void SetScalingFilterLevel(float level)
|
public void SetScalingFilterLevel(float level)
|
||||||
{
|
{
|
||||||
_scalingFilterLevel = level;
|
// _scalingFilterLevel = level;
|
||||||
_updateScalingFilter = true;
|
_updateScalingFilter = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetColorSpacePassthrough(bool colorSpacePassThroughEnabled)
|
public void SetColorSpacePassthrough(bool colorSpacePassThroughEnabled)
|
||||||
{
|
{
|
||||||
_colorSpacePassthroughEnabled = colorSpacePassThroughEnabled;
|
// _colorSpacePassthroughEnabled = colorSpacePassThroughEnabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateEffect()
|
private void UpdateEffect()
|
||||||
|
@ -177,7 +177,7 @@ namespace Ryujinx.Graphics.Metal
|
||||||
case AntiAliasing.SmaaMedium:
|
case AntiAliasing.SmaaMedium:
|
||||||
case AntiAliasing.SmaaHigh:
|
case AntiAliasing.SmaaHigh:
|
||||||
case AntiAliasing.SmaaUltra:
|
case AntiAliasing.SmaaUltra:
|
||||||
var quality = _currentAntiAliasing - AntiAliasing.SmaaLow;
|
// var quality = _currentAntiAliasing - AntiAliasing.SmaaLow;
|
||||||
Logger.Warning?.PrintMsg(LogClass.Gpu, "SMAA not implemented for Metal backend!");
|
Logger.Warning?.PrintMsg(LogClass.Gpu, "SMAA not implemented for Metal backend!");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue