aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.GAL/Target.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2022-06-05 14:06:47 -0300
committerGitHub <noreply@github.com>2022-06-05 14:06:47 -0300
commita3e7bb8eb40b66e61a5a3bfef0b780d0c76a31c1 (patch)
tree4484bdd53aae7c5b6a0668cd584fafc5e0bd0bc4 /Ryujinx.Graphics.GAL/Target.cs
parent2073ba29197be4fcdcd750db7e7b8a36110efd71 (diff)
Copy dependency for multisample and non-multisample textures (#3382)1.1.139
* Use copy dependency for textures that differs in multisample but are otherwise compatible * Remove allowMs flag as it's no longer required for correctness, it's just an optimization now * Dispose intermmediate pool
Diffstat (limited to 'Ryujinx.Graphics.GAL/Target.cs')
-rw-r--r--Ryujinx.Graphics.GAL/Target.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.GAL/Target.cs b/Ryujinx.Graphics.GAL/Target.cs
index a62d628a..e20bd3c8 100644
--- a/Ryujinx.Graphics.GAL/Target.cs
+++ b/Ryujinx.Graphics.GAL/Target.cs
@@ -13,4 +13,12 @@ namespace Ryujinx.Graphics.GAL
CubemapArray,
TextureBuffer
}
+
+ public static class TargetExtensions
+ {
+ public static bool IsMultisample(this Target target)
+ {
+ return target == Target.Texture2DMultisample || target == Target.Texture2DMultisampleArray;
+ }
+ }
} \ No newline at end of file