summaryrefslogtreecommitdiff
path: root/source/slang/slang.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang.cpp')
-rw-r--r--source/slang/slang.cpp9
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(