[webkit-changes] [WebKit/WebKit] d76515: [WGSL] Add support for constant multiplication

Tadeu Zagallo noreply at github.com
Wed Oct 4 01:33:51 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d765150c66dc7be4de1bcfcc44e12c711e5f81ca
      https://github.com/WebKit/WebKit/commit/d765150c66dc7be4de1bcfcc44e12c711e5f81ca
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-10-04 (Wed, 04 Oct 2023)

  Changed paths:
    M Source/WebGPU/WGSL/ConstantFunctions.h
    M Source/WebGPU/WGSL/TypeCheck.cpp
    M Source/WebGPU/WGSL/tests/valid/constants.wgsl

  Log Message:
  -----------
  [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




More information about the webkit-changes mailing list