mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-29 22:36:00 +00:00
f460ecc182
* 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 😔
* Address Feedback
31 lines
904 B
C#
31 lines
904 B
C#
namespace Ryujinx.Graphics.Gpu.Engine
|
|
{
|
|
/// <summary>
|
|
/// MME shadow RAM control mode.
|
|
/// </summary>
|
|
enum SetMmeShadowRamControlMode
|
|
{
|
|
MethodTrack = 0,
|
|
MethodTrackWithFilter = 1,
|
|
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;
|
|
}
|
|
}
|
|
}
|