[dawn][metal] ArgBufs: fix type of dynamic offsets buffer Dynamic offsets are originally u32 (per JS and C specs). For some reason, we convert them to u64 internally (like other buffer offsets). But it's easier to deal with them as u32 when emitting MSL, so convert them back to u32 before setBytes. Test: BindGroupTests.DynamicOffsetOrder Bug: 363031535 Change-Id: Id1caa7e13a5b43fc93e6085002b236f1a56a981c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/294097 Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: 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.