summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-05-02 20:31:01 -0700
committerGitHub <noreply@github.com>2023-05-02 20:31:01 -0700
commitd87dd1dcfd0f13a6be1a2096d654f4d62044ad48 (patch)
treede66c29d7e87e010d0c827a735fd1ef3accac158 /source
parentd52376a65f37fcbbb67428b917fd3819436b6dfb (diff)
gfx: fix vulkan validation errors. (#2861)
* Fix VK validation errors when using vk1.2 features. * Fix vulkan validation errors. * Fix. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-check-decl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp
index 99939afde..57b97d18b 100644
--- a/source/slang/slang-check-decl.cpp
+++ b/source/slang/slang-check-decl.cpp
@@ -2847,7 +2847,8 @@ namespace Slang
// a temporary diagnostic sink.
//
DiagnosticSink tempSink(getSourceManager(), nullptr);
- SemanticsVisitor subVisitor(withSink(&tempSink));
+ ExprLocalScope localScope;
+ SemanticsVisitor subVisitor(withSink(&tempSink).withExprLocalScope(&localScope));
// With our temporary diagnostic sink soaking up any messages
// from overload resolution, we can now try to resolve