[dawn][native] Make DisposeCallback a callback instead of fnptr This allows the C++ API improvements of webgpu_cpp.h to be used with thi type. It required wrapping it in a DisposeCallbackInfo with a CallbackMode. Update the implementation to use a TrackedEvent instead of a TrackedTask now that there is a CallbackMode. Update tests accordingly and use the MockCppCallback helper. Bug: 386255678 Change-Id: I1aebd0e803ed39a4f33970b0180bbb40ef8b984c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/343156 Commit-Queue: Shao, Jiawei <jiawei.shao@intel.com> Reviewed-by: Loko Kung <lokokung@google.com> Reviewed-by: Shao, Jiawei <jiawei.shao@intel.com>
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.