Remove Half Conversion (#4106)

* Remove HalfConversion

* Update `CodeGenVersion`
This commit is contained in:
Isaac Marovitz 2022-12-14 19:13:23 -05:00 committed by GitHub
parent 0f50de72be
commit 8ac53c66b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 49 deletions

View file

@ -262,7 +262,7 @@ namespace Ryujinx.Graphics.Shader.Translation.Optimizations
value = (value >> operation.Index * 16) & 0xffff;
operation.TurnIntoCopy(ConstF(HalfConversion.HalfToSingle(value)));
operation.TurnIntoCopy(ConstF((float)BitConverter.UInt16BitsToHalf((ushort)value)));
}
private static void FPNegate(Operation operation)