mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-03 02:37:11 +02:00
[Ryujinx.Graphics.Vic] Address dotnet-format issues (#5374)
* dotnet format style --severity info Some changes were manually reverted. * Restore a few unused methods and variables * Address review comments * Address most dotnet format whitespace warnings * Add comments to disabled warnings * Address IDE0251 warnings * dotnet format whitespace after rebase * Remove SuppressMessage attribute for removed rule
This commit is contained in:
parent
bddb2a1483
commit
bc53d00463
19 changed files with 62 additions and 59 deletions
|
@ -2,10 +2,10 @@
|
|||
|
||||
namespace Ryujinx.Graphics.Vic.Types
|
||||
{
|
||||
struct BlendingSlotStruct
|
||||
readonly struct BlendingSlotStruct
|
||||
{
|
||||
private long _word0;
|
||||
private long _word1;
|
||||
private readonly long _word0;
|
||||
private readonly long _word1;
|
||||
|
||||
public int AlphaK1 => (int)_word0.Extract(0, 10);
|
||||
public int AlphaK2 => (int)_word0.Extract(16, 10);
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
namespace Ryujinx.Graphics.Vic.Types
|
||||
{
|
||||
struct ClearRectStruct
|
||||
readonly struct ClearRectStruct
|
||||
{
|
||||
#pragma warning disable CS0649
|
||||
private long _word0;
|
||||
private long _word1;
|
||||
#pragma warning disable CS0649 // Field is never assigned to
|
||||
private readonly long _word0;
|
||||
private readonly long _word1;
|
||||
#pragma warning restore CS0649
|
||||
|
||||
public int ClearRect0Left => (int)_word0.Extract(0, 14);
|
||||
|
|
|
@ -4,7 +4,7 @@ namespace Ryujinx.Graphics.Vic.Types
|
|||
{
|
||||
struct ConfigStruct
|
||||
{
|
||||
#pragma warning disable CS0649
|
||||
#pragma warning disable CS0649 // Field is never assigned to
|
||||
public PipeConfig PipeConfig;
|
||||
public OutputConfig OutputConfig;
|
||||
public OutputSurfaceConfig OutputSurfaceConfig;
|
||||
|
|
|
@ -9,4 +9,4 @@ namespace Ryujinx.Graphics.Vic.Types
|
|||
Disi1,
|
||||
WeaveLumaBobFieldChroma
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -76,4 +76,4 @@ namespace Ryujinx.Graphics.Vic.Types
|
|||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
namespace Ryujinx.Graphics.Vic.Types
|
||||
{
|
||||
struct LumaKeyStruct
|
||||
readonly struct LumaKeyStruct
|
||||
{
|
||||
private long _word0;
|
||||
private long _word1;
|
||||
private readonly long _word0;
|
||||
private readonly long _word1;
|
||||
|
||||
public int LumaCoeff0 => (int)_word0.Extract(0, 20);
|
||||
public int LumaCoeff1 => (int)_word0.Extract(20, 20);
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
namespace Ryujinx.Graphics.Vic.Types
|
||||
{
|
||||
struct MatrixStruct
|
||||
readonly struct MatrixStruct
|
||||
{
|
||||
private long _word0;
|
||||
private long _word1;
|
||||
private long _word2;
|
||||
private long _word3;
|
||||
private readonly long _word0;
|
||||
private readonly long _word1;
|
||||
private readonly long _word2;
|
||||
private readonly long _word3;
|
||||
|
||||
public int MatrixCoeff00 => (int)_word0.ExtractSx(0, 20);
|
||||
public int MatrixCoeff10 => (int)_word0.ExtractSx(20, 20);
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
namespace Ryujinx.Graphics.Vic.Types
|
||||
{
|
||||
struct OutputConfig
|
||||
readonly struct OutputConfig
|
||||
{
|
||||
#pragma warning disable CS0649
|
||||
private long _word0;
|
||||
private long _word1;
|
||||
#pragma warning disable CS0649 // Field is never assigned to
|
||||
private readonly long _word0;
|
||||
private readonly long _word1;
|
||||
#pragma warning restore CS0649
|
||||
|
||||
public int AlphaFillMode => (int)_word0.Extract(0, 3);
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
namespace Ryujinx.Graphics.Vic.Types
|
||||
{
|
||||
struct OutputSurfaceConfig
|
||||
readonly struct OutputSurfaceConfig
|
||||
{
|
||||
#pragma warning disable CS0649
|
||||
private long _word0;
|
||||
private long _word1;
|
||||
#pragma warning disable CS0649 // Field is never assigned to
|
||||
private readonly long _word0;
|
||||
private readonly long _word1;
|
||||
#pragma warning restore CS0649
|
||||
|
||||
public PixelFormat OutPixelFormat => (PixelFormat)_word0.Extract(0, 7);
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
namespace Ryujinx.Graphics.Vic.Types
|
||||
{
|
||||
struct PipeConfig
|
||||
readonly struct PipeConfig
|
||||
{
|
||||
#pragma warning disable CS0169, CS0649
|
||||
private long _word0;
|
||||
private long _word1;
|
||||
#pragma warning restore CS0169, CS0649
|
||||
#pragma warning disable CS0169, CS0649, IDE0051 // Remove unused private member
|
||||
private readonly long _word0;
|
||||
private readonly long _word1;
|
||||
#pragma warning restore CS0169, CS0649, IDE0051
|
||||
|
||||
public int DownsampleHoriz => (int)_word0.Extract(0, 11);
|
||||
public int DownsampleVert => (int)_word0.Extract(16, 11);
|
||||
|
|
|
@ -2,16 +2,18 @@
|
|||
|
||||
namespace Ryujinx.Graphics.Vic.Types
|
||||
{
|
||||
struct SlotConfig
|
||||
readonly struct SlotConfig
|
||||
{
|
||||
private long _word0;
|
||||
private long _word1;
|
||||
private long _word2;
|
||||
private long _word3;
|
||||
private long _word4;
|
||||
private long _word5;
|
||||
private long _word6;
|
||||
private long _word7;
|
||||
private readonly long _word0;
|
||||
private readonly long _word1;
|
||||
private readonly long _word2;
|
||||
private readonly long _word3;
|
||||
private readonly long _word4;
|
||||
private readonly long _word5;
|
||||
private readonly long _word6;
|
||||
#pragma warning disable IDE0051 // Remove unused private member
|
||||
private readonly long _word7;
|
||||
#pragma warning restore IDE0051
|
||||
|
||||
public bool SlotEnable => _word0.Extract(0);
|
||||
public bool DeNoise => _word0.Extract(1);
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
namespace Ryujinx.Graphics.Vic.Types
|
||||
{
|
||||
struct SlotSurfaceConfig
|
||||
readonly struct SlotSurfaceConfig
|
||||
{
|
||||
private long _word0;
|
||||
private long _word1;
|
||||
private readonly long _word0;
|
||||
private readonly long _word1;
|
||||
|
||||
public PixelFormat SlotPixelFormat => (PixelFormat)_word0.Extract(0, 7);
|
||||
public int SlotChromaLocHoriz => (int)_word0.Extract(7, 2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue