mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-16 01:55:27 +00:00
2f16491712
* Get rid of Reflection.Emit dependency on CPU and Shader projects * Remove useless private sets * Missed those due to the alignment
32 lines
996 B
C#
32 lines
996 B
C#
using Ryujinx.Graphics.Shader.Instructions;
|
|
using System;
|
|
|
|
namespace Ryujinx.Graphics.Shader.Decoders
|
|
{
|
|
class OpCodeFArithImm32 : OpCodeAlu, IOpCodeFArith, IOpCodeImmF
|
|
{
|
|
public RoundingMode RoundingMode => RoundingMode.ToNearest;
|
|
|
|
public FPMultiplyScale Scale => FPMultiplyScale.None;
|
|
|
|
public bool FlushToZero { get; }
|
|
public bool AbsoluteA { get; }
|
|
|
|
public float Immediate { get; }
|
|
|
|
public new static OpCode Create(InstEmitter emitter, ulong address, long opCode) => new OpCodeFArithImm32(emitter, address, opCode);
|
|
|
|
public OpCodeFArithImm32(InstEmitter emitter, ulong address, long opCode) : base(emitter, address, opCode)
|
|
{
|
|
int imm = opCode.Extract(20, 32);
|
|
|
|
Immediate = BitConverter.Int32BitsToSingle(imm);
|
|
|
|
SetCondCode = opCode.Extract(52);
|
|
AbsoluteA = opCode.Extract(54);
|
|
FlushToZero = opCode.Extract(55);
|
|
|
|
Saturate = false;
|
|
}
|
|
}
|
|
} |