-
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] Add support for constant multiplication
https://bugs.webkit.org/show_bug.cgi?id=262561 rdar://116413844 Reviewed by Mike Wyrzykowski. Implement the constant function for multiplication. The function is mostly complete, it can handle all overloads for scalars and vectors, but since we don't yet support constant matrices I couldn't support the overloads that operate on them. * Source/WebGPU/WGSL/ConstantFunctions.h: (WGSL::constantMultiply): * Source/WebGPU/WGSL/TypeCheck.cpp: (WGSL::TypeChecker::TypeChecker): * Source/WebGPU/WGSL/tests/valid/constants.wgsl: Canonical link: https://commits.webkit.org/268834@main
- Loading branch information
1 parent
fa9c962
commit d765150
Showing
3 changed files
with
27 additions
and
0 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