commit | 6c6707021ab747005401961e90cb5659fd74c256 | [log] [tgz] |
---|---|---|
author | Austin Eng <enga@chromium.org> | Thu Aug 05 15:26:58 2021 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Aug 05 15:26:58 2021 +0000 |
tree | 247f031c563e1245166aec5047593fba7cb49636 | |
parent | fef90b8a4a69650c37b3d12fe4f05ae2dc7cbdca [diff] |
Add Buffer::GetAllocatedSize() Buffer allocations may need padding based on backend requirements. GetAllocatedSize returns the size of the buffer actually allocated. This CL also updates the backends to use GetAllocatedSize for buffer clearing and barrier operations which should operate over the entire allocated resource. Bug: dawn:1011 Change-Id: Ic5233214414fa090725a4f50fff70d6e178494c3 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/60701 Reviewed-by: Stephen White <senorblanco@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org>
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.