| commit | 6aa8aae9c2564d8bb73cb4da9fec0da86ccc8714 | [log] [tgz] |
|---|---|---|
| author | Gregg Tavares <gman@chromium.org> | Thu Jan 22 08:22:26 2026 -0800 |
| committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jan 22 08:22:26 2026 -0800 |
| tree | bbeb7526f833bcb791301b4cc63f2eec17e7f9d1 | |
| parent | b6a3a7e82c4e91c5ac9aeae3e754edf513b5e491 [diff] |
Capture: Handle unmap by dirty flag. We can't capture on Unmap if the buffer is new (mappedOnCreation) because calling CaptureUnmappedBuffer will end up calling AddResource which will try to capture the buffer's contents. We can't capture the buffer's contents because it's currently mapped. Instead, mark the buffer as "needs capture" and capture it again later if it's used. Bug: 477349135 Change-Id: I6a6a696466378f70100cdb8973761f00d974f5e3 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/285935 Reviewed-by: Shrek Shao <shrekshao@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Gregg Tavares <gman@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.