SetMmeShadowRamControlMode.cs
1 namespace Ryujinx.Graphics.Gpu.Engine 2 { 3 /// <summary> 4 /// MME shadow RAM control mode. 5 /// </summary> 6 enum SetMmeShadowRamControlMode 7 { 8 MethodTrack = 0, 9 MethodTrackWithFilter = 1, 10 MethodPassthrough = 2, 11 MethodReplay = 3, 12 } 13 14 static class SetMmeShadowRamControlModeExtensions 15 { 16 public static bool IsTrack(this SetMmeShadowRamControlMode mode) 17 { 18 return mode == SetMmeShadowRamControlMode.MethodTrack || mode == SetMmeShadowRamControlMode.MethodTrackWithFilter; 19 } 20 21 public static bool IsPassthrough(this SetMmeShadowRamControlMode mode) 22 { 23 return mode == SetMmeShadowRamControlMode.MethodPassthrough; 24 } 25 26 public static bool IsReplay(this SetMmeShadowRamControlMode mode) 27 { 28 return mode == SetMmeShadowRamControlMode.MethodReplay; 29 } 30 } 31 }