Add diagnostics for [D2DCompileOptions] at assembly level
このコミットが含まれているのは:
1 親
f5ea4b7911
コミット
7411c1fe0d
3ファイル変更
+79
-3
検索条件に一致するファイルはありません
@@ -116,6 +116,12 @@ public sealed partial class ID2D1ShaderGenerator : IIncrementalGenerator
|
||||
// Output the diagnostics
|
||||
context.ReportDiagnostics(shaderInfoWithErrors.Select(static (item, token) => item.Diagnostics));
|
||||
|
||||
// Get all errors for invalid [D2D1CompileOptions] attributes added to the assembly level
|
||||
IncrementalValuesProvider<Diagnostic> d2DCompileOptionsAtAssemblyLevelErrors = LoadBytecode.GetAssemblyLevelCompileOptionsDiagnostics(context.SyntaxProvider);
|
||||
|
||||
// Output the diagnostics
|
||||
context.ReportDiagnostics(d2DCompileOptionsAtAssemblyLevelErrors.Select(static (item, token) => item));
|
||||
|
||||
// Filter all items to enable caching at a coarse level, and remove diagnostics
|
||||
IncrementalValuesProvider<(HierarchyInfo Hierarchy, DispatchDataInfo Dispatch, InputTypesInfo InputTypes, HlslShaderSourceInfo Source)> shaderInfo =
|
||||
shaderInfoWithErrors
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする