[webkit-changes] [WebKit/WebKit] 404575: [WGSL] Add support for constant arrays

Tadeu Zagallo noreply at github.com
Tue May 30 01:04:07 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 404575f5005d1c14b716aed67a7a174ce12cba3b
      https://github.com/WebKit/WebKit/commit/404575f5005d1c14b716aed67a7a174ce12cba3b
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-05-30 (Tue, 30 May 2023)

  Changed paths:
    M Source/WebGPU/WGSL/ConstantRewriter.cpp
    M Source/WebGPU/WGSL/tests/valid/constants.wgsl

  Log Message:
  -----------
  [WGSL] Add support for constant arrays
https://bugs.webkit.org/show_bug.cgi?id=257459
rdar://109975459

Reviewed by Myles C. Maxfield.

Continue extending the ConstantRewriter phase by adding support for arrays

* Source/WebGPU/WGSL/ConstantRewriter.cpp:
(WGSL::ConstantArray::ConstantArray):
(WGSL::ConstantValue::ConstantValue):
(WGSL::ConstantValue::dump const):
(WGSL::ConstantRewriter::evaluate):
(WGSL::ConstantRewriter::materialize):

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




More information about the webkit-changes mailing list