aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/Decoders/OpCodePush.cs
blob: 4f00a0697e2e2f0947f6afd52be22dba71a20806 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using Ryujinx.Graphics.Shader.Instructions;
using Ryujinx.Graphics.Shader.IntermediateRepresentation;
using System.Collections.Generic;

namespace Ryujinx.Graphics.Shader.Decoders
{
    class OpCodePush : OpCodeBranch
    {
        public Dictionary<OpCodeBranchPop, Operand> PopOps { get; }

        public new static OpCode Create(InstEmitter emitter, ulong address, long opCode) => new OpCodePush(emitter, address, opCode);

        public OpCodePush(InstEmitter emitter, ulong address, long opCode) : base(emitter, address, opCode)
        {
            PopOps = new Dictionary<OpCodeBranchPop, Operand>();

            Predicate = new Register(RegisterConsts.PredicateTrueIndex, RegisterType.Predicate);

            InvertPredicate = false;

            PushTarget = true;
        }
    }
}