diff options
| author | Yong He <yonghe@outlook.com> | 2021-05-21 16:38:33 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-21 16:38:33 -0700 |
| commit | 7f8a9994d0bd99a171a1daa0bce46d92c02ccffd (patch) | |
| tree | 0b187e63ab5b9ce6f5ab41266fedaec44091a217 /source/slang/slang-emit.cpp | |
| parent | 172538fdb418f7a2faab1f5a410f3b2cb8e18ba5 (diff) | |
[gfx] Support StructuredBuffer<IInterface>. (#1851)
Co-authored-by: T. Foley <tfoleyNV@users.noreply.github.com>
Diffstat (limited to 'source/slang/slang-emit.cpp')
| -rw-r--r-- | source/slang/slang-emit.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp index af870d02b..74b11079d 100644 --- a/source/slang/slang-emit.cpp +++ b/source/slang/slang-emit.cpp @@ -849,7 +849,13 @@ SlangResult emitEntryPointsSourceFromIR( } // There may be global-scope modifiers that we should emit now + // Supress emitting line directives when emitting preprocessor directives since + // these preprocessor directives may be required to appear in the first line + // of the output. An example is that the "#version" line in a GLSL source must + // appear before anything else. + sourceWriter.supressLineDirective(); sourceEmitter->emitPreprocessorDirectives(); + sourceWriter.resumeLineDirective(); RefObject* extensionTracker = sourceEmitter->getExtensionTracker(); |
