-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WGSL] no matching overload for operator >>(i32, u32)
https://bugs.webkit.org/show_bug.cgi?id=263947 rdar://117720916 Reviewed by Mike Wyrzykowski. The type declaration for `<<` and `>>` was wrong: it specified that both lhs and rhs, should have the same type, either i32, u32 or a vector of either. However, the spec[1] specifies that rhs must always be u32, and only lhs can be i32 (or u32). This also required changed the constant function, as the BINARY_OPERATOR macro assumes that both arguments will have the same type. * Source/WebGPU/WGSL/ConstantFunctions.h: (WGSL::constantBitwiseShiftLeft): (WGSL::constantBitwiseShiftRight): * Source/WebGPU/WGSL/TypeDeclarations.rb: * Source/WebGPU/WGSL/tests/valid/overload.wgsl: Canonical link: https://commits.webkit.org/270060@main
- Loading branch information
1 parent
219eb0b
commit 0d56517
Showing
3 changed files
with
59 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters