Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0efe0345caa687a0ac9a5e914ce96b9de1ce29da
https://github.com/WebKit/WebKit/commit/0efe0345caa687a0ac9a5e914ce96b9de1ce29da
Author: Tadeu Zagallo <[email protected]>
Date: 2023-04-18 (Tue, 18 Apr 2023)
Changed paths:
M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp
M Tools/TestWebKitAPI/Tests/WGSL/MetalGenerationTests.cpp
Log Message:
-----------
[WGSL] Preserve binary operation precedence
https://bugs.webkit.org/show_bug.cgi?id=255517
rdar://108136098
Reviewed by Mike Wyrzykowski.
Binary operations should be parenthesized when serializing in order
to preserve their precedence.
* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::visit):
Canonical link: https://commits.webkit.org/263092@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes