Revert "[utils] Make HeapArray aligned to max_align_t for byte types." This reverts commit 97ea6f6b90e0dfab8dc1171379936b9a978ceed5. Reason for revert: Causing downstream ASAN errors Failure Link: http://cl/996566524 Original change's description: > [utils] Make HeapArray aligned to max_align_t for byte types. > > Previously HeapArray wouldn't pass an alignment to operator new[] which > would result in an implementation defined alignment used. Instead detect > the case of byte-type arrays and use max_align_t for alignment. > > - Add DeleteAllocationFromHeapArray to ensure deletions handle the MSVC > workaround and use that method everywhere delete[] was used directly. > - Remove the now unused MoveToRawPtr. > - Modify the alignment tests to stress test that path a bit more. > > Bug: 501491697 > Change-Id: I0a5d861948ed7a7dc7e19c8b1b389b2d8b92a021 > Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/333455 > Reviewed-by: Antonio Maiorano <amaiorano@google.com> > Reviewed-by: Kai Ninomiya <kainino@chromium.org> > Commit-Queue: Corentin Wallez <cwallez@chromium.org> TBR=cwallez@chromium.org,kainino@chromium.org,amaiorano@google.com,dawn-scoped@luci-project-accounts.iam.gserviceaccount.com No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 501491697 Change-Id: I7589fd7ef644a4fd8e7b7489d6445b8e7c87e383 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/350015 Reviewed-by: Natalie Chouinard <chouinard@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org> Auto-Submit: Natalie Chouinard <chouinard@google.com>
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.