commit | 46945b66ba6424b8d6b28422228d005d60648507 | [log] [tgz] |
---|---|---|
author | Corentin Wallez <cwallez@chromium.org> | Mon Sep 30 16:45:17 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Sep 30 16:45:17 2024 +0000 |
tree | 04f5e600c6ea3c0e99856a8a6832b1bbea09b864 | |
parent | d2007f7c7a9fb13a734cbbba5d6aefde0da25498 [diff] |
webgpu_cpp.h: Add StringView::IsUndefined/operator string_view This will help use StringView from C++ code. It also changes the implicit conversion in wgpu_structs_autogen.h used in dawn::native from std::optional<std::string_view> to std::string_view which can also automatically convert to std::optional<std::string_view> (via the implicit std::optional constructor from its value type). For that reason all occurences of std::optional<std::string> were changed to check for IsUndefined() explicitly if needed. Bug: 42241188 Change-Id: I7cdc397fde24b736c2792ce9a77ae8a709e241b4 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/208554 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.