[webkit-changes] [WebKit/WebKit] 5429ef: [WGSL] Implement bitwise operator overload and cod...

Dan Glastonbury noreply at github.com
Thu Apr 13 00:11:19 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5429ef9c32cc440c638fc333e2e1caff7009c58e
      https://github.com/WebKit/WebKit/commit/5429ef9c32cc440c638fc333e2e1caff7009c58e
  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 bitwise operator overload and codegen
https://bugs.webkit.org/show_bug.cgi?id=255322
rdar://problem/107923629

Reviewed by Tadeu Zagallo.

Implement overload and codegen for operators ~, &, |, and ^.

* 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/262906@main




More information about the webkit-changes mailing list