[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.