aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Image/TextureGroup.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2023-02-08 10:19:43 -0300
committerGitHub <noreply@github.com>2023-02-08 14:19:43 +0100
commit26bf13a65d6689601593a8050970d6835fd9dfe2 (patch)
treec9ff9bd67a82728f3dc46b6175ac7eb1df38d2f2 /Ryujinx.Graphics.Gpu/Image/TextureGroup.cs
parent96cf242bcf168b9f9e6a1e27200529466217f396 (diff)
Limit texture cache based on total texture size (#4350)1.1.606
* Limit texture cache based on total texture size * Formatting
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image/TextureGroup.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/Image/TextureGroup.cs26
1 files changed, 0 insertions, 26 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/TextureGroup.cs b/Ryujinx.Graphics.Gpu/Image/TextureGroup.cs
index 896e11a5..942fa2f8 100644
--- a/Ryujinx.Graphics.Gpu/Image/TextureGroup.cs
+++ b/Ryujinx.Graphics.Gpu/Image/TextureGroup.cs
@@ -435,32 +435,6 @@ namespace Ryujinx.Graphics.Gpu.Image
}
/// <summary>
- /// Checks if a texture was modified by the GPU.
- /// </summary>
- /// <param name="texture">The texture to be checked</param>
- /// <returns>True if any region of the texture was modified by the GPU, false otherwise</returns>
- public bool AnyModified(Texture texture)
- {
- bool anyModified = false;
-
- EvaluateRelevantHandles(texture, (baseHandle, regionCount, split) =>
- {
- for (int i = 0; i < regionCount; i++)
- {
- TextureGroupHandle group = _handles[baseHandle + i];
-
- if (group.Modified)
- {
- anyModified = true;
- break;
- }
- }
- });
-
- return anyModified;
- }
-
- /// <summary>
/// Flush modified ranges for a given texture.
/// </summary>
/// <param name="texture">The texture being used</param>