[webkit-changes] [WebKit/WebKit] f28b77: [WGSL] Generate auto pipeline layout

Tadeu Zagallo noreply at github.com
Tue Mar 21 11:09:06 PDT 2023


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

  Changed paths:
    M Source/WebGPU/WGSL/GlobalVariableRewriter.cpp
    M Source/WebGPU/WGSL/GlobalVariableRewriter.h
    M Source/WebGPU/WGSL/WGSL.cpp

  Log Message:
  -----------
  [WGSL] Generate auto pipeline layout
https://bugs.webkit.org/show_bug.cgi?id=254160
rdar://106948771

Reviewed by Mike Wyrzykowski and Myles C. Maxfield.

When no pipeline layout is passed in, the compiler should generate a layout
according to https://www.w3.org/TR/webgpu/#default-pipeline-layout.

* Source/WebGPU/WGSL/GlobalVariableRewriter.cpp:
(WGSL::RewriteGlobalVariables::RewriteGlobalVariables):
(WGSL::RewriteGlobalVariables::run):
(WGSL::RewriteGlobalVariables::collectGlobals):
(WGSL::RewriteGlobalVariables::visitEntryPoint):
(WGSL::RewriteGlobalVariables::requiredGroups):
(WGSL::rewriteGlobalVariables):
* Source/WebGPU/WGSL/GlobalVariableRewriter.h:
* Source/WebGPU/WGSL/WGSL.cpp:
(WGSL::prepareImpl):
* Source/WebGPU/WebGPU/RenderPipeline.mm:
(WebGPU::Device::createRenderPipeline):

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




More information about the webkit-changes mailing list