summaryrefslogtreecommitdiff
path: root/slang.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-09-29 11:29:46 -0700
committerGitHub <noreply@github.com>2021-09-29 11:29:46 -0700
commit6736b0c1c5fa3e89bc561eb7965a1a0d17af3466 (patch)
treec1d0050e969ca8422eb38ec2036fda3bfafa6d57 /slang.h
parentd8e452412e14a6a8ba137f2adcae13b398e5cecb (diff)
Add ISession::loadModuleFromSource. (#1950)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'slang.h')
-rw-r--r--slang.h7
1 files changed, 7 insertions, 0 deletions
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