[webkit-changes] [WebKit/WebKit] 6a9bd6: [WGSL] Add support for derivative functions

Tadeu Zagallo noreply at github.com
Fri Oct 20 17:49:40 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6a9bd6f73f12e257aeb25f3b2b424c1ff4fde865
      https://github.com/WebKit/WebKit/commit/6a9bd6f73f12e257aeb25f3b2b424c1ff4fde865
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-10-20 (Fri, 20 Oct 2023)

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

  Log Message:
  -----------
  [WGSL] Add support for derivative functions
https://bugs.webkit.org/show_bug.cgi?id=263397
rdar://117222152

Reviewed by Dan Glastonbury.

Implement all the functions from the "Derivative Built-in Functions" section
of the spec[1].

[1]: https://www.w3.org/TR/WGSL/#derivative-builtin-functions

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

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




More information about the webkit-changes mailing list