Add InvalidShaderTypeCompileOptionsAnalyzer

このコミットが含まれているのは:
Sergio Pedri committed 2023-12-31 16:03:25 +01:00
1 親 f470910d62
コミット a66ebfe8dc
3ファイル変更
+64 -16

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

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