mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-15 17:45:26 +00:00
dc97457bf0
* Implement DADD, DFMA and DMUL shader instructions * Rename FP to FP32 * Correct double immediate * Classic mistake
19 lines
396 B
C#
19 lines
396 B
C#
using Ryujinx.Graphics.Shader.IntermediateRepresentation;
|
|
|
|
namespace Ryujinx.Graphics.Shader.Decoders
|
|
{
|
|
enum FPType
|
|
{
|
|
FP16 = 1,
|
|
FP32 = 2,
|
|
FP64 = 3
|
|
}
|
|
|
|
static class FPTypeExtensions
|
|
{
|
|
public static Instruction ToInstFPType(this FPType type)
|
|
{
|
|
return type == FPType.FP64 ? Instruction.FP64 : Instruction.FP32;
|
|
}
|
|
}
|
|
} |