[webkit-changes] [WebKit/WebKit] 9dcc43: [WGSL] Implement arithmetic operator overload and ...

Dan Glastonbury noreply at github.com
Thu Apr 13 02:38:29 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9dcc43f3519ff769c64b19f5d42586928e5b9668
      https://github.com/WebKit/WebKit/commit/9dcc43f3519ff769c64b19f5d42586928e5b9668
  Author: Dan Glastonbury <djg at apple.com>
  Date:   2023-04-13 (Thu, 13 Apr 2023)

  Changed paths:
    M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp
    M Source/WebGPU/WGSL/TypeDeclarations.rb
    M Source/WebGPU/WGSL/generator/main.rb
    M Source/WebGPU/WGSL/tests/valid/overload.wgsl

  Log Message:
  -----------
  [WGSL] Implement arithmetic operator overload and codegen
https://bugs.webkit.org/show_bug.cgi?id=255323
rdar://problem/107923724

Reviewed by Tadeu Zagallo.

Implement overload resolution and codegen for +, -, *, /, %.

* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::visit):
* Source/WebGPU/WGSL/TypeDeclarations.rb:
* Source/WebGPU/WGSL/generator/main.rb:
* Source/WebGPU/WGSL/tests/valid/overload.wgsl:

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




More information about the webkit-changes mailing list