[webkit-changes] [WebKit/WebKit] 1ab895: [WGSL] Add code generation for textureSample and vecN

Tadeu Zagallo noreply at github.com
Tue Mar 28 06:02:47 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1ab895ba0e34293c52f4600f84a96ba7802fba8d
      https://github.com/WebKit/WebKit/commit/1ab895ba0e34293c52f4600f84a96ba7802fba8d
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-03-28 (Tue, 28 Mar 2023)

  Changed paths:
    M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp

  Log Message:
  -----------
  [WGSL] Add code generation for textureSample and vecN
https://bugs.webkit.org/show_bug.cgi?id=254433
rdar://107193052

Reviewed by Myles C. Maxfield.

Add code in MetalFunctionWriter to rewrite `sampleTexture(t, s, ...)` into `t.sample(s, ...)`
and alias `vecN` to `floatN`. Eventually we might want to perform these manipulations in a
separate phase, but for now this should work.

* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::visitArguments):
(WGSL::Metal::FunctionDefinitionWriter::visit):

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




More information about the webkit-changes mailing list