aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Gal/Shader/ShaderIrOperPred.cs
blob: 6c16a145d9a4b88b3c8b2c44dce881947afbe068 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
namespace Ryujinx.Graphics.Gal.Shader
{
    class ShaderIrOperPred : ShaderIrNode
    {
        public const int UnusedIndex  = 0x7;
        public const int NeverExecute = 0xf;

        public bool IsConst => Index >= UnusedIndex;

        public int Index { get; set; }

        public ShaderIrOperPred(int index)
        {
            Index = index;
        }
    }
}