summaryrefslogtreecommitdiffstats
path: root/source/slang/parameter-binding.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/parameter-binding.cpp')
-rw-r--r--source/slang/parameter-binding.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/parameter-binding.cpp b/source/slang/parameter-binding.cpp
index 8a8a993cd..fbafdd555 100644
--- a/source/slang/parameter-binding.cpp
+++ b/source/slang/parameter-binding.cpp
@@ -1177,6 +1177,9 @@ static void collectModuleParameters(
context->stage = Stage::Unknown;
+ // All imported modules are implicitly Slang code
+ context->sourceLanguage = SourceLanguage::Slang;
+
// A loaded module cannot define entry points that
// we'll expose (for now), so we just need to
// consider global-scope parameters.