[webkit-changes] [WebKit/WebKit] 597aa3: [WebGPU] Use UnsignedWithZeroKeyHashTraits in m_ca...
Myles C. Maxfield
noreply at github.com
Sun May 21 13:35:55 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 597aa395dcdcdb2c1c48069f450f7419a30df72d
https://github.com/WebKit/WebKit/commit/597aa395dcdcdb2c1c48069f450f7419a30df72d
Author: Myles C. Maxfield <mmaxfield at apple.com>
Date: 2023-05-21 (Sun, 21 May 2023)
Changed paths:
M Source/WebGPU/WebGPU/ComputePipeline.h
M Source/WebGPU/WebGPU/ComputePipeline.mm
M Source/WebGPU/WebGPU/RenderPipeline.h
M Source/WebGPU/WebGPU/RenderPipeline.mm
Log Message:
-----------
[WebGPU] Use UnsignedWithZeroKeyHashTraits in m_cachedBindGroupLayouts instead of adding 1 to the key
https://bugs.webkit.org/show_bug.cgi?id=257068
<rdar://problem/109590315>
Reviewed by Dan Glastonbury.
This is exactly what UnsignedWithZeroKeyHashTraits is meant for.
* Source/WebGPU/WebGPU/ComputePipeline.h:
* Source/WebGPU/WebGPU/ComputePipeline.mm:
(WebGPU::ComputePipeline::getBindGroupLayout):
* Source/WebGPU/WebGPU/RenderPipeline.h:
* Source/WebGPU/WebGPU/RenderPipeline.mm:
(WebGPU::RenderPipeline::getBindGroupLayout):
Canonical link: https://commits.webkit.org/264304@main
More information about the webkit-changes
mailing list