commit | f4df7916cacb0f8a87abf99454aafc12c1bdae20 | [log] [tgz] |
---|---|---|
author | Jiawei Shao <jiawei.shao@intel.com> | Wed May 13 00:17:15 2020 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Wed May 13 00:17:15 2020 +0000 |
tree | aafb569c3e6f3a5c1c73bdc55d6067eee51e72e5 | |
parent | fce44b5fe1fe63021310bdd50e34e4d22fca7d22 [diff] |
Add validation on the buffer-to-buffer copies within same buffer This patch adds the validation on the buffer-to-buffer copies within the same buffer. When the source and destination buffer are the same one in CopyBufferToBuffer(), the copy region cannot overlap or it will cause undefined behaviors on Metal and Vulkan. BUG=dawn:17 TEST=dawn_unittests, dawn_end2end_tests Change-Id: I63ab790787ec0a973ae22787a9348bddfb6a5373 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/21602 Reviewed-by: Austin Eng <enga@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 webgpu.h docs)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.