Wire up [D2D1CompileOptions] to [D2D1EmbeddedBytecode]

このコミットが含まれているのは:
Sergio Pedri committed 2022-05-22 01:50:14 +02:00
1 親 0bfe836a4e
コミット b4b8b76d2f
6ファイル変更
+42 -13

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

+2 -2
ファイルの表示
@@ -92,9 +92,9 @@ public sealed partial class ID2D1ShaderGenerator : IIncrementalGenerator
token.ThrowIfCancellationRequested();
// Get the shader profile and linking info for LoadBytecode()
bool isLinkingSupported = LoadBytecode.IsSimpleInputShader(item.Left.Symbol, inputCount);
D2D1ShaderProfile? shaderProfile = LoadBytecode.GetShaderProfile(item.Left.Symbol);
D2D1CompileOptions? compileOptions = LoadBytecode.GetCompileOptions(diagnostics, item.Left.Symbol);
bool isLinkingSupported = diagnostics.Count == 0 && LoadBytecode.IsSimpleInputShader(item.Left.Symbol, inputCount);
D2D1CompileOptions? compileOptions = LoadBytecode.GetCompileOptions(diagnostics, item.Left.Symbol, isLinkingSupported);
HlslShaderSourceInfo sourceInfo = new(
hlslSource,