From 6736b0c1c5fa3e89bc561eb7965a1a0d17af3466 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 29 Sep 2021 11:29:46 -0700 Subject: Add ISession::loadModuleFromSource. (#1950) Co-authored-by: Yong He --- slang.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'slang.h') diff --git a/slang.h b/slang.h index 38acc3997..74de9d293 100644 --- a/slang.h +++ b/slang.h @@ -3931,6 +3931,13 @@ namespace slang const char* moduleName, IBlob** outDiagnostics = nullptr) = 0; + /** Load a module from Slang source code. + */ + virtual SLANG_NO_THROW IModule* SLANG_MCALL loadModuleFromSource( + const char* moduleName, + slang::IBlob* source, + slang::IBlob** outDiagnostics = nullptr) = 0; + /** Combine multiple component types to create a composite component type. The `componentTypes` array must contain `componentTypeCount` pointers -- cgit v1.2.3