aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/Decoders/FPType.cs
blob: b5af2c1d24ecf557f78bfce4b6dea2b8427dc63b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using Ryujinx.Graphics.Shader.IntermediateRepresentation;

namespace Ryujinx.Graphics.Shader.Decoders
{
    enum FPType
    {
        FP16 = 1,
        FP32 = 2,
        FP64 = 3
    }

    static class FPTypeExtensions
    {
        public static Instruction ToInstFPType(this FPType type)
        {
            return type == FPType.FP64 ? Instruction.FP64 : Instruction.FP32;
        }
    }
}