[webkit-changes] [WebKit/WebKit] cb1531: [WebGPU] Prefer useResources: to useResource:
mwyrzykowski
noreply at github.com
Sat Jun 17 21:29:20 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: cb15311c151810298b6fff77a7a24d2f7ce72758
https://github.com/WebKit/WebKit/commit/cb15311c151810298b6fff77a7a24d2f7ce72758
Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
Date: 2023-06-17 (Sat, 17 Jun 2023)
Changed paths:
M Source/WebGPU/WebGPU/BindGroup.h
M Source/WebGPU/WebGPU/BindGroup.mm
M Source/WebGPU/WebGPU/BindableResource.h
M Source/WebGPU/WebGPU/ComputePassEncoder.mm
M Source/WebGPU/WebGPU/RenderBundle.h
M Source/WebGPU/WebGPU/RenderBundle.mm
M Source/WebGPU/WebGPU/RenderBundleEncoder.h
M Source/WebGPU/WebGPU/RenderPassEncoder.mm
Log Message:
-----------
[WebGPU] Prefer useResources: to useResource:
https://bugs.webkit.org/show_bug.cgi?id=257751
<radar://110327015>
Reviewed by Tadeu Zagallo.
useResources: is preferred over useResource: and it results in fewer calls.
* Source/WebGPU/WebGPU/BindGroup.h:
(WebGPU::BindGroup::create):
(WebGPU::BindGroup::resources const):
* Source/WebGPU/WebGPU/BindGroup.mm:
(WebGPU::Device::createBindGroup):
(WebGPU::BindGroup::BindGroup):
* Source/WebGPU/WebGPU/BindableResource.h:
* Source/WebGPU/WebGPU/RenderBundle.h:
(WebGPU::RenderBundle::create):
(WebGPU::RenderBundle::resources const):
* Source/WebGPU/WebGPU/RenderBundle.mm:
(WebGPU::RenderBundle::RenderBundle):
* Source/WebGPU/WebGPU/RenderBundleEncoder.h:
* Source/WebGPU/WebGPU/RenderPassEncoder.mm:
(WebGPU::RenderPassEncoder::executeBundles):
(WebGPU::RenderPassEncoder::setBindGroup):
Canonical link: https://commits.webkit.org/265281@main
More information about the webkit-changes
mailing list