Update generator to apply custom compile options

このコミットが含まれているのは:
Sergio Pedri committed 2023-11-21 16:01:09 +01:00
1 親 9580730e93
コミット fb0a1a441a
6ファイル変更
+158 -36

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

+6 -1
ファイルの表示
@@ -107,8 +107,13 @@ public sealed partial class ComputeShaderDescriptorGenerator : IIncrementalGener
token.ThrowIfCancellationRequested();
// Get the compile options as well
CompileOptions compileOptions = HlslBytecode.GetCompileOptions(diagnostics, typeSymbol);
token.ThrowIfCancellationRequested();
// Prepare the lookup key for the HLSL shader bytecode
HlslBytecodeInfoKey hlslInfoKey = new(hlslSource, isCompilationEnabled);
HlslBytecodeInfoKey hlslInfoKey = new(hlslSource, compileOptions, isCompilationEnabled);
// Try to get the HLSL bytecode
HlslBytecodeInfo hlslInfo = HlslBytecode.GetBytecode(ref hlslInfoKey, token);