commit | 1111ee87c4707959902f8c8529b6ad1928629d9b | [log] [tgz] |
---|---|---|
author | Jiawei Shao <jiawei.shao@intel.com> | Tue Aug 08 00:23:24 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Aug 08 00:23:24 2023 +0000 |
tree | 2a78fc969f3d7c018b72d1513e21afb1f0a0f4c8 | |
parent | 7f728fcec16b18c8e5cd215c4e5bb76f2e6d9a35 [diff] |
Only unmap staging buffer before CopyFromStagingToBuffer() on D3D11 This patch moves the unmap() call on staging buffer to D3D11 backend because only D3D11 backend requires to do so. Note that if we keep unmap() before CopyFromStagingToBuffer() on all backends, it will be difficult to share the staging buffer for mappedAtCreation among different buffers because it is possible that when we call unmap() on one buffer, another buffer using same staging buffer internally is still mapped and waiting for data to be written in. Because of this reason it seems we cannot easily reuse the staging buffer for mappedAtCreation on D3D11 backend. Bug: dawn:828, dawn:1772 Change-Id: Ibe92df69ee459669630af4d5898fd4d899d0f63a Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/145180 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
Dawn is an open-source and cross-platform implementation of the work-in-progress 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)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.