commit | c2cc05ba037a4ea028f15e7fdd8784c58e3ee345 | [log] [tgz] |
---|---|---|
author | Lokbondo Kung <lokokung@google.com> | Tue Mar 18 19:17:13 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Mar 18 19:17:13 2025 -0700 |
tree | a6a8b730f9b5cfd4fe4c55d4aff173211a232f3e | |
parent | fa58832352fb737cc5f0975dd1fd01f4a1e6e103 [diff] |
[dawn][headers] Update default values generated in headers. - For enums with an explicit "undefined" value, that should be the default for the struct in the header instead of the "default_value" from dawn.json. The "default_value" from dawn.json should only be applied when calling `WithTrivialFrontendDefaults`. - Updates RequestAdapterOptions to use WithTrivialFrontendDefaults where applicable. - Updates some TextureDescriptor usages to use WithTrivialFrontendDefaults where applicable. - Adds Undefined for PresentMode, and handling of it. Note that this required adding some switch cases for C++, but maybe we shouldn't bother generating the Undefined enum in C++ all together? Will follow up with another change depending on decisions. - Updates defaults in dawn.json to match upstream. Bug: 402498095 Change-Id: I8fd5b5b9620f35652b8c38ec145972740a8ad5b8 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/230315 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Kai Ninomiya <kainino@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.