Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: dc8ed15466fe404be6683cf630b404353a82ae81
https://github.com/WebKit/WebKit/commit/dc8ed15466fe404be6683cf630b404353a82ae81
Author: Tadeu Zagallo <[email protected]>
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
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes