From cb610113605f62e784b63012b31b751acb6fac72 Mon Sep 17 00:00:00 2001 From: skallweitNV <64953474+skallweitNV@users.noreply.github.com> Date: Thu, 27 Jun 2024 17:35:17 +0200 Subject: Add API for querying dependency files on IModule (#4493) * Add API for querying dependency files on IModule * return nullptr --- source/slang-capture-replay/slang-module.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'source/slang-capture-replay/slang-module.cpp') 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__); -- cgit v1.2.3