FPType.cs 396 B

12345678910111213141516171819
  1. using Ryujinx.Graphics.Shader.IntermediateRepresentation;
  2. namespace Ryujinx.Graphics.Shader.Decoders
  3. {
  4. enum FPType
  5. {
  6. FP16 = 1,
  7. FP32 = 2,
  8. FP64 = 3
  9. }
  10. static class FPTypeExtensions
  11. {
  12. public static Instruction ToInstFPType(this FPType type)
  13. {
  14. return type == FPType.FP64 ? Instruction.FP64 : Instruction.FP32;
  15. }
  16. }
  17. }