0
0
Fork 0
mirror of https://github.com/GreemDev/Ryujinx.git synced 2024-12-23 13:55:47 +00:00

Make TypeConversion failure an error

This commit is contained in:
Isaac Marovitz 2024-03-19 16:16:00 -04:00 committed by Isaac Marovitz
parent 84a8edf675
commit bdd9ede4fd

View file

@ -78,9 +78,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl
return $"uint({expr})"; return $"uint({expr})";
} }
Logger.Warning?.Print(LogClass.Gpu, $"Invalid reinterpret cast from \"{srcType}\" to \"{dstType}\"."); throw new ArgumentException($"Invalid reinterpret cast from \"{srcType}\" to \"{dstType}\".");
// TODO: Make this an error again
return $"INVALID CAST ({expr})";
} }
private static string ReinterpretBoolToInt(string expr, IAstNode node, AggregateType dstType) private static string ReinterpretBoolToInt(string expr, IAstNode node, AggregateType dstType)