1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-11 07:42:01 +00:00

Support single precision contants for double precision operations (#1673)

This commit is contained in:
gdkchan 2020-11-06 14:54:13 -03:00 committed by GitHub
parent a16f201a6f
commit ce9105a130
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}