aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/Translation
diff options
context:
space:
mode:
authorgdk <gab.dark.100@gmail.com>2019-11-26 01:00:58 -0300
committerThog <thog@protonmail.com>2020-01-09 02:13:00 +0100
commit99f236fcf03e4304a91df70c3545b9b79ff15942 (patch)
tree2ef9768b932f3fa09efe66340f4e6f32a6130b76 /Ryujinx.Graphics.Shader/Translation
parentb8528c6317423d91aefe12d927466df0c09cc172 (diff)
Simplified F2I shader instruction codegen
Diffstat (limited to 'Ryujinx.Graphics.Shader/Translation')
-rw-r--r--Ryujinx.Graphics.Shader/Translation/EmitterContextInsts.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Ryujinx.Graphics.Shader/Translation/EmitterContextInsts.cs b/Ryujinx.Graphics.Shader/Translation/EmitterContextInsts.cs
index c55e3430..df8867e9 100644
--- a/Ryujinx.Graphics.Shader/Translation/EmitterContextInsts.cs
+++ b/Ryujinx.Graphics.Shader/Translation/EmitterContextInsts.cs
@@ -206,11 +206,6 @@ namespace Ryujinx.Graphics.Shader.Translation
return context.Add(Instruction.FP | Instruction.Ceiling, Local(), a);
}
- public static Operand FPClamp(this EmitterContext context, Operand a, Operand b, Operand c)
- {
- return context.Add(Instruction.FP | Instruction.Clamp, Local(), a, b, c);
- }
-
public static Operand FPCompareEqual(this EmitterContext context, Operand a, Operand b)
{
return context.Add(Instruction.FP | Instruction.CompareEqual, Local(), a, b);
@@ -226,6 +221,11 @@ namespace Ryujinx.Graphics.Shader.Translation
return context.Add(Instruction.ConvertFPToS32, Local(), a);
}
+ public static Operand FPConvertToU32(this EmitterContext context, Operand a)
+ {
+ return context.Add(Instruction.ConvertFPToU32, Local(), a);
+ }
+
public static Operand FPCosine(this EmitterContext context, Operand a)
{
return context.Add(Instruction.FP | Instruction.Cosine, Local(), a);