Add HlslBytecodeSyntaxProcessor shared helper type

このコミットが含まれているのは:
Sergio Pedri committed 2023-12-17 13:31:17 +01:00
1 親 ef821be2b2
コミット 2a519c3f51
11ファイル変更
+284 -22

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

@@ -265,7 +265,7 @@ partial class D2DPixelShaderDescriptorGenerator
else if (info is HlslBytecodeInfo.CompilerError fxcError)
{
diagnostic = DiagnosticInfo.Create(
HlslBytecodeFailedWithFxcCompilationException,
HlslBytecodeFailedWithCompilationException,
structDeclarationSymbol,
structDeclarationSymbol,
fxcError.Message);
@@ -304,14 +304,14 @@ partial class D2DPixelShaderDescriptorGenerator
if (!hasD2DRequiresDoublePrecisionSupportAttribute && success.RequiresDoublePrecisionSupport)
{
diagnostics.Add(DiagnosticInfo.Create(
MissingD2DRequiresDoublePrecisionSupportAttribute,
MissingRequiresDoublePrecisionSupportAttribute,
structDeclarationSymbol,
structDeclarationSymbol));
}
else if (hasD2DRequiresDoublePrecisionSupportAttribute && !success.RequiresDoublePrecisionSupport)
{
diagnostics.Add(DiagnosticInfo.Create(
UnnecessaryD2DRequiresDoublePrecisionSupportAttribute,
UnnecessaryRequiresDoublePrecisionSupportAttribute,
attributeData!.GetLocation(),
structDeclarationSymbol));
}