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})";
}
Logger.Warning?.Print(LogClass.Gpu, $"Invalid reinterpret cast from \"{srcType}\" to \"{dstType}\".");
// TODO: Make this an error again
return $"INVALID CAST ({expr})";
throw new ArgumentException($"Invalid reinterpret cast from \"{srcType}\" to \"{dstType}\".");
}
private static string ReinterpretBoolToInt(string expr, IAstNode node, AggregateType dstType)