SetMmeShadowRamControlMode.cs 904 B

12345678910111213141516171819202122232425262728293031
  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. static class SetMmeShadowRamControlModeExtensions
  14. {
  15. public static bool IsTrack(this SetMmeShadowRamControlMode mode)
  16. {
  17. return mode == SetMmeShadowRamControlMode.MethodTrack || mode == SetMmeShadowRamControlMode.MethodTrackWithFilter;
  18. }
  19. public static bool IsPassthrough(this SetMmeShadowRamControlMode mode)
  20. {
  21. return mode == SetMmeShadowRamControlMode.MethodPassthrough;
  22. }
  23. public static bool IsReplay(this SetMmeShadowRamControlMode mode)
  24. {
  25. return mode == SetMmeShadowRamControlMode.MethodReplay;
  26. }
  27. }
  28. }