[webkit-changes] [WebKit/WebKit] 05a4a1: [WGSL] Add tests and code generation for all textu...

Tadeu Zagallo noreply at github.com
Fri Nov 10 11:30:53 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 05a4a1b100789fc092a5f8c6f13e77e2aa4150e8
      https://github.com/WebKit/WebKit/commit/05a4a1b100789fc092a5f8c6f13e77e2aa4150e8
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-11-10 (Fri, 10 Nov 2023)

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

  Log Message:
  -----------
  [WGSL] Add tests and code generation for all texture functions
https://bugs.webkit.org/show_bug.cgi?id=264602
rdar://118239571

Reviewed by Mike Wyrzykowski.

Add extra tests for all functions and add code generation. There's still a
FIXME for textureSampleBaseClampToEdge, but that is a bit more complex and
will be addressed in a later patch.

* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::emitTextureGather):
(WGSL::Metal::emitTextureGatherCompare):
(WGSL::Metal::emitTextureSampleBaseClampToEdge):
(WGSL::Metal::emitTextureSampleBias):
(WGSL::Metal::emitTextureNumLayers):
(WGSL::Metal::emitTextureNumSamples):
(WGSL::Metal::FunctionDefinitionWriter::visit):
(WGSL::Metal::emitTextureSampleClampToEdge): Deleted.
* Source/WebGPU/WGSL/tests/valid/overload.wgsl:

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




More information about the webkit-changes mailing list