Update source generator and fix default shader profile codegen

このコミットが含まれているのは:
Sergio Pedri committed 2022-10-21 17:22:59 +02:00
1 親 b1ce0e9c43
コミット 01a80f1e33
4ファイル変更
+91 -54

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

+4 -3
ファイルの表示
@@ -239,15 +239,16 @@ public sealed partial class ID2D1ShaderGenerator : IIncrementalGenerator
ImmutableArray<byte> bytecode = LoadBytecode.GetBytecode(
item.Source,
token,
out D2D1CompileOptions options,
out D2D1ShaderProfile shaderProfile,
out D2D1CompileOptions compileOptions,
out DeferredDiagnosticInfo? diagnostic);
token.ThrowIfCancellationRequested();
EmbeddedBytecodeInfo bytecodeInfo = new(
item.Source.HlslSource,
item.Source.ShaderProfile,
options,
shaderProfile,
compileOptions,
bytecode);
return (item.Hierarchy, bytecodeInfo, diagnostic);