예제 #1
0
        public static void Ipa(ShaderIrBlock Block, long OpCode, int Position)
        {
            ShaderIrNode OperA = OpCode.Abuf28();
            ShaderIrNode OperB = OpCode.Gpr20();

            ShaderIpaMode Mode = (ShaderIpaMode)(OpCode.Read(54, 3));

            ShaderIrMetaIpa Meta = new ShaderIrMetaIpa(Mode);

            ShaderIrOp Op = new ShaderIrOp(ShaderIrInst.Ipa, OperA, OperB, null, Meta);

            Block.AddNode(OpCode.PredNode(new ShaderIrAsg(OpCode.Gpr0(), Op)));
        }
예제 #2
0
        public static void Ipa(ShaderIrBlock block, long opCode, int position)
        {
            ShaderIrNode operA = opCode.Abuf28();
            ShaderIrNode operB = opCode.Gpr20();

            ShaderIpaMode mode = (ShaderIpaMode)(opCode.Read(54, 3));

            ShaderIrMetaIpa meta = new ShaderIrMetaIpa(mode);

            ShaderIrOp op = new ShaderIrOp(ShaderIrInst.Ipa, operA, operB, null, meta);

            block.AddNode(opCode.PredNode(new ShaderIrAsg(opCode.Gpr0(), op)));
        }