|author||Jiawei Shao <email@example.com>||Thu Jul 09 09:15:22 2020 +0000|
|committer||Commit Bot service account <firstname.lastname@example.org>||Thu Jul 09 09:15:22 2020 +0000|
Implement buffer lazy initialization before CopyBufferToBuffer This patch implements buffer lazy initialization before CopyBufferToBuffer() behind the toggle LazyClearBufferOnFirstUse. - If the source buffer is not initialized, it will be cleared to 0 before CopyBufferToBuffer(). - If the destination buffer is not initialized and the copy doesn't overwrite the whole buffer, it will be cleared to 0 before CopyBufferToBuffer(), otherwise the buffer shouldn't be cleared. BUG=dawn:414 TEST=dawn_end2end_tests Change-Id: I3d0512c6376a1ed8928e86f8e56fefebc16910fa Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/24360 Commit-Queue: Jiawei Shao <email@example.com> Reviewed-by: Corentin Wallez <firstname.lastname@example.org> Reviewed-by: Austin Eng <email@example.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.hversion that Dawn implements.
User documentation: (TODO, figure out what overlaps with webgpu.h docs)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.