aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Gpu/Engine/SetMmeShadowRamControlMode.cs
diff options
context:
space:
mode:
authorriperiperi <rhy3756547@hotmail.com>2023-10-06 23:55:07 +0100
committerGitHub <noreply@github.com>2023-10-06 19:55:07 -0300
commitf460ecc1829c1b34f2198cc41528b1c6de99d976 (patch)
treeed18225f62b90b2f74ce8a940d9235e08b2517e3 /src/Ryujinx.Graphics.Gpu/Engine/SetMmeShadowRamControlMode.cs
parent086564c3c88d8006670199b3aba5977c07f16261 (diff)
GPU: Add HLE macros for popular NVN macros (#5761)
* GPU: Add HLE macros for popular NVN macros * Remove non-vector equality check The case where it's not hardware accelerated will do the check integer-wise anyways. * Whitespace :pensive: * Address Feedback
Diffstat (limited to 'src/Ryujinx.Graphics.Gpu/Engine/SetMmeShadowRamControlMode.cs')
-rw-r--r--src/Ryujinx.Graphics.Gpu/Engine/SetMmeShadowRamControlMode.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Ryujinx.Graphics.Gpu/Engine/SetMmeShadowRamControlMode.cs b/src/Ryujinx.Graphics.Gpu/Engine/SetMmeShadowRamControlMode.cs
index ebb0ff33..b9a5c74a 100644
--- a/src/Ryujinx.Graphics.Gpu/Engine/SetMmeShadowRamControlMode.cs
+++ b/src/Ryujinx.Graphics.Gpu/Engine/SetMmeShadowRamControlMode.cs
@@ -10,4 +10,22 @@ namespace Ryujinx.Graphics.Gpu.Engine
MethodPassthrough = 2,
MethodReplay = 3,
}
+
+ static class SetMmeShadowRamControlModeExtensions
+ {
+ public static bool IsTrack(this SetMmeShadowRamControlMode mode)
+ {
+ return mode == SetMmeShadowRamControlMode.MethodTrack || mode == SetMmeShadowRamControlMode.MethodTrackWithFilter;
+ }
+
+ public static bool IsPassthrough(this SetMmeShadowRamControlMode mode)
+ {
+ return mode == SetMmeShadowRamControlMode.MethodPassthrough;
+ }
+
+ public static bool IsReplay(this SetMmeShadowRamControlMode mode)
+ {
+ return mode == SetMmeShadowRamControlMode.MethodReplay;
+ }
+ }
}