mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-01 12:30:00 +02:00
Support single precision contants for double precision operations (#1673)
This commit is contained in:
parent
a16f201a6f
commit
ce9105a130
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue