Improve and optimize IsSimpleInputShader helper

このコミットが含まれているのは:
Sergio Pedri committed 2023-11-21 14:37:14 +01:00
1 親 054f0d7879
コミット a736c3009d
2ファイル変更
+49 -13

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

+1 -1
ファイルの表示
@@ -145,7 +145,7 @@ public sealed partial class D2DPixelShaderDescriptorGenerator : IIncrementalGene
token.ThrowIfCancellationRequested();
// Get the shader profile and linking info for LoadBytecode()
bool isLinkingSupported = HlslBytecode.IsSimpleInputShader(typeSymbol, inputCount);
bool isLinkingSupported = HlslBytecode.IsSimpleInputShader(context.SemanticModel.Compilation, typeSymbol, inputCount);
D2D1ShaderProfile? requestedShaderProfile = HlslBytecode.GetRequestedShaderProfile(typeSymbol);
D2D1CompileOptions? requestedCompileOptions = HlslBytecode.GetRequestedCompileOptions(diagnostics, typeSymbol);
D2D1ShaderProfile effectiveShaderProfile = HlslBytecode.GetEffectiveShaderProfile(requestedShaderProfile, out bool isCompilationEnabled);