commit | 9bbe2114a1f103fe1dde36b23db2238c485fd57e | [log] [tgz] |
---|---|---|
author | Le Hoang Quyen <lehoangquyen@chromium.org> | Wed Jul 03 02:02:44 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jul 03 02:02:44 2024 +0000 |
tree | 44d2422bc5e7f7f434cebae04e78236a302bb26b | |
parent | eebff27ab8e2e2ab6b9924aea540c22055a67e74 [diff] |
Native: Add buffer's internal CopySrc usage Standard WebGPU spec doesn't allow readback buffer (MapRead) to have CopySrc usage. However some workarounds such as T2B using compute shader might need to create a temporary buffer acting as compute shader's output. Because T2B might copy with bytesPerRow or rowsPerImage > copy size, some padding bytes in the destination buffer must be preserved. In order to do that we need to copy the readback buffer's old content to the temporary buffer. An internal CopySrc usage will be needed in this case. Bug: 348654098 Change-Id: Ie745c941d296b4d8f0fc7d5d47277b0e5f4f833c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/195399 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Quyen Le <lehoangquyen@chromium.org> Reviewed-by: Corentin Wallez <cwallez@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.