[webkit-changes] [WebKit/WebKit] e571a6: [WGSL] Vector swizzle cannot return reference for ...
Tadeu Zagallo
noreply at github.com
Fri Oct 20 13:16:18 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e571a627d10ed89560cac9c62f8a57863e19d2be
https://github.com/WebKit/WebKit/commit/e571a627d10ed89560cac9c62f8a57863e19d2be
Author: Tadeu Zagallo <tzagallo at apple.com>
Date: 2023-10-20 (Fri, 20 Oct 2023)
Changed paths:
M Source/WebGPU/WGSL/TypeCheck.cpp
M Source/WebGPU/WGSL/tests/invalid/access-expression.wgsl
Log Message:
-----------
[WGSL] Vector swizzle cannot return reference for multiple accesses
https://bugs.webkit.org/show_bug.cgi?id=263391
rdar://117220790
Reviewed by Dan Glastonbury.
When using vector swizzle to access multiple components (e.g. v.xy or v.xx), even
if the vector is a reference, the result should not be a reference.
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visit):
* Source/WebGPU/WGSL/tests/invalid/access-expression.wgsl:
Canonical link: https://commits.webkit.org/269583@main
More information about the webkit-changes
mailing list