[webkit-changes] [WebKit/WebKit] dc8ed1: [WGSL] Add support for index access on packed types
Tadeu Zagallo
noreply at github.com
Wed Jun 14 03:47:26 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: dc8ed15466fe404be6683cf630b404353a82ae81
https://github.com/WebKit/WebKit/commit/dc8ed15466fe404be6683cf630b404353a82ae81
Author: Tadeu Zagallo <tzagallo at apple.com>
Date: 2023-06-14 (Wed, 14 Jun 2023)
Changed paths:
M Source/WebGPU/WGSL/GlobalVariableRewriter.cpp
M Source/WebGPU/WGSL/tests/valid/packing.wgsl
Log Message:
-----------
[WGSL] Add support for index access on packed types
https://bugs.webkit.org/show_bug.cgi?id=258011
rdar://110698705
Reviewed by Mike Wyrzykowski.
During global variable rewriting, determine the resulting packing of an index access.
This is most often unpacked, but important when accessing an array of packed structs.
* Source/WebGPU/WGSL/GlobalVariableRewriter.cpp:
(WGSL::RewriteGlobalVariables::pack):
(WGSL::RewriteGlobalVariables::getPacking):
* Source/WebGPU/WGSL/tests/valid/packing.wgsl:
Canonical link: https://commits.webkit.org/265150@main
More information about the webkit-changes
mailing list