diff options
| author | skallweitNV <64953474+skallweitNV@users.noreply.github.com> | 2024-06-27 17:35:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-27 17:35:17 +0200 |
| commit | cb610113605f62e784b63012b31b751acb6fac72 (patch) | |
| tree | 9fce38e85f8de960461c535dd47a7a458b2b3713 /slang.h | |
| parent | 1d4db4224bd981b54b1e5f260a232a1183bbdcda (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.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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() |
