diff options
Diffstat (limited to 'source/slang/compiler.h')
| -rw-r--r-- | source/slang/compiler.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/slang/compiler.h b/source/slang/compiler.h index a7d104b5f..09797664f 100644 --- a/source/slang/compiler.h +++ b/source/slang/compiler.h @@ -48,6 +48,14 @@ namespace Slang ReflectionJSON = SLANG_REFLECTION_JSON, }; + enum class LineDirectiveMode : SlangLineDirectiveMode + { + Default = SLANG_LINE_DIRECTIVE_MODE_DEFAULT, + None = SLANG_LINE_DIRECTIVE_MODE_NONE, + Standard = SLANG_LINE_DIRECTIVE_MODE_STANDARD, + GLSL = SLANG_LINE_DIRECTIVE_MODE_GLSL, + }; + enum class ResultFormat { None, @@ -210,6 +218,9 @@ namespace Slang // Should we dump intermediate results along the way, for debugging? bool shouldDumpIntermediates = false; + // How should `#line` directives be emitted (if at all)? + LineDirectiveMode lineDirectiveMode = LineDirectiveMode::Default; + // Output stuff DiagnosticSink mSink; String mDiagnosticOutput; |
