commit | b5b2086b09b32207f9c22c5204b8b1673899774a | [log] [tgz] |
---|---|---|
author | Le Hoang Quyen <lehoangquyen@chromium.org> | Thu Jul 11 05:14:38 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jul 11 05:14:38 2024 +0000 |
tree | f98f91186c3e7c425a870710ce4203111e50779e | |
parent | 7cd0dfe46dc59eda2493f572d46b9ff6597e6d7f [diff] |
T2B compute shader: reduce size of temp buffer. We don't need to allocate a temp buffer as big as the original buffer. Only the bytes required for the copy + (offset mod 256) are needed. Example: The temp buffer is allocated with size: - Original: Align(buffer.size, 4). - New: (offset % 256) + RequiredBytesInCopy. Bug: 348654098 Change-Id: I2ec2f933459940907bd6a6896e902cf1e60fc009 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/195403 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Quyen Le <lehoangquyen@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.