Share prettify logic for FXC error messages with generator

このコミットが含まれているのは:
Sergio Pedri committed 2023-09-28 23:15:29 +02:00
1 親 50f3b74d3c
コミット 44849d5d3e
3ファイル変更
+23 -26

検索条件に一致するファイルはありません

+2 -2
ファイルの表示
@@ -174,14 +174,14 @@ partial class D2DPixelShaderSourceGenerator
D2DPixelShaderSourceCompilationFailedWithWin32Exception,
sourceInfo.MethodName,
e.HResult,
ID2D1ShaderGenerator.LoadBytecode.FixupExceptionMessage(e.Message));
D3DCompiler.PrettifyFxcErrorMessage(e.Message));
}
catch (FxcCompilationException e)
{
diagnostic = DeferredDiagnosticInfo.Create(
D2DPixelShaderSourceCompilationFailedWithFxcCompilationException,
sourceInfo.MethodName,
ID2D1ShaderGenerator.LoadBytecode.FixupExceptionMessage(e.Message));
D3DCompiler.PrettifyFxcErrorMessage(e.Message));
}
End: