summaryrefslogtreecommitdiff
path: root/source/slang/slang-compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-compiler.h')
-rwxr-xr-xsource/slang/slang-compiler.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/slang/slang-compiler.h b/source/slang/slang-compiler.h
index 683e1f7f1..ff1f660a1 100755
--- a/source/slang/slang-compiler.h
+++ b/source/slang/slang-compiler.h
@@ -1685,6 +1685,7 @@ namespace Slang
slang::IBlob** outDiagnostics = nullptr) override;
SLANG_NO_THROW slang::IModule* SLANG_MCALL loadModuleFromSource(
const char* moduleName,
+ const char* path,
slang::IBlob* source,
slang::IBlob** outDiagnostics = nullptr) override;
SLANG_NO_THROW SlangResult SLANG_MCALL createCompositeComponentType(
@@ -1743,6 +1744,10 @@ namespace Slang
/// Dtor
~Linkage();
+ slang::SessionFlags m_flag = 0;
+ void setFlags(slang::SessionFlags flags) { m_flag = flags; }
+ bool isInLanguageServer() { return (m_flag & slang::kSessionFlag_LanguageServer) != 0; }
+
/// Get the parent session for this linkage
Session* getSessionImpl() { return m_session; }
@@ -1901,6 +1906,8 @@ namespace Slang
SerialCompressionType serialCompressionType = SerialCompressionType::VariableByteLite;
+ DiagnosticSink::Flags diagnosticSinkFlags = 0;
+
bool m_requireCacheFileSystem = false;
bool m_useFalcorCustomSharedKeywordSemantics = false;