diff options
| author | skallweitNV <64953474+skallweitNV@users.noreply.github.com> | 2022-12-02 16:34:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-02 16:34:53 +0100 |
| commit | e9b7c66a541636e72659fbfcc9a3f20a85f2bee8 (patch) | |
| tree | b65942799ff6267ebe29c8b64056819461621be7 /tools/gfx/renderer-shared.cpp | |
| parent | 92ae4949fe1af28ef31331fd4116c8111c057420 (diff) | |
Cleanup crypto utilities (#2549)
* Consolidate crypto functions into single module
* Migrate rest of code to new crypto module
* Fix name conflict
Diffstat (limited to 'tools/gfx/renderer-shared.cpp')
| -rw-r--r-- | tools/gfx/renderer-shared.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/gfx/renderer-shared.cpp b/tools/gfx/renderer-shared.cpp index 3dcdb324c..3397b325e 100644 --- a/tools/gfx/renderer-shared.cpp +++ b/tools/gfx/renderer-shared.cpp @@ -6,7 +6,6 @@ #include "../../source/core/slang-file-system.h" #include "../../slang.h" -#include "../../source/core/slang-digest-util.h" using namespace Slang; @@ -349,13 +348,15 @@ Result RendererBase::getEntryPointCodeFromShaderCache( ComPtr<slang::ISession> session; getSlangSession(session.writeRef()); - slang::Digest shaderKey; - program->computeDependencyBasedHash(entryPointIndex, targetIndex, &shaderKey); + ComPtr<ISlangBlob> shaderKeyBlob; + program->computeDependencyBasedHash(entryPointIndex, targetIndex, shaderKeyBlob.writeRef()); + DigestType shaderKey(shaderKeyBlob); // Produce a hash using the AST for this program - This is needed to check whether a cache entry is effectively dirty, // or to save along with the compiled code into an entry so the entry can be checked if fetched later on. - slang::Digest contentsHash; - program->computeContentsBasedHash(&contentsHash); + ComPtr<ISlangBlob> contentsHashBlob; + program->computeContentsBasedHash(contentsHashBlob.writeRef()); + DigestType contentsHash(contentsHashBlob); ComPtr<ISlangBlob> codeBlob; |
