Add diagnostic for invalid return type
このコミットが含まれているのは:
1 親
7576cc3045
コミット
140aa10a12
7ファイル変更
+113
-27
検索条件に一致するファイルはありません
@@ -41,6 +41,7 @@ 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? invalidReturnType = Execute.GetInvalidReturnType(diagnostics, item.Symbol);
|
||||
string hlslSource = Execute.GetHlslSource(diagnostics, item.Symbol);
|
||||
D2D1ShaderProfile shaderProfile = Execute.GetShaderProfile(diagnostics, item.Symbol);
|
||||
D2D1CompileOptions compileOptions = Execute.GetCompileOptions(diagnostics, item.Symbol);
|
||||
@@ -48,6 +49,7 @@ public sealed partial class D2DPixelShaderSourceGenerator : IIncrementalGenerato
|
||||
HlslShaderMethodSourceInfo sourceInfo = new(
|
||||
modifiers,
|
||||
methodName,
|
||||
invalidReturnType,
|
||||
hlslSource,
|
||||
shaderProfile,
|
||||
compileOptions,
|
||||
@@ -82,6 +84,7 @@ public sealed partial class D2DPixelShaderSourceGenerator : IIncrementalGenerato
|
||||
EmbeddedBytecodeMethodInfo bytecodeInfo = new(
|
||||
item.Source.Modifiers,
|
||||
item.Source.MethodName,
|
||||
item.Source.InvalidReturnType,
|
||||
item.Source.HlslSource,
|
||||
bytecode);
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする