Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2a950b6675bd0730103083de36590141ee0c5540
      
https://github.com/WebKit/WebKit/commit/2a950b6675bd0730103083de36590141ee0c5540
  Author: Tadeu Zagallo <[email protected]>
  Date:   2023-05-26 (Fri, 26 May 2023)

  Changed paths:
    M Source/WebGPU/WGSL/Constraints.h
    M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp
    M Source/WebGPU/WGSL/Overload.cpp
    M Source/WebGPU/WGSL/Overload.h
    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 built-in function textureLoad
https://bugs.webkit.org/show_bug.cgi?id=257256
rdar://109769588

Reviewed by Mike Wyrzykowski.

Implement textureLoad according to the spec[1].

[1]: https://gpuweb.github.io/gpuweb/wgsl/#textureload

* Source/WebGPU/WGSL/Constraints.h:
* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::visit):
* Source/WebGPU/WGSL/Overload.cpp:
(WGSL::OverloadResolver::materialize const):
(WGSL::OverloadResolver::calculateRank):
(WGSL::OverloadResolver::unify):
(WTF::printInternal):
* Source/WebGPU/WGSL/Overload.h:
* Source/WebGPU/WGSL/TypeDeclarations.rb:
* Source/WebGPU/WGSL/generator/main.rb:
* Source/WebGPU/WGSL/tests/valid/overload.wgsl:

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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to