[dawn][d3d12] Fix compressed texture clear staging buffer size. The computations for `uploadSize` didn't stay in block space until the end, and instead included two factors needed to convert from Block space to bytes. Fix this by using the exact same logic as in TextureVk that does the conversion from blocks to bytes only once, at the end. Also rework the same code in TextureMTL to stay in block space as much as possible. Fixed: 476798059 Change-Id: I0ea92f02701db591a356a4007abe9ede4894e2c2 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/286575 Reviewed-by: Antonio Maiorano <amaiorano@google.com> Commit-Queue: 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.