diff options
| author | Yong He <yonghe@outlook.com> | 2024-02-23 16:39:46 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-23 16:39:46 -0800 |
| commit | 401d8cdb12ae69aeb216c80c9bb90240d8359649 (patch) | |
| tree | 4548c9de52bdeff424a0a3969ad407fccb3c0f09 /source/slang/slang-api.cpp | |
| parent | 58eb6f7da01af1767282ee12b0b4b25c57e52afb (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 'source/slang/slang-api.cpp')
| -rw-r--r-- | source/slang/slang-api.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-api.cpp b/source/slang/slang-api.cpp index 864bc8b7d..7284f2468 100644 --- a/source/slang/slang-api.cpp +++ b/source/slang/slang-api.cpp @@ -495,11 +495,12 @@ SLANG_API void spSetDefaultModuleName( SLANG_API SlangResult spAddLibraryReference( slang::ICompileRequest* request, + const char* basePath, const void* libData, size_t libDataSize) { SLANG_ASSERT(request); - return request->addLibraryReference(libData, libDataSize); + return request->addLibraryReference(basePath, libData, libDataSize); } SLANG_API void spTranslationUnit_addPreprocessorDefine( |
