[dawn][wire] Make sure to release WGPUObjects on Server teardown. - The fuzzer found that if the server was deleted while an async pipeline creation is in flight, the callback would end up being called when the server's weak_ptr is already invalid and as a result, skip calling the callback implementation altogether. This results in the pipeline (if one was returned) being leaked. - This change passes a shared_ptr of the ProcTable to the callback userdatas so that they can clean up any WGPUObjects that are returned from the callbacks if the server is already gone. Bug: 476162309 Change-Id: Ie3bdb6f61a361952f7c7d32e44eb762c5f650f5e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/289215 Auto-Submit: Loko Kung <lokokung@google.com> 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.