Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: dc79ccb4774148e246c2e5a637d047b96db87fc1 https://github.com/WebKit/WebKit/commit/dc79ccb4774148e246c2e5a637d047b96db87fc1 Author: Tadeu Zagallo <tzaga...@apple.com> Date: 2023-06-08 (Thu, 08 Jun 2023)
Changed paths: M Source/WebGPU/WGSL/GlobalVariableRewriter.cpp M Source/WebGPU/WGSL/tests/valid/packing.wgsl Log Message: ----------- [WGSL] Add support for binary and unary expressions with packed types https://bugs.webkit.org/show_bug.cgi?id=257818 rdar://110410987 Reviewed by Dan Glastonbury. Build onto PR#14736 and extend the support for packing/unpacking in binary and unary expressions. Since not all binary and unary expressions are allowed on packed types, we assume these expressions can only be performed on unpacked types. We unpack the operand(s) and their result is always unpacked. * Source/WebGPU/WGSL/GlobalVariableRewriter.cpp: (WGSL::RewriteGlobalVariables::pack): (WGSL::RewriteGlobalVariables::getPacking): * Source/WebGPU/WGSL/tests/valid/packing.wgsl: Canonical link: https://commits.webkit.org/264979@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes