summaryrefslogtreecommitdiff
path: root/source/core/slang-digest.h
diff options
context:
space:
mode:
authorlucy96chen <47800040+lucy96chen@users.noreply.github.com>2022-10-17 17:38:59 -0700
committerGitHub <noreply@github.com>2022-10-17 17:38:59 -0700
commit8add41a6e37994577d928bc312801ddfa1c33173 (patch)
tree6ca5ef639a22c4e37c7287df1877cb5bf7ce691c /source/core/slang-digest.h
parent09408e32d7c0ccebf38fe31b5d2ddf4b1cd128e4 (diff)
Shader cache index implementation (#2452)
Diffstat (limited to 'source/core/slang-digest.h')
-rw-r--r--source/core/slang-digest.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/source/core/slang-digest.h b/source/core/slang-digest.h
deleted file mode 100644
index 47c0cd8f7..000000000
--- a/source/core/slang-digest.h
+++ /dev/null
@@ -1,35 +0,0 @@
-#pragma once
-#include "slang-md5.h"
-#include "../../slang.h"
-
-namespace Slang
-{
- using slang::Digest;
-
- // Wrapper struct that holds objects necessary for hashing.
- struct DigestBuilder
- {
- public:
- DigestBuilder()
- {
- hashGen.init(&context);
- }
-
- template <typename T>
- void addToDigest(T item)
- {
- hashGen.update(&context, item);
- }
-
- Digest finalize()
- {
- Digest hash;
- hashGen.finalize(&context, &hash);
- return hash;
- }
-
- private:
- MD5HashGen hashGen;
- MD5Context context;
- };
-}