mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-11-19 17:21:15 +01:00
Support single precision contants for double precision operations (#1673)
This commit is contained in:
1 parent
a16f201a6f
commit
ce9105a130
1 file changed
+1
-1
@@ -10,7 +10,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl
|
|||||||
|
|
||||||
public static bool TryFormat(int value, VariableType dstType, out string formatted)
|
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);
|
return TryFormatFloat(BitConverter.Int32BitsToSingle(value), out formatted);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user