[webkit-changes] [WebKit/WebKit] 28a68b: [WGSL] Add code generation for textureSampleLevel

Tadeu Zagallo noreply at github.com
Fri Sep 29 02:02:19 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 28a68be349d587e00400e6a4cfa4bd5fd2399fde
      https://github.com/WebKit/WebKit/commit/28a68be349d587e00400e6a4cfa4bd5fd2399fde
  Author: Tadeu Zagallo <tzagallo at 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




More information about the webkit-changes mailing list