Skip to content

Commit 8d0e6f2

Browse files
committed
update comment.
1 parent a0dc4ac commit 8d0e6f2

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

source/slang/slang-check-expr.cpp

+3-6
Original file line numberDiff line numberDiff line change
@@ -4895,12 +4895,9 @@ Expr* SemanticsExprVisitor::visitMemberExpr(MemberExpr* expr)
48954895
if (auto modifiedType = as<ModifiedType>(baseType))
48964896
baseType = modifiedType->getBase();
48974897

4898-
// Note: Checking for vector types before declaration-reference types,
4899-
// because vectors are also declaration reference types...
4900-
//
4901-
// Also note: the way this is done right now means that the ability
4902-
// to swizzle vectors interferes with any chance of looking up
4903-
// members via extension, for vector or scalar types.
4898+
// Try handle swizzle-able types (scalar,vector,matrix) first.
4899+
// If checking as a swizzle failed for these types,
4900+
// we will fallback to normal member lookup.
49044901
//
49054902
if (auto baseScalarType = as<BasicExpressionType>(baseType))
49064903
{

0 commit comments

Comments
 (0)