[dawn][native] Spanify CommandIterator::NextData And also make it return a const span to ensure users don't modify the command data. This requires modifying every backend's command iteration to retrieve Spans instead ot T* from NextData and either unpack it again with .data() and .size(), or pass the Span further. Change a couple of sizes in Commands.h to be size_t so that a Span<> is returned from NextData when that size's type is used. Bug: 528305452, 532944732, 532946455 Change-Id: If5f3801cf7653ab60c96e7f0767ec61bad697f86 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/323079 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Loko Kung <lokokung@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.