[utils] Add dawn::Span. As well as unittests and no-compile tests. The top level comment in span.h explains why this type is needed, but the tl;dr is that we need to be able to configure the index type to be a TypedInteger (to replace ityp::span), the pointer storage to be a raw_ptr (for MiraclePtr correctness) and make sure the layout is exactly size_t then T*, for some dawn_platform.h hackery. Also make std::numeric_limits<TypedInteger>::min/max() constexpr. Bug: 515272358 Change-Id: I99c7bcfd83e4aa7c4778ab378272d079236ea84b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/310537 Reviewed-by: Kai Ninomiya <kainino@chromium.org> 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.