mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2025-11-22 00:40:53 -05:00
Precise Float Fixes
Fixes artifacts in TOTK
This commit is contained in:
committed by
Evan Husted
parent
6f24b88e88
commit
2e5ae70b91
@@ -118,6 +118,18 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl.Instructions
|
||||
return op + expr[0];
|
||||
|
||||
case 2:
|
||||
if (operation.ForcePrecise)
|
||||
{
|
||||
var func = (inst & Instruction.Mask) switch
|
||||
{
|
||||
Instruction.Add => "PreciseFAdd",
|
||||
Instruction.Subtract => "PreciseFSub",
|
||||
Instruction.Multiply => "PreciseFMul",
|
||||
};
|
||||
|
||||
return $"{func}({expr[0]}, {expr[1]})";
|
||||
}
|
||||
|
||||
return $"{expr[0]} {op} {expr[1]}";
|
||||
|
||||
case 3:
|
||||
|
||||
Reference in New Issue
Block a user