Dawn: Support stream for types used in shader module reflection This CL add stream in/out support for types used in the shader module reflection, including std::wstring, std::variant, std::unique_ptr, ityp::array, absl::flat_hash_map, andabsl::flat_hash_set. This CL also add support for stream out std::reference_wrapper, which are used for sorting the items in map/set without copying them. Related unittests are also added. Bug: 402772740 Change-Id: I0b93c3638879ef749428c4f37420b132b2a0849f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/241474 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Loko Kung <lokokung@google.com> Commit-Queue: Zhaoming Jiang <zhaoming.jiang@microsoft.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.