[webkit-changes] [WebKit/WebKit] 22282c: [WGSL] Add support for constant vectors

Tadeu Zagallo noreply at github.com
Tue May 30 03:19:01 PDT 2023


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

  Changed paths:
    M Source/WebGPU/WGSL/AST/ASTExpression.h
    M Source/WebGPU/WGSL/AST/ASTTypeName.h
    M Source/WebGPU/WGSL/ConstantRewriter.cpp
    M Source/WebGPU/WGSL/tests/valid/constants.wgsl

  Log Message:
  -----------
  [WGSL] Add support for constant vectors
https://bugs.webkit.org/show_bug.cgi?id=257460
rdar://109975610

Reviewed by Myles C. Maxfield.

Continue extending the ConstantRewriter phase by adding support for vectors

* Source/WebGPU/WGSL/AST/ASTExpression.h:
* Source/WebGPU/WGSL/AST/ASTTypeName.h:
* Source/WebGPU/WGSL/ConstantRewriter.cpp:
(WGSL::ConstantVector::ConstantVector):
(WGSL::ConstantValue::dump const):
(WGSL::ConstantRewriter::evaluate):
(WGSL::ConstantRewriter::materialize):

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




More information about the webkit-changes mailing list