[webkit-changes] [WebKit/WebKit] ba50f1: [WGSL] Add support for constant division

Tadeu Zagallo noreply at github.com
Mon Oct 9 03:07:26 PDT 2023


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

  Changed paths:
    M Source/WebGPU/WGSL/ConstantFunctions.h
    M Source/WebGPU/WGSL/TypeCheck.cpp

  Log Message:
  -----------
  [WGSL] Add support for constant division
https://bugs.webkit.org/show_bug.cgi?id=262790
rdar://116583014

Reviewed by Mike Wyrzykowski.

Division is necessary for the A-buffer demo. Similar to constant multiplication,
but even simpler since it doesn't need to handle matrices.

* Source/WebGPU/WGSL/ConstantFunctions.h:
(WGSL::constantDivide):
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::TypeChecker):

Canonical link: https://commits.webkit.org/269070@main




More information about the webkit-changes mailing list