Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ca4bc7fa35374563091f5dbae87fa0415c3651aa
      
https://github.com/WebKit/WebKit/commit/ca4bc7fa35374563091f5dbae87fa0415c3651aa
  Author: Mike Wyrzykowski <mwyrzykow...@apple.com>
  Date:   2024-02-01 (Thu, 01 Feb 2024)

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

  Log Message:
  -----------
  [WebGPU] decouple auto bind group layout group indices from vector size
https://bugs.webkit.org/show_bug.cgi?id=268573
<rdar://problem/122130353>

Reviewed by Tadeu Zagallo.

WGSL changes from Tadeu. Previously, large group indices caused
the vector to be resized to a large number, which is not needed.

Address fix and correct the indices at pipeline creation time.

* Source/WebGPU/WGSL/GlobalVariableRewriter.cpp:
(WGSL::RewriteGlobalVariables::insertStructs):
* Source/WebGPU/WebGPU/RenderPipeline.mm:
(WebGPU::Device::addPipelineLayouts):

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


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

Reply via email to