aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Vic/Image/InputSurface.cs
diff options
context:
space:
mode:
authorTSRBerry <20988865+TSRBerry@users.noreply.github.com>2023-06-25 18:37:09 +0200
committerGitHub <noreply@github.com>2023-06-25 18:37:09 +0200
commitbc53d0046310293a90a4312fa9317bb698dded5c (patch)
tree1cb49891f7f116f2a872eca9a433102005007033 /src/Ryujinx.Graphics.Vic/Image/InputSurface.cs
parentbddb2a148355ef2ce326d47e8e5217bd8af36a98 (diff)
[Ryujinx.Graphics.Vic] Address dotnet-format issues (#5374)1.1.913
* 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
Diffstat (limited to 'src/Ryujinx.Graphics.Vic/Image/InputSurface.cs')
-rw-r--r--src/Ryujinx.Graphics.Vic/Image/InputSurface.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Ryujinx.Graphics.Vic/Image/InputSurface.cs b/src/Ryujinx.Graphics.Vic/Image/InputSurface.cs
index 15ac0460..04994468 100644
--- a/src/Ryujinx.Graphics.Vic/Image/InputSurface.cs
+++ b/src/Ryujinx.Graphics.Vic/Image/InputSurface.cs
@@ -4,7 +4,7 @@ namespace Ryujinx.Graphics.Vic.Image
{
ref struct RentedBuffer
{
- public static RentedBuffer Empty => new RentedBuffer(Span<byte>.Empty, -1);
+ public static RentedBuffer Empty => new(Span<byte>.Empty, -1);
public Span<byte> Data;
public int Index;
@@ -15,7 +15,7 @@ namespace Ryujinx.Graphics.Vic.Image
Index = index;
}
- public void Return(BufferPool<byte> pool)
+ public readonly void Return(BufferPool<byte> pool)
{
if (Index != -1)
{
@@ -65,7 +65,7 @@ namespace Ryujinx.Graphics.Vic.Image
Buffer2Index = buffer.Index;
}
- public void Return(BufferPool<byte> pool)
+ public readonly void Return(BufferPool<byte> pool)
{
if (Buffer0Index != -1)
{