commit | 167628d1a9e8aa43d16900279a77f68d1711aee2 | [log] [tgz] |
---|---|---|
author | Brandon Jones <bajones@chromium.org> | Mon Aug 04 15:45:21 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Aug 04 15:45:21 2025 -0700 |
tree | 89fcfe72b11bf30a158301381dbe29bb0c290ab0 | |
parent | d1e3c7773833b28db0417b99db3eafd2efa93e3c [diff] |
Use TextureView IDs to query VkFramebuffer cache Previously the framebuffer cache was using WeakPtrs to TextureViews to generate the hash, but this turned out to be fairly expensive as we needed to promote the WeakPtr to a Ref for each attachment every time we did a cache lookup. Unfortunately this made the framebuffer cache almost as expensive as simply re-creating the framebuffers. By switching to use a Device-unique ID for texture views during the cache lookup we avoid all of that overhead. Bug: 416088623 Change-Id: I8db50bbbb9f97d10bcbd148a5561fbd7b02b60ca Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/255615 Reviewed-by: Loko Kung <lokokung@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Brandon Jones <bajones@chromium.org>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h
that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h
version that Dawn implements.webgpu.h
.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.