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

namespace Ryujinx.Graphics.Shader.Decoders
{
    class OpCodeTld : OpCodeTexture
    {
        public OpCodeTld(InstEmitter emitter, ulong address, long opCode) : base(emitter, address, opCode)
        {
            HasOffset = opCode.Extract(35);

            IsMultisample = opCode.Extract(50);

            bool isLL = opCode.Extract(55);

            LodMode = isLL
                ? TextureLodMode.LodLevel
                : TextureLodMode.LodZero;
        }
    }
}