[tint] Replace tint::Slice with std::span /2 This change eliminates the custom tint::Slice type in favor of the standard C++ std::span, improving code safety and reducing reliance on unsafe buffer patterns. Also fix RemoveTerminatorArgs to reset num_next_iter_values_ before clearing operands, preventing std::span::subspan() out-of-bounds access during validation. Bug: chromium:449980071 Skip-Clang-Tidy-Checks: cppcoreguidelines-pro-bounds-avoid-unchecked-container-access Change-Id: Id22c804b97c8fb0ab0d2950aca00f88dfb25bcef Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/265677 Commit-Queue: Aaron Teo <hocheung@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: James Price <jrprice@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.