[webkit-changes] [WebKit/WebKit] ca4bc7: [WebGPU] decouple auto bind group layout group ind...
mwyrzykowski
noreply at github.com
Thu Feb 1 21:52:06 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ca4bc7fa35374563091f5dbae87fa0415c3651aa
https://github.com/WebKit/WebKit/commit/ca4bc7fa35374563091f5dbae87fa0415c3651aa
Author: Mike Wyrzykowski <mwyrzykowski at 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
More information about the webkit-changes
mailing list