[dawn][native] Make CommandAllocator use a single alignment. CommandAllocator used to handle alignment of the commands dynamically based on the alignof(Cmd). This added a lot of complexity at runtime to realign pointers for the current serialization / deserialization point. Address a TODO that has been here for a long time by instead using a single worst case alignment of 64 bit to simplify the logic: we ensure and ASSERT that the pointers are always aligned like this. It simplifies future CLs that spanify CommandAllocator and CommandIterator. Bug: 528305452 Change-Id: I04dfc33487bc49b99052a15d5a6277c2dd2c7180 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/323077 Commit-Queue: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Loko Kung <lokokung@google.com> Reviewed-by: Kai Ninomiya <kainino@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.