commit | 0eee090c2b8adca4142c352b6668a9b72435c538 | [log] [tgz] |
---|---|---|
author | Jiawei Shao <jiawei.shao@intel.com> | Fri Nov 01 00:25:48 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Nov 01 00:25:48 2024 +0000 |
tree | f9051ff856d87b7e4d8c3558d08d1b7ea5954fae | |
parent | b355a39819d6ba788308926b58e3b23a365029d1 [diff] |
Don't clear staging buffer again in `BufferBase::MapAtCreation()` This patch removes an unnecessary call of `memset()` on the memory pointer got from the staging buffer. In `BufferBase::MapAtCreation()`, we don't need to clear the staging buffer again because the staging buffer is created with `mappedAtCreation == true` and has already been cleared to 0 at its creation time. Bug: chromium:42242066 Change-Id: I9b48b7494ab1c116e8bd91b7f598ffe8cabac5ab Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/213195 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Jiawei Shao <jiawei.shao@intel.com> 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.