summaryrefslogtreecommitdiffstats
path: root/slang.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-02-23 16:39:46 -0800
committerGitHub <noreply@github.com>2024-02-23 16:39:46 -0800
commit401d8cdb12ae69aeb216c80c9bb90240d8359649 (patch)
tree4548c9de52bdeff424a0a3969ad407fccb3c0f09 /slang.h
parent58eb6f7da01af1767282ee12b0b4b25c57e52afb (diff)
Add slangc interface to compile and use ir modules. (#3615)
* Add slangc interface to compile and use ir modules. * Fix glsl scalar layout settings not copied to target. * Fix. * Cleanups.
Diffstat (limited to 'slang.h')
-rw-r--r--slang.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/slang.h b/slang.h
index 30aa8f2a8..e217f9ab4 100644
--- a/slang.h
+++ b/slang.h
@@ -855,7 +855,6 @@ extern "C"
ReportDownstreamTime, // bool
ReportPerfBenchmark, // bool
SkipSPIRVValidation, // bool
-
SourceEmbedStyle,
SourceEmbedName,
SourceEmbedLanguage,
@@ -1845,6 +1844,7 @@ extern "C"
/*! @see slang::ICompileRequest::addLibraryReference */
SLANG_API SlangResult spAddLibraryReference(
SlangCompileRequest* request,
+ const char* basePath,
const void* libData,
size_t libDataSize);
@@ -3952,10 +3952,12 @@ namespace slang
/** Add a slang library - such that its contents can be referenced during linking.
This is equivalent to the -r command line option.
+ @param basePath The base path used to lookup referenced modules.
@param libData The library data
@param libDataSize The size of the library data
*/
virtual SLANG_NO_THROW SlangResult SLANG_MCALL addLibraryReference(
+ const char* basePath,
const void* libData,
size_t libDataSize) = 0;