[webkit-changes] [WebKit/WebKit] 4a81f6: [WGSL] Fix struct type size calculation
Tadeu Zagallo
noreply at github.com
Mon Oct 9 02:58:35 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4a81f6651e9847a9d823023304a1378c3db25a80
https://github.com/WebKit/WebKit/commit/4a81f6651e9847a9d823023304a1378c3db25a80
Author: Tadeu Zagallo <tzagallo at apple.com>
Date: 2023-10-09 (Mon, 09 Oct 2023)
Changed paths:
M Source/WebGPU/WGSL/Types.cpp
Log Message:
-----------
[WGSL] Fix struct type size calculation
https://bugs.webkit.org/show_bug.cgi?id=262792
rdar://116583145
Reviewed by Mike Wyrzykowski.
Although the procedure for calculating the size and alignment was right, we
were visiting the fields out of order, which resulted in the wrong size.
* Source/WebGPU/WGSL/Types.cpp:
(WGSL::Type::size const):
Canonical link: https://commits.webkit.org/269069@main
More information about the webkit-changes
mailing list