diff options
Diffstat (limited to 'src/Ryujinx.Graphics.Gpu/Engine/SetMmeShadowRamControlMode.cs')
-rw-r--r-- | src/Ryujinx.Graphics.Gpu/Engine/SetMmeShadowRamControlMode.cs | 18 |
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; + } + } } |