1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-14 11:06:42 +00:00
Ryujinx/Ryujinx.Graphics/Gal/Shader/ShaderIrOperGpr.cs

23 lines
523 B
C#
Raw Normal View History

namespace Ryujinx.Graphics.Gal.Shader
{
class ShaderIrOperGpr : ShaderIrNode
{
public const int ZRIndex = 0xff;
public bool IsConst => Index == ZRIndex;
public bool IsValidRegister => (Index <= ZRIndex);
public int Index { get; set; }
public ShaderIrOperGpr(int Index)
{
this.Index = Index;
}
public static ShaderIrOperGpr MakeTemporary(int Index = 0)
{
return new ShaderIrOperGpr(0x100 + Index);
}
}
}