2021-07-11 20:20:40 +00:00
|
|
|
namespace Ryujinx.Graphics.Gpu.Engine
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// MME shadow RAM control mode.
|
|
|
|
/// </summary>
|
|
|
|
enum SetMmeShadowRamControlMode
|
|
|
|
{
|
|
|
|
MethodTrack = 0,
|
|
|
|
MethodTrackWithFilter = 1,
|
|
|
|
MethodPassthrough = 2,
|
|
|
|
MethodReplay = 3,
|
|
|
|
}
|
2023-10-06 22:55:07 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
2023-07-02 00:47:54 +00:00
|
|
|
}
|