aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/CodeGen
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2020-11-06 14:54:13 -0300
committerGitHub <noreply@github.com>2020-11-06 18:54:13 +0100
commitce9105a13052cd3ec1d7c10b9c9cc18f5ecc671f (patch)
treee3472390fdd995eabb0ce793de6a119aee6240a0 /Ryujinx.Graphics.Shader/CodeGen
parenta16f201a6f7bd06a3a366b622a6d6c91895e2984 (diff)
Support single precision contants for double precision operations (#1673)
Diffstat (limited to 'Ryujinx.Graphics.Shader/CodeGen')
-rw-r--r--Ryujinx.Graphics.Shader/CodeGen/Glsl/NumberFormatter.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Shader/CodeGen/Glsl/NumberFormatter.cs b/Ryujinx.Graphics.Shader/CodeGen/Glsl/NumberFormatter.cs
index 2ec44277..6d43ed0e 100644
--- a/Ryujinx.Graphics.Shader/CodeGen/Glsl/NumberFormatter.cs
+++ b/Ryujinx.Graphics.Shader/CodeGen/Glsl/NumberFormatter.cs
@@ -10,7 +10,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl
public static bool TryFormat(int value, VariableType dstType, out string formatted)
{
- if (dstType == VariableType.F32)
+ if (dstType == VariableType.F32 || dstType == VariableType.F64)
{
return TryFormatFloat(BitConverter.Int32BitsToSingle(value), out formatted);
}