From c0a77c360436c4f1ec4d284e331063c35bdf95ad Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 12 Sep 2023 10:49:16 -0700 Subject: Direct SPIRV for RayTracing Inline. (#3201) * Direct SPIRV for RayTracing Inline. * Fix. * Cleanup. * Fix compile error. --------- Co-authored-by: Yong He --- source/slang/slang-check-expr.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/slang/slang-check-expr.cpp') 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(); expr->type.type = thisType; expr->loc = loc; + if (auto declRefExpr = as(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 -- cgit v1.2.3