diff options
| author | lucy96chen <47800040+lucy96chen@users.noreply.github.com> | 2022-10-12 14:41:22 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-12 14:41:22 -0700 |
| commit | 53b180a9383668246a152af41aec8f6e565904a4 (patch) | |
| tree | c034dc6584dd7dd7b5451d9fd8b3972e6b5d0106 /source/slang/slang.cpp | |
| parent | f0cd62b37c5dfbbdb3fb205f1be2b8beba0dfed4 (diff) | |
Add specialization args test (#2444)
* Added specialization args test; small cleanup changes to slang-digest.h
* Moved slang::Digest inside namespace Slang
Diffstat (limited to 'source/slang/slang.cpp')
| -rw-r--r-- | source/slang/slang.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index a6dcf8ab2..20cad2465 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -3482,19 +3482,14 @@ SLANG_NO_THROW void SLANG_MCALL ComponentType::computeDependencyBasedHash( auto entryPointNameOverride = getEntryPointNameOverride(entryPointIndex); builder.addToDigest(entryPointNameOverride); - slang::Digest hash; - builder.finalize(&hash); - *outHash = hash; + *outHash = builder.finalize(); } SLANG_NO_THROW void SLANG_MCALL ComponentType::computeASTBasedHash(slang::Digest* outHash) { DigestBuilder builder; updateASTBasedHash(builder); - - slang::Digest hash; - builder.finalize(&hash); - *outHash = hash; + *outHash = builder.finalize(); } SLANG_NO_THROW SlangResult SLANG_MCALL ComponentType::getEntryPointHostCallable( |
