diff options
| author | Yong He <yonghe@outlook.com> | 2024-03-04 13:14:21 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-04 13:14:21 -0800 |
| commit | 01efe34dbef2be952298075abd8d36cc67ac9f4e (patch) | |
| tree | a3b73fa959ecf64a0d3a30a3f1ae43a8489b6c94 /source/slang/slang-compiler.h | |
| parent | 16342f4a6baa2e50d390c8835879fc056497aa4c (diff) | |
Add `IGlobalSession::getSessionDescDigest`. (#3669)
* Add `IGlobalSession::getSessionDescDigest`.
* Fix.
Diffstat (limited to 'source/slang/slang-compiler.h')
| -rwxr-xr-x | source/slang/slang-compiler.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/slang/slang-compiler.h b/source/slang/slang-compiler.h index 4876026a0..0dd0012ad 100755 --- a/source/slang/slang-compiler.h +++ b/source/slang/slang-compiler.h @@ -1835,7 +1835,7 @@ namespace Slang // Updates the supplied builder with linkage-related information, which includes preprocessor // defines, the compiler version, and other compiler options. This is then merged with the hash // produced for the program to produce a key that can be used with the shader cache. - void buildHash(DigestBuilder<SHA1>& builder, SlangInt targetIndex); + void buildHash(DigestBuilder<SHA1>& builder, SlangInt targetIndex = -1); void addTarget( slang::TargetDesc const& desc); @@ -3003,6 +3003,8 @@ namespace Slang SLANG_NO_THROW SlangResult SLANG_MCALL parseCommandLineArguments( int argc, const char* const* argv, slang::SessionDesc* outSessionDesc, ISlangUnknown** outAllocation) override; + SLANG_NO_THROW SlangResult SLANG_MCALL getSessionDescDigest(slang::SessionDesc* sessionDesc, ISlangBlob** outBlob) override; + /// Get the downstream compiler for a transition IDownstreamCompiler* getDownstreamCompiler(CodeGenTarget source, CodeGenTarget target); |
