mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-27 11:03:04 +00:00
24 lines
670 B
C#
24 lines
670 B
C#
|
using Ryujinx.Graphics.Shader.Instructions;
|
||
|
|
||
|
namespace Ryujinx.Graphics.Shader.Decoders
|
||
|
{
|
||
|
class OpCodeFArith : OpCodeAlu, IOpCodeFArith
|
||
|
{
|
||
|
public RoundingMode RoundingMode { get; }
|
||
|
|
||
|
public FmulScale Scale { get; }
|
||
|
|
||
|
public bool FlushToZero { get; }
|
||
|
public bool AbsoluteA { get; }
|
||
|
|
||
|
public OpCodeFArith(InstEmitter emitter, ulong address, long opCode) : base(emitter, address, opCode)
|
||
|
{
|
||
|
RoundingMode = (RoundingMode)opCode.Extract(39, 2);
|
||
|
|
||
|
Scale = (FmulScale)opCode.Extract(41, 3);
|
||
|
|
||
|
FlushToZero = opCode.Extract(44);
|
||
|
AbsoluteA = opCode.Extract(46);
|
||
|
}
|
||
|
}
|
||
|
}
|