| commit | 43be1a4dda86f981fab9ca598571a322770dc816 | [log] [tgz] |
|---|---|---|
| author | Gregg Tavares <gman@chromium.org> | Thu Oct 30 20:14:38 2025 -0700 |
| committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Oct 30 20:14:38 2025 -0700 |
| tree | be3d3adbfde140a042a12d101446d5b3549546b9 | |
| parent | 84a7b6cdf5da91dbd49dc9375a54a0b9b346677d [diff] |
Fix WebGPU-On-WebGPU use after free issue The previous solution was associating pipelines with BindGroupLayoutInternals. That was just flat out invalid as BindGroupLayoutInternals are deduped so the association was incorrect. The association was needed for bindGroupLayouts that are implicitly created by pipelines using automatic layout as we need to know which pipeline to create to get the implicitly generated bindGroupLayout. The new solution gathers all the pipelines used in a command buffer first and serialized them. That way, ids for the implicit bindGroupLayouts already exist and it's safe to then serialize the bindGroups. Bug: 455605671 Change-Id: I78e866eda372df48f37e0b6b91e8d6c76199e458 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/269574 Commit-Queue: Gregg Tavares <gman@chromium.org> Reviewed-by: Loko Kung <lokokung@google.com>
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.