From 01efe34dbef2be952298075abd8d36cc67ac9f4e Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 4 Mar 2024 13:14:21 -0800 Subject: Add `IGlobalSession::getSessionDescDigest`. (#3669) * Add `IGlobalSession::getSessionDescDigest`. * Fix. --- source/slang/slang-compiler.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/slang/slang-compiler.h') 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& builder, SlangInt targetIndex); + void buildHash(DigestBuilder& 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); -- cgit v1.2.3