summaryrefslogtreecommitdiff
path: root/source/slang-capture-replay/slang-module.cpp
diff options
context:
space:
mode:
authorskallweitNV <64953474+skallweitNV@users.noreply.github.com>2024-06-27 17:35:17 +0200
committerGitHub <noreply@github.com>2024-06-27 17:35:17 +0200
commitcb610113605f62e784b63012b31b751acb6fac72 (patch)
tree9fce38e85f8de960461c535dd47a7a458b2b3713 /source/slang-capture-replay/slang-module.cpp
parent1d4db4224bd981b54b1e5f260a232a1183bbdcda (diff)
Add API for querying dependency files on IModule (#4493)
* Add API for querying dependency files on IModule * return nullptr
Diffstat (limited to 'source/slang-capture-replay/slang-module.cpp')
-rw-r--r--source/slang-capture-replay/slang-module.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/source/slang-capture-replay/slang-module.cpp b/source/slang-capture-replay/slang-module.cpp
index 0b5ed47f1..8a1a80126 100644
--- a/source/slang-capture-replay/slang-module.cpp
+++ b/source/slang-capture-replay/slang-module.cpp
@@ -189,6 +189,22 @@ namespace SlangCapture
return res;
}
+ SLANG_NO_THROW SlangInt32 ModuleCapture::getDependencyFileCount()
+ {
+ // No need to capture this call as it is just a query.
+ slangCaptureLog(LogLevel::Verbose, "%s\n", __PRETTY_FUNCTION__);
+ SlangInt32 res = m_actualModule->getDependencyFileCount();
+ return res;
+ }
+
+ SLANG_NO_THROW char const* ModuleCapture::getDependencyFilePath(SlangInt32 index)
+ {
+ // No need to capture this call as it is just a query.
+ slangCaptureLog(LogLevel::Verbose, "%s\n", __PRETTY_FUNCTION__);
+ const char* res = m_actualModule->getDependencyFilePath(index);
+ return res;
+ }
+
SLANG_NO_THROW slang::ISession* ModuleCapture::getSession()
{
slangCaptureLog(LogLevel::Verbose, "%s\n", __PRETTY_FUNCTION__);