Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WGSL] Do not pack structs unnecessarily
https://bugs.webkit.org/show_bug.cgi?id=262629 rdar://116468528 Reviewed by Mike Wyrzykowski. Currently we just pack all structs that are used by global resources, which generates unnecessarily large code and calls to pack/unpack. Instead, check if the struct actually contains any members that needs to be packed, and skip packing if it doesn't. * Source/WebGPU/WGSL/GlobalVariableRewriter.cpp: (WGSL::RewriteGlobalVariables::packStructResource): (WGSL::RewriteGlobalVariables::packType): (WGSL::RewriteGlobalVariables::packStructType): Canonical link: https://commits.webkit.org/268979@main
- Loading branch information