[webkit-changes] [WebKit/WebKit] acf07e: [WGSL] Make AST::Structure::role changes reversible

Tadeu Zagallo noreply at github.com
Wed Mar 22 02:08:44 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: acf07e068d0b4cbe03258bc2da8012db6d0c76dc
      https://github.com/WebKit/WebKit/commit/acf07e068d0b4cbe03258bc2da8012db6d0c76dc
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-03-22 (Wed, 22 Mar 2023)

  Changed paths:
    M Source/WebGPU/WGSL/AST/ASTStructure.h
    M Source/WebGPU/WGSL/EntryPointRewriter.cpp
    M Source/WebGPU/WGSL/WGSLShaderModule.h

  Log Message:
  -----------
  [WGSL] Make AST::Structure::role changes reversible
https://bugs.webkit.org/show_bug.cgi?id=254223
<rdar://problem/107008054>

Reviewed by Myles C. Maxfield.

This is one of the last modifications that is not currently reversible. As with the similar
changes, the goal is to allow multiple compilations using the same AST, which requires that
every AST modification be reversible.

* Source/WebGPU/WGSL/AST/ASTStructure.h:
* Source/WebGPU/WGSL/EntryPointRewriter.cpp:
(WGSL::EntryPointRewriter::checkReturnType):
* Source/WebGPU/WGSL/WGSLShaderModule.h:
(WGSL::ShaderModule::replace):

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




More information about the webkit-changes mailing list