mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-01 12:30:00 +02:00
1f554c1093
* Renaming part 1 * Renaming part 2 * Renaming part 3 * Renaming part 4 * Renaming part 5 * Renaming part 6 * Renaming part 7 * Renaming part 8 * Renaming part 9 * Renaming part 10 * General cleanup * Thought I got all of these * Apply #595 * Additional renaming * Tweaks from feedback * Rename files
36 lines
No EOL
885 B
C#
36 lines
No EOL
885 B
C#
namespace Ryujinx.Graphics.Gal.Shader
|
|
{
|
|
class ShaderIrOperGpr : ShaderIrNode
|
|
{
|
|
public const int ZrIndex = 0xff;
|
|
|
|
public bool IsConst => Index == ZrIndex;
|
|
|
|
public bool IsValidRegister => (uint)Index <= ZrIndex;
|
|
|
|
public int Index { get; set; }
|
|
public int HalfPart { get; set; }
|
|
|
|
public ShaderRegisterSize RegisterSize { get; private set; }
|
|
|
|
public ShaderIrOperGpr(int index)
|
|
{
|
|
Index = index;
|
|
|
|
RegisterSize = ShaderRegisterSize.Single;
|
|
}
|
|
|
|
public ShaderIrOperGpr(int index, int halfPart)
|
|
{
|
|
Index = index;
|
|
HalfPart = halfPart;
|
|
|
|
RegisterSize = ShaderRegisterSize.Half;
|
|
}
|
|
|
|
public static ShaderIrOperGpr MakeTemporary(int index = 0)
|
|
{
|
|
return new ShaderIrOperGpr(0x100 + index);
|
|
}
|
|
}
|
|
} |