[webkit-changes] [WebKit/WebKit] fdfe9a: [WGSL] Bring ruby DSL syntax closer to WGSL

Tadeu Zagallo noreply at github.com
Mon Sep 25 02:51:23 PDT 2023


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

  Changed paths:
    M Source/WebGPU/WGSL/Constraints.cpp
    M Source/WebGPU/WGSL/Overload.cpp
    M Source/WebGPU/WGSL/Overload.h
    M Source/WebGPU/WGSL/TypeCheck.cpp
    M Source/WebGPU/WGSL/TypeDeclarations.rb
    M Source/WebGPU/WGSL/TypeStore.cpp
    M Source/WebGPU/WGSL/TypeStore.h
    M Source/WebGPU/WGSL/generator/main.rb

  Log Message:
  -----------
  [WGSL] Bring ruby DSL syntax closer to WGSL
https://bugs.webkit.org/show_bug.cgi?id=261954
rdar://115897869

Reviewed by Dan Glastonbury.

Just a small cosmetic update to the ruby DSL, which makes the way types are written
more similar to WGSL. This makes it easier to translate the declarations from the
spec into our DSL (and hopefully a little more readable).

* Source/WebGPU/WGSL/Constraints.cpp:
(WGSL::concretize):
* Source/WebGPU/WGSL/Overload.cpp:
(WGSL::OverloadResolver::materialize const):
* Source/WebGPU/WGSL/Overload.h:
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::vectorFieldAccess):
(WGSL::TypeChecker::allocateSimpleConstructor):
* Source/WebGPU/WGSL/TypeDeclarations.rb:
* Source/WebGPU/WGSL/TypeStore.cpp:
(WGSL::TypeStore::vectorType):
(WGSL::TypeStore::matrixType):
(WGSL::TypeStore::textureType):
* Source/WebGPU/WGSL/TypeStore.h:
* Source/WebGPU/WGSL/generator/main.rb:

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




More information about the webkit-changes mailing list