[dawn] Add custom deleters for surface descriptor glfw_utils. - Because wgpu::ChainedStruct doesn't have a virtual dtor, naively using std::unique_ptr doesn't clean up the allocated descriptors properly. I tried adding virtual dtor for wgpu::ChainedStruct, but as a result of adding that, some of the static_asserts we use to verify struct layouts started failing. Since this is just a helper util, I just added custom deleters where applicable which just casts the wgpu::ChainedStruct into the backing implementation before deleting. Change-Id: Ib37d4430b394f8e6da754033533ca36b30f14754 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/204415 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: 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.