summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-compiler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-compiler.cpp')
-rw-r--r--source/slang/slang-compiler.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/source/slang/slang-compiler.cpp b/source/slang/slang-compiler.cpp
index 06cc9d759..889ecc58a 100644
--- a/source/slang/slang-compiler.cpp
+++ b/source/slang/slang-compiler.cpp
@@ -35,6 +35,7 @@
#include "slang-glsl-extension-tracker.h"
#include "slang-emit-cuda.h"
+#include "slang-serialize-ast.h"
#include "slang-serialize-container.h"
namespace Slang
@@ -222,6 +223,16 @@ namespace Slang
visitor->visitEntryPoint(this, as<EntryPointSpecializationInfo>(specializationInfo));
}
+ void EntryPoint::updateDependencyBasedHash(
+ DigestBuilder& builder,
+ SlangInt entryPointIndex)
+ {
+ // CompositeComponentType will have already hashed the relevant entry point's name
+ // and file path dependencies, so we immediately return.
+ SLANG_UNUSED(builder);
+ SLANG_UNUSED(entryPointIndex);
+ }
+
List<Module*> const& EntryPoint::getModuleDependencies()
{
if(auto module = getModule())
@@ -290,6 +301,19 @@ namespace Slang
return Super::getInterface(guid);
}
+ void TypeConformance::updateDependencyBasedHash(
+ DigestBuilder& builder,
+ SlangInt entryPointIndex)
+ {
+ SLANG_UNUSED(entryPointIndex);
+
+ //TODO: Implement some kind of hashInto for Val then replace this
+ auto subtypeWitness = m_subtypeWitness->toString();
+
+ builder.addToDigest(subtypeWitness);
+ builder.addToDigest(m_conformanceIdOverride);
+ }
+
List<Module*> const& TypeConformance::getModuleDependencies()
{
return m_moduleDependency.getModuleList();