Add diagnostics for [D2DPixelShaderSource]

このコミットが含まれているのは:
Sergio Pedri committed 2022-08-18 14:26:09 +02:00
1 親 51f2642e80
コミット c998002f90
6ファイル変更
+121 -27

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

+3 -3
ファイルの表示
@@ -41,9 +41,9 @@ public sealed partial class D2DPixelShaderSourceGenerator : IIncrementalGenerato
// Get all necessary info for the current shader
ImmutableArray<SyntaxKind> modifiers = item.Syntax.Modifiers.Select(token => token.Kind()).ToImmutableArray();
string methodName = item.Symbol.Name;
string? hlslSource = Execute.GetHlslSource(diagnostics, item.Symbol) ?? "";
D2D1ShaderProfile? shaderProfile = Execute.GetShaderProfile(diagnostics, item.Symbol);
D2D1CompileOptions? compileOptions = Execute.GetCompileOptions(diagnostics, item.Symbol);
string hlslSource = Execute.GetHlslSource(diagnostics, item.Symbol);
D2D1ShaderProfile shaderProfile = Execute.GetShaderProfile(diagnostics, item.Symbol);
D2D1CompileOptions compileOptions = Execute.GetCompileOptions(diagnostics, item.Symbol);
HlslShaderMethodSourceInfo sourceInfo = new(
modifiers,