summaryrefslogtreecommitdiff
path: root/slang.h
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 /slang.h
parent1d4db4224bd981b54b1e5f260a232a1183bbdcda (diff)
Add API for querying dependency files on IModule (#4493)
* Add API for querying dependency files on IModule * return nullptr
Diffstat (limited to 'slang.h')
-rw-r--r--slang.h10
1 files changed, 10 insertions, 0 deletions
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()