summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-overload.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-09-01 01:25:31 -0700
committerGitHub <noreply@github.com>2023-09-01 01:25:31 -0700
commit9c11a87f8f811a9a110d73a24ab93443ea347506 (patch)
tree9b1b0f154cff0faf7efd8d77fcd7f7911aea4a44 /source/slang/slang-check-overload.cpp
parentb7d19330c2d42937835d674758a05af3891e025b (diff)
Fix GLSL code gen around RayQuery and HitObject types. (#3173)
* Update slang-llvm. * Fix. * fix. * Fix unit tests for multi-thread execution. * Fix tests. * fixes. * update tests. * Add gfx-smoke to linux expected failure list. * Try fix test. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-check-overload.cpp')
-rw-r--r--source/slang/slang-check-overload.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/slang/slang-check-overload.cpp b/source/slang/slang-check-overload.cpp
index c13e74f69..50da2d3eb 100644
--- a/source/slang/slang-check-overload.cpp
+++ b/source/slang/slang-check-overload.cpp
@@ -508,10 +508,11 @@ namespace Slang
return nullptr;
}
- if (paramDeclRef.getDecl()->findModifier<OutModifier>())
+ if (paramDeclRef.getDecl()->findModifier<OutModifier>() ||
+ paramDeclRef.getDecl()->findModifier<RefModifier>())
{
// Function parameters marked with `out`, `inout`,
- // or `in out` are all mutable in a way where
+ // `in out` or `ref` are all mutable in a way where
// the result of mutations will be visible to the
// caller.
//