Fix D2D1 generator error when checking for simple inputs

このコミットが含まれているのは:
Sergio Pedri committed 2022-04-24 21:04:33 +02:00
1 親 e1d823a833
コミット f7612b587e
3ファイル変更
+9 -9

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

+2 -1
ファイルの表示
@@ -71,14 +71,15 @@ public sealed partial class ID2D1ShaderGenerator : IIncrementalGenerator
item.Right,
item.Left.Syntax,
item.Left.Symbol,
out int inputCount,
out ImmutableArray<Diagnostic> hlslSourceDiagnostics);
token.ThrowIfCancellationRequested();
// Get the shader profile and linking info for LoadBytecode()
D2D1ShaderProfile? shaderProfile = LoadBytecode.GetShaderProfile(item.Left.Symbol);
bool isLinkingSupported = LoadBytecode.IsSimpleInputShader(item.Left.Symbol);
bool hasErrors = !dispatchDataDiagnostics.IsDefaultOrEmpty || !hlslSourceDiagnostics.IsDefaultOrEmpty;
bool isLinkingSupported = !hasErrors && LoadBytecode.IsSimpleInputShader(item.Left.Symbol, inputCount);
HlslShaderSourceInfo sourceInfo = new(
hlslSource,