commit | db27b9960804dc6eef83fb9128b4ebe3c413c1a8 | [log] [tgz] |
---|---|---|
author | Lokbondo Kung <lokokung@google.com> | Thu Aug 29 07:00:08 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Aug 29 07:00:08 2024 +0000 |
tree | a7c6579e4c8962590adb2fa6627c021420553d30 | |
parent | 2d913200c8319e9a4d1e0ff1b39fe008df8d5c46 [diff] |
[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.