From 53b180a9383668246a152af41aec8f6e565904a4 Mon Sep 17 00:00:00 2001 From: lucy96chen <47800040+lucy96chen@users.noreply.github.com> Date: Wed, 12 Oct 2022 14:41:22 -0700 Subject: Add specialization args test (#2444) * Added specialization args test; small cleanup changes to slang-digest.h * Moved slang::Digest inside namespace Slang --- source/slang/slang.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'source/slang/slang.cpp') 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( -- cgit v1.2.3