[webkit-changes] [WebKit/WebKit] aba145: [WGSL] Initial support for override default values

Tadeu Zagallo noreply at github.com
Thu Oct 5 01:18:25 PDT 2023


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

  Changed paths:
    M Source/WebGPU/WGSL/GlobalVariableRewriter.cpp
    M Source/WebGPU/WGSL/WGSL.h
    M Source/WebGPU/WebGPU/Pipeline.mm

  Log Message:
  -----------
  [WGSL] Initial support for override default values
https://bugs.webkit.org/show_bug.cgi?id=262622
rdar://116466820

Reviewed by Mike Wyrzykowski.

Pass the initializer expression to the API, which can later be evaluated with
the evaluation function introduced in 268833 at main.

* Source/WebGPU/WGSL/GlobalVariableRewriter.cpp:
(WGSL::RewriteGlobalVariables::usesOverride):
* Source/WebGPU/WGSL/WGSL.h:
* Source/WebGPU/WebGPU/Pipeline.mm:
(WebGPU::createConstantValues):

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




More information about the webkit-changes mailing list