Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 28a68be349d587e00400e6a4cfa4bd5fd2399fde
      
https://github.com/WebKit/WebKit/commit/28a68be349d587e00400e6a4cfa4bd5fd2399fde
  Author: Tadeu Zagallo <tzaga...@apple.com>
  Date:   2023-09-29 (Fri, 29 Sep 2023)

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

  Log Message:
  -----------
  [WGSL] Add code generation for textureSampleLevel
https://bugs.webkit.org/show_bug.cgi?id=262306
rdar://116180196

Reviewed by Mike Wyrzykowski.

Add the Metal code generation for textureSampleLevel, similar to the regular
textureSample function, just marginally more complicated as it needs the 
`level()`
wrapper around the level argument.

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

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


_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to