summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-shader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-shader.cpp')
-rw-r--r--source/slang/slang-check-shader.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/slang-check-shader.cpp b/source/slang/slang-check-shader.cpp
index 7a39f114b..1aa93d019 100644
--- a/source/slang/slang-check-shader.cpp
+++ b/source/slang/slang-check-shader.cpp
@@ -731,6 +731,10 @@ namespace Slang
// scope.
workList.add(fileDecl);
}
+ else if (auto namespaceDecl = as<NamespaceDecl>(globalDecl))
+ {
+ workList.add(namespaceDecl);
+ }
}
}
}