[webkit-changes] [WebKit/WebKit] 2a1f4c: [WGSL] Validate swizzle beyond vector size
Tadeu Zagallo
noreply at github.com
Thu May 25 23:58:07 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2a1f4cd6305a6108332ec18bd8353c673af195dd
https://github.com/WebKit/WebKit/commit/2a1f4cd6305a6108332ec18bd8353c673af195dd
Author: Tadeu Zagallo <tzagallo at apple.com>
Date: 2023-05-25 (Thu, 25 May 2023)
Changed paths:
M Source/WebGPU/WGSL/TypeCheck.cpp
M Source/WebGPU/WGSL/tests/invalid/vector.wgsl
Log Message:
-----------
[WGSL] Validate swizzle beyond vector size
https://bugs.webkit.org/show_bug.cgi?id=257311
rdar://109819140
Reviewed by Mike Wyrzykowski.
We should validate that the vector swizzle member is within bounds, i.e. it's
invalid to use vec2.(z|w|b|a) and vec3.(w|a)
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::vectorFieldAccess):
* Source/WebGPU/WGSL/tests/invalid/vector.wgsl:
Canonical link: https://commits.webkit.org/264563@main
More information about the webkit-changes
mailing list