aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Gpu/Image/TextureGroupHandle.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Graphics.Gpu/Image/TextureGroupHandle.cs')
-rw-r--r--src/Ryujinx.Graphics.Gpu/Image/TextureGroupHandle.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Ryujinx.Graphics.Gpu/Image/TextureGroupHandle.cs b/src/Ryujinx.Graphics.Gpu/Image/TextureGroupHandle.cs
index da8dd849..ef7198e8 100644
--- a/src/Ryujinx.Graphics.Gpu/Image/TextureGroupHandle.cs
+++ b/src/Ryujinx.Graphics.Gpu/Image/TextureGroupHandle.cs
@@ -22,10 +22,10 @@ namespace Ryujinx.Graphics.Gpu.Image
private const int FlushBalanceMax = 60;
private const int FlushBalanceMin = -10;
- private TextureGroup _group;
+ private readonly TextureGroup _group;
private int _bindCount;
- private int _firstLevel;
- private int _firstLayer;
+ private readonly int _firstLevel;
+ private readonly int _firstLayer;
// Sync state for texture flush.
@@ -463,8 +463,8 @@ namespace Ryujinx.Graphics.Gpu.Image
_group.HasCopyDependencies = true;
other._group.HasCopyDependencies = true;
- TextureDependency dependency = new TextureDependency(this);
- TextureDependency otherDependency = new TextureDependency(other);
+ TextureDependency dependency = new(this);
+ TextureDependency otherDependency = new(other);
dependency.Other = otherDependency;
otherDependency.Other = dependency;