diff options
| author | Yong He <yonghe@outlook.com> | 2023-09-12 10:49:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-12 10:49:16 -0700 |
| commit | c0a77c360436c4f1ec4d284e331063c35bdf95ad (patch) | |
| tree | 6c1379a074304bdee3f33f6861754112d7d12c47 /source/slang/slang-check-expr.cpp | |
| parent | 3f4081d854db2d186adea4067da575eca7c7adf1 (diff) | |
Direct SPIRV for RayTracing Inline. (#3201)
* Direct SPIRV for RayTracing Inline.
* Fix.
* Cleanup.
* Fix compile error.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-check-expr.cpp')
| -rw-r--r-- | source/slang/slang-check-expr.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-check-expr.cpp b/source/slang/slang-check-expr.cpp index 75fd5177e..5ea897448 100644 --- a/source/slang/slang-check-expr.cpp +++ b/source/slang/slang-check-expr.cpp @@ -670,6 +670,8 @@ namespace Slang ThisExpr* expr = m_astBuilder->create<ThisExpr>(); expr->type.type = thisType; expr->loc = loc; + if (auto declRefExpr = as<DeclRefExpr>(originalExpr)) + expr->scope = declRefExpr->scope; // Whether or not the implicit `this` is mutable depends // on the context in which it is used, and the lookup |
