aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/Decoders/OpCodePush.cs
blob: a7657bcf8e83563a43e9f4578788870f66714054 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 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;
        }
    }
}