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 --- slang.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'slang.h') diff --git a/slang.h b/slang.h index cdd20f99b..d4c94a433 100644 --- a/slang.h +++ b/slang.h @@ -5028,6 +5028,16 @@ namespace slang SlangStage stage, IEntryPoint** outEntryPoint, ISlangBlob** outDiagnostics) = 0; + + /// Get the number of dependency files that this module depends on. + /// This includes both the explicit source files, as well as any + /// additional files that were transitively referenced (e.g., via + /// a `#include` directive). + virtual SLANG_NO_THROW SlangInt32 SLANG_MCALL getDependencyFileCount() = 0; + + /// Get the path to a file this module depends on. + virtual SLANG_NO_THROW char const* SLANG_MCALL getDependencyFilePath( + SlangInt32 index) = 0; }; #define SLANG_UUID_IModule IModule::getTypeGuid() -- cgit v1.2.3